jupyterlab-contrib / jupyterlab-variableInspector

Variable Inspector extension for Jupyterlab
BSD 3-Clause "New" or "Revised" License
1.12k stars 97 forks source link

Not working with Xeus Python kernel (Jupyter with debugger) #190

Open matgad opened 3 years ago

matgad commented 3 years ago

The extension does not work when I use a xeus python kernel, which is the current official way to use the Jupyter debugger (https://jupyterlab.readthedocs.io/en/stable/user/debugger.html). On the same server, the extension works correctly with any classic python kernels. Is this expected? It would be great to have both the debugger and the variable inspector with the new xeus kernel.

danieltomasz commented 3 years ago

I can confirm this

lckr commented 3 years ago

Currently the xeus kernel is not supported, since it only implements a subset of features of the regular IPython kernel. This extension relies on some of the IPython magics that are not yet supported by xeus.

This does not mean that it's not impossible to make this extension work with xeus, but one would need to write a new script that communicates between xeus-kernel and the variableInspector extension (e.g. as in src/inspectorscripts.ts). Since I currently do not know how to retrieve active variables in xeus outside of the debugger mode, I'll leave this issue as a open todo.

But of course, if you come up with a solution I'm happy to add it to the extension.