Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to save plotly plots using to_image or write_image [duplicate]

fig.write_image("images/fig1.png",format='png',engine='kaleido')

This makes my VSCode go bananas, the terminal hangs and the program stops then and there. Everything works fine if I remove just that line.

I want to save the plots as pngs, but it is not working. I have kaleido installed.

like image 708
Shrom Avatar asked Sep 10 '25 20:09

Shrom


1 Answers

Try this version of kaleido.

pip install kaleido==0.1.0post1

It works for me

like image 180
Gillian Grayson Avatar answered Sep 13 '25 09:09

Gillian Grayson