| (someone from the marimo team here) The `export` command can generate a rendered artifact if that's what you're after but there is also another avenue here, have you seen the caching feature? The one that caches to disk and persists? https://docs.marimo.io/guides/expensive_notebooks/?h=cache#d... This can automatically store the output of expensive functions, keeping the previous state of the cells in mind. If a re-compute ever needs to happen it will just load it straight from cache. Another option is to run in lazy mode, documented here: https://docs.marimo.io/guides/expensive_notebooks/?h=cache#l... This will prevent the notebook from rerunning cells by accident. We're thinking about adding features that would make marimo great for running long running batch work but there's not a whole lot I can share about it yet. If you have specific thoughts or concerns though, feel free to join our discord! https://marimo.io/discord?ref=nav |
If I understand it correctly, `@mo.persistent_cache(name="my_cache")` creates a binary file `my_cache` that I should commit as well if I don't want others to repeat the computation?
This kinda solves the problem, except for having two files per notebook, and that marimo notebooks are no longer viewable with output on github directly.