Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: