We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdda069 + 0d13982 commit 7268d55Copy full SHA for 7268d55
ipykernel/eventloops.py
@@ -111,9 +111,11 @@ def loop_qt4(kernel):
111
"""Start a kernel with PyQt4 event loop integration."""
112
113
from IPython.lib.guisupport import get_app_qt4
114
+ from IPython.external.qt_for_kernel import QtGui
115
116
kernel.app = get_app_qt4([" "])
- kernel.app.setQuitOnLastWindowClosed(False)
117
+ if isinstance(kernel.app, QtGui.QApplication):
118
+ kernel.app.setQuitOnLastWindowClosed(False)
119
_notify_stream_qt(kernel, kernel.shell_stream)
120
121
_loop_qt(kernel.app)
0 commit comments