ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.23k stars 806 forks source link

Idea: Multi-kernel notebook #1161

Open jankatins opened 6 years ago

jankatins commented 6 years ago

There was a request in the jupyter mailinglist were someone asked for a multi kernel notebook. I Imagine that as having notebook where each cell can have a property "kernel" and the js function which executes code would look into that and if it has a value would open another kernel instead and submit the code to the default kernel.

To be useful, it should also switch the code highlighting.

Exchanging data between kernels would need to be done via serializing to the disc.

jankatins commented 6 years ago

There is another approach in BeakerX which uses a special kernel to both send the code on to the right one and also exchange data between kernels: https://github.com/twosigma/beakerx/issues/6279

jcb91 commented 6 years ago

To be useful, it should also switch the code highlighting

I guess this could probably be handled easily enough with an appropriate CodeMirror mode definition, for the one-kernel-coordinating other approach. Otherwise, the references in the beakerX thread seem to be pretty good already - is there something extra that they don't already provide?

BoPeng commented 6 years ago

Just let you know that SoS Notebook is available for Jupyter users and is being ported to jupyter lab. In particular, it does provide per-language codemirror mode.

BoPeng commented 6 years ago

BTW, a markdown kernel is sos' answer to the problem that the python-markdown extension addresses.