Embedding Graphs in HTML in Python
How to embed plotly graphs with an iframe in HTML.
Plotly Studio: Transform any dataset into an interactive data application in minutes with AI. Sign up for early access now.
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.
In [1]:
import chart_studio.tools as tls
tls.get_embed('https://plotly.com/~chris/1638')
Out[1]:
