pysepal.solara.notifications#
Centralized notification system for pysepal Solara applications.
Usage:
from pysepal.solara.notifications import (
NotificationProvider, # Place once at app root
use_notifications, # Hook for Solara components
notify, # Global function for non-component code
track_task, # Global task tracking for non-component code
)
Modules
Kernel-scoped notification bus: state management and registry. |
|
Global escape-hatch functions: notify() and track_task(). |
|
Solara hook: use_notifications(). |
|
Vue-backed notification UI: toasts and task progress pill. |
|
Publisher API: Notifier (toast methods) and TaskTracker (context manager). |
|
NotificationProvider: root component that creates the kernel-scoped bus. |
|
Notification state model: dataclasses, enums, and defaults. |