pysepal.solara.ui_state#

Scope-keyed UI state for pysepal Solara and Voila apps.

UI preferences (theme, locale) are per-connection state with no authentication in their resolution path: a Voila page, a plain notebook or a script must hold a theme without a SEPAL session existing. Keyed by pysepal.solara.runtime_context.current_scope_id(), which falls back to the process scope, so every getter built on this is total.

Functions

clear_scoped_state

Drop every UI state held for a scope.

get_scoped_state

Return the name state for a scope, creating it on miss.

has_scoped_state

Whether name already exists for a scope, without creating it.