We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2db21 commit 8d9d24dCopy full SHA for 8d9d24d
1 file changed
IPython/terminal/pt_inputhooks/qt.py
@@ -50,14 +50,16 @@ def inputhook(context):
50
except AttributeError: # Only for Qt>=5.14.
51
pass
52
_appref = app = QtGui.QApplication([" "])
53
- _eventloop = QtCore.QEventLoop(app)
54
55
# "reclaim" IPython sys.excepthook after event loop starts
56
# without this, it defaults back to BaseIPythonApplication.excepthook
57
# and exceptions in the Qt event loop are rendered without traceback
58
# formatting and look like "bug in IPython".
59
QtCore.QTimer.singleShot(0, _reclaim_excepthook)
60
+ if _eventloop is None:
61
+ _eventloop = QtCore.QEventLoop(app)
62
+
63
if sys.platform == 'win32':
64
# The QSocketNotifier method doesn't appear to work on Windows.
65
# Use polling instead.
0 commit comments