From 45f33f3159833f30a3c7d306a9fdb373bdde51c9 2023-03-01 19:34:09 From: Emilio Graff <1@emil.io> Date: 2023-03-01 19:34:09 Subject: [PATCH] @ccordoba12's suggestions --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 6b4478a..96a9687 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -920,7 +920,7 @@ class TerminalInteractiveShell(InteractiveShell): if self._inputhook is not None and gui is not None: print( f"Shell is already running a gui event loop for {self.active_eventloop}. " - "Call with no arguments to disable current loop." + "Call with no arguments to disable the current loop." ) return if self._inputhook is not None and gui is None: diff --git a/IPython/terminal/pt_inputhooks/__init__.py b/IPython/terminal/pt_inputhooks/__init__.py index 6c752b1..9043f15 100644 --- a/IPython/terminal/pt_inputhooks/__init__.py +++ b/IPython/terminal/pt_inputhooks/__init__.py @@ -111,7 +111,8 @@ def set_qt_api(gui): del os.environ["QT_API"] else: print(f'Unrecognized Qt version: {gui}. Should be "qt5", "qt6", or "qt".') - return None + return + # Import it now so we can figure out which version it is. from IPython.external.qt_for_kernel import QT_API