Data binding and syncing between JavaScript and Kernel

21 views
Skip to first unread message

Simon Biggs

unread,
Nov 4, 2017, 1:43:20 AM11/4/17
to Project Jupyter
I noticed that declarative widgets achieves data binding and syncing between JavaScript and the kernel. I believe that ipywidgets achieves the same thing.

I have been searching their source code trying to find where exactly they achieve this, but I as of yet have been unsuccessful.

I am currently writing a jupyterlab extension in Angular. If I was to be able to achieve data binding syncing between the python kernel and the JavaScript that would be absolutely perfect. My WIP extension is over at https://github.com/SimonBiggs/jupyterlab-form

Could someone who is familiar with either the ipywidgets or declarative widgets code bases be able to point me in the direction of where this data syncing is achieved. That would be absolutely amazing.

Thank you,
Simon

Jason Grout

unread,
Nov 5, 2017, 1:39:44 AM11/5/17
to jup...@googlegroups.com
The data syncing happens over comm messages with a very simple syncing protocol. Our protocol is documented at https://github.com/jupyter-widgets/ipywidgets/blob/master/packages/schema/messages.md#widget-messaging-protocol-version-2 (version 2 is implemented in ipywidgets 7).

Jason


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/1ded5625-1b2a-4d3c-a830-1e7c03405f65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages