# Embed Plotly Charts into HTML (Flask)

**URL:** <https://community.plotly.com/t/embed-plotly-charts-into-html-flask/41243>\
**Category:** 📊 Plotly Python\
**Created:** [June 18, 2020, 12:27pm UTC](https://community.plotly.com/t/embed-plotly-charts-into-html-flask/41243 "2020-06-18T12:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![etjkai](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@etjkai](https://community.plotly.com/u/etjkai)\
**Post date:** [June 18, 2020, 12:27pm UTC](https://community.plotly.com/t/embed-plotly-charts-into-html-flask/41243/1 "2020-06-18T12:27:40Z")

</div>

I’ve managed to get Plotly working as intended. However, I’m only able to export the Plotly charts as an entire HTML file.

How could I incorporate the charts I have made in another website, say Flask for example?

---

<div class="post-metadata">

**Author:** ![etjkai](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@etjkai](https://community.plotly.com/u/etjkai)\
**Post date:** [June 18, 2020, 1:14pm UTC](https://community.plotly.com/t/embed-plotly-charts-into-html-flask/41243/2 "2020-06-18T13:14:41Z")

</div>

Answer is right here!

> <https://github.com/plotly/plotly.py/pull/1474>

Convert the graph object into a HTML by using the to\_html method, and then incorporate the div HTML code!

Hope this helps someone.
