File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
third_party/bigframes_vendored/pandas/core Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1919
2020
2121def test_render_mode_options ():
22- assert bpd .options .display .render_mode == "anywidget "
22+ assert bpd .options .display .render_mode == "html "
2323
2424 with bpd .option_context ("display.render_mode" , "plaintext" ):
2525 assert bpd .options .display .render_mode == "plaintext"
@@ -87,3 +87,12 @@ def test_repr_mimebundle_selection_logic():
8787 assert "application/vnd.jupyter.widget-view+json" in bundle [0 ]
8888 mock_anywidget .assert_called_once ()
8989 mock_head .assert_not_called ()
90+
91+ mock_anywidget .reset_mock ()
92+
93+ # Test default render_mode (should be "html")
94+ bundle = bf_html .repr_mimebundle (mock_obj )
95+ assert "text/plain" in bundle
96+ assert "text/html" in bundle
97+ mock_head .assert_called_once ()
98+ mock_anywidget .assert_not_called ()
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class DisplayOptions:
107107 download results.
108108 """
109109
110- render_mode : Literal ["plaintext" , "html" , "anywidget" ] = "anywidget "
110+ render_mode : Literal ["plaintext" , "html" , "anywidget" ] = "html "
111111 """
112112 Determines how to visualize a DataFrame or Series. Default "anywidget".
113113
You can’t perform that action at this time.
0 commit comments