Last active
May 28, 2020 19:19
-
-
Save jhuangtw/d8da81c31ce3629cece05d66d6dbadaa to your computer and use it in GitHub Desktop.
Running Jupyter with pipenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
python -m ipykernel install --user --name="basename $VIRTUAL_ENV"
will use the
pipenv
's environment name.