Skip to content

Feature request: offline image export to path #856

Closed
@bluprince13

Description

@bluprince13

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions