Hacker News new | ask | show | jobs
by exe34 308 days ago
The few times I've made notebooks, I've tried to migrate code out of the notebook as soon as possible and then only import foo and run foo.bar() in the notebook. It helps to only have the top level config/layout in the notebook.
1 comments

Fun detail, you can actually define functions in a marimo notebook and load them in another Python file if you want.

Needs a bit of extra config but tis a really nice feature.

https://docs.marimo.io/guides/reusing_functions/