Before we enable Jupyter support, follow Lean installation and Python installation to get LEAN running Python algorithms in your machine.
1. Install Jupyter and its dependencies:
- Install Jupyter:
pip install jupyter
- Install QuantConnect Python API
pip install quantconnect
- Install PythonNet: If you haven't installed Git yet you should first setup git, then install PythonNet.
git clone https://github.com/QuantConnect/pythonnet
cd pythonnet
python setup.py install
2. Run Jupyter:
- Update the config.json file in
Lean/Launcher/
folder
"composer-dll-directory": ".",
- Rebuild the solution to refresh the configuration and binaries.
- Run Jupyter from the command line,
cd Lean/Launcher/bin/Debug
jupyter notebook