/jupyterlab-skills:jupyterlab-settingsfrom jupyterlab-skills
Change 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".
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; scripts run unread.
JupyterLab reads four kinds of configuration. All are plain JSON files in a Jupyter config folder. None needs a build.
| Surface | File (below a config folder) | Controls | Read |
|---|---|---|---|
| Page config | labconfig/page_config.d/*.json | Which plugins load (disabledExtensions), appName, other page options | Page load |
| Default overrides | labconfig/default_setting_overrides.d/*.json | The default value of any setting of any plugin | Server start |
| User settings | <user settings dir>/<package>/<plugin>.jupyterlab-settings | The value for one user. Highest priority | Live |
| Server config | jupyter_server_config.json, jupyter_server_config.d/*.json | Server and LabApp options, server extensions | Server start |
Precedence for one setting, highest first: user settings → default overrides → default in the schema of the plugin. Page config is not a layer of settings: a disabled plugin does not load, and its settings have no effect.
Config folders and their order come from jupyter --paths. The details are in
references/config-files.md.
scripts/jlab_config.py writes the two labconfig snippets. It checks plugin
IDs against the installation, setting keys and value types against the
schema, and it only touches its own files (default name 50-custom.json).
<env>/bin/python scripts/jlab_config.py [--scope env|user] [--config-dir DIR] [--name NAME] <command>
More options before the command: --remix PROJECT (below), --graph DUMP
(find the dependents of a disabled plugin from a probe dump, extensions
included), --no-cascade, --no-validate. --help lists all.
| Command | Effect |
|---|---|
disable <id>... | Add plugins or whole packages to disabledExtensions. --lock also locks them in the Plugin Manager |
enable <id>... | Undo. --force writes false, to re-enable what another file disables |
set <plugin> <key> <json> | Set the default of a setting. --append adds to a list, --merge merges into an object |
unset <plugin> [key] | Remove an override |
page <key> [json] | Set or remove a page config key, for example appName |
user-set <plugin> <key> <json> | Write a user setting |
apply <file.json> | Apply many changes: {"disable": [], "lock": [], "page": {}, "overrides": {}} |
show | Print the snippets |
Scope: --scope env writes to <sys.prefix>/etc/jupyter, --scope user to
the user config folder. Without the option, the script uses env inside a
virtual environment. --config-dir gives an explicit folder: use it with the
jupyter-config folder of a distribution project. --remix <project> is for
a remix (skill jupyterlab-remix): set, unset and apply then write the
file settings/overrides.json of the project, and the checks use the schemas
of its build. A remix has no page config.
Examples:
<env>/bin/python scripts/jlab_config.py disable @jupyterlab/extensionmanager-extension @jupyterlab/apputils-extension:announcements
<env>/bin/python scripts/jlab_config.py set @jupyterlab/apputils-extension:themes theme '"JupyterLab Dark"'
<env>/bin/python scripts/jlab_config.py set @jupyterlab/notebook-extension:tracker codeCellConfig '{"lineNumbers": true}'
Values are JSON. Quote them for the shell. A bare word is taken as a string.
You can also write the files by hand: the formats are below. Then check them
with jlab_inspect.py page-config and jlab_inspect.py overrides.
{
"disabledExtensions": {
"@jupyterlab/extensionmanager-extension": true,
"@jupyterlab/apputils-extension:announcements": true
}
}
A key is a plugin ID, a package name (all its plugins), or a regular
expression on either
(matching rules).
true disables. false re-enables what a file of lower priority disables.
Before you disable a plugin:
fetchNews set to
"false", or with the plugin
@jupyterlab/apputils-extension:announcements disabled. Both are fine;
the cookbook has both. Examples of settings:
@jupyterlab/statusbar-extension:plugin → visible: false,
@jupyterlab/extensionmanager-extension:plugin → enabled: false,
@jupyterlab/cell-toolbar-extension:plugin → showToolbar: false.jlab_config.py disable knows the core plugins and adds their
dependents to the snippet (it prints them; --no-cascade turns this
off). For plugins of other extensions, ask the running application:
jlab_probe.cjs --dependents <id> (skill jupyterlab-verify).:paths, :router, :shell, :settings, :state, :translator,
:resolver…). jlab_probe.cjs --list plugins --grep <text> prints, for
each plugin, the service that it provides and the plugins that need it.Hide one sidebar tab without disabling its plugin: there is no general
setting. Disable the plugin that adds the panel
(@jupyterlab/running-extension:sidebar, @jupyterlab/toc-extension:tracker,
@jupyterlab/extensionmanager-extension, @jupyterlab/debugger-extension,
@jupyterlab/application-extension:property-inspector), or hide the tab with
CSS (skill jupyterlab-theming). The cookbook has the full table.
lockedExtensions has the same format. A locked plugin cannot be toggled by
the user in the Plugin Manager or with jupyter labextension enable
(docs).
The official CLI does the same for one plugin and writes
labconfig/page_config.json:
jupyter labextension disable @jupyterlab/extensionmanager-extension --level=sys_prefix
{
"@jupyterlab/apputils-extension:themes": { "theme": "JupyterLab Dark" },
"@jupyterlab/docmanager-extension:plugin": { "autosaveInterval": 30 },
"@jupyterlab/notebook-extension:tracker": {
"codeCellConfig": { "lineNumbers": true }
}
}
Top-level keys are plugin IDs. Inner keys are the settings of the schema.
codeCellConfig.lineNumbers).jlab_inspect.py find <text> and jlab_inspect.py schema <plugin>.Plugin @jupyterlab/application-extension:shell.
{
"@jupyterlab/application-extension:shell": {
"activityBarPosition": "top",
"startMode": "single",
"dockPanelPadding": false,
"layout": {
"multiple": {
"File Browser": { "area": "right" },
"Table of Contents": { "area": "right", "options": { "rank": 10 } },
"Terminal": { "area": "down" }
},
"single": {
"File Browser": { "area": "right" }
}
}
}
}
layout has one object for the default mode (multiple) and one for the
simple mode (single). Set both when the change must hold in both modes.File Browser, Terminal, Notebook) or,
for a widget with no type, its widget ID (jp-git-sessions). Areas:
left, right, main, down. options.rank orders the tabs of a side
area.activityBarPosition: side, top or bottom. startMode: "",
single or multiple.jlab_probe.cjs --list widgets (skill jupyterlab-verify)
prints the area, the ID, the type and the label of each widget of the
running application, extensions included.if (shell.isEmpty('right')) shell.collapseRight().jupyterlab-extensions/references/patterns.md.A layout that the user changed by hand is stored in the workspace and wins over these defaults for that workspace.
These four settings are lists that merge with the built-in items. Give
only your changes. To remove a built-in item, repeat its identity with
"disabled": true.
| What | Plugin | Key | Identity of an item |
|---|---|---|---|
| Main menu | @jupyterlab/mainmenu-extension:plugin | menus | menu id; inside a menu: command + args |
| Context menu | @jupyterlab/application-extension:context-menu | contextMenu | command + selector + args |
| Notebook toolbar | @jupyterlab/notebook-extension:panel | toolbar | name |
| Other toolbars | last column of jlab_inspect.py toolbars | toolbar | name |
| Shortcuts | @jupyterlab/shortcuts-extension:shortcuts | shortcuts | keys + selector (not the command) |
{
"@jupyterlab/mainmenu-extension:plugin": {
"menus": [
{ "id": "jp-mainmenu-run", "disabled": true },
{
"id": "jp-mainmenu-file",
"items": [{ "command": "filebrowser:open-path", "disabled": true }]
},
{
"id": "my-menu",
"label": "Studio",
"rank": 50,
"items": [
{ "command": "notebook:create-new", "rank": 1 },
{ "type": "separator", "rank": 2 },
{ "command": "apputils:change-theme", "args": { "theme": "JupyterLab Dark" }, "rank": 3 }
]
}
]
},
"@jupyterlab/notebook-extension:panel": {
"toolbar": [
{ "name": "restart-and-run", "disabled": true },
{ "name": "clear-all", "command": "notebook:clear-all-cell-outputs", "rank": 12 }
]
},
"@jupyterlab/shortcuts-extension:shortcuts": {
"shortcuts": [
{ "command": "application:toggle-left-area", "keys": ["Accel B"], "selector": "body", "disabled": true },
{ "command": "apputils:activate-command-palette", "keys": ["Accel K"], "selector": "body" }
]
}
}
Read the identity of a built-in item from the installation. Do not write it from memory: the names change between versions.
| To find | Command (skill jupyterlab-inspect) |
|---|---|
| Menu IDs, labels, ranks | jlab_inspect.py menus |
| Items of one menu: command, rank, args | jlab_inspect.py menus jp-mainmenu-file |
Toolbar item names, and the plugin whose toolbar setting changes them | jlab_inspect.py toolbars [text] |
| Context menu items: command, selector, rank | jlab_inspect.py context-menu [text] |
| Default shortcuts: keys, selector, args | jlab_inspect.py shortcuts [text] |
| A command ID that a menu, toolbar or shortcut uses | jlab_inspect.py find <text> |
| The command behind a label that the user names ("Log Out"), and all commands of the running application | jlab_probe.cjs --list commands --grep "Log Out" (skill jupyterlab-verify). The schemas have no labels |
Accel is Cmd on macOS and Ctrl elsewhere.jupyterlab-extensions/references/patterns.md.jupyterlab-extensions).TopBar, setting
toolbar of @jupyterlab/application-extension:top-bar."disabled": true in
@jupyterlab/application-extension:context-menu.JupyterLab identifies a shortcut by its keys and selector. The command does not count. Shortcuts from an overrides file are defaults, like the built-in ones, and these rules apply between defaults:
"disabled": true removes every default shortcut with
the same keys and selector, also one that you add in the same file.So, to give a key that is in use to another command:
{
"@jupyterlab/shortcuts-extension:shortcuts": {
"shortcuts": [
{ "command": "apputils:print", "keys": ["Accel P"], "selector": "body", "disabled": true },
{ "command": "apputils:activate-command-palette", "keys": ["Accel P"], "selector": "html body" }
]
}
}
The new shortcut has a selector that matches the same elements but is a
different text (html body for body, body .jp-Notebook for
.jp-Notebook). Rule 1 then does not remove it.
jlab_inspect.py shortcuts "Accel P".
Copy keys and selector from the output exactly (Accel, not Ctrl).jlab_config.py set … shortcuts … warns about both cases.appName in page config sets the title of the browser tab and the name in
dialogs:
{ "appName": "My Lab" }
Other options a snippet can set: quitButton, terminalsAvailable,
notebookStartsKernel. See
references/config-files.md.
Server and LabApp options go in the single file jupyter_server_config.json
(or .py) of a config folder:
{
"ServerApp": { "quit_button": false },
"LabApp": { "custom_css": true }
}
The drop-in folder jupyter_server_config.d/ is merged only for
ServerApp.jpserver_extensions (which server extensions are on). General
options in a .d file have no effect. A distribution should pass such options
from its launch command (skill jupyterlab-distribution).
Use them when the change is for one person and must win over every default. The file path splits the plugin ID at the colon:
<user settings dir>/@jupyterlab/apputils-extension/themes.jupyterlab-settings
<env>/bin/python scripts/jlab_config.py user-set @jupyterlab/apputils-extension:themes theme '"JupyterLab Dark"'
The file is JSON5 (comments allowed). A running application picks a change up without a restart. Do not use user settings to ship defaults: they belong to the user.
references/recipes.md has the exact snippet for common requests: quiet startup, minimal UI, single-document mode, kiosk-like lock-down, editor and notebook defaults, file browser, terminal, menus and toolbars.
jlab_inspect.py page-config and overrides: the change is in the merged
result, no file is invalid, no ID is flagged.jupyterlab-verify):
--expect-no-plugin, --expect-setting, --fail-on-console-error.jlab_config.py enable / unset.What SKILL.md sets; muted values are Claude Code's defaults
8 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.Other plugins' skills for the same job
npx claudepluginhub jtpio/jupyterlab-skills --plugin jupyterlab-skills