Skip to content

fix: Respect display.progress_bar=None in background threads#16715

Draft
shuoweil wants to merge 4 commits intomainfrom
shuowei-anywidget-extraneous-output
Draft

fix: Respect display.progress_bar=None in background threads#16715
shuoweil wants to merge 4 commits intomainfrom
shuowei-anywidget-extraneous-output

Conversation

@shuoweil
Copy link
Copy Markdown
Contributor

Captures the progress bar option from the initiating thread and propagates it via events to background callbacks, ensuring options like None are respected.

Fixes #<461829560> 🦕

@shuoweil shuoweil self-assigned this Apr 17, 2026
@shuoweil shuoweil requested review from a team as code owners April 17, 2026 23:31
@shuoweil shuoweil requested review from GarrettWu and sycai and removed request for a team and sycai April 17, 2026 23:31
@shuoweil shuoweil force-pushed the shuowei-anywidget-extraneous-output branch from de201ee to d887714 Compare April 17, 2026 23:33
@shuoweil shuoweil marked this pull request as draft April 17, 2026 23:35
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a mechanism to pass the progress_bar configuration through BigQuery events, allowing for more granular control over progress bar display. It updates several event classes to include a progress_bar field and modifies the callback logic to prioritize this field over global settings. Feedback suggests defining the 'fallback_to_global' sentinel as a constant to improve maintainability and refactoring the event mapping logic in create_bq_event_callback to reduce code duplication.

Comment thread packages/bigframes/bigframes/core/events.py Outdated
Comment thread packages/bigframes/bigframes/session/_io/bigquery/__init__.py Outdated
@shuoweil shuoweil force-pushed the shuowei-anywidget-extraneous-output branch from dce2e04 to 42e4a50 Compare April 17, 2026 23:49
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.

1 participant