This gist explains how to run the Jupyter Notebooks server and Python kernel within a Docker container instead of installing it locally.
Run the following command where <local_notebooks_dir>
is the directory where you store
your Jupyter Notebooks on your local machine. This directory will be exposed within the
Jypter Notebooks web client.
docker run -p 8888:8888 -v <local_notebooks_dir>:/home/jovyan jupyter/minimal-notebook
To access the Jupyter Notebooks client, follow the instructions printed out to the terminal window once the container starts.
There is a great tutorial on using Jupyter Notebooks here: https://www.dataquest.io/blog/jupyter-notebook-tutorial/
For more details about the container, review the Dockerfile: https://github.com/jupyter/docker-stacks/blob/master/minimal-notebook/Dockerfile
- https://www.dataquest.io/blog/docker-data-science/
- https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
- https://hub.docker.com/u/jupyter
- https://www.dataquest.io/blog/jupyter-notebook-tutorial/
- https://github.com/jupyter/docker-stacks/blob/master/minimal-notebook/Dockerfile