You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of google colab is a bit strange and it duplicate nested bars for each iteration:
fromtimeimportsleepfromtqdmimporttqdmforjintqdm(range(3), desc='main',position=0):
foriintqdm(range(3), desc='inner', position=1): # it's exactly the same output if I omit the position argssleep(0.1)
>importtqdm, sys>print(tqdm.__version__, sys.version, sys.platform)
4.26.03.6.3 (default, Oct32017, 21:45:48)
[GCC7.2.0] linux
So is this the expected behaviour ? Could the position be automatically forced to 0 if the env is a notebook ?
For long iterations it can crash the browser tab (both Firefox and Chrome) because the bar is duplicated thousands of times and google colab output display must not be that optimized.
EDIT: in fact the issue is not only on google colab, I am able to reproduce the same outputs in jupyter lab & notebook.
The text was updated successfully, but these errors were encountered:
artemisart
changed the title
Google Colab (& Jupyter Lab): bug nested bars duplicated at each iteration
Google Colab (& Jupyter Lab) bug: nested bars duplicated at each iteration
Oct 9, 2018
This is clearly not a duplicate as #558 is about tqdm_notebook with js widgets and the bug I encounter is about text (stdout) tqdm. And yes I searched for similar issues before posting this but I found nothing related to my problem.
Indeed, but #428 doesn't provide an output example so I cannot really compare.
So is the problem "expected" for text output in notebooks ? Could tqdm detects that the output is a cell in a notebook and force position=0 ?
The output of google colab is a bit strange and it duplicate nested bars for each iteration:
However forcing the position of the nested bars to 0 seem to solve the issue:
Version
So is this the expected behaviour ? Could the position be automatically forced to 0 if the env is a notebook ?
For long iterations it can crash the browser tab (both Firefox and Chrome) because the bar is duplicated thousands of times and google colab output display must not be that optimized.
EDIT: in fact the issue is not only on google colab, I am able to reproduce the same outputs in jupyter lab & notebook.
The text was updated successfully, but these errors were encountered: