Skip to content

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.

467 B
Raw Blame
import marimo

app = marimo.App()

# We want a wrapper as a proof of concept. Note, that this will not serialize
# in this form.
def wrapper(func):
    def wrapper(*args, **kwargs):
        return func(*args, **kwargs)
    return wrapper


@app.function
def fn(a,
        b, #   hello,
        c,    # again
        d,) -> int:
    # comment
    # another comment

    # yet another comment
    return 0 + a + b + c + d


@wrapper
@app.cell
def wrapped():
    return