Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fig.write_image doesn't stop execution #120

Closed
primerov opened this issue Nov 24, 2021 · 6 comments
Closed

fig.write_image doesn't stop execution #120

primerov opened this issue Nov 24, 2021 · 6 comments

Comments

@primerov
Copy link

Hello,

I'm trying to export a static plotly image into png file, but it's not producing any file and jupyter cell is running indefinitely. If I'm running this code without export it runs just fine and produces the image.

path = r'L:\EXC25 Build Binder\RGB Engine\EXC250027\EXC250027-00.0012\LI_curves' # use your path os.chdir(path) data = pd.read_csv(r'L:\EXC25 Build Binder\RGB Engine\EXC250027\EXC250027-00.0012\LI_curves\blue_ID141C_mod_complete.txt', index_col=None, delimiter='\t', header=None) fig = go.Figure() fig.add_trace(go.Scatter(x=data.iloc[:,0], y=data.iloc[:,1], mode='lines+markers', name='data', line=dict(color='blue', width=4))) fig.show() fig.write_image('LI_curves_comp.png', engine="kaleido")

I installed kaleido using
pip install -U kelido

python version is 3.10.0

I'm running the code in VSC v.1.62.1.

Could someone help me to debug what is wrong with my settings?

@AjayKrishna76
Copy link

Same issue , tried many things. I am using WSL2 (as suggested in #87) but didn't work. Can anyone help

@jakobbrown
Copy link

Same issue on Windows 10, plotly 5.4.0, Kaleido 0.2.1. Running in Jupyter via Anaconda. Disabling mathjax doesn't help. Any assistance would be greatly appreciated.

@ibaris
Copy link

ibaris commented May 14, 2022

I have two laptop with the exact same environment. With one it works and with the other it doesn't. And since Nov 24, 2021 there is no solution. Do you at least have an alternative so I don't have to use kaleido anymore?

@jakobbrown
Copy link

@ibaris i have been using orca instead, which works for me, despite no longer being recommended by plotly anymore i don't think.

https://plotly.com/python/orca-management/

@xeladsn
Copy link

xeladsn commented Sep 2, 2022

same issue here ! Python 3.9 using conda environment, Windows 11, plotly 5.10.0 and kaileido 0.2.1

@gvwilson
Copy link
Collaborator

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants