Locally installed Lean, I can start and use Jupyter server with lean research <project>.
But when I try to connect to running Jupyter server from VS Code, I get rejected with 403-Forbidden error and the Lean console message of:
403 POST /api/sessions?1629659297445 (172.19.0.1): '_xsrf' argument missing from POST
Before I start tinkering with Lean Jupyter server setup and adding token into .json file, did anyone resolve this already?
Jasper van Merle
Hi MihaK,
I just fixed the issue and released a new version of the CLI. Can you please run `pip install --upgrade lean` to update the CLI and try it again?
MihaK
the new version works, thanks! There is a warning that trace is showing every time when executing a Jupyter cell (via VSCode) - might be by design:
TRACE:: Config.Get(): Configuration key not found. Key: data-permission-manager - Using default value: DataPermissionManager
TRACE:: Config.Get(): Configuration key not found. Key: lean-manager-type - Using default value: LocalLeanManager
Jasper van Merle
Hi MihaK,
Glad to hear that! The trace messages you're seeing are coming from LEAN and are harmless, you can safely ignore them.
MihaK
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!