Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Added the disabledExtensions option into the jupyter-lite.json to opt out two kernels in the UI but it doesn't work. #133

Open
JeongJun-Lee opened this issue May 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@JeongJun-Lee
Copy link

Description

Added the disabledExtensions option into the jupyter-lite.json to opt out two kernels(Pyodide and Web Worker) in the UI but it doesn't work.

Reproduce

  1. I installed JupyterLite locally by https://jupyterlite.readthedocs.io/en/latest/quickstart/standalone.html.

  2. I tried a hosting on the localhost URL with 8000 port by the command, "jupyter lite serve".

  3. I found there are 3 kernels (Pyodide, Web Worker, XPython) in the main Launcher UI.

  4. I added the disabledExtensions option into the jupyter-lite.json in the _output folder https://jupyterlite.readthedocs.io/en/latest/howto/configure/advanced/extensions.html#disabling-extensions-at-runtime.

    "disabledExtensions": [
    "@jupyterlite/javascript-kernel-extension",
    "@jupyterlite/pyodide-kernel-extension"
    ]

  5. Again I tried a hosting on the localhost URL with 8000 port by the command, "jupyter lite serve".

Expected behavior

Two kernels(pyodide and javascript) should be disappeared in the UI. Only the xeus kernel should be there.
image

Context

  • JupyterLite version: 0.1.0
  • Operating System and version: mac 10.15.7
  • Browser and version: chrome 113.0.5672.126
Browser Output

@JeongJun-Lee JeongJun-Lee added the bug Something isn't working label May 25, 2023
@jtpio
Copy link
Member

jtpio commented May 26, 2023

Thanks @JeongJun-Lee.

Where is the jupyter-lite.json file located?

Also note that you can also install jupyterlite-core instead of jupyterlite. jupyterlite-core comes with just the CLI without the Pyodide and JS kernels, that way it's not necessary to disable them via the config.

@JeongJun-Lee
Copy link
Author

Sorry it works. But we need to refresh browser forcibly with draining cache in Crome development mode.
Is there any method to disable some extensions by any configuration without fixing a jupyter-lite.json in the _output folder manually when a build time?

@jtpio As you mentioned, first I tried to install jupyterlite-core only and then I tried a hosting on the localhost URL with 8000 port by the command, "jupyter lite serve", but there is same as before. All three kernels are shown on the UI.

I can show these logs when the building time:

...
static:unpack
-- init:static:unpack
federated_extensions:copy:ext:jupyterlab_pygments
federated_extensions:copy:ext:jupyter-leaflet
federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager
federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension
federated_extensions:copy:ext:@jupyterlite/xeus-python-kernel
federated_extensions:copy:ext:@jupyterlite/javascript-kernel-extension
-- pre_build:federated_extensions:copy:ext:jupyterlab_pygments
-- pre_build:federated_extensions:copy:ext:jupyter-leaflet
-- pre_build:federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager
-- pre_build:federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension
-- pre_build:federated_extensions:copy:ext:@jupyterlite/xeus-python-kernel
-- pre_build:federated_extensions:copy:ext:@jupyterlite/javascript-kernel-extension
lite:patch:jupyter-lite.json
mathjax:copy
translation:copy
-- build:lite:patch:jupyter-lite.json
-- build:mathjax:copy
-- build:translation:copy
federated_extensions:patch
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants