##// END OF EJS Templates
inputhookqt4: use get_ipython() instead of deprecated ipapi.get()
Christian Boos -
Show More
@@ -16,7 +16,6 b' Author: Christian Boos'
16 # Imports
16 # Imports
17 #-----------------------------------------------------------------------------
17 #-----------------------------------------------------------------------------
18
18
19 from IPython.core import ipapi
20 from IPython.external.qt_for_kernel import QtCore, QtGui
19 from IPython.external.qt_for_kernel import QtCore, QtGui
21 from IPython.lib.inputhook import stdin_ready
20 from IPython.lib.inputhook import stdin_ready
22
21
@@ -57,7 +56,7 b' def create_inputhook_qt4(mgr, app=None):'
57 app = QtGui.QApplication([" "])
56 app = QtGui.QApplication([" "])
58
57
59 # Re-use previously created inputhook if any
58 # Re-use previously created inputhook if any
60 ip = ipapi.get()
59 ip = get_ipython()
61 if hasattr(ip, '_inputhook_qt4'):
60 if hasattr(ip, '_inputhook_qt4'):
62 return app, ip._inputhook_qt4
61 return app, ip._inputhook_qt4
63
62
General Comments 0
You need to be logged in to leave comments. Login now