Skip to content

ITables object with _repr_html_() #462

@vangberg

Description

@vangberg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions