3 ms·
I’ve been tinkering with Marimo, it’s pretty sweet (and you can use cursor or other AI IDEs pretty easily with it). On running notebooks as scripts: I can’t fi
by dchuk 2y ago
I’ve been tinkering with Marimo, it’s pretty sweet (and you can use cursor or other AI IDEs pretty easily with it).
On running notebooks as scripts: I can’t find in the docs what happens if you have plotting and other notebook oriented code? Like I’m using pygwalker to explore data through transformation steps, and end with saving to csv. If I just run the notebook as a script, is all of the plotting automatically skipped?
- cantdutchthis 2y ago(someone from the marimo team here) It depends a bit on how the notebook is written. There is `mo.app_meta()` that allows you to detect how the notebook is running. This can be in "app mode", "edit mode" or in "script mode". https://docs.marimo.io/api/app/?h=meta#marimo.app_meta https://docs.marimo.io/api/app/?h=meta#marimo.app_meta Effectively this could allow you to do things like "only run this bit when not in script mode" if you want to skip things. Alternatively you can also run the notebook via the `marimo export` command if you care about the charts and want to have a rendered notebook as an artifact. Gotta ask out of curiosity, anything you can share about your cursor/marimo workflow? Are you using the llm tools from within marimo or outside of it?