GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add display.render_mode to control DataFrame/Series visualizati… · google/bigframes@7813eaa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bigframes/display
    • html.py
  • notebooks
    • dataframes
      • anywidget_mode.ipynb
    • ml
      • timeseries_analysis.ipynb
  • tests
    • system/small
      • test_anywidget.py
      • test_progress_bar.py
    • unit/display
      • test_anywidget.py
      • test_render_mode.py
  • third_party/bigframes_vendored/pandas/core
    • config_init.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bigframes/display/html.py‎

Copy file name to clipboardExpand all lines: bigframes/display/html.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def repr_mimebundle(
361361
if opts.repr_mode == "deferred":
362362
return repr_mimebundle_deferred(obj)
363363

364-
if opts.repr_mode == "anywidget":
364+
if opts.render_mode == "anywidget" or opts.repr_mode == "anywidget":
365365
try:
366366
with bigframes.option_context("display.progress_bar", None):
367367
with warnings.catch_warnings():
@@ -380,4 +380,8 @@ def repr_mimebundle(
380380
f"Falling back to static HTML. Error: {traceback.format_exc()}"
381381
)
382382

383-
return repr_mimebundle_head(obj)
383+
bundle = repr_mimebundle_head(obj)
384+
if opts.render_mode == "plaintext":
385+
bundle.pop("text/html", None)
386+
387+
return bundle

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.