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)