Python Data Science with Jupyter on Docker

various software logos

Inspired by article “How to set up and run Python Data Science Development Environment with Jupyter on Docker” [Archived]

Data Scientists that write or use code must work with a variety of Data Science development tools, including the  Anaconda (or Miniconda) Python distribution platform, the Python programming language, the R programming languageMatplotlib libraryPandas Library, the Jupyter application, and many others.

Installing a version of Python on one’s computer can be challenging (see Understanding Python installation mess) and while it is possible to even install both Anaconda and Python separately, using a Docker method keeps things separate and even more modular that “environments.”

The article describes how to use pre-made  Docker images to run Jupyter Labs. the Jupyter Docker Stacks simplifies how to create a ready-to-use Jupyter application with Data Science libraries in a few commands. The article contains the commands to install and run the necessary software and contains an embedded ~9min video demonstration.

Table of Contents of article

Here is a screen capture of the web browser that I started with command:

docker run -p 8888:8888 --name notebook -v "${PWD}":/home/jovyan/work -e JUPYTER_ENABLE_LAB=yes  -it jupyter/scipy-notebook

Jupyter Lab launched within my browser in localhost:8888

There are more options with the jupyter/datascience-notebook:

docker run -p 8888:8888 --name notebook -v "${PWD}":/home/jovyan/work -e JUPYTER_ENABLE_LAB=yes  -it jupyter/datascience-notebook

The datascience-notebook version adds R and Julia.

Quoting from the article:

Jupyter Docker Stacks provide various images for developers based on their requirements such as:

See more detail about all image types on Selecting a Docker Image page.

Short demonstration

The following short 8minute video shows how it works:


This other article has more details on the working of Docker:

How to Run Jupyter Notebook on Docker – [Archived]
No more Python env and package update

Top illustration background: Felipe on Pixabay