Skip to content

plot function (from plotly.offline) does not support (open) file handles as target #1419

Closed
@s-m-e

Description

@s-m-e

Currently, the filename parameter of plot only supports filenames (temp-plot.html is default). It does not support open file handles.

The latter is very useful when writing e.g. command line tools with click (or similar tools), which handles opening files specified by a user on the command line transparently and only provides a file handle to the script.

from plotly.offline import plot
help(plot)

plot(figure_or_data, show_link=False, link_text='Export to plot.ly', validate=True, output_type='file', include_plotlyjs
=True, filename='temp-plot.html', auto_open=True, image=None, image_filename='plot_image', image_width=800, image_height
=600, config=None, include_mathjax=False)
[...]

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