🔌 Toolbox of short, reusable pieces of code and knowledge.
You can print out a progress bar while your loop is running (nice for machine learning training with loop)!
Package link: https://github.com/tqdm/tqdm. From their documentation:
from tqdm import tqdm
for i in tqdm(range(10000)):
Note: sometimes, if you are in a notebook, the progress bar will print on a new line for every percentage which is incredibly cumbersome. Use from tqdm import tqdm
if this occurs.