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):
33283328 """
33293329 return self .to_dict ()
33303330
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-
33413331 @staticmethod
33423332 def _to_ordered_dict (d , skip_uid = False ):
33433333 """
@@ -5611,13 +5601,15 @@ def to_plotly_json(self):
56115601 """
56125602 Return plotly JSON representation of object as a Python dict
56135603
5604+ Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util when encoding.
5605+
56145606 Returns
56155607 -------
56165608 dict
56175609 """
56185610 return deepcopy (self ._props if self ._props is not None else {})
56195611
5620- def to_json_str (self ):
5612+ def to_json (self ):
56215613 """
56225614 Convert to a JSON string representation.
56235615
You can’t perform that action at this time.
0 commit comments