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