FormattedOutput
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
FormattedOutput
class FormattedOutputA formatted string with rich notebook display representations.
Methods
| Name | Description |
|---|---|
__init__ |
Create a formatted output object. |
__repr__ |
Convert the formatted output into plain text. |
__str__ |
Convert the formatted output into plain text. |
_display_ |
Return rich output for marimo notebooks. |
_repr_html_ |
Convert the formatted output into an HTML representation. |
_repr_latex_ |
Convert the formatted output into a LaTeX representation. |
_repr_mimebundle_ |
Return rich notebook output, including a widget when paginated. |
_repr_pretty_ |
Convert the formatted output into a pretty string representation. |
format_plain |
Convert the formatted output into plain text. |
mathml_viewer |
Return the underlying viewer without importing notebook packages. |
__init__
FormattedOutput.__init__(text: str, html: str | None = None, latex: str | None = None) -> NoneCreate a formatted output object.
__repr__
FormattedOutput.__repr__() -> strConvert the formatted output into plain text.
__str__
FormattedOutput.__str__() -> strConvert the formatted output into plain text.
_display_
FormattedOutput._display_() -> AnyReturn rich output for marimo notebooks.
_repr_html_
FormattedOutput._repr_html_() -> str | NoneConvert the formatted output into an HTML representation.
_repr_latex_
FormattedOutput._repr_latex_() -> str | NoneConvert the formatted output into a LaTeX representation.
_repr_mimebundle_
FormattedOutput._repr_mimebundle_(
include: list[str] | None = None,
exclude: list[str] | None = None,
) -> dict[str, Any]Return rich notebook output, including a widget when paginated.
_repr_pretty_
FormattedOutput._repr_pretty_(pretty, cycle: bool)Convert the formatted output into a pretty string representation.
format_plain
FormattedOutput.format_plain() -> strConvert the formatted output into plain text.
mathml_viewer
FormattedOutput.mathml_viewer() -> MathMLViewer | NoneReturn the underlying viewer without importing notebook packages.