Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
holoviz
GitHub Repository: holoviz/panel
Path: blob/main/doc/how_to/state/index.md
2012 views

Access Session State

Whenever a Panel application is being served the panel.state object will provide a variety of information about the current user session. This includes the HTTP request that initiated the session, information about the browser and the current URL, and more. These How-to pages provide solutions for common tasks for managing the session state.

::::{grid} 1 2 2 3 :gutter: 1 1 1 2

:::{grid-item-card} {octicon}link;2.5em;sd-mr-1 sd-animate-grow50 Access and Manipulate the URL 🔗 url :link-type: doc

How to access and manipulate the URL. :::

:::{grid-item-card} {octicon}globe;2.5em;sd-mr-1 sd-animate-grow50 Access HTTP Request State 🔗 request :link-type: doc

How to access information about the HTTP request associated with a session. :::

:::{grid-item-card} {octicon}no-entry;2.5em;sd-mr-1 sd-animate-grow50 Access the Busyness State 🔗 busy :link-type: doc

How to access the busy state. ::: ::::

Examples

::::{grid} 1 2 2 3 :gutter: 1 1 1 2

:::{grid-item-card} Sync Widgets and URL :img-top: https://assets.holoviz.org/panel/how_to/state/sync_url.png 🔗 examples/sync_url :link-type: doc

Sync the widget state with the URL to allow deep linking your application state using pn.state.location. :::

::::

:titlesonly: :hidden: :maxdepth: 2 url request busy