From c340f4a44eaac3a7d2cee2b1ad7bf97d50f34a1c Mon Sep 17 00:00:00 2001 From: Tim Head Date: Wed, 5 Feb 2020 23:16:57 +0100 Subject: [PATCH] Install jupyter-offlinenotebook extension This adds the offlinenotebook extension to the base install. With this users can download their notebook even after the server has gone away. --- repo2docker/buildpacks/conda/install-miniconda.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repo2docker/buildpacks/conda/install-miniconda.bash b/repo2docker/buildpacks/conda/install-miniconda.bash index fae2bbdb..0449a124 100755 --- a/repo2docker/buildpacks/conda/install-miniconda.bash +++ b/repo2docker/buildpacks/conda/install-miniconda.bash @@ -50,6 +50,13 @@ echo "installing notebook env:" cat /tmp/environment.yml conda env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml +# Install jupyter-offline-notebook to allow users to download notebooks +# after the server connection has been lost +# This will install and enable the extension for jupyter notebook +${NB_PYTHON_PREFIX}/bin/python -m pip install https://github.com/manics/jupyter-offlinenotebook/archive/7ba3520.zip +# and this installs it for lab +${NB_PYTHON_PREFIX}/bin/jupyter labextension install jupyter-offlinenotebook + # empty conda history file, # which seems to result in some effective pinning of packages in the initial env, # which we don't intend.