Skip to content

Instantly share code, notes, and snippets.

@jhuangtw
Last active May 28, 2020 19:19
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jhuangtw/d8da81c31ce3629cece05d66d6dbadaa to your computer and use it in GitHub Desktop.
Save jhuangtw/d8da81c31ce3629cece05d66d6dbadaa to your computer and use it in GitHub Desktop.
Running Jupyter with pipenv
pipenv install ipykernel jupyter
pipenv shell
python -m ipykernel install --user --name=$(basename $(pwd))
jupyter notebook
# then in UI, switch kernel to the one matching your pipenv shell name
@gosuto-inzasheru
Copy link

Using

python -m ipykernel install --user --name="basename $VIRTUAL_ENV"

will use the pipenv's environment name.

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