-
-
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
specify bar width format-spec #623
Comments
Not quite sure what you mean. Can you post a minimal working example? |
I second this, right now my progress bars jump annoyingly if the it/s goes from say 90 it/s to 100 it/s. I really want a fixed width bar. |
you can specify an |
you can also use |
using bar_format() I could get (almost) my desired behavior by supplying format values for all the variables. What I would have liked though would be to set say {bar:20}, to make the bar fixed width. Setting all the others is not easy (times and speeds are tricky). |
right, got it |
Thanks for explaining the wished outcome clearer than I could @crogre :) Yeah, having a fixed with for both left and right, or a fixed with for just the bar, would save a lot of jumping around of the bar. A default width of a certain amount of characters for the right part would possibly also save a lot of jumping around. |
What I would like to see is a fixed width for the bar itself:
This would prevent the bar from resizing as postfix changes. |
- added bar_width to initializer and format_meter - added better ncols handling for overflows on l_bar, bar, r_bar - added tests This fixes tqdm#623
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes tqdm#623 This fixes tqdm#690 This helps prevent the spillover seen in tqdm#630
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes tqdm#623 This fixes tqdm#690 This helps prevent the spillover seen in tqdm#630
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes tqdm#623 This fixes tqdm#690 This helps prevent the spillover seen in tqdm#630
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes tqdm#623 This fixes tqdm#690 This helps prevent the spillover seen in tqdm#630
btw for now something like |
- fixes #623 - e.g. for fixed bar width of 10 and right-justified text: bar_format='{l_bar}{bar:10}|{bar:-10b}some text'
- fixes #623 - e.g. for fixed bar width of 10 and right-justified text: bar_format='{l_bar}{bar:10}|{bar:-10b}some text'
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes #623 This fixes #690 This helps prevent the spillover seen in #630
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes #623 This fixes #690 This helps prevent the spillover seen in #630
- added bar_width to initializer and format_meter that sets a fixed bar width that never changes (unless:) - added better ncols handling for overflows on l_bar, bar, r_bar specifically, output is restricted to one line (of length ncols) and will be chopped to ensure that is always true - added tests This fixes #623 This fixes #690 This helps prevent the spillover seen in #630
read the [known issues]
environment, where applicable:
I can't find it, maybe I'm stupid, but I'd like to be able to set a width for the right side data (something like this)
It would be nice, to make it possible to align the end of the bar (channels is the awkward one here)
The text was updated successfully, but these errors were encountered: