Created
February 5, 2020 23:54
-
-
Save graham-thomson/533843d6154eb06793683746061f8352 to your computer and use it in GitHub Desktop.
helpful jupyter kernel commands
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 | |
# list all jupyter kernels | |
jupyter kernelspec list | |
# remove kernel | |
jupyter kernelspec uninstall ${kernel_name} | |
# add venv to kernels | |
# prereqs | |
source /path/to/venv/bin/activate | |
python3 -m pip install ipykernel | |
# command to add | |
python3 -m ipykernel install --user --name ${kernel_name} --display-name "${kernel_name} (venv)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment