Skip to content

Instantly share code, notes, and snippets.

@enricorotundo
Last active September 14, 2018 09:25
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 enricorotundo/d051b03da3e179b289171c19917c4ed3 to your computer and use it in GitHub Desktop.
Save enricorotundo/d051b03da3e179b289171c19917c4ed3 to your computer and use it in GitHub Desktop.
Install JupyterLab with extensions and automatic kernel discovery
#!/usr/bin/env bash
# Setup conda config
wget https://gist.githubusercontent.com/enricorotundo/65218b399bc7bb1c749e2f5cfd571434/raw/e6dc4e80f7894c544b43621d849555233e484f91/.condarc
cp .condarc $HOME/.condarc
# Install Jupyter and JupyterLab
conda install -c conda-forge -y jupyter ipywidgets ipykernel jupyterlab
# Enable extensions
jupyter nbextension enable --py widgetsnbextension
jupyter serverextension enable --py jupyterlab
# TODO: add description
conda install -y nb_conda_kernels
conda install --yes -c conda-forge nbpresent
conda install --yes -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge -y jupyter_nbextensions_configurator
@enricorotundo
Copy link
Author

enricorotundo commented Sep 14, 2018

Run with:

wget {GIST_RAW_URL}
chmod +x install_jupyter_complete.sh
./install_jupyter_complete.sh

@enricorotundo
Copy link
Author

Previously installed conda envs are not discovered by the script above unless you had the .condarc setup up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment