From 9f4b774e783c9eea70fcc9631a18d107ea3fe845 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 1 Aug 2025 13:46:44 -0400 Subject: [PATCH] Update _json.py --- plotly/io/_json.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plotly/io/_json.py b/plotly/io/_json.py index e4324d1158..0e741711f4 100644 --- a/plotly/io/_json.py +++ b/plotly/io/_json.py @@ -225,7 +225,9 @@ def to_json(fig, validate=True, pretty=False, remove_uids=True, engine=None): def write_json(fig, file, validate=True, pretty=False, remove_uids=True, engine=None): """ Convert a figure to JSON and write it to a file or writeable - object + object. + + Note: A figure converted to JSON with one version of Plotly.py may not be compatible with another version. Parameters ---------- @@ -414,7 +416,9 @@ def from_json(value, output_type="Figure", skip_invalid=False, engine=None): def read_json(file, output_type="Figure", skip_invalid=False, engine=None): """ Construct a figure from the JSON contents of a local file or readable - Python object + Python object. + + Note: A figure converted to JSON with one version of Plotly.py may not be compatible with another version. Parameters ----------