Running jupyter in virtualenv

  • Requirements:
pip install virtualenv
pip install ipykernel
pip install jupyter
  • Create virtualenv with desired version of python
virtualenv -p /usr/bin/python3.6 my-venv
  • Switch to virtualenv
cd my-venv
source bin/activate
  • Add custom kernel (python in this case is from virtualenv)
python -m ipykernel install --name py-torch
  • Start jupyter
jupyter notebook
  • Select new kernel under menu: Kernel > Change kernel
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s