-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to sync the frontend model changes with the model in the Deno kernel? #582
Comments
Thanks for opening the issue! I believe that Deno's jupyter integration only supports broadcasting messages to the frontend (via cc: @rgbkrk |
Once denoland/deno#23826 is in, it will be pretty smooth to work on the comms receiver. |
slick!!! thanks for all your work on runtimelib |
Still an issue in deno 2.1.6/anywidget 0.9.13. Had a look at denoland/deno#23826 and my interpretation is that PR did not add frontend->kernel broadcasting for the deno kernel per se, so I assume rgbkrk kinda meant "once that runtimelib is in it will be easier to start working on bidirectional communication". Correct? If so perhaps the next step is creating the appropriate issue in deno? |
Here is the relevant PR to add bidirectional comms: |
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:
The text was updated successfully, but these errors were encountered: