Created
April 20, 2017 15:24
-
-
Save bofm/5534a5371e7230732465357cc9216fc3 to your computer and use it in GitHub Desktop.
Use virtualenv python kernel inside the Jupyter Notebook installed in the system site-packages
This file contains hidden or 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
# install Jupyter Notebook into system site-packages | |
pip install -U notebook | |
# create a virtualenv and use the Jupyter from the system site-packages | |
mkvirtualenv --system-site-packages myvenv | |
# the virtualenv is now activated | |
pip install ipykernel | |
VM_NAME=myvm python -m ipykernel install --user --name $VM_NAME --display-name $VM_NAME | |
python -m jupyter notebook | |
# In the browser: New -> select kernel "myvm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment