# Save Plotly graphs in powerpoint and how to add caption in graph

**URL:** <https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361>\
**Category:** 📊 Plotly Python\
**Created:** [September 29, 2019, 10:17am UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361 "2019-09-29T10:17:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddy6](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maddy6](https://community.plotly.com/u/maddy6)\
**Post date:** [September 29, 2019, 10:17am UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/1 "2019-09-29T10:17:53Z")

</div>

I need help in saving plotly graphs in powerpoint .

My code.

```auto
import plotly.graph_objects as go  

fig = go.Figure()       

fig.add_trace(go.Bar(x=["Apple", 'Mango', 'Banana'], y=[4000, 3000, 5000])) 

fig.show()

```

---

<div class="post-metadata">

**Author:** ![Alexboiboi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexboiboi/32/6420_2.png) [@Alexboiboi](https://community.plotly.com/u/Alexboiboi)\
**Post date:** [September 29, 2019, 4:33pm UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/2 "2019-09-29T16:33:26Z")

</div>

Hi @maddy6,

You can export your plot to a png image and paste it into your powerpoint.

Note that the interactivity is lost in this format. If you want to keep it you’ll need to export to a standalone HTML file.

See the Plotly docs at:

> **[Static Image Export](https://plot.ly/python/static-image-export/)**
>
> Plotly allows you to save static images of your plots. Save the image to your local computer, or embed it inside your Jupyter notebooks as a static image.

Alex-

---

<div class="post-metadata">

**Author:** ![maddy6](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maddy6](https://community.plotly.com/u/maddy6)\
**Post date:** [September 30, 2019, 1:15pm UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/3 "2019-09-30T13:15:13Z")

</div>

@Alexboiboi I want to directly save the plots to powerpoint.

---

<div class="post-metadata">

**Author:** ![Alexboiboi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexboiboi/32/6420_2.png) [@Alexboiboi](https://community.plotly.com/u/Alexboiboi)\
**Post date:** [September 30, 2019, 3:39pm UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/4 "2019-09-30T15:39:34Z")

</div>

@maddy6 If I understand you correctly you want to generate a powerpoint file with plots in it? If you want to do that I guess you could use the satic png export from plotly and then embed it using the python-pptx package ([https://python-pptx.readthedocs.io/en/latest/](https://python-pptx.readthedocs.io/en/latest/))

Alex-

---

<div class="post-metadata">

**Author:** ![maddy6](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maddy6](https://community.plotly.com/u/maddy6)\
**Post date:** [September 30, 2019, 8:14pm UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/5 "2019-09-30T20:14:32Z")

</div>

@Alexboiboi I’m new to plotly. Can you help me with one plot embed in powerpoint.  
you can use any simple example.

---

<div class="post-metadata">

**Author:** ![jacobq](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jacobq/32/2663_2.png) [@jacobq](https://community.plotly.com/u/jacobq)\
**Post date:** [October 4, 2019, 10:38am UTC](https://community.plotly.com/t/save-plotly-graphs-in-powerpoint-and-how-to-add-caption-in-graph/29361/6 "2019-10-04T10:38:08Z")

</div>

@maddy6, If I understand correctly, you would like to include one or more interactive charts powered by Plotly using the Python API into a Microsoft PowerPoint presentation. I’m afraid this is not going to be an easy task since PowerPoint does not natively allow users to insert and execute Python code. However, you might be able to do something similar by using [Plotly.js (JavaScript API)](https://plot.ly/javascript/) to create a web page that includes just the interactive chart and then embed or link that web page in your presentation (some [instructions here](https://www.howtogeek.com/howto/25946/how-to-add-live-web-pages-to-a-powerpoint-presentation/)).
