Setting up a Python environment to run the code in Docker
Book by Dr. Yves J. Hilpisch
CEO The Python Quants
My book about AI & RL in finance and RL applied to algorithmic trading (http://home.tpq.io/books/aiif).
To install Docker see https://docs.docker.com/install/.
To run a Ubuntu-based Docker container, execute on the shell (Linux/Mac) the following:
docker run -ti -p 9999:9999 -h aiifenv -v $(pwd):/root/local ubuntu:latest /bin/bash
Make sure to adjust the folder to be mounted accordingly.
Or run the bash script:
bash run_docker.sh
You might need to adjust the URL for the Miniconda installer in the setup.sh
script. See the list of available installers here:
https://repo.anaconda.com/miniconda/
Next, once in Docker, execute the following:
cd /root/aiifenv
bash setup.sh
On your local machine, you should be able to access Jupyter Lab in the browser at:
https://127.0.0.1:9999/lab
The environment does NOT install all packages required. But those that are needed for the DL/ML/RL parts with TensorFlow/Keras.