Ability to add cells programamtically from other cells #2889
HaukeVolquardsen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea
Marimo already has a lot of flexibility for building interactive dashboards with its mixture of integrated UI widgets, layout controls, and the ability to use Vega and Plotly. And in theory you could write and provide functions that let users add new widgets and views to the notebook as they need and want. But that still requires the user to manage variables and functions themselves. What if you could abstract this one further layer and build widgets that can add new cells, and thus new widgets, through an API that interacts with the notebook? Doing this would require an ability to have a widget emit a new cell with some form of customized content "above" or "below" itself.
in Jupyter, there's apparently multiple APIs that would let you add cells to the notebook programmatically. But well... that's Jupyter. I checked the Marimo API and apparently there's no such feature for the moment for programmatically adding (or removing) cell content. Maybe you can hack it? The editor system for the notebook implies there's some surface for doing interactions like this.
This is maybe a pretty overengineered use case, but on the other hand it feels like it could add to the usability to the kinds of apps you can fashion with Marimo's toolkit.
Beta Was this translation helpful? Give feedback.
All reactions