Skip to content

Commit 9f4b774

Browse files
committed
Update _json.py
1 parent 6056b20 commit 9f4b774

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plotly/io/_json.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ def to_json(fig, validate=True, pretty=False, remove_uids=True, engine=None):
225225
def write_json(fig, file, validate=True, pretty=False, remove_uids=True, engine=None):
226226
"""
227227
Convert a figure to JSON and write it to a file or writeable
228-
object
228+
object.
229+
230+
Note: A figure converted to JSON with one version of Plotly.py may not be compatible with another version.
229231
230232
Parameters
231233
----------
@@ -414,7 +416,9 @@ def from_json(value, output_type="Figure", skip_invalid=False, engine=None):
414416
def read_json(file, output_type="Figure", skip_invalid=False, engine=None):
415417
"""
416418
Construct a figure from the JSON contents of a local file or readable
417-
Python object
419+
Python object.
420+
421+
Note: A figure converted to JSON with one version of Plotly.py may not be compatible with another version.
418422
419423
Parameters
420424
----------

0 commit comments

Comments
 (0)