-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Progress bar in Jupyter adds newlines for each validation step #1399
Comments
Hi! thanks for your contribution!, great first issue! |
upgrade to master. i think it’s fixed there |
happy to reopen if it isn’t |
maybe submit a PR? Looks like this issue might have some solutions. |
Turns out this is a bug in tqdm. I will file an issue there. from tqdm.auto import tqdm
from time import sleep
for _ in tqdm(range(5)):
for _ in tqdm(range(5), leave=False):
sleep(0.01) Feel free to close this issue. And thanks for replying so swiftly, it really motivated to dig into the issue myself :-). |
I had a look at that issue you linked, but it didn't seem fully relevant. I've filed a new issue: |
Looks like this has been an issue between jupyterlab and ipywidgets for quite some time (jupyter-widgets/ipywidgets#1845), and seems to be a main motivator why the fastai people wrote their own progress bar library: Would you consider switching to fastprogress, too? I understand the library is a lot less common than tqdm, but it may be more suitable for this project. |
let's open a new issue with a discussion about |
@Borda will do so now. |
🐛 Bug
Pytorch lightning prints newlines when showing the validation progress bar. See attached screenshot.
This may be a bug with nested progress bars in tqdm. I'm using the recent tqdm 4.45.0; I also had the issue with tqdm 4.43.0.
To Reproduce
Steps to reproduce the behavior:
In a Jupyter notebook, run
trainer.fit(model)
on any model that has a validation step.Code sample
Expected behavior
No newlines should be added.
Environment
Additional context
The text was updated successfully, but these errors were encountered: