Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 694b036

Browse files
Merge pull request #5308 from plotly/update-doc-string
Add note on version compatibility
2 parents 480a1af + 9f4b774 commit 694b036

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)

AltStyle によって変換されたページ (->オリジナル) /