Show Sidebar Hide Sidebar

Embedding Graphs in HTML

How to embed plotly's matplotlib graphs with an iframe in HTML.

Plotly graphs can be embedded in any HTML page. This includes IPython notebooks, Wordpress sites, dashboards, blogs, and more.


For more on embedding Plotly graphs in HTML documents, see our tutorial.


From Python, you can generate the HTML code to embed Plotly graphs with the plotly.tools.get_embed function.



import plotly.tools as tls

tls.get_embed('https://plot.ly/~chris/1638')

Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.