Jupyter To Marimo
Documentsjupyter-to-marimoJupyter To Marimo is an Agent Skill for documents published in the minicoohei/ai-agent-camp repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Jupyter ノートブック (.ipynb) を marimo ノートブック (.py) に変換するスキル。 「Jupyterを変換して」「ipynbをmarimoに」「ノートブック変換」等のリクエストで発動。
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/minicoohei/ai-agent-camp/blob/HEAD/.claude/skills/jupyter-to-marimo/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/jupyter-to-marimo, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
トリガーワード
「Jupyter変換」「ipynb変換」「marimoに変換」「ノートブック変換」
Converting Jupyter Notebooks to Marimo
IMPORTANT: When asked to translate a notebook, ALWAYS run uvx marimo convert <notebook.ipynb> -o <notebook.py> FIRST before reading any files. This saves precious tokens - reading large notebooks can consume 30k+ tokens, while the converted .py file is much smaller and easier to work with.
Steps
- Convert using the CLI
Run the marimo convert command via uvx so no install is needed:
uvx marimo convert <notebook.ipynb> -o <notebook.py>
This generates a marimo-compatible .py file from the Jupyter notebook.
- Run
marimo checkon the output
uvx marimo check <notebook.py>
Fix any issues that are reported before continuing.
- Review and clean up the converted notebook
Read the generated .py file and apply the following improvements:
- Ensure the script metadata block lists all required packages. The converter may miss some.
- Drop leftover Jupyter artifacts like
display()calls, or%magiccommands that don't apply in marimo. - Make sure the final expression of each cell is the value to render. Indented or conditional expressions won't display.
- If the original notebook requires environment variables via an input, consider adding the
EnvConfigwidget from wigglystuff. Details can be found here. - If the original notebook uses ipywidgets, replace them with corresponding ui from marimo. A slider, for example, would be replaced with
mo.ui.slider().
- Run
marimo checkagain after your edits to confirm nothing was broken.