athreesh
athreesh8mo ago

marimo convert

Feels like I'll have to rewrite most of the code (which makes sense bc of the way it executes)
9 Replies
Akshay
Akshay8mo ago
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
athreesh
athreeshOP8mo ago
haha yep exactly I'm taking a brev.dev notebook guide and trying to run with Marimo bc i hate jupyterlab's UI lmao
Akshay
Akshay8mo ago
This could help with multiple definitions: https://docs.marimo.io/guides/reactivity.html#local-variables
athreesh
athreeshOP8mo ago
cool, let me take a look
Akshay
Akshay8mo ago
General best practices here: https://docs.marimo.io/guides/best_practices.html we’re pure Python so don’t support magics and ! commands
Myles Scolnick
Myles Scolnick8mo ago
@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
athreesh
athreeshOP8mo ago
Ooo are you guys building a converter?
Myles Scolnick
Myles Scolnick8mo ago
we have “marimo convert” but doesn’t handle the many edge cases
Akshay
Akshay8mo ago
which is a CLI command: marimo convert your_jupyter_nb.ipynb > your_marimo_nb.py