Hacker News new | ask | show | jobs
by cantdutchthis 460 days 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

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?