##// END OF EJS Templates
Fix virtualenv warning for Cygwin...
Fix virtualenv warning for Cygwin Getting `Attempting to work in a virtualenv...` warnings when running in Cygwin and starting ipython in a virtualenv. (Also, using a virtualenvwrapper, not sure if it makes a difference) Turns out `p_venv` looks like this `\cygdrive\c\users\igonato\envs\myenv` when `sys.executable` is like this `c:\users\igonato\envs\myenv\scripts\python.exe`. This should make the check a bit more robust when running in Cygwin Cheers!

File last commit:

r21892:abd03140
r23579:920ce1fb
Show More
kernel.py
13 lines | 297 B | text/x-python | PythonLexer
"""[DEPRECATED] Utilities for connecting to kernels
Moved to IPython.kernel.connect
"""
import warnings
warnings.warn("IPython.lib.kernel moved to IPython.kernel.connect in IPython 1.0,"
" and will be removed in IPython 6.0.",
DeprecationWarning
)
from ipykernel.connect import *