Skip to content

Commit dfdc549

Browse files
committed
changelog for old import extras
and rearrange existing unreleased changelog entries
1 parent 66c445b commit dfdc549

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

CHANGELOG.md

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

55
## [Unreleased]
66

7-
- [#1822](https://github.com/plotly/dash/pull/1822) Remove Radium from renderer dependencies, as part of investigating React 17 support.
7+
### Changed
88

99
- [#1745](https://github.com/plotly/dash/pull/1745):
1010
Improve our `extras_require`: there are now five options here, each with a well-defined role:
@@ -14,9 +14,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1414
- `dash[celery]`: required if you use `CeleryLongCallbackManager`
1515
- `dash[ci]`: mainly for internal use, these are additional requirements for the Dash CI tests, exposed for other component libraries to use a matching configuration.
1616

17-
- [#1779](https://github.com/plotly/dash/pull/1779):
18-
- Clean up our handling of serialization problems, including fixing `orjson` for Python 3.6
19-
- Added the ability for `dash.testing` `percy_snapshot` methods to choose widths to generate.
17+
### Added
2018

2119
- [#1763](https://github.com/plotly/dash/pull/1763):
2220
## Dash and Dash Renderer
@@ -30,21 +28,21 @@ This project adheres to [Semantic Versioning](https://semver.org/).
3028

3129
@dash.callback(Output(my_output, 'children'), Input(my_input, 'value'))
3230
def update(value):
33-
return f'You have entered {value}'
31+
return f'You have entered {value}'
3432
```
3533

3634
Or, if using Python >=3.8 you can use the `:=` walrus operator:
3735
```python
3836
app.layout = html.Div([
39-
my_input := dcc.Input(),
40-
my_output := html.Div()
37+
my_input := dcc.Input(),
38+
my_output := html.Div()
4139
])
4240

4341
@dash.callback(Output(my_output, 'children'), Input(my_input, 'value'))
4442
def update(value):
45-
return f'You have entered {value}'
46-
43+
return f'You have entered {value}'
4744
```
45+
4846
## Dash Core Components
4947

5048
### Rearranged Keyword Arguments & Flexible Types
@@ -58,22 +56,23 @@ This project adheres to [Semantic Versioning](https://semver.org/).
5856

5957
```python
6058
dcc.Dropdown(
61-
options=[
62-
{'label': 'New York', 'value': 'New York'},
63-
{'label': 'Montreal', 'value': 'Montreal'},
64-
],
65-
value='New York'
59+
options=[
60+
{'label': 'New York', 'value': 'New York'},
61+
{'label': 'Montreal', 'value': 'Montreal'},
62+
],
63+
value='New York'
6664
)
67-
```
65+
```
66+
6867
or
6968

7069
```python
7170
dcc.Dropdown(
72-
options=[
73-
{'label': 'New York', 'value': 'NYC'},
74-
{'label': 'Montreal', 'value': 'MTL'},
75-
],
76-
value='New York'
71+
options=[
72+
{'label': 'New York', 'value': 'NYC'},
73+
{'label': 'Montreal', 'value': 'MTL'},
74+
],
75+
value='New York'
7776
)
7877
```
7978

@@ -82,6 +81,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
8281
```python
8382
dcc.Dropdown(['New York', 'Montreal'], 'New York')
8483
```
84+
8585
Or
8686

8787
```python
@@ -102,14 +102,19 @@ This project adheres to [Semantic Versioning](https://semver.org/).
102102
```
103103

104104
After:
105+
105106
```python
106107
dcc.Slider(min=1, max=3, step=1)
107108
```
109+
108110
Or equivalently:
111+
109112
```python
110113
dcc.Slider(1, 3, 1)
111114
```
115+
112116
Step can also be omitted and the `Slider` will attempt to create a nice, human readable step with SI units and around 5 marks:
117+
113118
```python
114119
dcc.Slider(0, 100)
115120
```
@@ -137,6 +142,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
137142
```python
138143
dash_table.DataTable(data=df.to_dict('records'), columns=[{'name': i, 'id': i} for i in df.columns])
139144
```
145+
140146
After:
141147

142148
```python
@@ -153,6 +159,16 @@ This project adheres to [Semantic Versioning](https://semver.org/).
153159
dcc.Checklist(inline=True)
154160
```
155161

162+
### Fixed
163+
164+
- [#1836](https://github.com/plotly/dash/pull/1836) Fix `__all__` in dcc and table for extras: dcc download helpers and table format helpers. This also restores this functionality to the obsolete top-level packages `dash_core_components` and `dash_table`.
165+
166+
- [#1822](https://github.com/plotly/dash/pull/1822) Remove Radium from renderer dependencies, as part of investigating React 17 support.
167+
168+
- [#1779](https://github.com/plotly/dash/pull/1779):
169+
- Clean up our handling of serialization problems, including fixing `orjson` for Python 3.6
170+
- Added the ability for `dash.testing` `percy_snapshot` methods to choose widths to generate.
171+
156172
## [2.0.0] - 2021-08-03
157173

158174
## Dash and Dash Renderer

0 commit comments

Comments
 (0)