Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Last active March 27, 2020 12:40
Show Gist options
  • Save mvidaldp/6eb8cfc18016f32c659402d13d276ec3 to your computer and use it in GitHub Desktop.
Save mvidaldp/6eb8cfc18016f32c659402d13d276ec3 to your computer and use it in GitHub Desktop.
Add venv (virtual environment) Python kernel to Jupyter Lab or Jupyter Notebook

Assuming you are on your virtual environment:

pip install ipykernel
python -m ipykernel install --user --name venvname --display-name "Python (venvname)"
# run `jupyter kernelspec uninstall venvname` to remove it afterwards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment