Creating a Beautiful and Fast Progress Bar in Python

In this article, we will introduce how to create a beautiful and fast progress bar in Python. We will use python pyprobar library to implement it.

Step 1: install python pyprobar

We can use pip to install

pip install pyprobar

Step 2: Create a beautiful progress bar

It is easy to use pyprobar to create, we will use an example to show you how to do.

import numpy as np
N = 1024
a = np.linspace(2, 5, N)
for idx, i in enumerate(a):
    bar(idx, N, color='1') # `color` options: '1','2','3','4','5','0','update_random'
    time.sleep(0.01)

Run this code, we will see:

Creating a Beautiful and Fast Progress Bar in Python

If you want to know more how to use pyprobar you can see here.