Selecting widget states to embed before exporting to html

So I have a panel app p and I would like to export it to html together with a selection of widget states.

p.embed()

is a good start but how do I select which states (i.e. widget values) to export exactly? Thanks!

There is currently no such mechanism but we could certainly provide one so I’d suggest you’d open an issue for now.

Thanks & done!

1 Like

related to this question: I am using panel inside the Jupyter Notebook and when I export to html with nbconvert the current state of the widgets is ignored even if I select the “save widget state” option. Is there a workaround for this?