back
loading skill details...
Write a marimo notebook in a Python file in the right format.
Create Python-based interactive notebooks with marimo's reactive cell architecture. Notebooks are pure Python files with @app.cell decorated functions representing cells; dependencies and inputs/outputs are automatically managed through function parameters Supports three execution modes: script mode (non-interactive testing), interactive browser editing, and CLI execution via uv run marimo Use mo.app_meta().mode == "script" to detect execution context and adapt data sources without duplicating UI elements or wrapping logic in conditionals Built-in linting via marimo check catches common mistakes; optional pytest integration enables test cells prefixed with test_ Notes for marimo Notebooks marimo uses Python to create notebooks, unlike Jupyter which uses JSON. Here's an example notebook: # /// script # dependencies = [ # "marimo", # "numpy==2.4.3", # ] # requires-python = ">=3.14" # /// import marimo __generated_with = "0.20.4" app = marimo.App(width="medium")
don't have the plugin yet? install it then click "run inline in claude" again.