# Can't save plotly as .png with kaleido v1

**URL:** <https://community.plotly.com/t/cant-save-plotly-as-png-with-kaleido-v1/93263>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [July 21, 2025, 3:31pm UTC](https://community.plotly.com/t/cant-save-plotly-as-png-with-kaleido-v1/93263 "2025-07-21T15:31:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriele\_Jobim](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/gabriele_jobim/32/32247_2.png) [@Gabriele\_Jobim](https://community.plotly.com/u/Gabriele_Jobim)\
**Post date:** [July 21, 2025, 3:31pm UTC](https://community.plotly.com/t/cant-save-plotly-as-png-with-kaleido-v1/93263/1 "2025-07-21T15:31:21Z")

</div>

Hi. I have two Shiny apps (RStudio) which were working fine until last week. On both I use kaleido from plotly to save an image as a .png file to attach it to a pdf file which can be downloaded, with the save\_image() function.

This is the error when the function save\_image() is called:

> Warning: Error in py\_get\_attr: AttributeError: module ‘kaleido’ has no attribute ‘scopes’  
> Run reticulate::py\_last\_error() for details.

I saw kaleido is now on version v1, which no longer has the scopes attribute (The release message says this: “If your code uses Kaleido directly: `kaleido.scopes.plotly` has been removed in v1. Kaleido v1 provides `write_fig` and `write_fig_sync` for exporting Plotly figures.”). However, just replacing ‘save\_image’ with these codes is not working for me.

I would be beyond grateful if someone could help me! 🙂

---

<div class="post-metadata">

**Author:** ![gvwilson](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gvwilson](https://community.plotly.com/u/gvwilson)\
**Post date:** [July 22, 2025, 12:50pm UTC](https://community.plotly.com/t/cant-save-plotly-as-png-with-kaleido-v1/93263/2 "2025-07-22T12:50:03Z")

</div>

Hi - Plotly is currently focused on improving support for image generation from Python applications, so support for Shiny isn’t currently in our roadmap. If someone from the community would like to implement an upgrade, we’d be happy to help review. Thanks - Greg (Plotly Libraries team manager, greg.wilson@plot.ly)
