To reenable virtualenv integration in newer jupyter notebook versions paste the code below at the top of your ~/.ipython/profile_default/ipython_config.py
Last active
January 3, 2017 17:11
-
-
Save ulope/f1073fbaad74082646c0e73ef2053341 to your computer and use it in GitHub Desktop.
Reenable Jupyter notebook Python virtualenv integration
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
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