Skip to content

Instantly share code, notes, and snippets.

@ulope
Last active January 3, 2017 17:11
Show Gist options
  • Save ulope/f1073fbaad74082646c0e73ef2053341 to your computer and use it in GitHub Desktop.
Save ulope/f1073fbaad74082646c0e73ef2053341 to your computer and use it in GitHub Desktop.
Reenable Jupyter notebook Python virtualenv integration

Reenable Jupyter notebook Python virtualenv integration

To reenable virtualenv integration in newer jupyter notebook versions paste the code below at the top of your ~/.ipython/profile_default/ipython_config.py

try:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.init_virtualenv(None)
print("You can take my virtualenv integration from my dead cold hands!")
except:
pass
# rest of the file...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment