jupyter-to-marimo — скилл для Claude Code: что делает и как установить
Инструктирует агента конвертировать блокноты Jupyter .ipynb в реактивные скрипты marimo .py и адаптировать их структуру под граф зависимостей.
npx skills add marimo-team/skills --skill jupyter-to-marimo -a claude-codeЧто делает jupyter-to-marimo
Скилл задаёт чёткий регламент миграции с Jupyter на marimo. Агент запускает утилиту uvx marimo convert <notebook.ipynb> -o <notebook.py> ещё до чтения блокнота и воспринимает полученный код как черновик. Исходный файл .ipynb просматривается лишь при сбое конвертера.
В marimo порядок выполнения определяется ссылками на переменные, а не положением ячеек на экране. По этой причине скилл предписывает агенту сверять метаданные PEP 723, удалять лишние вызовы display() и выносить визуализируемое значение в финальное выражение ячейки. Для отсечения тяжёлых вычислений агент внедряет барьеры через mo.stop().
Без утилиты uvx в рабочей среде конвертер не запустится. После всех изменений агент обязательно выполняет валидацию файла командой uvx marimo check <notebook.py>.
Какие задачи решает
- сконвертировать файл .ipynb в реактивный скрипт marimo
- перестроить ячейки под граф зависимостей переменных
- очистить блокнот от остаточных ячеек установки пакетов и лишних вызовов display()
- настроить задержку тяжёлых вычислений с помощью mo.stop()
- проверить корректность зависимостей в метаданных PEP 723
Примеры запросов агенту
- Сконвертируй блокнот analysis.ipynb в marimo и проверь граф переменных
- Переведи training.ipynb в формат marimo с флагом --sandbox для метаданных PEP 723
- Очисти сконвертированный report.py от лишних вызовов display() и запусти marimo check
Как установить jupyter-to-marimo
1Через Skills CLI (Vercel)
npx skills add marimo-team/skills --skill jupyter-to-marimo -a claude-code2Вручную: положить файлы
~/.claude/skills/jupyter-to-marimo/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/jupyter-to-marimo/
1Через Skills CLI (Vercel)
npx skills add marimo-team/skills --skill jupyter-to-marimo -a codex2Вручную: положить файлы
.agents/skills/jupyter-to-marimo/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add marimo-team/skills --skill jupyter-to-marimo -a cursor2Вручную: положить файлы
.cursor/skills/jupyter-to-marimo/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install marimo-team/skills jupyter-to-marimo2Вручную: положить файлы
.github/skills/jupyter-to-marimo/SKILL.md1Через Skills CLI (Vercel)
npx skills add marimo-team/skills --skill jupyter-to-marimo -a gemini-cli2Командой платформы
gemini skills install https://github.com/marimo-team/skills --path skills/jupyter-to-marimoВручную: положить файлы
.devin/skills/jupyter-to-marimo/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add marimo-team/skills --skill jupyter-to-marimo -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о jupyter-to-marimo
Как установить jupyter-to-marimo в Claude Code?
Выполните в терминале команду npx skills add marimo-team/skills --skill jupyter-to-marimo -a claude-code. Конфигурация сохранится в файле ~/.claude/skills/jupyter-to-marimo/SKILL.md.
Что делает скилл jupyter-to-marimo?
Он задаёт пошаговые правила конвертации блокнотов Jupyter в формат marimo. Агент сначала выполняет CLI-конвертацию, а затем настраивает реактивный порядок выполнения ячеек.
Почему ячейки в marimo могут располагаться не по порядку?
Marimo вычисляет порядок запуска по определениям и вызовам переменных, а не сверху вниз. Ячейка с результатом может стоять выше ячейки, где объявлены входные данные.
Исходный текст
SKILL.md · Apache-2.0
--- name: jupyter-to-marimo description: Convert a Jupyter notebook (.ipynb) to a marimo notebook (.py). --- # Converting Jupyter Notebooks to Marimo ## Convert first **Important:** Run the converter before you read the source notebook: ```bash uvx marimo convert <notebook.ipynb> -o <notebook.py> ``` Read the `.ipynb` file only if conversion fails or the generated file omits required information. Treat the generated file as a first draft. Run this command after conversion and after substantial edits: ```bash uvx marimo check <notebook.py> ``` ## Review the conversion - Verify all required packages in the PEP 723 metadata. The converter can miss some package-installation forms. - Remove residual installation cells and stale installation prose. Add version constraints only when required. - Use `--sandbox` when a notebook uses PEP 723 metadata. - Preserve the purpose and intended workflow of the source notebook. - Arrange cells for presentation. marimo determines execution order from variable definitions and references. - A cell can appear before a cell that defines its input. - Merge or split cells when the current boundaries reduce clarity. - Remove redundant Jupyter artifacts, such as unnecessary `display()` calls. - Review converted magic commands. Keep valid conversions, and resolve comments that report unsupported magics. - Put the value to render in the final expression of each cell. - Keep added UI and helper functions proportional to the notebook purpose. - Replace interactive input methods that wait for terminal input or do not work in the target interface. Use suitable UI controls, script parameters, or environment values. - Do not print, log, or save secrets. Consider [EnvConfig](https://koaning.github.io/wigglystuff/reference/env-config.md) for multiple environment values. - Identify expensive work and external side effects. If work must wait, gate it with `mo.stop()` and a suitable UI element. - Use a form if the user must submit multiple values together. - Define downstream values after the gate so the dependency graph defers dependent cells. - Present useful results with simple native components. Add live refresh only when the intended workflow requires it. - For ipywidgets, read [`references/widgets.md`](references/widgets.md). - For LaTeX and MathJax, read [`references/latex.md`](references/latex.md). ## Validate the result - **Run `marimo check` again** after all edits. - Run the notebook in each intended mode. Confirm that it has the intended behavior. - When practical, open the source and converted notebooks side by side and invite the user to review. - Compare content, controls, outputs, and workflow. Cell order and layout can differ. - Inspect changed files for secrets, generated data, caches, logs, and other runtime files.
© marimo-team · Apache-2.0 · marimo-team/skills