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

Only one output rendered #778

Open
sglyon opened this issue Oct 18, 2024 · 3 comments
Open

Only one output rendered #778

sglyon opened this issue Oct 18, 2024 · 3 comments

Comments

@sglyon
Copy link

sglyon commented Oct 18, 2024

If I run a code cell that has multiple outputs, only the first one is rendered in the output area.

To reproduce go to the thebe demo, activate the kernel, and replace the contents of the code cell with something like

print("Hello")
print("world")
print(1234)

and click run

When I do this, I get the following:

Image

NOTE

If I click run many times, occasionally I will see all 3 outputs, but often it is just one

@stevejpurves
Copy link
Collaborator

stevejpurves commented Oct 18, 2024

Thanks for reporting this @sglyon
Looks like this might be specifically related to thebe-lite as that demo is using the juptyerlite/pyodide back end.

this binder example works as expected:
https://jupyter-book.github.io/thebe/binder.html

also I note that if I hit Run multiple times on the thebe-lite demo that you linked to originally, I intermittently get the wrong/right output, until the session dies.

@sglyon
Copy link
Author

sglyon commented Oct 18, 2024

Hey @stevejpurves the note about being specific to jupyter-lite sounds right to me

The trouble is that this is the backend I'm using in my project!

Do you have any suggestions for how we can track down this error. I'm happy to investigate more, but would be forced to inefficiently wander around the thebe/pyodide/jupyterlite/jupyterlab codebases to hunt it down

@hmgaudecker
Copy link

This is affecting me, too, and it is quite annoying. It occasionally helps to do a time.sleep(0.1) at the end of a cell, but not consistently. Would somebody have any pointers on where would be a good place to start looking?

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