Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d19078f

Browse files
docstrings and changelog
1 parent e735ba8 commit d19078f

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## UNRELEASED
77

8-
### Fixed
9-
- Fixed ValueError when `ff.create_annotated_heatmap` passes `rgba()` colors into `to_rgb_color_list` [#3478](https://github.com/plotly/plotly.py/issues/3478)
10-
118
### Added
129

1310
- `text_auto` argument to `px.bar`, `px.histogram`, `px.density_heatmap`, `px.imshow` [#3518](https://github.com/plotly/plotly.py/issues/3518)
1411
- Deprecated `ff.create_annotated_heatmap`, `ff.create_county_choropleth`, `ff.create_gantt` [#3518](https://github.com/plotly/plotly.py/issues/3518)
15-
- `div_id` argument to `pio.to_html` to optionally make its IDs deterministic [#3487](https://github.com/plotly/plotly.py/issues/3487)
16-
12+
- `div_id` argument to `pio.to_html`, `pio.write_html`, `fig.to_html` and `fig.write_html` to optionally make its IDs deterministic [#3487](https://github.com/plotly/plotly.py/issues/3487) with thanks to [@Skn0tt](https://github.com/Skn0tt)
13+
1714
### Updated
1815
- Updated Plotly.js to from version 2.6.3 to version 2.8.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#280----2021-12-10) for more information. Notable changes include:
1916
- Horizontal color bars
20-
- texttemplate for histogram-like traces
21-
- text for heatmap-like traces
17+
- `texttemplate` for histogram-like and heatmap-like traces
18+
19+
### Fixed
20+
- Fixed ValueError when `ff.create_annotated_heatmap` passes `rgba()` colors into `to_rgb_color_list` [#3478](https://github.com/plotly/plotly.py/issues/3478) with thanks to [@janosh](https://github.com/janosh)
21+
2222

2323
## [5.4.0] - 2021-11-15
2424

packages/python/plotly/plotly/basedatatypes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3576,6 +3576,10 @@ def to_html(self, *args, **kwargs):
35763576
validate: bool (default True)
35773577
True if the figure should be validated before being converted to
35783578
JSON, False otherwise.
3579+
div_id: str (default None)
3580+
If provided, this is the value of the id attribute of the div tag. If None, the
3581+
id attribute is a UUID.
3582+
35793583
Returns
35803584
-------
35813585
str
@@ -3687,9 +3691,13 @@ def write_html(self, *args, **kwargs):
36873691
validate: bool (default True)
36883692
True if the figure should be validated before being converted to
36893693
JSON, False otherwise.
3690-
auto_open: bool (default True
3694+
auto_open: bool (default True)
36913695
If True, open the saved file in a web browser after saving.
36923696
This argument only applies if `full_html` is True.
3697+
div_id: str (default None)
3698+
If provided, this is the value of the id attribute of the div tag. If None, the
3699+
id attribute is a UUID.
3700+
36933701
Returns
36943702
-------
36953703
str

packages/python/plotly/plotly/io/_html.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ def to_html(
125125
validate: bool (default True)
126126
True if the figure should be validated before being converted to
127127
JSON, False otherwise.
128+
div_id: str (default None)
129+
If provided, this is the value of the id attribute of the div tag. If None, the
130+
id attribute is a UUID.
131+
128132
Returns
129133
-------
130134
str
@@ -492,9 +496,13 @@ def write_html(
492496
validate: bool (default True)
493497
True if the figure should be validated before being converted to
494498
JSON, False otherwise.
495-
auto_open: bool (default True
499+
auto_open: bool (default True)
496500
If True, open the saved file in a web browser after saving.
497501
This argument only applies if `full_html` is True.
502+
div_id: str (default None)
503+
If provided, this is the value of the id attribute of the div tag. If None, the
504+
id attribute is a UUID.
505+
498506
Returns
499507
-------
500508
str

0 commit comments

Comments
 (0)