Open gnestor opened 7 years ago
I haven't implemented comms_*
messages either.
The implementation could be similar to what I've discussed here.
We would need to provide an API for the user. I guess that we could just reproduce the API you've shown above:
var comm = $$.connectToComm('test');
comm.open({foo: 1});
comm.onMsg = console.log;
Any update on this? How do I do this from ijavascript? https://stackoverflow.com/questions/42773092/javascript-jupyter-notebook-how-to-get-code-cell-content
@megamindbrian I'm not sure the question in stackoverflow refers to comm_*
messages. Could you open a new issue and give an example of you'd like to do in IJavascript?
Hi @n-riesco! I'm working on a proof-of-concept Javascript/Node.js widgets and I'm having trouble with comms on the Node.js side. Does ijavascript support comm messages? If so, how would you implement a basic
connectToComm
,comm.onMsg
, andcomm.send
?For reference, here is what I'm doing on the front-end using classic notebook:
And here is what I'm doing in Node.js using @jupyterlab/services: