Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created December 2, 2020 04:34
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 llimllib/49d77c9401d92f9a324cd4957736aeca to your computer and use it in GitHub Desktop.
Save llimllib/49d77c9401d92f9a324cd4957736aeca to your computer and use it in GitHub Desktop.
#!/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