# Save an offline Python graph in memory

**URL:** <https://community.plotly.com/t/save-an-offline-python-graph-in-memory/6447>\
**Category:** 📊 Plotly Python\
**Created:** [October 23, 2017, 7:41pm UTC](https://community.plotly.com/t/save-an-offline-python-graph-in-memory/6447 "2017-10-23T19:41:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reggraph](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@reggraph](https://community.plotly.com/u/reggraph)\
**Post date:** [October 23, 2017, 7:41pm UTC](https://community.plotly.com/t/save-an-offline-python-graph-in-memory/6447/1 "2017-10-23T19:41:43Z")

</div>

How can I save an offline Python graph as an image (png, jpg, etc.) in memory?

The docs show how to create offline graphs: Using Plotly with Python offline – [https://plot.ly/python/offline/](https://plot.ly/python/offline/)  
…and how to save a graph hosted by Plotly in memory: Saving static images (PNG, PDF, etc) – [https://plot.ly/python/static-image-export/](https://plot.ly/python/static-image-export/)
