Hi
I am working on a project where we support rendering various objects as HTML, as long as they respond to _repr_html_(). ITables already sort-of works like this by overwriting repr_html() on Polars and Pandas data frames. That works, but it requires some care in terms of resetting to the original _repr_html_().
What I would love was something like the great_tables GT object instead, i.e. wrapping the data frame in an ITables object, and letting that object respond to _repr_html_(), something like:
>>> t = ITable(my_df)
>>> t._repr_html_()
Would you be interested in something like that? If so, I would be happy to attempt an implementation.
Hi
I am working on a project where we support rendering various objects as HTML, as long as they respond to
_repr_html_(). ITables already sort-of works like this by overwriting repr_html() on Polars and Pandas data frames. That works, but it requires some care in terms of resetting to the original_repr_html_().What I would love was something like the
great_tablesGTobject instead, i.e. wrapping the data frame in an ITables object, and letting that object respond to_repr_html_(), something like:Would you be interested in something like that? If so, I would be happy to attempt an implementation.