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