Created
July 18, 2017 08:00
-
-
Save pdonorio/1a238ca4bde7a5961a12a694481acb74 to your computer and use it in GitHub Desktop.
Add a kernel to a jupyter (dockerized) notebook based on Anaconda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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