Text cells can be added to a layout and then edited in the right sidebar. Markdown formatting is supported.

Adding Spoilers

Create a collapsible component for toggling content

from lplots.widgets.text import w_text_output

w_text_output(content=f"""

### Section Title

<details>
<summary>Spoiler Title</summary>
Spoiler body text...
</details>

""")