File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
packages/python/plotly/plotly Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3328,16 +3328,6 @@ def to_plotly_json(self):
3328
3328
"""
3329
3329
return self .to_dict ()
3330
3330
3331
- def to_json_str (self ):
3332
- """
3333
- Convert to a JSON string representation.
3334
-
3335
- Returns
3336
- -------
3337
- str
3338
- """
3339
- return json .dumps (self .to_plotly_json (), cls = PlotlyJSONEncoder )
3340
-
3341
3331
@staticmethod
3342
3332
def _to_ordered_dict (d , skip_uid = False ):
3343
3333
"""
@@ -5611,13 +5601,15 @@ def to_plotly_json(self):
5611
5601
"""
5612
5602
Return plotly JSON representation of object as a Python dict
5613
5603
5604
+ Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util when encoding.
5605
+
5614
5606
Returns
5615
5607
-------
5616
5608
dict
5617
5609
"""
5618
5610
return deepcopy (self ._props if self ._props is not None else {})
5619
5611
5620
- def to_json_str (self ):
5612
+ def to_json (self ):
5621
5613
"""
5622
5614
Convert to a JSON string representation.
5623
5615
You can’t perform that action at this time.
0 commit comments