-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Notebook streaming output is appended when it should replace #184657
Comments
this is caused by the first one or two lines of output to be in one output item and the rest in another. In the case above:
While the second output keeps streaming in, it is supposed to be replaced each time, but we were looking in the wrong element for the previous output to be replaced. I don't know why the outputs are split like this and is the first time I've ever noticed it happening. |
Another progress with simple ASCII output (previous sample was HTML) from tqdm import trange
from time import sleep
print("Hello World")
for i in trange(50):
sleep(1) |
Some other samples, that seems to be flaky Code from fastprogress.fastprogress import master_bar, progress_bar
from time import sleep
mb = master_bar(range(2))
for i in mb:
for j in progress_bar(range(3), parent=mb):
sleep(0.01)
mb.child.comment = f'second bar stat'
mb.main_bar.comment = f'first bar stat'
mb.write(f'Finished loop {i}.')
#mb.update_graph(graphs, x_bounds, y_bounds)
# just the minimum to get the progress bars to work
from time import sleep
from fastprogress.fastprogress import master_bar, progress_bar
mb = master_bar(range(10))
progress_bar(range(100), parent=mb)
for i in mb:
for j in progress_bar(range(100), parent=mb):
sleep(0.01) |
verification steps:
only one progress bar should appear and refresh |
Inconsistent repro, not sure what triggers it yet.
The text was updated successfully, but these errors were encountered: