-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
p3-enhancement 🔥Much new such featureMuch new such feature
Description
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))
Metadata
Metadata
Assignees
Labels
p3-enhancement 🔥Much new such featureMuch new such feature