Skip to content

scr255/Docker-JupyterLab-Templates

Repository files navigation

Docker JupyterLab Templates

Containerized JupyterLab with Python 3

Available templates

drawing Scipy-JupyterLab

drawing MongoDB-JupyterLab

drawing Neo4j-JupyterLab

drawing PyTorch-CUDA-JupyterLab

drawing Selenium-JupyterLab

drawing Spark-Delta-JupyterLab

Features

✔️ All templates based on official images - Docker Hub

✔️ Code formatter - Black & isort

✔️ Sync local directories

Install requirements - Docker

Template PyTorch-CUDA-JupyterLab

All templates

Run templates

Clone repository

git clone https://github.com/scr255/Docker-JupyterLab-Templates.git

Select the template of interest

Example for template "Scipy-JupyterLab":

cd Docker-JupyterLab-Templates/Scipy-JupyterLab

Set volumes - optional

Default sync based on current directory:

    volumes:
      - .:/home/jovyan/work

Sync specific path by editing "docker-compose.yml":

    volumes:
      - ~/Documents:/home/jovyan/work

Start notebook

docker compose up

Access notebook

Copy token from terminal

Open http://localhost:8888/lab and paste the token

Open the .ipynb file as a starting point

Stop notebook

Hit Ctrl+C in the terminal to stop the server

Then remove containers by submitting:

docker compose down

Ports

All templates bind to port 8888 for Jupyter. Additional ports, depending on the template: