This code generate an error message which is:
ValueError: The image request was rejected by the orca conversion utility with the following error: 499: client closed request before generation complete
I have installed Orca
and also pip install -U kaleido
I donβt know why I have this error message and any help will be helpful.
import plotly.graph_objects as go
import numpy as np
import plotly.io as pio
pio.orca.config.timeout = 60 # sets timeout to 60 seconds
np.random.seed(1)
N = 100
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
sz = np.random.rand(N) * 30
fig = go.Figure()
fig.add_trace(go.Scatter(
x=x,
y=y,
mode="markers",
marker=go.scatter.Marker(
size=sz,
color=colors,
opacity=0.6,
colorscale="Viridis"
)
))
fig.show()
fig.write_image("fig1.png")