Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created Dec 2, 2020
Embed
What would you like to do?
#!/usr/bin/env bash
# assume that if an `nb` dir (presumably a virtualenv) exists, then we don't
# need to do any of the time-consuming stuff
if [ ! -d nb ]; then
python -mvenv nb
# # ipykernel is required for bash_kernel \
nb/bin/pip install \
bash_kernel \
ipykernel \
ipython \
jupyter \
matplotlib \
numpy \
seaborn
nb/bin/python -m bash_kernel.install
fi
# pop up a notebook in the current dir
nb/bin/jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment