The Str pane allows rendering arbitrary text in a panel.
Unlike Markdown and HTML panes, a Str pane is interpreted as a raw string without applying any markup and is displayed in a fixed-width font by default.
The pane will render any text, and if given an object will display the object's Python repr.
Parameters:
For details on other options for customizing the component see the layout and styling how-to guides.
object(str or object): The string to display. If a non-string type is supplied, thereprof that object is displayed.styles(dict): Dictionary specifying CSS styles
Like other panes the Str pane can be updated by setting its object parameter. As mentioned above, non-string types are automatically cast to a string:
Lets change the object back to its initial value: