pysepal.solara.notifications.globals.notify#

pysepal.solara.notifications.globals.notify(message, type_='info')[source]#

Publish a toast notification from anywhere (non-component code).

If no NotificationProvider is mounted, logs a warning and drops the message.

Parameters:
  • message (str) – The notification text.

  • type – One of “success”, “info”, “warning”, “error”.

  • type_ (str)

Return type:

None