1

In pip, when you install a library and it starts downloading you can see a loading rectangle that start filling with white. How to add something like that in output shell to show a progress?

1

1 Answer 1

2

You are looking for tqdm

Installation

pip3 install tqdm
from tqdm import tqdm
for i in tqdm(range(20)):
    pass

Output

100%|██████████| 20/20 [00:00<00:00, 6686.28it/s]

DOCS for more help

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.