---
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")
```