Open JeongJun-Lee opened 1 year ago
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.
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
...
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
I installed JupyterLite locally by https://jupyterlite.readthedocs.io/en/latest/quickstart/standalone.html.
I tried a hosting on the localhost URL with 8000 port by the command, "jupyter lite serve".
I found there are 3 kernels (Pyodide, Web Worker, XPython) in the main Launcher UI.
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" ]
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.
Context
Browser Output