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.

Feature request: offline image export to path

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jonmmeasecommented, Sep 5, 2018

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

1reaction
bluprince13commented, Dec 26, 2017

Feature request submitted!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Directly save image (without opening in browser) #880 - GitHub
For saving an image you have first open it in the browser, ... Feature request: offline image export to path #856.
Read more >
How To: Batch export attachments from a feature class in ...
On the General tab, type the Name and Label for the script tool. For example, type ExportAttachments as the Name, and Export Attachments...
Read more >
Manage OS images - Configuration Manager - Microsoft Learn
After Configuration Manager commits changes to the image and unmounts it from the file system, it exports the image to another file. This...
Read more >
Work with offline data | ArcGIS Runtime API for .NET
You can take image tiled data offline by exporting and downloading the image tiled data as a tile package ( .tpk or .tpkx...
Read more >
Batch image annotation offline | Cloud Vision API
Output from an offline batch request is written to a JSON file created in the specified Cloud Storage bucket. Note: All Vision API...
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