def _repr_html_(self) -> str | tuple[str, dict[str, Any]] | None:
        """IPython hook to display HTML visualization."""
        return (
            '<span style="color: red;">' + self._error + "</span>"
            if self._error is not None
            else None
        )
IPython hook to display HTML visualization.
src/latexify/ipython_wrappers.py