Skip to content

Can't export static image #4955

@DavidHJong

Description

@DavidHJong

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

Metadata

Metadata

Assignees

Labels

P2considered for next cyclebugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions