Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 350ecdb198959a6382a73c090cb9c1c7955d2ea9 1 parent e3612ec
@cboos cboos authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  IPython/lib/inputhookqt4.py
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.