首页/数据分析/jupyter-to-marimo
J

jupyter-to-marimo

by @marimo-teamv1.0.0
0.0(0)

Convert a Jupyter notebook (.ipynb) to a marimo notebook (.py).

Jupyter NotebooksMarimoInteractive PythonData Science WorkflowsReproducible ResearchGitHub
安装方式
npx skills add marimo-team/skills --skill jupyter-to-marimo
compare_arrows

Before / After 效果对比

0

description 文档


name: jupyter-to-marimo description: Convert a Jupyter notebook (.ipynb) to a marimo notebook (.py).

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

  1. 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.

  1. Run marimo check on the output
uvx marimo check <notebook.py>

Fix any issues that are reported before continuing.

  1. 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 %magic commands 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 EnvConfig widget from wigglystuff. Details can be found here.
  • If the original notebook uses ipywidgets, see references/widgets.md for a full mapping of ipywidgets to marimo equivalents, including patterns for callbacks, linking, and anywidget integration.
  • If the notebook contains LaTeX, see references/latex.md for how to port MathJax syntax to KaTeX (which marimo uses).
  1. Run marimo check again after your edits to confirm nothing was broken.

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量402
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例0 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月16日
最后更新2026年3月16日