Python tqdm.refresh()














































Python tqdm.refresh()



tqdm.refresh(self, nolock=False)
Force refresh the display of this bar

from tqdm import tqdm from time import sleep pbar = tqdm(total=100, ascii=True) for i in range(10): pbar.update(10) if i == 2: pbar.refresh() sleep(0.1)
pbar.close()

Output:

100%|##############################################################| 100/100 [00:00<00:00, 96.10it/s]

Comments