marimo | a next-generation Python notebo...
https://marimo.app/l/dhp4fm
Not sure if this is known, but creating a "private function" throws an error when trying to use it
marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
5 Replies
This is actually a feature. Private functions and variables are scoped to just the cell
K, thanks--that's good to know. I'll start using that because I've found when I do:
I can't do it in future cells which is really annoying. I'll use
_f
Yea that’s also a python nuance which I hit myself unknowingly. It’s also the same for for-loops. Python leaks the variable