From 71f7729bba60f8e3e175bc0201a3c2f738d7a395 2022-10-29 10:12:51 From: Maciej Goszczycki Date: 2022-10-29 10:12:51 Subject: [PATCH] Restore terminal title when not running non-interactively --- diff --git a/IPython/terminal/ipapp.py b/IPython/terminal/ipapp.py index a87eb2f..df4648b 100755 --- a/IPython/terminal/ipapp.py +++ b/IPython/terminal/ipapp.py @@ -318,6 +318,7 @@ class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): self.shell.mainloop() else: self.log.debug("IPython not interactive...") + self.shell.restore_term_title() if not self.shell.last_execution_succeeded: sys.exit(1)