marimo convert
Feels like I'll have to rewrite most of the code (which makes sense bc of the way it executes)
9 Replies
Depending on how the notebook is written, def possibly you’ll need to rewrite. Guessing you’re running into multiple definition errors and maybe jupyter magics/! commands
haha yep exactly
I'm taking a brev.dev notebook guide and trying to run with Marimo bc i hate jupyterlab's UI lmao
This could help with multiple definitions: https://docs.marimo.io/guides/reactivity.html#local-variables
cool, let me take a look
General best practices here: https://docs.marimo.io/guides/best_practices.html
we’re pure Python so don’t support magics and ! commands
@athreesh - as you go through it, if there are things that could easily be converted, let us know, and we can build it into our converter
or can run it through some GPT calls
Ooo are you guys building a converter?
we have “marimo convert” but doesn’t handle the many edge cases
which is a CLI command:
marimo convert your_jupyter_nb.ipynb > your_marimo_nb.py