##// END OF EJS Templates
@ccordoba12's suggestions
Emilio Graff -
Show More
@@ -920,7 +920,7 b' class TerminalInteractiveShell(InteractiveShell):'
920 if self._inputhook is not None and gui is not None:
920 if self._inputhook is not None and gui is not None:
921 print(
921 print(
922 f"Shell is already running a gui event loop for {self.active_eventloop}. "
922 f"Shell is already running a gui event loop for {self.active_eventloop}. "
923 "Call with no arguments to disable current loop."
923 "Call with no arguments to disable the current loop."
924 )
924 )
925 return
925 return
926 if self._inputhook is not None and gui is None:
926 if self._inputhook is not None and gui is None:
@@ -111,7 +111,8 b' def set_qt_api(gui):'
111 del os.environ["QT_API"]
111 del os.environ["QT_API"]
112 else:
112 else:
113 print(f'Unrecognized Qt version: {gui}. Should be "qt5", "qt6", or "qt".')
113 print(f'Unrecognized Qt version: {gui}. Should be "qt5", "qt6", or "qt".')
114 return None
114 return
115
115 # Import it now so we can figure out which version it is.
116 # Import it now so we can figure out which version it is.
116 from IPython.external.qt_for_kernel import QT_API
117 from IPython.external.qt_for_kernel import QT_API
117
118
General Comments 0
You need to be logged in to leave comments. Login now