Closed
Description
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
Labels
No labels