-
Notifications
You must be signed in to change notification settings - Fork 83
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
How to append to the output of a cell? #389
Comments
Hi, You can call the publish_stream method of the interpreter. |
Thank you very much. We tried publish_stream, and we got to some more questions: In Xeus, there are two functions to output results:
What should we use if we want to display the results progressively as they are computed? Then the issue is with something like this in python from time import sleep
import sys
for i in range(5):
sleep(1)
sys.stdout.write(f"{i} ") which should display
updated one second later to
updated one second later to
In case you are interested, here is the kernel we are developing: |
Hi, sorry for the late reply. I'm not 100% sure how the frontend handles this, but I would try the folowing:
Thanks for the pointer! |
Hello,
I'm used to using Ipykernel, where when one is running a lengthy computation, one can use
send_response
to append to the current output, for exampleWhat is the right way to do this with Xeus?
The text was updated successfully, but these errors were encountered: