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

bus

Kernel-scoped notification bus: state management and registry.

globals

Global escape-hatch functions: notify() and track_task().

hook

Solara hook: use_notifications().

notification_ui

Vue-backed notification UI: toasts and task progress pill.

notifier

Publisher API: Notifier (toast methods) and TaskTracker (context manager).

provider

NotificationProvider: root component that creates the kernel-scoped bus.

state

Notification state model: dataclasses, enums, and defaults.