Skip to content

Commit

Permalink
Merge pull request jupyterhub#845 from betatim/add-offline-nb
Browse files Browse the repository at this point in the history
[MRG] Add jupyter-offlinenotebook extension
  • Loading branch information
betatim authored Feb 6, 2020
2 parents 3adb02a + ac716ce commit bbb2706
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions repo2docker/buildpacks/conda/install-miniconda.bash
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ 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. Keep going if the lab version is incompatible
# with the extension
${NB_PYTHON_PREFIX}/bin/jupyter labextension install jupyter-offlinenotebook || true

# empty conda history file,
# which seems to result in some effective pinning of packages in the initial env,
# which we don't intend.
Expand Down

0 comments on commit bbb2706

Please sign in to comment.