Skip to content

Instantly share code, notes, and snippets.

@graham-thomson
Created February 5, 2020 23:54
Show Gist options
  • Save graham-thomson/533843d6154eb06793683746061f8352 to your computer and use it in GitHub Desktop.
Save graham-thomson/533843d6154eb06793683746061f8352 to your computer and use it in GitHub Desktop.
helpful jupyter kernel commands
#!/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