Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: offline image export to path #856

Closed
bluprince13 opened this issue Oct 13, 2017 · 5 comments
Closed

Feature request: offline image export to path #856

bluprince13 opened this issue Oct 13, 2017 · 5 comments

Comments

@bluprince13
Copy link

bluprince13 commented Oct 13, 2017

plotly.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?

@ghtmtt
Copy link

ghtmtt commented Nov 27, 2017

I think is related to this question in the community forum https://community.plot.ly/t/save-image-as-png-or-svg/7027

@jwhendy
Copy link
Contributor

jwhendy commented Dec 26, 2017

There's a ton of existing issues around this. Please take a look at those, as the response is always the same: closing with the statement that "this is not on the feature roadmap."

I would suggest filling out a feature request to get the community voice behind things. Also, I'm making an attempt to rally suggestions on how this could be done at #880 so that the community could take a shot. In other words, maybe the plotly team won't do it, but if they point us in the right direction, some of us could contribute this feature.

@bluprince13
Copy link
Author

Feature request submitted!

@bluprince13
Copy link
Author

Closing this as the issue is duplicated at #880

@jonmmease
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants