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

Can't export static image #4955

Open
DavidHJong opened this issue Jan 6, 2025 · 1 comment
Open

Can't export static image #4955

DavidHJong opened this issue Jan 6, 2025 · 1 comment
Labels
bug something broken P2 considered for next cycle

Comments

@DavidHJong
Copy link

DavidHJong commented Jan 6, 2025

This following code runs indefinitely on the final line.

import plotly.express as px

# Sample data
df = px.data.iris()

# Create a scatter plot
fig = px.scatter(df, x='sepal_width', y='sepal_length', color='species',
                 title='Iris Dataset: Sepal Width vs. Sepal Length')

# Export the plot as a PNG image
fig.write_image("plot.png")

I run it in a jupyter notebook in vscode.

vscode: 1.96.2

  • python extension: 2024.22.1
  • jupyter notebook extension: 2024.11.0

conda environment packages:

  • python: 3.12.2
  • plotly: 5.24.1
  • kaleido: 0.2.1
@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Jan 7, 2025
@GHSLAB
Copy link

GHSLAB commented Jan 8, 2025

I also have this issue recently. it seems to be a compatibility problem with the Kaleido 0.2.1 version.
Please try Kaleido==0.1.0 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

3 participants