Show More
@@ -152,6 +152,7 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
152 | toggle_set_term_title(False) |
|
152 | toggle_set_term_title(False) | |
153 |
|
153 | |||
154 | def init_prompt_toolkit_cli(self): |
|
154 | def init_prompt_toolkit_cli(self): | |
|
155 | self._app = None | |||
155 | if self.simple_prompt: |
|
156 | if self.simple_prompt: | |
156 | # Fall back to plain non-interactive output for tests. |
|
157 | # Fall back to plain non-interactive output for tests. | |
157 | # This is very limited, and only accepts a single line. |
|
158 | # This is very limited, and only accepts a single line. | |
@@ -300,7 +301,8 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
300 | Ask for a re computation of the application layout, if for example , |
|
301 | Ask for a re computation of the application layout, if for example , | |
301 | some configuration options have changed. |
|
302 | some configuration options have changed. | |
302 | """ |
|
303 | """ | |
303 | self._app.layout = create_prompt_layout(**self._layout_options()) |
|
304 | if self._app: | |
|
305 | self._app.layout = create_prompt_layout(**self._layout_options()) | |||
304 |
|
306 | |||
305 | def prompt_for_code(self): |
|
307 | def prompt_for_code(self): | |
306 | document = self.pt_cli.run( |
|
308 | document = self.pt_cli.run( |
General Comments 0
You need to be logged in to leave comments.
Login now