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

Adds expand Parameter to track wrap_file open in rich.progress for Full-Width Progress Bars #3589

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PeiPei233
Copy link

@PeiPei233 PeiPei233 commented Dec 16, 2024

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Adds expand parameter to rich.progress.track rich.progress.wrap_file rich.progress.open function as mentioned in #3588.

When expand = True, it will expand the progress display to fill the width of the console. Defaults to False.

This is very useful, especially when we need to unify the width of all renderable components (e.g., Panel, Table) to match the console width.

@PeiPei233 PeiPei233 changed the title Expandable track Adds expand Parameter to track wrap_file open in rich.progress for Full-Width Progress Bars Dec 16, 2024
@abmfy
Copy link

abmfy commented Dec 16, 2024

Great job! Looking forward to this being merged into main branch asap.

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.

2 participants