Button to download graph as interactive html

I would like to offer the user to download the graph as interactive html with dash (Python).
I thought probaby, the best approach would be a button that takes the current figure and coverts it to html.
Has anybody implemented this before?