Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Jupyterlite along with Pyodide kernel supported? #323

Open
MRYingLEE opened this issue Sep 7, 2024 · 1 comment
Open

Is Jupyterlite along with Pyodide kernel supported? #323

MRYingLEE opened this issue Sep 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@MRYingLEE
Copy link

I tried jupyterlab-variableInspector in Jupyterlite along with Pyodide kernel and the UI of "Variable Inspector" always had no variable shown.

A deployment from someone else, https://ogig3.github.io/litetest/lab/index.html, has the same issue.

Just wonder whether Jupyterlite along with Pyodide kernel is supported.

Please clarify.
Thanks,

@fcollonval
Copy link
Member

fcollonval commented Sep 19, 2024

From your test it clearly does not 😉

But to provide more info for those wanting to fix this, this is related to the snippet injected by this extension to perform the introspection. If you execute within Pyodide the snippet:

static py_script = `import json

You will get:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[5], line 12
     10 _jupyterlab_variableinspector_nms = NamespaceMagics()
     11 _jupyterlab_variableinspector_Jupyter = get_ipython()
---> 12 _jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter.kernel.shell
     14 _jupyterlab_variableinspector_maxitems = 10
     16 __np = None

AttributeError: 'PyodideKernel' object has no attribute 'shell'

So the first step to fix this is to find a workaround for the injected snippet.

@fcollonval fcollonval added the enhancement New feature or request label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants