-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed as not planned
Labels
Description
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