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/except on purpose. Every runtime shape this can meet – including a kernel with no usable connection file – is absorbed by resolve_scope_id() and resolves to the process scope, so anything still raising here is a genuine bug and must not be hidden behind a None return.

Returns:

The scope’s bus, or None.

Return type:

NotificationBus | None