Open gergelyszerovay opened 5 months ago
Thanks for opening the issue! I believe that Deno's jupyter integration only supports broadcasting messages to the frontend (via Deno.jupyter.broadcast
) at the moment, but unfortunately not receiving messages. If this API were to be added we could support the bidirectional communication in jsr:@anywidget/deno
.
cc: @rgbkrk
Once https://github.com/denoland/deno/pull/23826 is in, it will be pretty smooth to work on the comms receiver.
slick!!! thanks for all your work on runtimelib
Hi,
I tried the following, and expected that the model in Deno will be updated and the
change:value
event handler will be called:I ran the first code cell, then clicked on the button a few times, then ran the second code cell.
If I execute
model.set('value', 13);
from a code cell, the event handler is triggered:Is there a way to subscribe to the frontend model changes from the code in the Deno kernel? Thanks.
Full source code: