Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 346
user3050590 Avatar asked Mar 15 '26 09:03

user3050590


1 Answers

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.

like image 96
philippjfr Avatar answered Mar 16 '26 22:03

philippjfr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!