Skip to content

Commit 66cab10

Browse files
committed
Don't skip copying during serialization
1 parent 1708703 commit 66cab10

File tree

1 file changed

+1
-4
lines changed
  • packages/python/plotly/plotly/io

1 file changed

+1
-4
lines changed

packages/python/plotly/plotly/io/_json.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def to_json(fig, validate=True, pretty=False, remove_uids=True, engine=None):
202202
"""
203203
# Validate figure
204204
# ---------------
205-
fig_dict = validate_coerce_fig_to_dict(fig, validate, clone=False)
205+
fig_dict = validate_coerce_fig_to_dict(fig, validate)
206206

207207
# Remove trace uid
208208
# ----------------
@@ -455,9 +455,6 @@ def clean_to_json_compatible(obj, **kwargs):
455455

456456
# Plotly
457457
try:
458-
obj = obj.to_plotly_json(clone=False)
459-
except (TypeError, NameError, ValueError):
460-
# Try without clone for backward compatibility
461458
obj = obj.to_plotly_json()
462459
except AttributeError:
463460
pass

0 commit comments

Comments
 (0)