Show More
@@ -915,8 +915,9 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
915 | def enable_gui(self, gui=None): |
|
915 | def enable_gui(self, gui=None): | |
916 | if self._inputhook is not None and gui is not None: |
|
916 | if self._inputhook is not None and gui is not None: | |
917 | print( |
|
917 | print( | |
918 |
f"Shell |
|
918 | f"Shell is already running a gui event loop for {self.active_eventloop}." | |
919 | ) |
|
919 | ) | |
|
920 | return | |||
920 | if gui and (gui not in {"inline", "webagg"}): |
|
921 | if gui and (gui not in {"inline", "webagg"}): | |
921 | # This hook runs with each cycle of the `prompt_toolkit`'s event loop. |
|
922 | # This hook runs with each cycle of the `prompt_toolkit`'s event loop. | |
922 | self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui) |
|
923 | self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui) |
General Comments 0
You need to be logged in to leave comments.
Login now