Skip to content

Instantly share code, notes, and snippets.

@andrew-rietz
Last active July 25, 2021 16:37
Show Gist options
  • Save andrew-rietz/03e225d671c019bed04d07d211ca1059 to your computer and use it in GitHub Desktop.
Save andrew-rietz/03e225d671c019bed04d07d211ca1059 to your computer and use it in GitHub Desktop.

Adding kernel to jupyter with venv (or to root python directory)

Substitute your desired kernel name for <<project-name>>

pip install ipykernel
ipython kernel install --user --name=<<project-name>>

Adding kernel to jupyter with pipenv

Substitute your desired kernel name for <<project-name>>

pipenv shell
pipenv install ipykernel
ipython kernel install --user --name=<<project-name>>

Removing unneeded jupyter kernels

jupyter kernelspec list
jupyter kernelspec uninstall <<unwanted-kernel>>

Further reading

https://medium.com/@wenyu.z/adding-python-3-kernel-to-jupyter-43ae7995b329 https://anbasile.github.io/programming/2017/06/25/jupyter-venv/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment