615a89e antonApr 20, 2026 api

create hello.py via macOS

A /docs/undefined +29 -0
A /docs/undefined +29 -0
1import marimo
2
3__generated_with = "0.13.0"
4app = marimo.App()
5
6
7@app.cell
8def greeting():
9 import marimo as mo
10 mo.md("# Hello from marimo")
11 return (mo,)
12
13
14@app.cell
15def arithmetic():
16 result = sum(range(1, 101))
17 print(f"Sum of 1 to 100 = {result}")
18 return (result,)
19
20
21@app.cell
22def use_result(result):
23 squared = result ** 2
24 print(f"Result squared = {squared}")
25 return (squared,)
26
27
28if __name__ == "__main__":
29 app.run()