plotly.io
.read_json¶
-
plotly.io.
read_json
(file, output_type='Figure', skip_invalid=False)¶ Construct a figure from the JSON contents of a local file or readable Python object
- Parameters
file (str or readable) – A string containing the path to a local file or a read-able Python object (e.g. an open file descriptor)
output_type (type or str (default 'Figure')) – The output figure type or type name. One of: graph_objects.Figure, ‘Figure’, graph_objects.FigureWidget, ‘FigureWidget’
skip_invalid (bool (default False)) – False if invalid figure properties should result in an exception. True if invalid figure properties should be silently ignored.
- Returns
- Return type