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

How to export static images in formats other than "png" in the offline mode? #352

Closed
xiaoweiz opened this issue Nov 18, 2015 · 4 comments
Closed

Comments

@xiaoweiz
Copy link

Right now, the interactive figure in IPython Notebook provides the option of exporting to the "png" format, e.g.
screen shot 2015-11-18 at 6 57 52 pm

I'd like to save it as other formats such as "pdf", "eps", etc. Now what I do is to use the option save and edit plot in cloud, log in with my account, and then export as other formats.

Is there any other way to do it "offline" without going to cloud?

@chriddyp
Copy link
Member

Hi @xiaoweiz - there isn't right now. Programatic and PDF/EPS image generation for web-based charts requires some pretty sophisticated infrastructure that we're only able to provide through the server/cloud service environment right now.
The image generation API is accessed through

import plotly.plotly as py
py.image.save_as(fig)

The image servers don't store any data and the data and image are encrypted through SSL.

@xiaoweiz
Copy link
Author

I c. Thanks.

@elainethale
Copy link

@chirddyp The camara icon does not work for me in Firefox. I saw a support conversation suggesting it may work in Chrome. Hopefully a fully functioning programmatic option for offline mode will be implemented sometime (soon? fingers crossed). In the meantime, would it be possible to get the offline -> png feature working in multiple browsers? I am using Jupyter notebooks with python.

@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