'How to remove n_fmt after progress done

To me, the process should only be expressed as a percentage. But when this process is over, another process begins.

Loading-'|          |125/?'
Loading-'|          |150/?'
Loading-'|          |175/?'
Loading-'|          |225/?'

How can I remove this?

My code:

with tqdm(total=100, bar_format="Loading-'{l_bar}{bar}|{n_fmt}/{total_fmt}'") as progressbar:
    for i in range(10):
        # function
        progressbar.update(25)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source