marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Disable execution notifications

Open maurosilber opened this issue 1 year ago • 7 comments

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

maurosilber avatar Feb 02 '25 18:02 maurosilber

Hey @maurosilber, which browser are you using? Browsers have a setting to turn this off by site, would that be ok?

mscolnick avatar Feb 02 '25 18:02 mscolnick

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?).

maurosilber avatar Feb 02 '25 21:02 maurosilber

Yea thats a valid request. We can look into adding it to the configuration that gets picked up by pyproject.toml

mscolnick avatar Feb 02 '25 23:02 mscolnick

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.

lorenze3 avatar Jun 06 '25 17:06 lorenze3

+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).

lukesdm avatar Jan 31 '26 06:01 lukesdm

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.

iforapsy avatar Sep 02 '26 03:09 iforapsy

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?

  1. An opt-in option to suppress notifications for refresh-related runs, preserving the current default behavior, or
  2. 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.

TheNightCoder21 avatar Oct 28 '26 05:10 TheNightCoder21