Skip to main content

Workspace panel for JupyterLab

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO Donate PayPal

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 is always open and takes the height of the panel, while the bands of the other three stay in view above and below it; the mouse wheel scrolls the open section and, at the end of its list, folds it into its band and opens the next one.

The workspace panel

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; this window's card has an outline, and every other card is dimmed to a fainter tint and ink
  • Triangle - opens or closes a workspace card; on a section band it shows whether that section is open
  • Several cards - any number of workspace cards stay open at once, closing one leaves the others open, and the open set comes back after a reload
  • Tab rows - an open card lists its tabs in one list, each marked by its icon; another workspace's card draws a saved Settings Editor, Log Console, Contextual Help, Licenses, Plugin Manager, LSP Diagnostics, code viewer or page tab with the icon and name its own window shows, and a server-proxy or Help tab moved there from this window keeps the icon it showed here until that workspace opens it, otherwise the web-page globe; a Launcher tab is no row and no part of the count; 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, a web page tab of server-proxy:open, the Help menu or workspace-page:open included; a tab JupyterLab does not save in a workspace is refused, and is opened again by hand in the other 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, open while the workspace is shown and crossed while it is hidden, which hides it or shows it again
  • 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 - a click on a folded band, or Enter or Space on it, opens that section and folds the open one, and a click on the open band leaves it open; the open section takes the height the four bands leave, the wheel anywhere over the panel scrolls its list, and at the end of the list each further scroll eases the next section's first rows further into view until, at 44 px or at half the height of an open list under 88 px, the section folds into its band and opens the next one, while a scroll that stops short lets them spring back; a section whose list cannot scroll, with no rows or rows that fit, is at its end both ways; the wheel does nothing while a section folds, so a swipe that ends inside the fold opens one section, and a scroll that goes on past the fold carries on in the new section; 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-workspace tool 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:open command takes the arguments of server-proxy:open, {url, title?, id?, newBrowserTab?}, beside icon? and policy?, and shows a locally served page in a main-area tab; a page under the lab's /proxy/<port>/ gets the sandbox server-proxy:open gives, so it keeps the lab session, storage, cookies and POSTs, and any other URL is sandboxed to allow-scripts, so its scripts run but it has no lab session, storage or cookies; policy.sandbox replaces either sandbox, null removes it, and allow, referrerPolicy and csp set their iframe attributes; newBrowserTab: true opens the URL in a new browser tab instead, and id becomes the id of the tab's content; opening a page on the port of an open page tab, or with its id, 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 sends Cache-Control: no-store; the tab takes the given title, or the page's own while it keeps the lab origin, and icon sets its icon from an image URL (svg or png), while without it the tab shows the standard page icon (a comment bubble); a page tab saves in its workspace and reopens after a browser reload with its URL, title, icon and sandbox, and a reused tab keeps its one saved entry; 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.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-workspace-manager-extension 1.0.16
File Size Uploaded Provenance Actions
jupyterlab_workspace_manager_extension-1.0.16.tar.gz 1.1 MB Without provenance Details for jupyterlab_workspace_manager_extension-1.0.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-workspace-manager-extension 1.0.16
File Interpreter ABI Platform Actions
jupyterlab_workspace_manager_extension-1.0.16-py3-none-any.whl Python 3 none any Details for jupyterlab_workspace_manager_extension-1.0.16-py3-none-any.whl

Total release size: 1.2 MB

Release files / jupyterlab_workspace_manager_extension-1.0.16.tar.gz

Download URL jupyterlab_workspace_manager_extension-1.0.16.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2883e2af27b00c46889f28e30e593a9b4e338fa62fe680fd792303a1c0533cd6
BLAKE2b-256 checksum
How to use checksums
b17f321556128abc98ea983769f4f53fb4baeda5cb1bf0af77ad5787af99e59d
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.16-py3-none-any.whl

Download URL jupyterlab_workspace_manager_extension-1.0.16-py3-none-any.whl
Size 145.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9131c8b2c065bc406b9839e077dc832ccde8db53c4e12c20f018056d709ff55a
BLAKE2b-256 checksum
How to use checksums
c6789b5a2c10ce5ea79eaac4a7e5c478c98e12517ad6524855251f4b260dad58
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.16

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page