thebe icon indicating copy to clipboard operation
thebe copied to clipboard

Changing the kernel language without requesting a new kernel

Open celine168 opened this issue 4 years ago • 3 comments

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).

celine168 avatar May 07 '20 16:05 celine168

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.

choldgraf avatar May 07 '20 16:05 choldgraf

It sould be possible by calling thebelab.requestKernel and thebelab.hookupKernel with the right arguments. Need to do some digging to find out, though

minrk avatar May 08 '20 09:05 minrk

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?

celine168 avatar May 11 '20 19:05 celine168