pyodide-kernel icon indicating copy to clipboard operation
pyodide-kernel copied to clipboard

Don't show console error in a full JupyterLab

Open bollwyvl opened this issue 2 years ago • 2 comments

Problem

Starting a full JupyterLab 3.6-based application with jupyterlite-pyodide-kernel shows the (harmless) console error:

Shared module @jupyterlite/server doesn't exist in shared scope default

Harmless, but annoying.

Proposed Solution

???

Additional context

things tried

  • make all the stuff optional
    • this happens at import time, before disabled is checked, so can't be solved with token dependencies,
  • maybe we just ship the labextension disabled by default.
    • jupyter labextension disable @jupyterlite/pyodide-kernel-extension
      • still gets loaded by webpack machinery (maybe this is fixed in 4?)
  • ???

bollwyvl avatar Mar 15 '23 18:03 bollwyvl

Not sure it's worth looking into this for now. We know this kernel is not meant to be used with JupyterLab at least for now.

Also folks usually create a separate environment for their JupyterLite site, not sure the intent it to also be able to use JupyterLab?

jtpio avatar Mar 16 '23 08:03 jtpio

folks usually create a separate environment

As mentioned elsewhere, a JupyterLite site builder UI, would be a "normal" labextension, and would want to be installed in an environment which had all the other packages installed, as the sys.prefix stuff done by a real package manager is so important to keeping everything working.

I'm thinking that would not depend on any @jupyterlite/ npm packages, and very probably could be based on ipywidgets. Longer con, this could also run in e.g. pyodide-kernel, which is a ticket i've been meaning to make.

bollwyvl avatar Mar 16 '23 13:03 bollwyvl