Skip to content

Instantly share code, notes, and snippets.

@pdonorio
Created July 18, 2017 08:00
Show Gist options
  • Save pdonorio/1a238ca4bde7a5961a12a694481acb74 to your computer and use it in GitHub Desktop.
Save pdonorio/1a238ca4bde7a5961a12a694481acb74 to your computer and use it in GitHub Desktop.
Add a kernel to a jupyter (dockerized) notebook based on Anaconda
FROM jupyter/datascience-notebook # <-- use a jupyter image here
MAINTAINER "Paolo D'Onorio De Meo <[email protected]>"
# Python 3.6 virtualenv
ENV PY36 Python3.6
RUN conda create -y -n $PY36 python=3.6.1 \
&& conda clean -y --all
RUN /bin/bash -c "source activate $PY36 && pip install mypy ipython ipykernel version_information"
# Create the kernel
USER jovyan
RUN /bin/bash -c "source activate $PY36 && python -m ipykernel install --user --name=$PY36"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment