marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Execute dependent cells in notebook order

Open gabrielgrant opened this issue 11 months ago • 5 comments

Description

When changes in one cell trigger recomputation in multiple downstream cells with no inter-dependencies, my impression is that right now the recomputation computation of those downstream cells isn't well defined, but seems to happen in the order in which they were first created?

Not sure about that, but it does seem that they don't execute in the same order as they appear in the notebook. It would be nice if they did

Suggested solution

Have cells that could theoretically be executed concurrently execute in the order in which they appear in the notebook

Alternative

In an ideal world these might actually be executed concurrently. But that seems likely to be a bigger lift (and likely to have lots of edge cases around side-effects)

Additional context

No response

gabrielgrant avatar Dec 16 '24 15:12 gabrielgrant