Hello quantconnect community, I've a bit new here.
I've been learning quantconnect's python documentation within the HTML editor, however the debugging/logging/testing methodology I've understood so far makes it difficult for me to learn the API better.
Is there any way I can just run the python script in my own environment, ( I use vim ) and use my own `print()` functions to see exactly what certain functions return? The builtin debug and log()s format the data and of course there's that max log size that I accidently fill everyday when accidently having a log() in onData() being ran.
Is there any way I can just run my script in my own environment using vim? Just running the script in the terminal?
Laur Aliste
Hia.
You absolutely can! LEAN engine source is available at github.
Running it depends on the platform you're using, but as a starting point I recommend going through this great introductory hackernoon post by Jared.
Note it's not a script you'd be executing. You edit your algorithm, then spin up LEAN instance running it. But once you set workflow up it's a breeze.
If you're running on linux, then from personal experience I'd recommend moving dev env into docker; DockerfileLeanFoundation is a good starting point for that.
Zactyh
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!