From 8c9ec3ae61e0b08c0fb2daa3f64007c4321ef3df 2018-10-18 00:15:44 From: Matthias Bussonnier Date: 2018-10-18 00:15:44 Subject: [PATCH] Fix starting IPython in vi editing mode closes #11404 --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 77ef445..e9f1649 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -147,7 +147,8 @@ class TerminalInteractiveShell(InteractiveShell): @observe('editing_mode') def _editing_mode(self, change): u_mode = change.new.upper() - self.pt_app.editing_mode = u_mode + if self.pt_app: + self.pt_app.editing_mode = u_mode @observe('highlighting_style') @observe('colors')