Save plot to html respecting its state e.g. zoom


I am implementing a panel application in which I want to be able to download the html version of the plots. For now I am using"filename.html", embed=True)

The problem is I would like saved file to remember exact state of the plots including zoomed area. What is happening now is that the plot in html resets to the initial zoom state.
Is what I want achievable?