Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter_console issue with prompt_toolkit 3.0.5 #214

Open
itamarjp opened this issue May 14, 2020 · 2 comments
Open

jupyter_console issue with prompt_toolkit 3.0.5 #214

itamarjp opened this issue May 14, 2020 · 2 comments

Comments

@itamarjp
Copy link

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)

prompt-toolkit/python-prompt-toolkit#1136

@bnavigator
Copy link

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.

@Carreau
Copy link
Member

Carreau commented Aug 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants