How to display a progress bar in Python / Jupyter Notebook

Working a lot with AI and Machine Learning, it happens a lot that I need to run code that takes a lot of time to run.
One thing that I always like to use in this situation is a package called tqdm.

To install it, fire up your terminal or command prompt and type:

pip install tqdm

When the package has been installed, it can be used to show the progress of a loop using a progress bar.

Image for post
Image for post
This image is taken from https://tqdm.github.io/

For more info on more advanced methods such as Keras Callback, check out the package documentation which is very well written and full of examples.

Written by

AI & Software Engineering

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store