Disable execution notifications
Description
On #1634, notifications when a computation is finished were added.
I'm using mo.ui.refresh to repeatedly run a computation. I intended for it to run on the background and check once in a while but I get a notification each time. It would be nice if they could be disabled.
Thanks!
Suggested solution
Add some configuration to opt out of notifications.
Alternative
No response
Additional context
No response
Hey @maurosilber, which browser are you using? Browsers have a setting to turn this off by site, would that be ok?
Safari. I can do that, but the site in this case is "localhost". It would be nice to be able to do it just for marimo (maybe in a per-notebook basis?).
Yea thats a valid request. We can look into adding it to the configuration that gets picked up by pyproject.toml
Hi @mscolnick -- I'm dropping a note here to 'upvote' this feature enhancement request from maurosilber. I'm happy to disable the notifications for all localhost, but I don't want to have to explain how to everyone I share the notebook with if I don't have to. A configuration option, either on the notebook itself or in the call to marimo run to silence the notifications would be amazing.
+1. Could this just be restricted to notifications triggered by the refresh widget, though? Perhaps an additional parameter, .e.g., mo.ui.refresh(..., suppress_notifications=True) (defaults to True).
I much appreciate the "Your notebook run encountered N error(s)" notification. That notification has a high signal-to-noise ratio and fires infrequently. It's been helpful as it's alerted me to rare bugs in my cells.
On the flip side, the "Your notebook run completed successfully" notification is nearly useless. It fires too often, and a successful cell run is already my default assumption. If we could disable just that successful-run notification, that would be wonderful. One can already disable all Marimo notifications by revoking the site's notification permission in the browser.
Hi @maurosilber @mscolnick @lukesdm I'd like to contribute an implementation for this issue.
I've read the discussion and noticed the two related use cases: suppressing repetitive notifications from periodic mo.ui.refresh computations, and suppressing successful-run notifications while retaining error notifications.
Before writing code, could you please advise which approach would fit marimo best?
- An opt-in option to suppress notifications for refresh-related runs, preserving the current default behavior, or
- A way to suppress successful-run notifications while keeping error notifications enabled.
I'd prefer to implement the smallest backward-compatible solution that addresses the intended use case, with appropriate regression tests.
Is this contribution still welcome, and would the team be willing to approve a proposed approach? I'm happy to investigate the existing implementation once we agree on the scope.