- Make the environment:
python3 -m venv .venv
- Activate the environment:
source .venv/bin/activate
- Download packages:
python3 -m pip install -r requirements.txt
- Install ipykernel:
python -m ipykernel install --user --name trading
- Fire up a jupyter notebook:
jupyter notebook
- Install new libraries:
pip install new_library
- Update the requirements.txt:
pip freeze > requirements.txt
- For using the functions in the folder utils, I recommend that to install that as a library in dev mode:
pip install -e .
- After installation, one can use the library as
import utils
in notebooks
For the trading exercises, majority of the experiments were inspired by notebooks in https://github.com/stefan-jansen/machine-learning-for-trading