Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically set MaxProgress during iteration #127

Open
lczech opened this issue Sep 4, 2023 · 0 comments
Open

Dynamically set MaxProgress during iteration #127

lczech opened this issue Sep 4, 2023 · 0 comments

Comments

@lczech
Copy link

lczech commented Sep 4, 2023

Hi there!

Very cool tool, thanks for offering this to the community!

Feature request: I have a use case where I iterate over some range, but that range can change during the iteration. I'd like to use the iterable progress bar (with MaxProgress), so that the numbers of iterations are show, instead of just percentages.

However, I'd need to

bar.set_option(option::MaxProgress{
    new_max
});

in my loop. I'd expect that to update the max in the bar dynamically. That does not seem to work right now - the total remains at the initial value.

Is that doable somehow?

Thanks and cheers
Lucas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant