pysepal.solara.notifications.bus.get_current_bus#
- pysepal.solara.notifications.bus.get_current_bus()[source]#
Return the current scope’s NotificationBus, or None when none exists.
No
try/excepton purpose. Every runtime shape this can meet – including a kernel with no usable connection file – is absorbed byresolve_scope_id()and resolves to the process scope, so anything still raising here is a genuine bug and must not be hidden behind aNonereturn.- Returns:
The scope’s bus, or None.
- Return type:
NotificationBus | None