I want to get the static image using write_image method, but the program hangs. I have tried severvel method:
1) pio.kaleido.scope.mathjax = None
2) use kaleido 0.1.0 , 0.2.0, 0.0.3 version
but all of them don’t help.
my setup are:
os:Linux
plotly: 5.10.0
kaleido: 0.2.1
the same code in windows runs normally.
test code:
import plotly.express as px
import numpy as np
img_rgb = np.array([[[255, 0, 0], [0, 255, 0], [0, 0, 255]],], dtype=np.uint8)
fig = px.imshow(img_rgb)
fig.write_image("fig.png", engine="kaleido")
are there someone know why?