Skip to content

Instantly share code, notes, and snippets.

@adcoh
Last active November 1, 2020 14:22
Show Gist options
  • Save adcoh/44d34cd29d0eea0c38384a3b41193f69 to your computer and use it in GitHub Desktop.
Save adcoh/44d34cd29d0eea0c38384a3b41193f69 to your computer and use it in GitHub Desktop.
An easy shell script to install Jupyter Lab and register your project venv as a kernel
pip install --upgrade pip
pip install upgrade jupyterlab
pip install autopep8
pip install --upgrade jupyterlab-git
venv_root_dir=${PWD##*/}
python -m ipykernel install --user --name=$venv_root_dir
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension --sys-prefix
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-execute-time
jupyter serverextension enable --py jupyterlab_git
jupyter lab build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment