Example Notebook¶
This notebook demonstrates a few things marimo-book handles for you:
- Hidden setup cells (the
import marimo as moabove) don't appear in the rendered page. mo.md(...)cells become native Markdown.- Code cells are shown with syntax highlighting and a copy button.
- Cell outputs are baked in at build time — this page works without a Python kernel.
mo.callout(...)becomes a themed admonition.
# Regular code cells run at build time; their output is embedded in the page.
import math
values = [math.sin(x / 10) for x in range(10)]
values
- 0: 0.0
- 1: 0.09983341664682815
- 2: 0.19866933079506122
- 3: 0.29552020666133955
- 4: 0.3894183423086505
- 5: 0.479425538604203
- 6: 0.5646424733950354
- 7: 0.644217687237691
- 8: 0.7173560908995228
- 9: 0.7833269096274834
Hot reload works. Try editing this cell while
marimo-book serve is running.