File tree 2 files changed +9
-2
lines changed
packages/python/plotly/plotly
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## UNRELEASED
6
+
7
+ ### Updated
8
+ - Improved json docstrings, added ` BasePlotlyType.to_json() ` method [[ #4301 ] ( https://github.com/plotly/plotly.py/pull/4301 )]
9
+
5
10
## [ 5.16.1] - 2023-08-16
6
11
7
12
### Fixed
Original file line number Diff line number Diff line change @@ -3318,7 +3318,8 @@ def to_plotly_json(self):
3318
3318
"""
3319
3319
Convert figure to a JSON representation as a Python dict
3320
3320
3321
- Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util when encoding.
3321
+ Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util
3322
+ or the `to_json` method to encode to a string.
3322
3323
3323
3324
Returns
3324
3325
-------
@@ -5599,7 +5600,8 @@ def to_plotly_json(self):
5599
5600
"""
5600
5601
Return plotly JSON representation of object as a Python dict
5601
5602
5602
- Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util when encoding.
5603
+ Note: May include some JSON-invalid data types, use the `PlotlyJSONEncoder` util
5604
+ or the `to_json` method to encode to a string.
5603
5605
5604
5606
Returns
5605
5607
-------
You can’t perform that action at this time.
0 commit comments