Not saving plotly graph locally, but saving it to variable

36 views Asked by At

Is there a way to download multiple plotly graphs without saving them locally? They can be downloaded separately, not as zip.

that's what im came up with, but don't want to save them locally, just assign it to variable and send it by dcc.send_file()


candles.write_image("images/figure.png")

indicator_chart.write_image("images/figure1.png")

indicator_chart2.write_image("images/figure2.png")

volume.write_image("images/figure3.png")

shutil.make_archive("images", "zip", "images")

return dcc.send_file("images.zip")
0

There are 0 answers