# How to save figures by Python?

**URL:** <https://vapor.discourse.group/t/how-to-save-figures-by-python/310>\
**Category:** Uncategorized\
**Created:** [June 23, 2023, 1:38pm UTC](https://vapor.discourse.group/t/how-to-save-figures-by-python/310 "2023-06-23T13:38:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://vapor.discourse.group/u/Ivan)\
**Post date:** [June 23, 2023, 1:38pm UTC](https://vapor.discourse.group/t/how-to-save-figures-by-python/310/1 "2023-06-23T13:38:39Z")

</div>

Hi all,

How do I save the figure I generated by the Python API? The provided examples save the session to `vs3` format by using `ses.Save()` function. But how to save the figure in jupyter notebook to `.png` format (some function like plt.savefig)?

Thanks,  
Ivan

---

<div class="post-metadata">

**Author:** ![StasJ](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@StasJ](https://vapor.discourse.group/u/StasJ)\
**Post date:** [June 23, 2023, 5:38pm UTC](https://vapor.discourse.group/t/how-to-save-figures-by-python/310/2 "2023-06-23T17:38:00Z")

</div>

Hi Ivan,

You would use `Session.Render("image.png")`
