thebe
thebe copied to clipboard
Changing the kernel language without requesting a new kernel
Is it possible to change the kernel language (say, Python 3 to Julia) without requesting a new kernel and starting up another Binder instance through the thebelab
instance? I couldn't find some kind of functionality in thebelab.js and wanted to make sure before I look for another solution (or implement one).
unfortunately no I don't believe it's possible within the same session currently. It might be possible using the JupyterLab API but it'd take some new development.
It sould be possible by calling thebelab.requestKernel
and thebelab.hookupKernel
with the right arguments. Need to do some digging to find out, though
Thank you for your replies! I did some digging and I think to use thebelab.requestKernel
or thebelab.hookupKernel
you would need access to the kernel object. So I don't think it would be possible to modify language from the outside?
I was hoping to use updateSession from the API. I'm a bit new to this, do you have any advice that could point me in the right direction?