Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit fd978af

Browse files
committed
chore: suppress JSONDtypeWarning in Anywidget display mode
1 parent 56383f5 commit fd978af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bigframes/display/html.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,11 @@ def repr_mimebundle(
364364
if opts.repr_mode == "anywidget":
365365
try:
366366
with bigframes.option_context("display.progress_bar", None):
367-
return get_anywidget_bundle(obj, include=include, exclude=exclude)
367+
with warnings.catch_warnings():
368+
warnings.simplefilter(
369+
"ignore", category=bigframes.exceptions.JSONDtypeWarning
370+
)
371+
return get_anywidget_bundle(obj, include=include, exclude=exclude)
368372
except ImportError:
369373
# Anywidget is an optional dependency, so warn rather than fail.
370374
# TODO(shuowei): When Anywidget becomes the default for all repr modes,

0 commit comments

Comments
 (0)