I've added this to my git repo, hope you don't mind.
Go for it, I was going to send you a PR myself. One thing I noticed: normally in Marimo you can reorder cells however you want (i.e. put the resulting visualisation at the very top of the page and put all the setup and calculations at the bottom). But with your script reordering the tree-view breaks things somehow? I spent a minute trying to figure out why but don't yet know Marimo or anywidget well enough to quite see what's going on My basic understanding is: an anywidget widget is stateful, and thus breaks the “can reorder cells/code arbitrarily” property of Marimo, as it doesn't have a neat set of inputs and outputs like other cell functions. But I barely peeked at the code since AI got it almost completely right. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/beancount/9d1490c9-fe28-47c1-81ac-9e8c0e685805n%40googlegroups.com.
