Last active
September 4, 2019 13:42
-
-
Save ottomata/e19e31eea7a062d5ee7ded5a27e1e76c to your computer and use it in GitHub Desktop.
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
# Stop your Jupyter Notebook server from the JupyterHub UI. | |
# Move your old venv out of the way (or just delete it) | |
mv $HOME/venv $HOME/venv-old-$().$(date +%s) | |
# create a new empty venv | |
python3 -m venv --system-site-packages $HOME/venv | |
# Reinstall the jupyter venv | |
cd /srv/jupyterhub/deploy | |
$HOME/venv/bin/pip install --upgrade --no-index --force-reinstall --find-links=/srv/jupyterhub/deploy/artifacts/stretch/wheels --requirement=/srv/jupyterhub/deploy/frozen-requirements.txt | |
# Login to JupyterHub and start your Jupyter Notebook server. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment