mirror of
https://github.com/wassname/blender_ipython.git
synced 2026-09-09 11:18:46 +08:00
Added alt import for ipython4
Works in python 2.7.9 and 3.4.2 with ipython 4
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user