Thanks for tqdm! It's a wonderful tool.
In order to use bar_format, total must be used. I want to be able to do this without total=int(1e100):
import tqdm, time
slow_iter = (time.sleep(1e-4) or i for i in range(int(1e5)))
with tqdm.tqdm(slow_iter, total=int(1e100), bar_format='Found {n:7} files') as prog_iter:
for i in prog_iter:
if i % int(1e4) == 0:
prog_iter.write('Woohoo,{:6} files!'.format(i))
Thanks for
tqdm! It's a wonderful tool.In order to use
bar_format,totalmust be used. I want to be able to do this withouttotal=int(1e100):