Back

Quanconnect framework intellisense for local development in Python

Skylight is great by enabling local development. But if you like me are missing the QC intellisense in the cloud IDE. I hope the following helps. Apologies for the poor video quality, not a youtuber myself :-)

The following is quick demo of quantconnect intellisense in local development within PyCharm.

https://youtu.be/7SAwBXIISug

 

Here is how to set it up in PyCharm

 

https://youtu.be/qiBEm0mWJMw

As Pycharm by default only reads around 1 Mb something size files for intellisense (some of the stubs are larger than this limit). The following is how to increase it. I set it to 4 Mb which is more than enough. 

https://youtu.be/aiMsnVGnCog

 

Some notes from my last few days expereince. 

1. the stubs can be used in VS Code to setup intellisense too (which was my intial target IDE). However as the engine which generated the stubs are from PyCharm. It has the best expereince I found.

2. The intellisense expereince is close but not as good as developing algo in C# within Lean under VS studio. Static typed lanugage does make intellisense easier. You could improve this by define the type of variable in  Python as what I did in the examples to promote more suggestions

3. If you are interested, the stubs are generated using a modified version of IronPython-Subs. Its link is included in the stub readme.

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


This is awesome! :) We started this project and prototyped it but wanted to work on how to make it easier to install. I'd love to chat and see if we can merge it into LEAN.

1

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Jared

Thanks :-) Yes, I would be glade to have this merged into LEAN. Please drop me a line with what you need from me.

 

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed