Skip to content

Impossible to export a plotly graph with Kaleido #322

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

Open
Jacques2101 opened this issue May 5, 2025 · 0 comments
Open

Impossible to export a plotly graph with Kaleido #322

Jacques2101 opened this issue May 5, 2025 · 0 comments

Comments

@Jacques2101
Copy link

Hi,
i am trying to export a plotly graph with kaleido as an engine...But after more than an hour on this simple code, it still runs without creating my graph.

I have installed 0.2.1 Kaleido's version and i am using plotly 6.0.1 and python 3.13.

Any idea ?

import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, 
                 x="sepal_width", 
                 y="sepal_length",
                 color="species",
                 title="Exemple de graphique Plotly avec export Kaleido")

# Export de l'image au format PNG avec Kaleido
fig.write_image("graphique_test.png", width=800, height=500, engine="kaleido")

print("Graphique exporté avec succès sous 'graphique_test.png'")
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

1 participant