"write_image" for exporting fig takes forever and does not create a static image in jupyter notebook

If you’re just trying to export the fig why don’t you just do it as an HTML file? Exporting as an HTML it will keep the interactivity functionality intact and then if a user requires a PNG from there they can use the plotly toolbar to export a PNG.

To export it as a HTML use

fig.write_html('example_fig.html') 

I do see you’re initially talking about PNG exporting here. I do have an idea I can try out if you really are wanting a PNG. I’m currently replying from my phone so I can’t test right now.

Let me know if a the HTML file works or if you do really want a PNG. I’ll wait to hear back then will try out the idea of you do want it.

Thanks
Payton

1 Like