Last active
February 16, 2020 19:10
-
-
Save fsquillace/721015d093c7e98faa284bc2d7bed3f8 to your computer and use it in GitHub Desktop.
Simple script for installing a complete Jupyter notebook
This file contains 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
#!/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