microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.29k stars 292 forks source link

Notebook communication between JavaScript and Python #13255

Closed Conchylicultor closed 1 year ago

Conchylicultor commented 1 year ago

With Colab/Jupyter, it is possible to have bidirectional communication between Python/Javascript, without installing a notebook extention:

It is very convenient, and unlock powerful use-cases. For example:

There's an duplicate issue which was closed (https://github.com/microsoft/vscode-jupyter/issues/6918), even though the original issue (https://github.com/microsoft/vscode-jupyter/issues/7551) hasn't been fixed.

slundberg commented 1 year ago

Would also love this. Just noting that this is already possible, just not supported (#13243). Which means allowing it does not change the current level of security.

DonJayamanne commented 1 year ago

Closing this issue, as the package https://github.com/manzt/anywidget now makes it very easy for front end code to communicate with the kernels using ipywidgets.

Though jupyter ntoeb9ook exposes a way to communicate with the kernel, jupyter lab no longer supports this. I believe using IPyWidgets is the right way (as thats what Jupyter lab also recomends)