dopper / ml-python-cookbook-runner

Dockerized Jupyter notebook to run commands from the ML Python Cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Machine Learning in Python Cookbook Runner

Dockerized Jupyter notebook for running content from the 2nd Edition of the Machine Learning in Python Cookbook.

Running the Notebook

To create and run notebooks using Python 3.10 with docker, we can build an image and run a container with this working directory mounted as a volume:

DOCKER_BUILDKIT=1 docker build -t ml-python-cookbook-runner .
docker run -it -v $(pwd):/workspace -p 8888:8888 ml-python-cookbook-runner 

Go to http://localhost:8888 to open notebooks and run them (you may need the token that's printed out in the terminal).

TODOs

  • The image is massive with all requirements added, slim it down as much as possible
  • Break out the requirements into individual files or sets of files per chapter to avoid installing everything
  • Pin the dependencies so nothing breaks down the road

About

Dockerized Jupyter notebook to run commands from the ML Python Cookbook


Languages

Language:Dockerfile 77.3%Language:Python 22.7%