You can use tqdm 4. Install it using pip install tqdm
from tqdm import tqdm 
from tqdm.notebook import tqdm # better version for jupyter notebook

for i in tqdm(range(n_epochs), desc="Training: "): 
   # training code