Using tqdm progress bar in a while loop
You can use manual control in tqdm by specifying a total argument in the constructor. Verbatim from the manual: with tqdm(total=100) as pbar: for i in range(10): sleep(0.1) pbar.update(10) UPDATE To manually control the tqdm without the context manager (aka with statement), you will need to close the progress bar after you are done using … Read more