Skip to content
masterclass Buddy

Plotly · Function

Output

Export a Plotly figure as interactive HTML. Use write_html for a file and to_html for an HTML string.

Last updated

Syntax

fig.write_html(file, config=None, full_html=True, ...)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • plotly.io.to_html
  • plotly.io.write_html
  • fig.show
  • dcc.Graph

Source: Interactive html export in Python. Checked 2026-11-03.