Skip to content

Conversation

@koaning
Copy link
Contributor

@koaning koaning commented Jan 14, 2026

This PR moves the import marimo as mo to the top cell when we convert from Jupyter to marimo. Having the cell at the bottom is bothersome because it may not run at all if the original notebook contains errors.

@koaning koaning requested a review from dmadisetti as a code owner January 14, 2026 10:32
@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 15, 2026 8:13am
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

When converting Jupyter notebooks, the `import marimo as mo` statement
was being added as the last cell. This caused issues when earlier cells
used `mo.md()` or `mo.sql()` - they would fail because marimo wasn't
imported yet.

Now the import is added as the first cell instead.

Fixes MO-4937
akshayka
akshayka previously approved these changes Jan 14, 2026
@akshayka
Copy link
Contributor

@koaning you will need to run the tests locally and commit the updated snapshots

mscolnick
mscolnick previously approved these changes Jan 14, 2026
@vercel
Copy link

vercel bot commented Jan 21, 2026

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: marimo-docs.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@koaning koaning force-pushed the vincent/convert-marimo-top branch from c436085 to 9c0180f Compare January 21, 2026 16:03
@koaning
Copy link
Contributor Author

koaning commented Jan 21, 2026

@akshayka ping, I think it's all fixed now.

@mscolnick mscolnick merged commit 799c073 into main Jan 21, 2026
47 of 51 checks passed
@mscolnick mscolnick deleted the vincent/convert-marimo-top branch January 21, 2026 19:10
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.5-dev32

botterYosuke pushed a commit to botterYosuke/marimo that referenced this pull request Jan 22, 2026
This PR moves the `import marimo as mo` to the top cell when we convert
from Jupyter to marimo. Having the cell at the bottom is bothersome
because it may not run at all if the original notebook contains errors.
botterYosuke pushed a commit to botterYosuke/marimo that referenced this pull request Jan 23, 2026
This PR moves the `import marimo as mo` to the top cell when we convert
from Jupyter to marimo. Having the cell at the bottom is bothersome
because it may not run at all if the original notebook contains errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

4 participants