-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move progress bar back to a value? #545
Comments
@casperdcl how about we add this into Faq of README and close #545, #432, #374? |
After resetting I've found that what helps resolve that is to also reset pbar.n = 10
pbar.last_print_n = 10 |
Somewhat messes with ETA and the concept of a progressbar - sounds more like a meter (for e.g. monitoring CPU usage) |
Indeed. For the moment I'm also resetting the start time and last_print_time. And all that because I have to reuse a single progress bar for multiple tasks in my Jupyter notebook. |
I believe you may want to use with tdqm(...) as t:
...
t.unpause() |
If I understand correctly what |
I'm trying to do something similar to @grollinger. Is this equivalent to what you are doing to "reset" a progressbar for reuse on another task? pbar.n = 0
pbar.last_print_n = 0
pbar.start_t = time()
pbar.last_print_t = time()
pbar.update() It really makes sense that the progress bar should be capable of resetting... like if a task is cancelled and restarted for any reason. That's how a download meter in a web browser works if I cancel and restart a download. The desire to reset or backtrack doesn't mean its a "meter" like a CPU meter, it just means the concept of task "progress" is not always monotonically increasing. I understand that messes with completion estimation, which is why the simplest scenario is to support a full reset and then later address how to handle back tracking. |
If i want to set the progress bar to a specific point, update only allows postive values, so how do i do that?
The text was updated successfully, but these errors were encountered: