From bbfab79dc5bb7002c7b40191b7d2976fa4f4e7b2 2023-01-19 20:16:23 From: Emilio Graff <1@emil.io> Date: 2023-01-19 20:16:23 Subject: [PATCH] Formatting --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index a997639..176806b 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -712,7 +712,9 @@ class TerminalInteractiveShell(InteractiveShell): active_eventloop = None def enable_gui(self, gui=None): if self._inputhook is not None and gui is not None: - warn(f"Shell was already running a gui event loop for {self.active_eventloop}; switching to {gui}.") + warn( + f"Shell was already running a gui event loop for {self.active_eventloop}; switching to {gui}." + ) if gui and (gui not in {"inline", "webagg"}): # This hook runs with each cycle of the `prompt_toolkit`'s event loop. self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui)