marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
7.96k stars 278 forks source link

Execute cell on cell lost focus event #2936

Open s-celles opened 6 hours ago

s-celles commented 6 hours ago

Description

Hello,

currently executing a cell is done by clicking on Run button. We end up clicking on this button (which is probably not on the most efficient place several times. I'm aware that pressing CTRL + Enter can help. But is it really necessary ?

Best regards

Suggested solution

What about considering an other behavior where leaving a cell (or pressing one of the 2 "+" button) could automatically execute this cell (and all others linked cells through DAG) if cell content have changed

We could have a "on cell lost focus" option similar to Image

Alternative

No response

Additional context

No response