Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bigframes/display/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def repr_mimebundle(
if opts.repr_mode == "deferred":
return repr_mimebundle_deferred(obj)

if opts.repr_mode == "anywidget":
if opts.render_mode == "anywidget":
try:
return get_anywidget_bundle(obj, include=include, exclude=exclude)
except ImportError:
Expand All @@ -374,4 +374,8 @@ def repr_mimebundle(
f"Falling back to static HTML. Error: {traceback.format_exc()}"
)

return repr_mimebundle_head(obj)
bundle = repr_mimebundle_head(obj)
if opts.render_mode == "plaintext":
bundle.pop("text/html", None)

return bundle
Loading
Loading