Skip to content

Instantly share code, notes, and snippets.

@fsquillace
Last active February 16, 2020 19:10
Show Gist options
  • Save fsquillace/721015d093c7e98faa284bc2d7bed3f8 to your computer and use it in GitHub Desktop.
Save fsquillace/721015d093c7e98faa284bc2d7bed3f8 to your computer and use it in GitHub Desktop.
Simple script for installing a complete Jupyter notebook
#!/bin/bash
# Provides all the basic packages and kernels to have a complete Jupyter notebook ready!
#
# The installation includes:
# - scientific packages
# - ipython tab completion
# - bash kernel
# - ipywidgets
#
# To run a notebook:
# jupyter notebook --no-browser
set -e
# Jupyter
# https://try.jupyter.org/
## IPython kernel
# https://nbviewer.jupyter.org/github/ipython/ipython/blob/4.0.x/examples/IPython%20Kernel/Index.ipynb
pip install jupyter
# Basic kernels
## Bash kernel
# https://github.com/takluyver/bash_kernel
pip install bash_kernel
python -m bash_kernel.install
## Ipywidgets
# https://ipywidgets.readthedocs.io/en/latest/user_guide.html
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
# Scientific python packages
pip install numpy scipy matplotlib pandas scikit-learn bokeh
# IPython shift+tab completion
pip install pyreadline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment