Skip to content

Instantly share code, notes, and snippets.

@ottomata
Last active September 4, 2019 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ottomata/e19e31eea7a062d5ee7ded5a27e1e76c to your computer and use it in GitHub Desktop.
Save ottomata/e19e31eea7a062d5ee7ded5a27e1e76c to your computer and use it in GitHub Desktop.
# 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