Skip to content
Docker image to run JupyterLab Notebook locally
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
jupyterlab.png
notebook.bashrc
requirements.txt

README.md

jupyterlab-notebook

Docker image to run JupyterLab Notebook locally

Introduction

Running JupyterLab Notebook locally can be painful due to conflicts with base system Python and I don't particully like conda or venv.

I'm leveraging Docker to run a notebook locally with a bonus that allow me to have several different versions and try optimial instalations.

Usage

The companion script [notebook.bashrc](notebook.bashrc) tries to load locally a image matching the file version and if it can't find it will build it automatically. Once the image is ready the notebook will start and listen on port 8888.

# Add this to your ~/.bashrc
[ -f ~/usr/local/jupyterlab-notebook/notebook.bashrc ] && source ~/usr/local/jupyterlab-notebook/notebook.bashrc

After loading the companion script, you can open the notebook watching to the current folder:

cd ~/Notebooks
notebook

Extending

There is a fairly amount of packages installed on this image, but you can always customize it. Edit requirements.txt and rebuild.

Alternative

If you like the idea but doesn't want to build it locally, you can always pull from DockerHub

You can’t perform that action at this time.