Skip to content

Instantly share code, notes, and snippets.

@Qiamast
Last active September 22, 2022 16:45
Show Gist options
  • Save Qiamast/d87cd8d61ebe912bb237e4f0730403d0 to your computer and use it in GitHub Desktop.
Save Qiamast/d87cd8d61ebe912bb237e4f0730403d0 to your computer and use it in GitHub Desktop.
Python simple process bar
from time import sleep
from tqdm import tqdm
count = 0
for i in tqdm(range(100)):
count += i
sleep(0.2)
# output :
# 45%|████▌ | 45/100 [00:09<00:11, 4.95it/s]
pip install tqdm -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment