-
-
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
set_description
takes no effect until .update()
is called
#317
Comments
Hello @gwerbin, You can use What you could rather do to be more computationally effective while having the same result would be to set the first iteration's description at tqdm initialization and move the call to
|
@lrq3000 thanks, that makes sense. Maybe we can just call this a documentation issue then. There should be a "TQDM Cookbook" if there isn't already. |
set_description
takes no effect until .update(0)
is calledset_description
takes no effect until .update()
is called
I would consider this a bug. Just add a call to It's interesting to note that the docs have this snippet of code: pbar = tqdm(["a", "b", "c", "d"])
for char in pbar:
pbar.set_description("Processing %s" % char) You'll never see "Processing a", so it should say "Processed" instead of "Processing" |
- addresses #317 - also minor documentation updates
- addresses #317 - also minor documentation updates
This seems like a bug.. |
I've also run into this issue. I've moved the progress bar into its own worker thread, and I still can't seem to get the postfix to update with |
- addresses #317 - also minor documentation updates
Thanks @casperdcl ... I was surprised to see how far back this issue went. I agree though, perhaps refresh should be set to |
Expected behavior:
set_description()
takes effect immediately when calledActual behavior:
set_description()
takes effect only when.update()
is called.Steps to reproduce
Python version 3.5.2, TQDM version 4.10.0-10bd71
The text was updated successfully, but these errors were encountered: