How can I save the plotly graphs as image(png,jpg etc.) offline in python?

I want to save plotly offline graphs as static images(jpg,png…) in python. Could you help me about it? Thanks in advance.

I tried but It doesn’t generate the “test” file.

The codes :
plotly.offline.plot({“data”: dataPanda,
“layout”: layout1},
image=‘jpeg’, image_filename=“test”, auto_open=False,output_type=‘file’

Hi @hakseung,

Here is the recommended approach: https://plot.ly/python/static-image-export/. Hope that helps,
-Jon