Skip to content

Instantly share code, notes, and snippets.

@derailed-dash
Created October 22, 2023 16:23
Show Gist options
  • Save derailed-dash/b1d9eb511e336ba837da234518c09842 to your computer and use it in GitHub Desktop.
Save derailed-dash/b1d9eb511e336ba837da234518c09842 to your computer and use it in GitHub Desktop.
Docker compose file for lauching a Jupyter SciPy lab environment
version: '3.9'
services:
jupyter:
environment:
JUPYTER_ENABLE_LAB: yes
CHOWN_HOME: yes # Next three env vars are needed to fix permission issues on WSL
CHOWN_HOME_OPTS: '-R'
JUPYTER_ALLOW_INSECURE_WRITES: true
image: jupyter/scipy-notebook
container_name: scipy-lab
volumes:
- .:/home/jovyan
ports:
- 8888:8888
@derailed-dash
Copy link
Author

To allow hidden files to show in the file explorer of the JupyterLab environment:

version: '3.9'
services:
  jupyter:
    environment:
      JUPYTER_ENABLE_LAB: yes
      CHOWN_HOME: yes   # Next three env vars are needed to fix permission issues on WSL
      CHOWN_HOME_OPTS: '-R'
      JUPYTER_ALLOW_INSECURE_WRITES: true
    image: jupyter/scipy-notebook
    container_name: scipy-lab
    volumes:
      - .:/home/jovyan
    ports:
      - 8888:8888
    command: start-notebook.sh --NotebookApp.token='' --ContentsManager.allow_hidden=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment