utils
Functions:
-
display
–Displays objects in a rich format, depending on the environment.
display(*args, opt: Literal['math', 'dict'] | None = None, **kwargs) -> None
¶
Displays objects in a rich format, depending on the environment.
This function displays objects using IPython's display
mechanism if available,
otherwise it falls back to sympy.pprint
.
Parameters:
-
*args
–The objects to display.
-
opt
(Literal['math', 'dict'] | None
, default:None
) –- If "math", displays the object as a math expression.
- If "dict", generates a LaTeX representation of the dictionary for display.
- If none, assumes the object can be passed into IPython's [
display
][display
] function directly.
-
**kwargs
–Additional keyword arguments to pass to the display function.
See Also
IPython.display.display
: The class used to display objects in IPython environments.sympy.pprint
: The class used to pretty-print objects in non-IPython environments.