From 56bf04852319400ec2f94ea7acf7fa3bd19087b4 2023-08-10 21:35:56 From: Emilio Graff <1@emil.io> Date: 2023-08-10 21:35:56 Subject: [PATCH] Darkness --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 8ea20c2..37e0b86 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -915,10 +915,14 @@ class TerminalInteractiveShell(InteractiveShell): active_eventloop = None def enable_gui(self, gui=None): if self.simple_prompt is True and gui is not None: - print(f"Cannot install event loop hook for \"{gui}\" when running with `--simple-prompt`.") - print("NOTE: Tk is supported natively; use Tk apps and Tk backends with `--simple-prompt`.") + print( + f'Cannot install event loop hook for "{gui}" when running with `--simple-prompt`.' + ) + print( + "NOTE: Tk is supported natively; use Tk apps and Tk backends with `--simple-prompt`." + ) return - + if self._inputhook is None and gui is None: print("No event loop hook running.") return