marimo-pair
БесплатноЗапускает вложенные скриптыНе проверенStart a marimo notebook or pair on a running one. Inspect live Python state, edit and run cells, and interact with widgets in the user's kernel.
от marimo-team★ 437 звёзд на GitHubОб этом скилле
marimo is a reactive Python notebook. You and the user share a live kernel. When a cell runs, marimo reruns the cells that depend on its variables.
WARNING. The active runtime is the source of truth. Use the Pair CLI (
marimo pair) or MCP to work in the running notebook. Direct edits to the.pyfile may never appear in the user's UI, and the kernel can overwrite them on save.
Pair with a notebook
Discover notebooks with marimo pair list. Local notebooks authenticate
automatically.
marimo pair list
# Listing excerpt: {"notebooks": [{"id": "nb-analysis", "name": "analysis.py"}]}
If you need to open or create a notebook, see the startup guide
to choose the launcher and Python environment. For a notebook that declares
its dependencies inline, use --sandbox. Once it’s open, run marimo pair list again.
marimo edit notebook.py --sandbox
Connect to a remote notebook
For a remote notebook, pass the server URL to both commands. If you have
a token file, pass its path to both as well. See marimo pair --help for
other connection options.
marimo pair list --url https://notebooks.example.org --token-file ./token
# Listing excerpt: {"notebooks": [{"notebook_id": "nb-analysis", "name": "analysis.py"}]}
marimo pair execute --url https://notebooks.example.org --token-file ./token \
--notebook nb-analysis --code 'import marimo._code_mode as cm; help(cm)'
If the notebook is missing from the listing or authentication fails, see the connection troubleshooting guide.
Work in the notebook
Pair runs Python in the user’s live notebook. You can inspect notebook
variables directly and use the Code Mode API (marimo._code_mode) to edit
cells, run them, and update widgets. Run help(cm) first in each notebook kernel to see
the Code Mode API available there. Use the notebook ID from marimo pair list.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
help(cm)
PYTHON
Inspect notebook state
Python runs in a temporary execution environment with access to variables
defined in notebook cells. For example, if a cell defines df, you can
inspect it directly.
marimo pair execute --notebook nb-analysis --code 'print(df.head())'
Variables you assign during an execution are local to that call. To keep a variable in the notebook, define it in a cell through Code Mode. Code Mode also lets you inspect each cell’s source, status, and errors.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
for cell in ctx.cells:
print(cell.id, cell.code[:50], cell.status, cell.errors)
PYTHON
Notebook variables refer to live objects. Avoid mutating notebook data in place because marimo does not track those changes. For intentional UI updates, see Update a widget.
Edit and run cells
Work becomes part of the user’s notebook when you create or edit a cell through Code Mode. The user can rerun the code, see the result, and discuss it with you.
Notebook rules
- Each public name can be defined in only one cell. Names like
_xare local to their cell. - Cells cannot depend on each other in a cycle.
- Wildcard imports (
from module import *) are unsupported.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
cid = ctx.create_cell("x = 1\nx")
ctx.run_cell(cid)
print(cid)
PYTHON
The printed ID works across executions. If the ID is Hbol, this shows
the cell’s current source, including any edits the user has made.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
print(ctx.cells["Hbol"].code)
PYTHON
A later execution can update that same cell. Here the user sees its output
change from 1 to 2.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
ctx.edit_cell("Hbol", "x = 2\nx")
ctx.run_cell("Hbol")
PYTHON
Cell names are optional. This call gives the existing cell the name initial_value.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
ctx.edit_cell("Hbol", name="initial_value")
PYTHON
A later call can read the cell’s source by name.
marimo pair execute --notebook nb-analysis --file - <<'PYTHON'
import marimo._code_mode as cm
async with cm.get_context() as ctx:
print(ctx.cells["initial_value"].code)
PYTHON
Update a widget
For a marimo slider or another mo.ui element, use Code Mode to set its
value. This triggers the same reactive updates as a user interaction.
marimo p
Установить marimo-pair в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл marimo-pair?
Start a marimo notebook or pair on a running one. Inspect live Python state, edit and run cells, and interact with widgets in the user's kernel.
Как установить скилл marimo-pair?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл marimo-pair запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic