Skip to content

Commit

Permalink
Change the answer method name
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Nov 10, 2021
1 parent 2714d7b commit 341f215
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ipywidgets/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def handle_control_comm_msg(cls, msg):
}
full_state, buffer_paths, buffers = _remove_buffers(full_state)
cls._control_comm.send(dict(
method='states',
method='update_states',
states=full_state,
buffer_paths=buffer_paths
), buffers=buffers)
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ When a frontend wants to request the full state of a all widgets, the frontend s
}
```

The kernel side of the widget should immediately send an `states` message with all widgets states:
The kernel side of the widget should immediately send an `update_states` message with all widgets states:

```
{
'comm_id' : 'u-u-i-d',
'data' : {
'method': 'states',
'method': 'update_states',
'states': {
<widget1 u-u-i-d>: <widget1 state>,
<widget2 u-u-i-d>: <widget2 state>,
Expand Down

0 comments on commit 341f215

Please sign in to comment.