-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
p2-bug-warning ⚠Visual output badVisual output bad
Description
While I was investigating a problem in my program where it doesn't show a progress bar, I found another problem so I report it.
I will show up when I use tqdm in REPL, try running following code.
from time import sleep
for i in tqdm(range(10)):
sleep(1)
tqdm.write(i)
Sure, it fails since I'm passing an integer. I fix it and run it again,
for i in tqdm(range(10)):
sleep(1)
tqdm.write(str(i))
Now it shows just a progress bar, no numbers printed at all.
Empirically speaking It will come back after I do tqdm().clear() and run some extra loops, like in this way...
...
0%| | 0/10 [01:19<?, ?it/s]
3
4
5
6
7
8
9
100%|█████████████████████████████████████████████████| 10/10 [00:10<00:00, 1.00s/it]
>>>
So, I'm assuming something wrong with buffer handling. Have you ever observed this issue?
I'm using Python3 on mac with newest OS. tqdm have installed via pip3. I use standard terminal for REPL.
Metadata
Metadata
Assignees
Labels
p2-bug-warning ⚠Visual output badVisual output bad