hi all, I’m trying to build something similar to ipywidgets but to the GoNB kernel (a Go kernel) <https://github.com/janpfeifer/gonb>, and I’m trying to figure out how to communicate from Javascript in the notebook to the kernel.
Any pointers ? The Kernel Message protocol suggests that one can use custom messages <https://jupyter-client.readthedocs.io/en/latest/messaging.html#custom-messages> (using "Comm" channels, using the Shell socket on the kernel, and presumably the IOPub in the Frontend) for that. I also saw these messages passing by when playing ipywidgets (in Python) and looking at the debug output of JupyterLab. But how from Javascript (from an HTML widget) I tell Jupyter notebook to send these messages to the kernel ? Any pointers to documentation, or example source code I can get started ? many thanks! ps.: This is a repost from an old question in Jupyter Forum <https://discourse.jupyter.org/t/how-in-javascript-to-send-a-comm-info-to-the-kernel/18620>, for which I didn't get a reply (maybe wrong topic?) -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/9f133c4b-9aeb-4daf-95bc-ded5b21ca384n%40googlegroups.com.
