/jupyterlab-skills:jupyterlab-remixfrom jupyterlab-skills
Build a new application from JupyterLab packages - a "remix" with its own JavaScript bundle and its own server class, in place of a customized JupyterLab. Use it when configuration and prebuilt extensions are not enough - an application that compiles in only a chosen subset of the JupyterLab core plugins, an application with its own shell and layout (a single-document notebook application, a kiosk, a dashboard) in the style of Jupyter Notebook 7 or jupyterlab-app-cookiecutter, or a page that embeds one JupyterLab component with no plugin system, as the examples folder of the JupyterLab repository does. Gives a scaffold script with templates that were built and run, a planner that tells which core packages a selection needs and which plugins to disable, the build and packaging steps to a wheel, and the browser checks. Use it for requests such as "build my own application on JupyterLab components", "a minimal notebook app", "remix JupyterLab", "custom shell", "embed a notebook in a page".
Ships in jupyterlab-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A remix is a new web application that you assemble from the npm packages of JupyterLab. It has its own bundle, its own page and its own server class. It is not JupyterLab with changes: nothing of the installed JupyterLab application is used at run time.
Most requests do not need a remix. Use the lightest way that does the job.
| Need | Use |
|---|---|
| Change defaults, hide features, restyle, add commands and panels; keep the JupyterLab interface and its extensions | Distribution: skills jupyterlab-settings, jupyterlab-extensions, jupyterlab-theming, jupyterlab-distribution. No build |
| Only a part of the core plugins in the bundle; a different URL and name; an application that cannot be changed back to JupyterLab | Remix, kind lab |
| A different layout: one document and no tabs, a kiosk, a dashboard | Remix, kind shell |
| One component (a notebook, a file browser) in a page of your own | Remix, kind widget |
Cost of a remix, to tell the user before you start:
node_modules), for each
change and each release.lab with
the option --federated.shell the shell itself.| Kind | What you get | What you write |
|---|---|---|
lab | The JupyterLab shell (menus, sidebars, dock panel) with the core packages that you select, plus your plugins | The list of packages, your plugins, CSS |
shell | Your own application class and shell: you decide the areas and the layout | The shell, small stand-in plugins for what core plugins require, your plugins, CSS |
widget | One page with components that you construct by hand. No plugins, no settings system | All the wiring: services, registries, commands |
Start with lab unless the layout must be different. It is the smallest
step away from JupyterLab, and core plugins work in it without changes.
python scripts/jlab_remix.py new quiet-notebook --kind lab --app-name "Quiet Notebook" --python <env>/bin/python
Create the project (above). --python pins the npm packages to the
JupyterLab release of that environment; without it the template uses the
release that it was made for. Other options: --federated (kind lab:
also load prebuilt extensions), --dest, --dir.
Select the packages (kinds lab and shell): see "Choose the core
packages".
Write your plugins in src/plugins/, your CSS in style/app.css,
default settings in <module>/settings/overrides.json.
Build, in the project folder:
npm install
npm run build:prod
uv build --wheel
npm install takes 10 to 30 s, the bundle about 5 s. The wheel contains
the bundle: the target machine needs no Node.js. Without uv:
python -m build --wheel.
Check the project: python scripts/jlab_remix.py check <project>.
Verify in a browser, from the wheel in a new environment (skill
jupyterlab-verify):
uv venv /tmp/remix-test && uv pip install --python /tmp/remix-test/bin/python dist/*.whl
python <verify>/jlab_server.py start --name remix --cmd /tmp/remix-test/bin/quiet-notebook --app-class QuietNotebook --path quiet-notebook --root-dir /tmp/remix-demo
node <verify>/jlab_probe.cjs --server remix --expect-title "Quiet Notebook" --fail-on-console-error --screenshot remix.png
--app-class is the Python class of the application, --path its URL
path. jlab_remix.py new prints both. They give the probe the
application object and a clean user profile.
Hand over the wheel and the launch command. Do not publish.
During development: npm run build (faster, with source maps), then
jlab_server.py restart --name remix. Install the project once in
development mode with uv pip install -e ., after the first build.
lab)quiet-notebook/
├── package.json npm packages, and the list "jupyterlab.extensions"
├── rspack.config.js bundle, schemas, themes
├── src/
│ ├── index.js creates the application, registers the plugins
│ └── plugins/ your plugins: one file each
├── style/app.css your CSS, loaded after the core CSS
├── pyproject.toml the wheel: the module with the built files
└── quiet_notebook/
├── app.py the server class
├── settings/overrides.json default values of settings
├── templates/index.html the page
└── static/, schemas/, themes/ written by the build, not in git
The bundler is rspack with @jupyter/builder, as in JupyterLab itself. The
source is plain JavaScript modules: import works, and you can add any npm
package to dependencies. There is no TypeScript step.
Each feature of JupyterLab is a package of plugins
(@jupyterlab/notebook-extension, @jupyterlab/filebrowser-extension…). A
package that is not in the bundle does not exist in the application.
python scripts/jlab_remix.py plan notebook fileeditor mainmenu filebrowser shortcuts completer markedparser theme-light
The planner knows the plugins of a stock JupyterLab and their service tokens. It prints:
Put the result in three places. They must agree; check compares them.
dependencies in package.json, with the version of the JupyterLab
release. jlab_remix.py pin <project> --python <env>/bin/python sets
the versions. It also writes overrides for all @jupyterlab/* and
@lumino/* packages: the published packages depend on each other with
^ ranges, and without the overrides npm can install a newer minor
release for an indirect dependency. Keep the overrides block.jupyterlab.extensions in package.json. The build reads this list to
copy the settings schemas, the themes and the CSS of each package.extensions array in src/index.js. The plugins to
disable go in the DISABLED array.The planner sees required services only. After the build, run the probe with
--fail-on-console-error and correct what it shows:
| Console message | Cause | Correction |
|---|---|---|
No provider for: <token> | A plugin requires a package that is not in the bundle | Add the plugin ID to DISABLED, or add the package |
Command '<id>' not registered | A plugin calls a command of a missing package | Register a command with that ID that does the job, or nothing (src/plugins/launcher.js does this for launcher:create), or add the package |
| A feature is absent with no error | Its plugin is in a package that you did not select, or it is an optional service | Add the package |
To see what a package gives, list its plugins with their descriptions from
an installed JupyterLab of the same version (skill jupyterlab-inspect):
jlab_inspect.py plugins notebook-extension. Three packages are the base of
each lab remix:
application-extension, apputils-extension, translation-extension.
A plugin in src/plugins/ is the same object as in a JupyterLab extension:
id, autoStart, requires, optional, activate. Import tokens and
classes from the packages directly:
import { ICommandPalette } from '@jupyterlab/apputils';
const plugin = {
id: 'quiet-notebook:hello',
autoStart: true,
optional: [ICommandPalette],
activate: (app, palette) => {
app.commands.addCommand('quiet-notebook:hello', {
label: 'Say Hello',
execute: () => console.log('hello')
});
if (palette) {
palette.addItem({ command: 'quiet-notebook:hello', category: 'Quiet Notebook' });
}
}
};
export default plugin;
Add the file to the imports and to the extensions array of
src/index.js. Add each package that you import to dependencies
(npm install @jupyterlab/statusbar@<version of the release>).
The code patterns of patterns.md and replace-core.md (skill
jupyterlab-extensions) apply: replace lab['<package>'] with an import.
To replace a core plugin, leave its ID out (DISABLED) and register yours.
A menu, toolbar button or shortcut for your command: add it in code
(IMainMenu, app.commands.addKeyBinding), or in the settings override of
the plugin that owns the list (skill jupyterlab-settings).
Default settings: <module>/settings/overrides.json, with the same
format as the default overrides of JupyterLab
({"<plugin id>": {"<key>": <value>}}). Menus, toolbars, shortcuts and the
layout go here. The cookbook of the skill jupyterlab-settings applies to
the plugins that are in the bundle. Its script writes the file and checks
each key against the schemas of your build (run it after a build):
python <settings>/jlab_config.py --remix <project> set @jupyterlab/notebook-extension:panel toolbar '[{"name": "cut", "disabled": true}]'
CSS: style/app.css. It loads after the CSS of the core packages, but
the CSS of the theme loads later and wins on :root. Set theme variables
on body (body { --jp-layout-color1: #fbf7ee; }), and use the variables
in your rules.
Fonts: add a font package and import its CSS in src/index.js; the
bundler copies the font files. No CDN.
npm install @fontsource/ibm-plex-sans
import '@fontsource/ibm-plex-sans/400.css';
import '@fontsource/ibm-plex-sans/600.css';
Then body { --jp-ui-font-family: 'IBM Plex Sans', system-ui, sans-serif; }.
Import only the weights in use: each one adds files to the wheel.
Themes: a theme package in the bundle (theme-light-extension,
theme-dark-extension) is available by name. For a look of your own, the
simplest way is CSS in style/app.css on top of a built-in theme. A
separate selectable theme needs the option --federated and a theme
extension (skill jupyterlab-theming).
Name and URL: the attributes of the server class, see references/server.md.
--federated)With --federated, the kind lab shares its core packages and loads the
extensions of share/jupyter/labextensions, as JupyterLab does. The no-build
extensions and themes of the other skills then work in the remix, and so do
extensions from PyPI.
@jupyterlab/terminal, @jupyterlab/settingeditor)
fails to load: add that package to dependencies.disabledExtensions of the page config applies, as in JupyterLab.Without the option, the server ignores the labextensions folders.
shell: your own layoutpython scripts/jlab_remix.py new solo-notebook --kind shell --app-name "Solo Notebook" --python <env>/bin/python
The template is a single-document notebook application: a top bar with a
brand and two buttons, and one notebook that fills the page. The URL
/<name>/notebooks/<path> opens a notebook; /<name> shows a start page
with the notebooks of the folder.
What differs from the kind lab:
src/shell.js is the shell and src/app.js the application class. Change
the areas and the layout there.pick() in src/index.js,
because many core plugins work only in the JupyterLab shell. Start from the
set of the template and add one plugin at a time.paths), and the function of the application (opener, top).uv build --wheel also runs
the frontend build when static/ is absent.Read references/shell.md before you change the shell or the plugin set: it has the members that the shell must implement, the plugins that work outside JupyterLab, and the errors to expect.
Verify a notebook URL with --url:
node <verify>/jlab_probe.cjs --url "http://127.0.0.1:<port>/solo-notebook/notebooks/demo.ipynb?token=<token>" --pause 3000 --exec notebook:run-all-cells --pause 4000 --expect-eval "document.querySelector('.jp-OutputArea-output') !== null" --fail-on-console-error
jlab_server.py url --name <name> prints the base URL with the token. The
probe summary lists the areas of JupyterLab only: name yours with
--areas home,text.
widget: components in a pagepython scripts/jlab_remix.py new embed-page --kind widget --python <env>/bin/python
The template is one page with one notebook, as examples/notebook of the
JupyterLab repository: no application object, no plugins, no settings
system. src/index.js constructs each part by hand: the service manager,
the command registry and its key bindings, the editor and language
registries, the rendermime registry, the document registry and manager, the
notebook factories, the toolbar, the completer. src/commands.js has the
commands and shortcuts.
It is not a Python package. main.py is a small Jupyter Server
application (ExtensionApp) that serves the page: python main.py in the
folder of the notebooks. It needs jupyter_server and ipykernel.
Use this kind to put a component in a page of your own, or to learn how
the parts connect. For an application, the kinds lab and shell are
less code, because plugins do the wiring.
Verify with the probe in page mode, --no-app: the checks on the page
(--expect-selector, --expect-eval, --expect-title), the actions
--click, --press, --type, and --fail-on-console-error work;
--exec and the plugin checks do not.
python <verify>/jlab_server.py start --name embed --cmd "<env>/bin/python $PWD/main.py" --path embed-page --root-dir $PWD
node <verify>/jlab_probe.cjs --server embed --no-app --pause 3000 --expect-selector '.jp-Notebook .jp-Cell' --click '.jp-Notebook .jp-CodeCell .cm-content' --press Shift+Enter --pause 4000 --expect-eval "document.querySelector('.jp-OutputArea-output') !== null" --fail-on-console-error --screenshot page.png
python scripts/jlab_remix.py pin <project> --python <env with the new JupyterLab>/bin/python
Then remove node_modules and package-lock.json, install, build, and run
the full probe. Plugin IDs and required services change between minor
releases: read the console errors as in "Choose the core packages". The
planner data is from one release (it prints which); for another release, the
errors of the probe are the reference.
| Symptom | Cause |
|---|---|
The page is blank, the console says Failed to load resource for bundle.js | The frontend was not built before the wheel, or static_dir is wrong. check tells |
uv build fails with Forced include not found | Run npm run build:prod first: the wheel needs static/, schemas/, themes/ |
Settings of a plugin are missing, 404 for a schema | The package is imported but is not in jupyterlab.extensions |
| An old bundle shows after a rebuild | The server keeps the hash of bundle.js: restart it |
| Two warnings about Yjs when a notebook opens | yjs is newer than the JupyterLab release expects: keep the overrides entry of package.json |
No provider for: <token> for a plugin whose package is in the bundle, or npm ls @jupyterlab/apputils shows two versions | Two copies of a core package: run jlab_remix.py pin, remove node_modules and the lock file, install again |
npm error Override for … conflicts with direct dependency | A direct dependency has a different version than its override: run jlab_remix.py pin, or give both the same value |
window.jupyterapp is missing in the probe | Start the server with --app-class <Class> and --path <url path> |
A prebuilt extension does not load in a --federated remix | It needs a core package that is not in the bundle |
Kind shell: did not find a LabShell instance or must be activated in JupyterLab | A core plugin that works only in the JupyterLab shell: remove its name from pick() |
Kind shell: text typed in a cell is lost when the cell runs | The plugin codemirror-extension:binding is not in the set |
shell: what a shell
must implement, which core plugins work outside JupyterLab, known errors.shell with two more areas and a
split: examples/lectern of the repository
https://github.com/jtpio/jupyterlab-skills. It also builds as a static
JupyterLite site, with the kernel in the browser: see src/lite.js,
rspack.lite.config.js and lite/site.js there.app, federated, notebook, filebrowser, console, terminal).assets/lab-federated/my_app/app.py (opens in a new tab)assets/lab-federated/package.json (opens in a new tab)assets/lab-federated/rspack.config.js (opens in a new tab)assets/lab-federated/src/bootstrap.js (opens in a new tab)assets/lab-federated/src/index.js (opens in a new tab)assets/lab/my_app/__init__.py (opens in a new tab)assets/lab/my_app/__main__.py (opens in a new tab)assets/lab/my_app/app.py (opens in a new tab)assets/lab/my_app/settings/overrides.json (opens in a new tab)assets/lab/my_app/templates/index.html (opens in a new tab)assets/lab/package.json (opens in a new tab)assets/lab/pyproject.toml (opens in a new tab)assets/lab/rspack.config.js (opens in a new tab)assets/lab/src/index.js (opens in a new tab)assets/lab/src/plugins/hello.js (opens in a new tab)assets/lab/src/plugins/launcher.js (opens in a new tab)assets/lab/style/app.css (opens in a new tab)assets/shell/my_app/__init__.py (opens in a new tab)assets/shell/my_app/__main__.py (opens in a new tab)assets/shell/my_app/app.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jtpio/jupyterlab-skills --plugin jupyterlab-skills8 skills in this plugin
/jupyterlab-customizeStart here for any request to change how JupyterLab looks or behaves. Covers disabling or hiding an extension or a part of the UI, changing a default (theme, layout, editor, notebook, file browser), editing menus, toolbars, context menus and keyboard shortcuts, adding a button, panel, command or home page, restyling or rebranding the application, and packaging the result as an installable JupyterLab distribution. Chooses the right mechanism (page config, setting overrides, user settings, server config, CSS or theme, new extension, Python package) and hands over to the companion skills jupyterlab-inspect, jupyterlab-settings, jupyterlab-extensions, jupyterlab-theming, jupyterlab-distribution, jupyterlab-remix and jupyterlab-verify. Use it also when the user does not say "JupyterLab" but works in a Jupyter notebook environment./jupyterlab-distributionPackage a customized JupyterLab as one installable Python package - a "distribution" such as xtralab - that brings JupyterLab, its configuration (disabled plugins, default settings, layout, menus), its extensions and themes, extra dependencies, a launch command and its own name. Use it when the user wants an artifact to install or share instead of changes in one environment - "make this a package", "create my own JupyterLab app", "something I can pip install", "ship these customizations to my team", "turn this environment into a wheel". Gives a script that scaffolds the project, imports customizations already made in an environment, and checks the project and the wheel; plus the steps to build, test in a clean environment, and brand the application./jupyterlab-extensionsAdd new behavior to JupyterLab with an extension, created on the fly and without a build step. Use it when configuration is not enough - to add a command, a toolbar or top-bar button, a menu with new actions, a sidebar or main-area panel, a status bar item, a launcher card, a custom home page, a file type, a keyboard shortcut for a new action, a settings schema, or to replace a core part such as the launcher, the splash screen, the logo or the About dialog. Gives a script that scaffolds, checks and installs a plain-JavaScript prebuilt extension into an environment or a distribution project, verified code patterns for the common extension points, and the TypeScript build path for extensions that need npm dependencies. Use it for requests such as "add this to the UI", "add a button that…", "create an extension", "replace the launcher"./jupyterlab-inspectFind out how a JupyterLab installation is set up before you change it. Use it to locate the config and data folders and the right place to write, to find the exact ID of a plugin, setting, command, menu, toolbar item or sidebar widget, to read the schema and default of a setting, to see which extensions are installed, and to explain why a customization does not apply (effective page config, effective overrides, user settings that hide a default). Use it before any JupyterLab customization, and when the user asks "what is the ID of…", "where does JupyterLab read…", "which extensions are installed", or "why does my setting not work"./jupyterlab-settingsChange JupyterLab with configuration files, no code. Use it to disable, enable or lock a plugin or a whole extension (status bar, extension manager, debugger, announcements, launcher, table of contents…), to change the default of any setting (theme, autosave, line numbers, file browser, terminal, notebook, completer), to move panels between the left, right, main and bottom areas, to edit the main menu, context menu, toolbars and keyboard shortcuts, to rename the application, and to set server options that affect the UI. Covers page config, default setting overrides, user settings and server config, their precedence, and a script that writes them with validation. Use it for requests such as "disable this extension", "hide this part of the UI", "make this the default", "remove this menu", "change this shortcut"./jupyterlab-themingChange the look of JupyterLab - colors, fonts, spacing, density, the style of tabs, toolbars, sidebars, notebook cells and the launcher, and which elements show. Use it to create a custom theme (light, dark, or a pair) without a build step, to set it as the default, to restyle or hide parts of the interface with CSS, to bundle fonts, and to choose between a theme, an extension stylesheet and custom.css. Gives a script that scaffolds a complete theme extension from a built-in theme, the command that lists the theme CSS variables, and the selectors of the main interface parts. Use it for requests such as "make it look like…", "change the colors", "use this font", "dark mode by default", "make the UI more compact", "brand it".