##// END OF EJS Templates
Patch stdout in interactive shell...
Gergely Nagy -
Show More
@@ -372,8 +372,9 b' class TerminalInteractiveShell(InteractiveShell):'
372 372 self._pt_app.layout = create_prompt_layout(**self._layout_options())
373 373
374 374 def prompt_for_code(self):
375 document = self.pt_cli.run(
376 pre_run=self.pre_prompt, reset_current_buffer=True)
375 with self.pt_cli.patch_stdout_context(raw=True):
376 document = self.pt_cli.run(
377 pre_run=self.pre_prompt, reset_current_buffer=True)
377 378 return document.text
378 379
379 380 def enable_win_unicode_console(self):
@@ -190,7 +190,7 b' install_requires = ['
190 190 'pickleshare',
191 191 'simplegeneric>0.8',
192 192 'traitlets>=4.2',
193 'prompt_toolkit>=1.0.4,<2.0.0',
193 'prompt_toolkit>=1.0.15,<2.0.0',
194 194 'pygments',
195 195 ]
196 196
General Comments 0
You need to be logged in to leave comments. Login now