I am new to quantconnect and interested in the research notebooks I can create from it. After creating the first project, it gives me a notebook to test out. Unfortunoutly, the cell it gives me outputs an error:
I have research all over but can't find anything helpful. I am running this notebook both on my local env and on the cloud and the same error persist.
Louis Szeto
Hi Angel
It looks like you're running from a local jupyter notebook. This will not compile the docker image of LEAN which is required to run the functionality of LEAN. Instead, follow this doc to run the notebook via the cli.
Best
Louis
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.
Non Compete
if you have lean research running, for exmaple:
lean research project_name --port 8881 Â --data-purchase-limit 0 --data-provider Local
you can connect you local notebook to it by changing the Jupyter server , for example in Pycharm:
otherwise you can go to:
http://localhost:8881/lab
Â
I recommend changing the port from the default because something else will probably be running on 8888 and the lean research command wont give an errorÂ
Â
Non Compete
For your specific error, i think make sure you import QuantBook:
Angel Ortiz
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!