Workspace panel for JupyterLab
This extension replaces the built-in Running Terminals and Kernels sidebar with a panel organised by workspace: a WORKSPACES section with one card per workspace, then KERNELS, TERMINALS and LANGUAGE SERVERS sections listing everything that runs. One section at a time is open: the three lab sections stand at the bottom of the panel only while WORKSPACES is open and fills the height above them, and otherwise they follow WORKSPACES from the top.
Fig 1 - The workspace panel beside a notebook of the workspace this window shows
Why a workspace panel
Developers and data scientists now run several projects at once: they start an agent on one project and work on another while it runs. Each project holds its own tabs, terminals and kernels in a JupyterLab workspace, and the built-in Running panel lists all of them in one flat list, so a terminal from one project sits beside a kernel from another with nothing to tell them apart.
The panel groups them by workspace: what each project holds, what is running in it, and how long ago it was used, with one click to switch to it.
Features
- Workspace section - an edge tab at the panel's left edge with the colour strip, the name and its row count in brackets, the age and, while the card is open, the purpose; the header and the rows carry the workspace colour, and this window's card has an outline
- Triangle - opens or closes a section
- Several cards - any number of workspace cards stay open at once, and closing one leaves the others open
- Tab rows - an open card lists its tabs in one list, each marked by its icon; a document with a running kernel shows the kernel icon beside its own icon and the kernel's state, and a right-click offers Close tab, Detach from workspace, Move to workspace, and Stop terminal or Shut down kernel; Detach from workspace takes the tab out and leaves its terminal or kernel running, and Move to workspace sends the tab to another workspace; the row of this window's current tab carries a pale tint
- Header - a click on the name of another workspace switches this window to it, a click on this window's workspace opens its card or closes it, and a header carries the eye that hides the workspace
- Menu - a right-click on the header, or the context-menu key on the focused header, opens it: open, open in a new browser tab, clear workspace, set description, colour, hide, move up, move down, delete
- Card order - the cards keep one fixed order that switching workspaces does not change, a drag or Move up and Move down moves a card, and a new workspace goes last
- Hide - a hidden workspace leaves the panel, and the number of hidden workspaces sits under the last card of WORKSPACES
- Kernels, terminals and language servers - three sections docked below the workspaces, always in view, for every running kernel and terminal, in a workspace or not, and the running language servers, each section with its count; the KERNELS and TERMINALS bands carry a shut down menu with Shut down all and Shut down detached, detached meaning no workspace holds the item, and the LANGUAGE SERVERS band a single shut down all, so a background terminal or a headless kernel with no tab stays listed; the WORKSPACES band carries a clean up button that removes the other workspaces after a confirmation
- One section at a time - opening a section closes the others, an open WORKSPACES takes the height above the three lab bands, any other open section is as tall as its rows, every open section scrolls when its rows exceed the height, and a reload keeps the same section open
- Kernel rows - a KERNELS row shows the status dot, the name, the memory and the time; select it for the kernel type, the document and the CPU use
- Terminal rows - a TERMINALS row of a numbered terminal shows its number in a small rectangle badge, in the colour of the first workspace that holds the terminal, or in an empty box when no workspace does, and a named terminal its name; a card row drops that label and shows the name of its tab, or the process running in it while the tab has no name of its own; the path of that process stands in the free width with its end in view, and the time since its last activity follows, all without selection
- Tooltips - hover a tab, terminal, kernel or language server for its details on several lines; a terminal's shows its number, tab, process, command, path, memory, last activity with the exact time, and a Workspaces line naming every workspace that holds it or none; a kernel's adds a memory line
- Filter - shows the workspaces whose name, purpose or rows match, and opens each of them
- New workspace - the + button on the WORKSPACES band, left of the clean up button, creates a workspace and asks for its name and an optional description
- Command line - the
jupyterlab-workspacetool drives the same workspaces, terminals and kernels from a shell, switches a window to a workspace and activates a tab - Lab pages - the
workspace-page:opencommand takes the arguments ofserver-proxy:open,{url, title?, id?, newBrowserTab?}, besideicon?andpolicy?, and shows a locally served page in a main-area tab; a page under the lab's/proxy/<port>/gets the sandboxserver-proxy:opengives, so it keeps the lab session, storage, cookies and POSTs, and any other URL is sandboxed toallow-scripts, so its scripts run but it has no lab session, storage or cookies;policy.sandboxreplaces either sandbox,nullremoves it, andallow,referrerPolicyandcspset their iframe attributes;newBrowserTab: trueopens the URL in a new browser tab instead, andidbecomes the id of the tab's content; opening a page on the port of an open page tab, or with itsid, reuses that tab and loads the URL again; a page document on the lab's origin is fetched past the browser cache first, so a page the server rewrote shows its new content, while the scripts, styles and data the page loads follow their server's caching headers, so a page with separate files needs a server that sendsCache-Control: no-store; the tab takes the given title, or the page's own while it keeps the lab origin, andiconsets its icon from an image URL (svg or png), while without it the tab shows the standard page icon (a comment bubble); a malformed argument is refused before any tab opens
Requirements
The extension needs JupyterLab 4.6 or later.
Install
Install the package from PyPI.
pip install jupyterlab-workspace-manager-extension
Command line
jupyterlab-workspace manages a running lab from a shell: workspaces list, add, open, describe, remove, clean and switch, tabs list and tabs activate, windows list, and terminals and kernels, each with list and kill.
Run jupyterlab-workspace --help for the commands, the environment variables that name the lab, and the exit codes.
Agent skill
The jupyterlab-workspace command ships an agent skill at
.agents/skills/jupyterlab-workspace-manager-extension/SKILL.md. Link it where your agents
read skills.
After pip install, with the Python that runs the lab:
mkdir -p ~/.agents/skills && ln -s "$(python -c 'import sys; print(sys.prefix)')/share/jupyter/agents/skills/jupyterlab-workspace-manager-extension" ~/.agents/skills/jupyterlab-workspace-manager-extension
From a clone:
ln -s "$PWD/.agents/skills/jupyterlab-workspace-manager-extension" ~/.claude/skills/jupyterlab-workspace-manager-extension
Uninstall
Remove the package.
pip uninstall jupyterlab-workspace-manager-extension
Metadata
Release files for jupyterlab-workspace-manager-extension 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyterlab_workspace_manager_extension-1.0.2.tar.gz | 966.1 kB | Without provenance | Details for jupyterlab_workspace_manager_extension-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterlab_workspace_manager_extension-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for jupyterlab_workspace_manager_extension-1.0.2-py3-none-any.whl |
Total release size: 1.1 MB
Release files / jupyterlab_workspace_manager_extension-1.0.2.tar.gz
| Download URL | jupyterlab_workspace_manager_extension-1.0.2.tar.gz |
|---|---|
| Size | 966.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da5661ddbb8f7d26dc08bcf674ae3c0a9555e757c101ca75836178688096064e
|
|
BLAKE2b-256 checksum How to use checksums |
f5bc3328b85d85dfe0fb41f5a9fb5d72b3481c20efd2e72e24a78f75d4603c60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Release files / jupyterlab_workspace_manager_extension-1.0.2-py3-none-any.whl
| Download URL | jupyterlab_workspace_manager_extension-1.0.2-py3-none-any.whl |
|---|---|
| Size | 136.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a1d6a4d3ddef9320cf48328540f5a73babffb921fce4d9a737e70e4df6daa04
|
|
BLAKE2b-256 checksum How to use checksums |
8d4461dc80125def47290f8e4137b93a9ac4ae90eb9d78dce8811813fe477bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Security for jupyterlab-workspace-manager-extension 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.