HTML export

A Plotly figure can be exported to a standalone HTML file with write_html, which preserves interactivity and can be shared without a server. Export to a static image (PNG, SVG, PDF) goes through write_image, which requires an additional rendering engine. The HTML can embed the JavaScript library or load it from a CDN.

Example

fig.write_html('rapport.html')

Related concepts

The whole glossary