Skip to content

Instantly share code, notes, and snippets.

@ivankeller
Created November 16, 2019 14:04
Show Gist options
  • Save ivankeller/3bde826d9a6c89ccdb363eabf3df0eaf to your computer and use it in GitHub Desktop.
Save ivankeller/3bde826d9a6c89ccdb363eabf3df0eaf to your computer and use it in GitHub Desktop.
add pipenv virtual environment to Jupyter notebook kernels
$ cd my_project #where Pipfile resides
$ pipenv install ipykernel
$ pipenv shell #if not already done before
(my-virtualenv-name) $ python -m ipykernel install --user --name=my-virtualenv-name
(my-virtualenv-name) $ jupyter lab #or jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment