Skip to content

Commit 341f215

Browse files
committed
Change the answer method name
1 parent 2714d7b commit 341f215

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ipywidgets/widgets/widget.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def handle_control_comm_msg(cls, msg):
351351
}
352352
full_state, buffer_paths, buffers = _remove_buffers(full_state)
353353
cls._control_comm.send(dict(
354-
method='states',
354+
method='update_states',
355355
states=full_state,
356356
buffer_paths=buffer_paths
357357
), buffers=buffers)

packages/schema/messages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ When a frontend wants to request the full state of a all widgets, the frontend s
363363
}
364364
```
365365

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

368368
```
369369
{
370370
'comm_id' : 'u-u-i-d',
371371
'data' : {
372-
'method': 'states',
372+
'method': 'update_states',
373373
'states': {
374374
<widget1 u-u-i-d>: <widget1 state>,
375375
<widget2 u-u-i-d>: <widget2 state>,

0 commit comments

Comments
 (0)