Permalink
Browse files

inputhookqt4: use get_ipython() instead of deprecated ipapi.get()

  • Loading branch information...
1 parent e3612ec commit 350ecdb198959a6382a73c090cb9c1c7955d2ea9 @cboos committed Oct 11, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 IPython/lib/inputhookqt4.py
@@ -16,7 +16,6 @@
# Imports
#-----------------------------------------------------------------------------
-from IPython.core import ipapi
from IPython.external.qt_for_kernel import QtCore, QtGui
from IPython.lib.inputhook import stdin_ready
@@ -57,7 +56,7 @@ def create_inputhook_qt4(mgr, app=None):
app = QtGui.QApplication([" "])
# Re-use previously created inputhook if any
- ip = ipapi.get()
+ ip = get_ipython()
if hasattr(ip, '_inputhook_qt4'):
return app, ip._inputhook_qt4

0 comments on commit 350ecdb

Please sign in to comment.