user3050590
user3050590

Reputation: 1716

save python visualization panel as html

I am working on Panel along with Holoviews. I would like to save it to the HTML file so that I can call it from my website. Following this, I found that the panel is able to save the file in HTML format. However, it is static and does not reflect changes based on the other components.

panel.save()

I am not able to save it even to JSON as described in the same link through this command

panel.embed().save_path(default='./holoviews-examples')

Any solution.

Upvotes: 3

Views: 3087

Answers (1)

philippjfr
philippjfr

Reputation: 4080

I think you're misinterpreting the docs a little bit, save_path is not a method, it's an argument to the embed and save methods, e.g.:

panel.save('test.html', embed=True)

If you then want to export to JSON files you can also enable that with:

panel.save('test.html', embed=True, embed_json=True)

and optionally provide a save_path and load_path.

Upvotes: 4

Related Questions