# Write static image

**URL:** <https://community.plotly.com/t/write-static-image/61984>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [March 16, 2022, 12:07pm UTC](https://community.plotly.com/t/write-static-image/61984 "2022-03-16T12:07:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gori10](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gori10](https://community.plotly.com/u/gori10)\
**Post date:** [March 16, 2022, 12:07pm UTC](https://community.plotly.com/t/write-static-image/61984/1 "2022-03-16T12:07:15Z")

</div>

Hi to all,

I am not able to download a geo scatter plot into an image.

My code is :

import pandas as pd  
import matplotlib.pyplot as plt  
from matplotlib.pyplot import figure  
from datetime import timedelta  
import numpy as np  
from matplotlib.ticker import MaxNLocator  
import dataframe\_image as dfi  
import plotly.express as px  
import kaleido  
import [plotly.io](http://plotly.io) as pio  
from IPython.display import Image  
import datetime as dt

df\_loc = pd.read\_csv(’./Excels/Projectes.csv’, delimiter=’,’)  
d\_loc = df\_loc[[‘Name’,‘Assign’,‘Phase Date’, ‘Final Date’, ‘Property’,‘Status’,‘Status2’,‘Location’,‘Budget’]]  
df\_loc = df\_loc[[“Name”,“Location”,“Budget”]]  
fig = px.scatter\_geo(df\_loc, locations=“Location”, color = “Name”, size = “Budget”)  
fig.write\_image(“Images/Location\_automatica.jpeg”)  
#fig.show()

If I unncomment fig.show, the plot shows in a local browser but if I try to “write\_image” the proram does not stop. It seems like it is in a bucle.

Any suggestions ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)\
**Post date:** [March 16, 2022, 1:54pm UTC](https://community.plotly.com/t/write-static-image/61984/2 "2022-03-16T13:54:53Z")

</div>

hi @gori10

Welcome to the community. That’s a good question and I think the solution is here below. Try it out and let us know if it doesn’t work.

> [@Static image export hangs using kaleido](https://community.plotly.com/t/static-image-export-hangs-using-kaleido/61519/4):
>
> @lambdakappatheta Have you seen this [issue](https://github.com/plotly/Kaleido/issues/126)? are you using Windows? Downloading and installing [0.1.0.post1](https://github.com/plotly/Kaleido/releases/tag/v0.1.0.post1) should work. I downloaded this wheel: kaleido-0.1.0.post1-py2.py3-none-win\_amd64.whl And then installed: pip install kaleido-0.1.0.post1-py2.py3-none-win\_amd64.whl

---

<div class="post-metadata">

**Author:** ![gori10](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gori10](https://community.plotly.com/u/gori10)\
**Post date:** [March 16, 2022, 2:17pm UTC](https://community.plotly.com/t/write-static-image/61984/3 "2022-03-16T14:17:07Z")

</div>

Hi!

This solution works perfect! Thank you very much for your fast reply!

Have a nice day!
