Added alt import for ipython4

Works in python 2.7.9 and 3.4.2 with ipython 4
This commit is contained in:
M Clark
2016-03-19 10:13:24 +08:00
parent 6a96f80d20
commit 060069323b
+4 -1
View File
@@ -15,7 +15,10 @@ def launch_kernel(argv):
f.write("""\
import sys
sys.argv[:] = [sys.executable]
from IPython.zmq.ipkernel import IPKernelApp
try:
from IPython.zmq.ipkernel import IPKernelApp
except ImportError as err:
from ipykernel.kernelapp import IPKernelApp
app = IPKernelApp.instance()
app.initialize(%r)