pipenv jupityer notebook code example
Example 1: jupyter kernel pipenv
pipenv install ipykernel
pipenv shell
# This will bring up a terminal in your virtualenv like this:
(my-virtualenv-name) bash-4.4$
In that shell do:
python -m ipykernel install --user --name=my-virtualenv-name
#Launch jupyter notebook:
jupyter notebook
#In your notebook, Kernel -> Change Kernel.
#Your kernel should now be an option.
Example 2: run ipython inside pipenv
pipenv install ipython
python -m IPython