plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

fig.write_image not working

Open urospetkovic opened this issue 2 years ago • 4 comments

Hi there, i have an issue since last windows update - fig.write_image() stopped working. It just keeps 'running' in notebook or in streamlit while write_html() works just fine. I'm running Python 3.10.4 on Windows 10 pro, Dell Precision 3560. Here's the sample code:

import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() fig.write_html('123.html') fig.write_image('123.png')

urospetkovic avatar May 09 '22 15:05 urospetkovic

for me as well :-(((((((

yuvalsolargik avatar Jul 21 '22 09:07 yuvalsolargik

you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1

yuvalsolargik avatar Jul 21 '22 09:07 yuvalsolargik

you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1

it works for me, thanks

CWJ666 avatar Aug 24 '22 01:08 CWJ666

Also worked for me.

Kaleido looks broken on windows because I have no issue saving plots with a Linux container.

PhilippKhl avatar Sep 19 '22 11:09 PhilippKhl

you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1

it works for me, thanks

Happleasei avatar Oct 07 '23 02:10 Happleasei