Panel in jupyter labs with xpython kernel

I am trying to use xpython kernel to debug some problems I have. When I use the python3 kernel, I can run my code without a problem. When I run it with xpython kernel, jupyter labs complains that the panel extension is missing. My code has pn.extensions() and https://github.com/pyviz/jupyterlab_pyviz.git is shown as installed in the extension manager.

This is the warning I receive:

WARNING:param.Tabs10091: Displaying Panel objects in the notebook requires the panel extension to be loaded. Ensure you run pn.extension() before displaying objects in the notebook.

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
In  [3]:
Line 32:    tabs

TypeError: 'NoneType' object is not iterable

Has anyone been using the xpython kernel with panel? Help would be appreciated.

I think xpython makes some very intrusive changes to the IPython/Jupyter display machinery which isn’t yet compatible with Panel, so I don’t think this will work yet.

1 Like

Thank you for the very fast reply.

Suggestion: mention this somewhere in the Panel setup docs.

1 Like