Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 7, 2026. It is now read-only.

revert: DataFrame display uses IPython's _repr_mimebundle_#2316

Merged
tswast merged 3 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
shuowei-revert-dataframe-displaygoogleapis/python-bigquery-dataframes:shuowei-revert-dataframe-displayCopy head branch name to clipboard
Dec 9, 2025
Merged

revert: DataFrame display uses IPython's _repr_mimebundle_#2316
tswast merged 3 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
shuowei-revert-dataframe-displaygoogleapis/python-bigquery-dataframes:shuowei-revert-dataframe-displayCopy head branch name to clipboard

Conversation

@shuoweil

@shuoweil shuoweil commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

revert "refactor: Migrate DataFrame display to use IPython's repr_mimebundle() protocol for anywidget mode (#2271)"

This reverts commit 41630b5 for bug 466155761.
Verified at Colab: screen/AjTEQC8SrSfMqhN

Fixes #< 466155761 > 🦕

…mebundle_() protocol for anywidget mode (#2271)"

This reverts commit 41630b5.
@shuoweil shuoweil requested a review from tswast December 8, 2025 20:31
@shuoweil shuoweil self-assigned this Dec 8, 2025
@shuoweil shuoweil requested review from a team December 8, 2025 20:31
@review-notebook-app

Copy link
Copy Markdown

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 Dec 8, 2025
@tswast tswast changed the title Revert "refactor: Migrate DataFrame display to use IPython's _repr_mi… revert: DataFrame display uses IPython's _repr_mimebundle_ Dec 9, 2025
@tswast

tswast commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Approving to unblock the release. We should try to restore this soon. There are a few small fixes that we lose with this revert, such as swallowing ValueError and such.

@tswast tswast merged commit e4e3ec8 into main Dec 9, 2025
24 of 25 checks passed
@tswast tswast deleted the shuowei-revert-dataframe-display branch December 9, 2025 20:00
Comment thread bigframes/dataframe.py
Comment on lines -861 to -865
# Handle both tuple (data, metadata) and dict returns
if isinstance(widget_repr_result, tuple):
widget_repr = dict(widget_repr_result[0]) # Extract data dict from tuple
for col in blob_cols:
# TODO(garrettwu): Not necessary to get access urls for all the rows. Update when having a to get URLs from local data.
df[col] = df[col].blob._get_runtime(mode="R", with_metadata=True)
else:
widget_repr = dict(widget_repr_result)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe this is where the bug was. We should not discard the metadata. We should save it and return it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion, I will take a closer look at it after lunch.

shuoweil added a commit that referenced this pull request Dec 9, 2025
tswast pushed a commit that referenced this pull request Dec 11, 2025
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>bigframes: 2.31.0</summary>

##
[2.31.0](v2.30.0...v2.31.0)
(2025-12-10)

### Features

* add `bigframes.bigquery.ml` methods (#2300)
([719b278](719b278c))

* add &#39;weekday&#39; property to DatatimeMethod (#2304)
([fafd7c7](fafd7c73))

### Bug Fixes

* cache DataFrames to temp tables in bigframes.bigquery.ml methods to
avoid time travel (#2318)
([d993831](d9938319))

### Reverts

* DataFrame display uses IPython&#39;s `_repr_mimebundle_` (#2316)
([e4e3ec8](e4e3ec85))

</details>
tswast pushed a commit that referenced this pull request Dec 11, 2025
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>bigframes: 2.31.0</summary>

##
[2.31.0](v2.30.0...v2.31.0)
(2025-12-10)

### Features

* add `bigframes.bigquery.ml` methods (#2300)
([719b278](719b278c))

* add &#39;weekday&#39; property to DatatimeMethod (#2304)
([fafd7c7](fafd7c73))

### Bug Fixes

* cache DataFrames to temp tables in bigframes.bigquery.ml methods to
avoid time travel (#2318)
([d993831](d9938319))

### Reverts

* DataFrame display uses IPython&#39;s `_repr_mimebundle_` (#2316)
([e4e3ec8](e4e3ec85))

</details>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.