I’m trying to use pio.write_image to export an image of a figure. When I do this on my personal computer using the following it works:
pio.write_image(fig, ‘images/fig’ + str(fig_num) + ‘.png’, engine=“kaleido”)
But when I try it on my work computer I get the following error:
write_image() got an unexpected keyword argument ‘engine’
On both my work and personal computers I’m using Plotly 4.6. Does anyone know what’s wrong? I can’t use orca because I get the following error:
The plotly.io.orca.config.use_xvfb property is set to True, but the
xvfb-run executable could not be found on the system path.
Yet xvfb is installed. On my personal computer I am able to specify an engine but for some reason I can’t pass that to write_image at work.