Replies: 2 comments 4 replies
-
This is on our roadmap, in particular we'll make it so that "pure" functions are serialized top-level into the notebook, and can be imported like any other function ( |
Beta Was this translation helpful? Give feedback.
-
Something to consider:
I think all sufficiently different kinds of things to warrant different treatment. All these have specialised Python frameworks. In nbdev itself, there is the concept of "test flags", and extra stuff people add to reduce the clutteredness of their code when these flags appear a lot: https://github.com/feynlee/nbdev-ignore. One approach may be to automatically annotate various kinds of test cells by detecting the calls to specific functions from popular frameworks. Such as, if the cell contains calls to pytest, the cell is annotated as "test", no explicit tag/flag needed. Similar for code that calls to |
Beta Was this translation helpful? Give feedback.
-
Given that marimo is plain .py files, I was wondering if it could be used to replace something like nbdev?
It would be really nice to be able export specific functions defined in marimo cells. Then you can define documentation, tests and example in other cells, testing and documenting the exported function. This way you could import a marimo notebook in any other python file and use those python functions.
Beta Was this translation helpful? Give feedback.
All reactions