Skip to content

Commit a183d52

Browse files
committed
TEMP: Add _repr_html_ for Colab widget display fix
1 parent eff3836 commit a183d52

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bigframes/dataframe.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,13 @@ def _repr_mimebundle_(self, include=None, exclude=None):
942942

943943
return {"text/html": html_string, "text/plain": text_representation}
944944

945+
def _repr_html_(self):
946+
"""
947+
Renders the DataFrame as HTML.
948+
This method is used by IPython to display the DataFrame.
949+
"""
950+
return self._repr_mimebundle_()["text/html"]
951+
945952
def _create_html_representation(
946953
self,
947954
pandas_df: pandas.DataFrame,

0 commit comments

Comments
 (0)