question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Directly save image (without opening in browser)

See original GitHub issue

Referencing: #596 and #564 For saving an image you have first open it in the browser, for example in jupyter: plotly.offline.plot(fig, filename=filename, image='svg') opens a new tab and download immediately, when adding auto_open=False: plotly.offline.plot(fig, filename=filename, image='svg', auto_open=False) then it will not open a new tab, but it will not download the image as well. The jupyter command was only an example, of course this functionality would be more useful in text only scripts (python, javascript, R).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:38 (16 by maintainers)

github_iconTop GitHub Comments

25reactions
cldouglcommented, Sep 5, 2018

~As previously mentioned in the issues you’ve referenced this feature is not possible at this time and we do not have a plan to add it in the immediate future. You can always submit feature requests here: https://support.plot.ly/libraries/python~

This is now supported 🎉 https://medium.com/@plotlygraphs/plotly-py-end-of-summer-updates-5422c98b9058

6reactions
jackparmercommented, Jan 8, 2018

Happy holidays @jwhendy @bluprince13 @geniusupgrader !

Just wanted to let you know that Plotly is aware of this issue.

We’re currently testing a new image server on plotly cloud against more than 5 million user generated charts. If this goes well, we plan to open-source and package this server for easy, cross-platform use by Python users. Timeline is hopefully late February for a release.

since this is still open, could we do a quick thought experiment? Let’s say the plotly team did take this on as a feature request… could someone sketch out the potential implementation?

TLDR; We’re using Electron for the new image server. The previous image server on Plotly Cloud and Plotly On-Premises used Batik for vector images (PDF, SVG, EPS) and node webkit for raster images (PNG, JPEG). The Electron rewrite has simplified things to an extent where we feel comfortable maintaining this as a pip installable library for Python users without (hopefully) a nightmare of issues related to complexities you’ve already mentioned - cross-platform support, font families, sprawling dependencies, etc.

Stay tuned. This is taking a while, but we are taking the time to do it right. I’ll try to update this issue as things get closer!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Save Images on a Webpage When Right Click Is ...
Saving images from websites is a pretty easy process. Generally, all it takes is to right-click on an image and save it to...
Read more >
How to save image to hard disk without opening in new window
How to save image to hard disk without opening in new window · Save what where? · by clicking the link.it should be...
Read more >
Can I save an image without opening it in the browser?
To save an image to your device without opening it in the browser, you can access the comments screen for the post and...
Read more >
Download Protected Images from Browser when Right-Click ...
How to download protected images from browser when you can't right-click and “ Save Image as…” or the ability to download is disabled...
Read more >
Saving an image in Chrome in one step - Super User
All the browsers I use beside from Chrome have a right-click option called Save Image to Downloads . The user right-clicks, selects "Save...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found