##// END OF EJS Templates
Don't update PTK layout if --simple-shell...
Matthias Bussonnier -
Show More
@@ -134,6 +134,7 b' class TerminalInteractiveShell(InteractiveShell):'
134 toggle_set_term_title(False)
134 toggle_set_term_title(False)
135
135
136 def init_prompt_toolkit_cli(self):
136 def init_prompt_toolkit_cli(self):
137 self._app = None
137 if self.simple_prompt:
138 if self.simple_prompt:
138 # Fall back to plain non-interactive output for tests.
139 # Fall back to plain non-interactive output for tests.
139 # This is very limited, and only accepts a single line.
140 # This is very limited, and only accepts a single line.
@@ -282,7 +283,8 b' class TerminalInteractiveShell(InteractiveShell):'
282 Ask for a re computation of the application layout, if for example ,
283 Ask for a re computation of the application layout, if for example ,
283 some configuration options have changed.
284 some configuration options have changed.
284 """
285 """
285 self._app.layout = create_prompt_layout(**self._layout_options())
286 if self._app:
287 self._app.layout = create_prompt_layout(**self._layout_options())
286
288
287 def prompt_for_code(self):
289 def prompt_for_code(self):
288 document = self.pt_cli.run(
290 document = self.pt_cli.run(
General Comments 0
You need to be logged in to leave comments. Login now