Open jankatins opened 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
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?
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.
BTW, a markdown kernel is sos' answer to the problem that the python-markdown extension addresses.
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.