I often see, that tqdm
progress bar is broken by other print, like:
93%|█████████▎| 28/30 [00:02<00:00, 13.44it/s]Subject S9
100%|██████████| 30/30 [00:02<00:00, 12.94it/s]
93%|█████████▎| 28/30 [00:02<00:00, 11.49it/s]Pickling...
100%|██████████| 30/30 [00:02<00:00, 11.47it/s]
Here only 2 progress bars should be shown. Nevertheless succeeded, printing of some text interrupts progress bar at high percentage and the rest of it is printed out afterwards.
Is it possible to "flush" progress bar somehow?
I read, that tqdm
prints to stderr
by default and tried to flush it
sys.stderr.flush()
but this didn't helped.
All above is happened in PyCharm console simulation, so it can be related with this.