diff --git a/mess/basis.py b/mess/basis.py index c93ac0c..4e9a80c 100644 --- a/mess/basis.py +++ b/mess/basis.py @@ -77,6 +77,10 @@ def __repr__(self) -> str: headers = ["primitive"] + df.columns.to_list() return tabulate(df, headers) + def _repr_html_(self) -> str | None: + df = self.to_dataframe() + return df._repr_html_() + def __hash__(self) -> int: return hash(self.primitives)