Before we enable Jupyter support, follow Lean installation and Python installation to get LEAN running Python algorithms in your machine.
1. Installation:
- Install JupyterLab:
pip install jupyterlab
- Install QuantConnect Python API
pip install quantconnect
- Linux and macOS: Copy pythonnet binaries for jupyter
cp Lean/Launcher/bin/Debug/jupyter/* Lean/Launcher/bin/Debug
2. Run Jupyter:
- Update the
config.json
file inLean/Launcher/bin/Debug/
folder
"composer-dll-directory": ".",
- Run Jupyter from the command line
cd Lean/Launcher/bin/Debug
jupyter lab