jupyter_console issue with prompt_toolkit 3.0.5
itamarjp opened this issue · comments
jupyter_console tests fails with prompt_toolkit 3.0.5
I think it's a problem with prompt_toolkit 3.0.5, but I am reporting here too, more details ->
jupyter_console tests fails in prompt_toolkit/output/vt100.py line 449
fd = stdout.fileno()
with error io.UnsupportedOperation: fileno
ERROR: test_call_pil_by_default (jupyter_console.tests.test_image_handler.ZMQTerminalInteractiveShellTestCase)
If you run nosetests without capturing stdout (-s
or --nocapture
), stdout will have a file descriptor and prompt_toolkit won't run into the UnsupportedOperation
exception.
jupyter console --simple-prompt
might also help as it avoid using prompt_toolkit and use only "input()". but yes I've seen random failure with PTK, though this repository have been dormant and there will be a lot of work to bring it to a good state.