Skip to content

Instantly share code, notes, and snippets.

@orleika
Created February 25, 2018 05:48
Show Gist options
  • Save orleika/3c5c4ceb6acd4550ffc74a94dbaa0989 to your computer and use it in GitHub Desktop.
Save orleika/3c5c4ceb6acd4550ffc74a94dbaa0989 to your computer and use it in GitHub Desktop.
jupyter_datascience-notebook-parallel
version: '3'
services:
jupyterlab:
image: jupyter-parallel
build:
context: .
cache_from:
- jupyter/datascience-notebook:latest
ports:
- '8888:8888'
volumes:
- ./work:/home/jovyan/work
command: start-notebook.sh --NotebookApp.token=''
FROM jupyter/datascience-notebook
USER root
RUN apt-get update \
&& apt-get install mpich -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER $NB_USER
RUN pip install ipyparallel mpi4py \
&& jupyter nbextension install --sys-prefix --py ipyparallel \
&& jupyter nbextension enable --sys-prefix --py ipyparallel \
&& jupyter serverextension enable --sys-prefix --py ipyparallel \
&& ipython profile create --parallel --profile=default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment