plotly.py
plotly.py copied to clipboard
fig.write_image not working
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')
for me as well :-(((((((
you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1
you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1
it works for me, thanks
Also worked for me.
Kaleido looks broken on windows because I have no issue saving plots with a Linux container.
you need to downgrade kaleido version: pip install --force-reinstall kaleido==0.1.0post1
it works for me, thanks