Proper way to save a plot to HTML?

Here is the canonical documentation page for this feature: https://plotly.com/python/interactive-html-export/