[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Update tqdm.rich #1596

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from
Open

Update tqdm.rich #1596

wants to merge 4 commits into from

Conversation

klamike
Copy link
@klamike klamike commented Jul 14, 2024

This PR updates tqdm.rich to better match tqdm.std. It's a lot packed into one PR, but I hope you will still consider merging as it significantly extends the current functionality.

  • use tqdm.std.format_* instead of rich.filesize for unit number formatting
  • support iterators without __len__
  • add inverse speed support
  • add NoPaddingProgress & ProgressColumn classes to match tqdm.std style
  • add set_postfix support (Add postfixes to tqdm.rich #1510)
  • add ascii support
  • use only the lock in rich -- avoid the tqdm lock
  • add bar_options kwarg to customize BarColumn
  • support colour kwarg on init
  • support simultaneous tqdm.rich bars via global cls._progress
  • use lazy auto refresh from rich
  • support dynamic_ncols
  • refresh on last display (Fix incomplete progress bar status upon closing when using rich in interactive sessions #1580)

- use tqdm.std.format_* instead of rich.filesize for unit number formatting
- support iterators without __len__
- add inverse speed support
- add NoPaddingProgress/Column classes to match tqdm.std style
- add postfix support (tqdm#1510)
- add ascii support
- use only rich lock, no tqdm lock
- add bar_options kwarg to customize BarColumn
- support `colour` kwarg on init
- support simultaneous progress tqdm.rich bars via global cls._progress
- use lazy auto refresh from rich
- support dynamic_ncols
@klamike klamike requested a review from casperdcl as a code owner July 14, 2024 10:33
@klamike klamike changed the base branch from master to devel July 14, 2024 10:33
@BartSchuurmans
Copy link

support simultaneous tqdm.rich bars via global cls._progress

Would love that feature, I was looking to start a PR for it myself!

@ma-sadeghi
Copy link

This is a great PR and makes tqdm.rich much more usable. Would really appreciate it if maintainers could prioritize merging it. Thanks again!

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

Successfully merging this pull request may close these issues.

3 participants