Feature request: offline image export to path
See original GitHub issueplotly.plotly has an image generation API that allows you to save images in different file formats.
import plotly.plotly as py
py.image.save_as(fig)
plotly.offline allows you to export images too…
import plotly.offline as py
py.plot(fig, image=file_type, image_filename=file_name)
However, this results in a HTML file that’s opened in a new tab of the browser. The image is saved to the ‘Downloads’ folder, and it’s not possible to specify the path at which the image should be saved.
This limits the use of plotly for users that do not have access to the server, as there is no way to programatically generate lots of images. Employees at most companies would not be able to use online mode for saving images, because of Export Control/IP issues associated with transmitting data outside of the company.
Is there a reason that the save_as()
methods can’t be made available for plotly.offline?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top GitHub Comments
Update: Offline programmatic static image export support has been released in 3.2.0: See https://medium.com/@plotlygraphs/plotly-py-end-of-summer-updates-5422c98b9058
Feature request submitted!