Skip to content

feat: Disable progress bars in Anywidget mode to reduce notebook clutter#2437

Merged
shuoweil merged 4 commits intomainfrom
shuowei-anywidget-disable-log
Feb 6, 2026
Merged

feat: Disable progress bars in Anywidget mode to reduce notebook clutter#2437
shuoweil merged 4 commits intomainfrom
shuowei-anywidget-disable-log

Conversation

@shuoweil
Copy link
Contributor

@shuoweil shuoweil commented Feb 5, 2026

This PR improves the user experience of the interactive Anywidget display mode by automatically disabling progress bars and job logging during widget operations.

Changes:

  • Wrapped the get_anywidget_bundle call in repr_mimebundle with option_context("display.progress_bar", None) to silence the initial widget load.
  • Wrapped TableWidget._initial_load and TableWidget._set_table_html methods to silence subsequent interactions like pagination and sorting.

Motivation:
When interacting with the TableWidget (paging, sorting), the repeated appearance of progress bars creates visual noise and clutter in the notebook output cell, distracting from the interactive data exploration experience. This change ensures a clean and seamless interface.

Verified at:

Fixes #<482120359> 🦕

@shuoweil shuoweil self-assigned this Feb 5, 2026
@shuoweil shuoweil requested review from a team as code owners February 5, 2026 22:33
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Feb 5, 2026
@shuoweil shuoweil marked this pull request as draft February 5, 2026 22:39
class JSONDecode(base_ops.UnaryOp):
name: typing.ClassVar[str] = "json_decode"
to_type: dtypes.Dtype
safe: bool = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if this change is related to progress bar. If not, we should separate it out into another PR.

Copy link
Contributor Author

@shuoweil shuoweil Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need this chunk of code for presubmit: screen/56yh654Cnmgft2W

@shuoweil shuoweil marked this pull request as ready for review February 6, 2026 03:39
@shuoweil shuoweil requested a review from sycai February 6, 2026 03:39
@shuoweil shuoweil merged commit 853240d into main Feb 6, 2026
24 checks passed
@shuoweil shuoweil deleted the shuowei-anywidget-disable-log branch February 6, 2026 18:12
shuoweil pushed a commit that referenced this pull request Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants