Solved in the newest versions of kaleido and plotly (kaleido 1.0.0
and plotly 6.2.0
), but figure sizing is broken now.
If you were using smth along the lines of
fig = go.Figure(width = 1920, height = 1080)
fig.write_image('fig.png')
Now you'll have to transition to
fig = go.Figure(width = 1920, height = 1080)
fig.write_image('fig.png', width = figure.layout.width, height = fig.layout.height)