A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
---
title: Test Notebook
marimo-version: 0.0.0
---
```python {.marimo}
import marimo as mo
```
````python {.marimo}
mo.md("""
# Code blocks in code blocks
Output code for Hello World!
```python
print("Hello World")
```
Execute print
```python {.marimo}
print("Hello World")
```
""")
````
````python {.marimo}
mo.md(f"""
with f-string too!
```python {{.marimo}}
print("Hello World")
```
""")
````
````python {.marimo}
mo.md(f"""
Not markdown
```python {{.marimo}}
print("1 + 1 = {1 + 1}")
```
""")
````
Nested fence
````text
The guards are
```python {.marimo}
````
````python {.marimo}
"""
```
"""
````
````python {.marimo}
mo.md("""
Cross cell injection
```python
""")
````
```python {.marimo}
1 + 1
```
```python {.marimo}
# Actual print
print("Hello World")
```