Skip to content

Change an ongoing bar (quantifying mode) #59

Description

@CharlieCheckpt

Hello,

Thank you for this package, animations are really cool.

I would like to display several times progress bar, and clear the previous progress bar before starting the new one.
It seems not possible to clear a progress bar once it's finished or did I miss something ?

for epoch in range(10):
    with alive_bar(100, bar="blocks", title=f"[Epoch: {epoch}]") as bar:
        for i in range(100):
            time.sleep(0.01)
            bar()

image

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions