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

standard output is not flushed #742

Closed
ess3sq opened this issue Dec 3, 2020 · 3 comments
Closed

standard output is not flushed #742

ess3sq opened this issue Dec 3, 2020 · 3 comments
Assignees

Comments

@ess3sq
Copy link

ess3sq commented Dec 3, 2020

Description of my issue:

Apparently, standard output is not flushed immediately after the print/println or @show call.
Of course, flushing a couple characters at a time can slow the performance by a significant amount if done repeatedly, instead of at the end.
However, for some reason it sometimes often happens that output is not flushed even after cell execution finishes, which can be annoying if one is attempting to test something before continuing. This can be even more annoying if one re-executes the same cell several times after performing changes, and the output has still not been flushed.
Then, at some point, it does get flushed (all at once, of course), which may be difficult to deal with if one changed a bunch of things and re-executed the cell over and over to test things out.

Question:

Is this a problem caused by Pluto or does it lie with Julia? (When working with the REPL or with source files, stdout gets flushed quick enough).
Is there some way to force flushing of stdout?

Ty in advance

@dralletje dralletje self-assigned this Dec 3, 2020
@dralletje
Copy link
Collaborator

I'll have a try at reproducing this.
We can force flush the output after every cell run, but there is some special care we need to take because it can also be buffered in the main Pluto process.
Do you have a specific example notebook that you experience this with?

@fonsp
Copy link
Owner

fonsp commented Dec 3, 2020

This is an issue with Distributed, a standard library part of Julia itself, so we won't be able to fix it.

But we are working on support for logging inside your notebook: #437

@fonsp fonsp closed this as completed Dec 3, 2020
@RaulDurand
Copy link

Is there any chance to have the std output in an additional box above the results box?

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

4 participants