pysepal.solara.runtime_context#

Runtime scope identity for pysepal Solara, Voila and notebook state.

A scope id names the runtime that owns a session, a UI state or a notification bus: a Solara-server virtual kernel, a Voila or Jupyter kernel, or the process itself when there is no per-connection runtime at all. One name, one resolver – kernel_id and runtime_id were the same value under two other names.

Module Attributes

PROCESS_SCOPE

Scope id used when no per-connection runtime can be resolved.

Functions

current_scope_id

Return a scope id for the current runtime, always.

resolve_scope_id

Return the current per-connection runtime's scope id.

UnsupportedSolaraRuntimeError

Raised when pysepal cannot resolve a per-connection app runtime.