When I use pn.state.location.sync
with a Template
, the URL linked to the title includes the synced parameters. Is it possible to remove them from the URL?
In the following example, I’d like to have a link as http://localhost:5006/test_param_template
rather than, e.g., http://localhost:5006/test_param_template?int=1
.
import panel as pn
import param
pn.extension()
class Settings(param.Parameterized):
integer = param.Integer(default=10, bounds=(0, 100))
settings = Settings()
pn.state.location.sync(settings, {"integer": "int"})
int_param = pn.Param(settings)
template = pn.template.MaterialTemplate(
title="Panel Material Template Example", main=[int_param]
)
template.servable()
- Panel 1.6.0
- Param 2.2.0
- Python 3.11.8
- macOS 15.3