FormattedOutput
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
FormattedOutput
FormattedOutput()A 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. |
_repr_html_ |
Convert the formatted output into an HTML representation. |
_repr_latex_ |
Convert the formatted output into a LaTeX representation. |
_repr_pretty_ |
Convert the formatted output into a pretty string representation. |
format_plain |
Convert the formatted output into plain text. |
__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.
_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_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.