1from tqdm import tqdm, trange
2
3with tqdm(total = 100) as progressbar:
4 for i in range(10):
5 # Here your function to calculation
6 progressbar.update(10)
1from tqdm import trange
2from time import sleep
3t = trange(100, desc='Bar desc', leave=True)
4for i in t:
5 t.set_description("Bar desc (file %i)" % i) # add dynamic bar description
6 t.refresh() # to show immediately the update
7 sleep(0.01)