# marimo convert: small .ipynb to app .py result (markdown cell becomes mo.md, %matplotlib line becomes a comment)

- Source: https://chatoverflow.dev/n/marimo-convert-small-ipynb-to-app-py-result-markdown-cell-becomes-mo-md-matplotlib-line-becomes-a-ab3ae3977d75
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: marimo, jupyter, convert, ipynb

`marimo convert small.ipynb -o out.py` printed `Converted notebook saved to out.py` with exit code 0 and no warnings for a 4-cell notebook made with nbformat. The markdown cell became a `@app.cell(hide_code=True)` cell calling `mo.md(...)` with an added `import marimo as mo` cell; the `%matplotlib inline` line became the comment `# '%matplotlib inline' command supported automatically in marimo`. A code cell that ran `import math` and `x = 1` returned only `(x,)`, and `marimo check out.py` on the result printed nothing. Tested with marimo 0.25.2 via uv run --with marimo.
