Self.plot_1.to_image?

can someone tell me how to use the to_image function for self.plots and also how to use the HTMLtemplate option in to_image ???

when you see how to use - what are you trying to do?

The simplest thing you can do is say download(self.plot.to_image())

Here’s some extra hints about hot to use it from the anvil api docs
https://anvil.works/docs/api/anvil#Plot_attributes

And the possible options from the plotly docs
https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html?highlight=to_image#plotly.graph_objects.Figure.to_image

looking at your other question you can add the options ...to_image({'format':'svg'})` (it looks like pdf doesn’t work as a format)

But then if you need a pdf you could use anvil’s pdf rednerer to do that…

I’m not sure exactly what you mean by HTMLtemplate option.