Merge pull request #845 from betatim/add-offline-nb

[MRG] Add jupyter-offlinenotebook extension
pull/643/head^2
Tim Head 2020-02-06 11:58:06 +01:00 zatwierdzone przez GitHub
commit 8d490cf9d8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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.