Skip to content

Commit 5ec780a

Browse files
committed
remove extra orjson load
1 parent 564d2d8 commit 5ec780a

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

Diff for: packages/python/plotly/plotly/io/_json.py

-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
from _plotly_utils.optional_imports import get_module
99
from _plotly_utils.basevalidators import ImageUriValidator
1010

11-
# Ensure `orjson` module is loaded immediately if present (to avoid error on hot reload)
12-
get_module("orjson", should_load=True)
13-
1411

1512
# Orca configuration class
1613
# ------------------------
@@ -108,7 +105,6 @@ def to_json_plotly(plotly_object, pretty=False, engine=None):
108105
--------
109106
to_json : Convert a plotly Figure to JSON with validation
110107
"""
111-
112108
orjson = get_module("orjson", should_load=True)
113109

114110
# Determine json engine

0 commit comments

Comments
 (0)