Show an Latex formula to the user

Basic Example

The following example demonstrate some of the available functionality for display_latex

\(ax^2 + bx + c = 0\)

Basic Example

The following example demonstrate some of the available functionality for display_latex

When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

Function signature

def (text: str, **kwargs):

Positional parameters

text (str)
The latex formula to display to the user

Keyword Arguments

end_program (bool)
Whether the program should end after the widget is shown. Defaults to False.
full_width (bool)
Whether the input should use full screen width. Defaults to False.
button_text (str)
What text to display on the button when the widget is not part of a Page. Defaults to 'Next'.