Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

marimo

БесплатноБез исполняемых скриптовНе проверен

marimo is a reactive Python notebook that is stored as a plain .py file, so it diffs cleanly in git, runs as a script, and serves as a web app. Use when a…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

marimo — reactive Python notebooks stored as plain .py files

Overview

A marimo notebook is a Python file. Each cell is a function decorated with @app.cell; marimo reads which global names a cell defines and uses, builds a dependency graph, and re-runs dependent cells when something changes (a slider moves, a variable is edited). There is no hidden state: a name may be defined in only one cell, and deleting a cell removes its variables. Because the file is ordinary Python, it can be reviewed in a pull request, executed with python notebook.py, served read-only as an app, or exported to HTML, a flat script or .ipynb.

Tested against marimo 0.25.2. Use this skill for exploratory analysis that must be reproducible and reviewable, for sharing a result as an interactive app, and for migrating .ipynb files. For classic Jupyter work see the jupyter skill; for apps that are code-first dashboards see streamlit.

Instructions

Installation

python -m venv .venv
.venv/bin/pip install marimo
.venv/bin/pip install "marimo[sql]"        # adds duckdb + sqlglot for SQL cells
.venv/bin/pip install nbformat             # only needed for `marimo export ipynb`
.venv/bin/marimo --version

Other extras published by the package: recommended, lsp, mcp, otel, sandbox. In a uv project use uv add marimo.

Create and edit notebooks

marimo edit analysis.py --headless --port 2718 --no-token

marimo edit NAME creates the file if it does not exist and starts the editor server on 127.0.0.1. --headless skips opening a browser; the server uses a random access token unless you pass --no-token, so keep the token on for anything reachable by other users. An agent usually does not need the editor: write the .py file directly (structure below) and validate it with marimo check.

Notebook structure:

import marimo

__generated_with = "0.25.2"
app = marimo.App()


@app.cell
def _():
    import marimo as mo
    return (mo,)


@app.cell
def _(mo):
    min_logins = mo.ui.slider(0, 100, value=40, label="Min logins per month")
    min_logins
    return (min_logins,)


@app.cell
def _(min_logins):
    print("threshold:", min_logins.value)
    return


if __name__ == "__main__":
    app.run()

Rules that matter: each cell lists the globals it reads as function parameters and returns the globals it defines; the last expression of a cell is its displayed output; one global name may be defined in only one cell (use a leading underscore, such as _tmp, for cell-local names). Hand-editing is fine, and marimo check --fix repairs formatting.

Validate with marimo check

marimo check analysis.py            # lint: multiple definitions, cycles, formatting (exit 1 on errors)
marimo check --fix analysis.py      # rewrite fixable issues in place
marimo check --strict reports/      # warnings also give a non-zero exit code

UI elements and reactivity

mo.ui provides slider, dropdown, checkbox, text, number, date, file, table, form and more. Assign the element to a global in one cell and read .value in another; the second cell re-runs when the user changes the element. Reading .value in the same cell that creates the element is an error.

SQL cells

With marimo[sql] installed, mo.sql(...) runs DuckDB SQL against dataframes (pandas, polars) defined in other cells and returns a dataframe:

@app.cell
def _(customers, mo):
    at_risk = mo.sql("SELECT customer, logins FROM customers WHERE logins < 15", output=False)
    return (at_risk,)

Without sqlglot installed the call fails with "packages required to execute sql: sqlglot", so install the sql extra.

Run as an app

marimo run analysis.py --headless --host 127.0.0.1 --port 2718
marimo run analysis.py --headless -- --rows 5000    # arguments after -- go to the notebook

marimo run is read-only: viewers get the UI but not the code unless you add --include-code. A static check runs before serving (--no-check disables it). The server answers GET /health. Behind a reverse proxy add --base-url /churn. For authentication use --token-password-file rather than putting a password on the command line.

Run as a script, with arguments

python analysis.py                 # cells execute in dependency order, UI elements use defaults
python analysis.py -- --rows 5000  # read inside the notebook with mo.cli_args()

Read arguments with mo.cli_args().get("rows"); numbers are parsed (--rows 5000 gives the int 5000, --rate 0.5 a float), other values are strings, and a bare flag gives an empty string ''. Output of print appears on stdout, so this works in cron jobs and CI.

Convert to and from other formats

marimo convert churn.ipynb -o churn.py     # outputs are stripped; markdown cells become mo.md
marimo convert script.py -o notebook.py    # py:percent scripts
marimo convert notes.md -o notebook.py     # ```{p
Полный SKILL.md на GitHub

Установить marimo в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл marimo?

marimo is a reactive Python notebook that is stored as a plain .py file, so it diffs cleanly in git, runs as a script, and serves as a web app. Use when a user asks to "create a marimo notebook", "convert my Jupyter notebook to marimo", "turn this notebook into an app", "run a notebook from the command line with arguments", "export a notebook to HTML", or "query a dataframe with SQL in a notebook". Covers marimo edit, run, convert, export, check, mo.ui elements and SQL cells.

Как установить скилл marimo?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл marimo запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить marimo с