I quite frequently get the following error message when running code in the research jupyter notebook in algorithm lab:
Error: Canceled future for execute_request message before replies were done
at a.KernelShellFutureHandler.dispose (/home/lean-user/.openvscode-server/extensions/ms-toolsai.jupyter-2022.3.1001111913/out/node_modules/@jupyterlab/services.js:2:32353)
at /home/lean-user/.openvscode-server/extensions/ms-toolsai.jupyter-2022.3.1001111913/out/node_modules/@jupyterlab/services.js:2:26572
at Map.forEach (<anonymous>)
at y._clearKernelState (/home/lean-user/.openvscode-server/extensions/ms-toolsai.jupyter-2022.3.1001111913/out/node_modules/@jupyterlab/services.js:2:26557)
at /home/lean-user/.openvscode-server/extensions/ms-toolsai.jupyter-2022.3.1001111913/out/node_modules/@jupyterlab/services.js:2:29000
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The instance resets after the error message and I have to run all the code again. I have not purchased a research node - may that be the reason? I also experience the script getting stuck at one cell for no obvious reason - it's fixed when I close the project and re-open it.
Fabian Kliem
Same issue here. Any solution for this?
Haakon
No, I haven't found anything, unfortunately. Been having lots of issues with the research environment in the algorithm lab even after purchasing a research node. I am afraid I have to use a different stock data provider and do research using custom Jupyter notebooks outside LEAN, which is a bummer.
Jared Broad
Hey Haakon Flaarønning ! We've been working quietly on this in the background and realized two things:
This error message above is from an out-of-RAM error. The solution is to upgrade to a paid node with a greater allocation. We're build a RAM reporting system in the last couple of days to display this message and let you know when you're approaching maximum RAM.
Your account is free, so the RAM nodes are capped at 2GB. You'll hit this limit easily if you make a substantial history request.
We really appreciate you choosing LEAN and QC!
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.
Haakon
Hey Jared Broad, thanks for clarifying the issue! Makes sense that it is a RAM issue. I upgraded my research node for a day and stopped getting that error message. However, the kernel continued to crash and restart and was overall slow, so I am hesitant to use the research environment for now. Also sucks to not be able to extract plots as images, although I understand you don't want anyone to be able to extract data out of QC. I will probably purchase the on-demand equity data from QC when I can afford it but using a different data provider for my research until then.
Anshul Goel
Hi, its Sep 15 2024 and I am also suffering from the same issue even after buying a researcher node :(
Douglas McWilliams
It November 14, 2024 and I've been having problems with the Kernels. It's really frustrating as a paid subscriber.
Haakon
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!