To get everything setup very easily we have created a docker container that has all the libraries installed you need for the labs. The container also contains local jupyter notebook server, so you can run all the notebooks locally.
Homebrew Python blocks global pip install. Use the project virtual environment instead:
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
jupyter lab --ip=0.0.0.0 --port=8888 --no-browserIn Cursor/VS Code, select the kernel "ML Con (.venv)" or the interpreter at .venv/bin/python.
$ docker build -t aikurs-container .
$ docker run -it --rm -v $(pwd):/app -p 8000:8000 -p 8888:8888 aikurs-container bash
- pwd is your current working directory on the host machine
- app is the path in the container where the host directory is mapped to
$ jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root
$ uvicorn main:app --host 0.0.0.0 --port 8000