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