diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 0250184..c867b55 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -711,9 +711,8 @@ class TerminalInteractiveShell(InteractiveShell): active_eventloop = None def enable_gui(self, gui=None): - if gui and (gui not in {'inline', 'webagg'}) : - self.active_eventloop, self._inputhook =\ - get_inputhook_name_and_func(gui) + if gui and (gui not in {"inline", "webagg"}): + self.active_eventloop, self._inputhook = get_inputhook_name_and_func(gui) else: self.active_eventloop = self._inputhook = None