pysepal.solara.runtime_context.get_current_runtime_id#
- pysepal.solara.runtime_context.get_current_runtime_id()[source]#
Return a stable id for the current app runtime.
Thin adapter over Solara’s own
solara.scope.get_kernel_idresolver: it returns the Solara-server virtual-kernel id and otherwise falls back to the active IPython/ipykernel – coveringsolara run, Voila (including preheated kernels, which start beforeSERVER_SOFTWAREis set), and plain Jupyter Notebook/Lab. We deliberately do not reimplement that resolution; we only translate its failure modes – no kernel at all, or an ipykernel whose connection filename it cannot parse – into a typed error the notification/session registries already handle by disabling scoped state.- Return type:
str