-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[WIP] Make RichProgressBar the default if rich is available #15321
Conversation
@@ -174,7 +178,7 @@ def _configure_progress_bar(self, enable_progress_bar: bool = True) -> None: | |||
) | |||
|
|||
if enable_progress_bar: | |||
progress_bar_callback = TQDMProgressBar() | |||
progress_bar_callback = RichProgressBar() if _RICH_AVAILABLE else TQDMProgressBar() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant of this change for two reasons:
- Rich pbar is slower than tqdm (there's an issue about this somewhere, cc @akihironitta)
- I believe CI installs rich, which means that now tqdm is untested. Since it's the most widely used, I find that risky.
Shouldn't this be labeled as "feature" and not "bug"? Also I added "breaking change", as users might be expecting tqdm even if they have rich installed in their environments |
Sorry everyone. This PR was initially just used to reveal bugs that were fixed in the linked PRs. Since jobs don't run on drafts, I had to mark it ready. But the PR is actually not ready for review. It is merely a proof of concept. There are many open questions regarding
that need to be discussed first before we can make the switch. |
@awaelchli could you check this one if you have time :) |
I currently don't have the capacity to pursue this further. |
What does this PR do?
Continues #10912, #9647
Fixes #9580
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
I made sure I had fun coding 🙃
cc @Borda @justusschock @kaushikb11 @rohitgr7