ipylab
Control JupyterLab from Python notebooks
What it is and what it does
ipylab is a Python library that bridges JupyterLab's interface with notebook code, letting you programmatically manipulate the lab environment. It acts as a proxy from Python to JupyterLab over Jupyter Widgets, exposing the lab's UI components and command system to notebook code.
You can use it to add custom widgets to the main area or sidebar, launch commands (like opening terminals or changing themes), listen to lab events (notebook opened, console closed) and trigger Python callbacks, and build small applications with advanced layouts using Lumino widgets. It depends only on ipywidgets and is compatible with Python 3.8 through 3.12.
Use it for:
- Add interactive widgets to JupyterLab's main panel or sidebars directly from notebook code.
- Programmatically execute JupyterLab commands like opening files, launching terminals, or switching themes.
- Build custom dashboards or control panels inside notebooks that respond to lab events.
- Create reproducible lab layouts and workspaces configured entirely in Python.
- Listen to JupyterLab signals (notebook opened, closed) and trigger Python-side actions in response.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ipylab lets you control JupyterLab's interface and behavior from Python code running in notebooks—adding widgets to panels, executing commands, listening to events, and building custom layouts.
Yes, if you work regularly in JupyterLab and want to automate or customize its interface from Python. The low install friction and permissive license make it a low-risk addition. The aging maintenance (last release 416 days ago) is a minor concern but not a blocker—the project is not archived and remains compatible with current JupyterLab versions. Not necessary if you only use JupyterLab's standard interface.
Install
ipylab on PyPI
pip
pip install ipylabuv
uv add ipylabpoetry
poetry add ipylabInstalling ipylab
Before you install
Low friction install with a single runtime dependency (ipywidgets). The project shows aging maintenance—last release was 416 days ago—but the repository remains active and not archived, suggesting it is stable rather than abandoned.
License in practice
BSD 3-Clause permissive license. You can use, modify, and distribute ipylab freely in commercial and private projects as long as you retain the copyright notice and disclaimer.
Quickstart
pip install ipylab
import ipylab
from ipywidgets import Button
button = Button(description='Click me')
ipylab.dock_panel.add_widget(button, 'My Widget')
Requires JupyterLab 4 running in a browser; cannot be used in standard IPython or non-Jupyter environments.
Verify before relying
- Whether the aging maintenance status (416 days since last release) affects compatibility with the latest JupyterLab versions.
- Whether all listed features (DockPanel, SplitPanel, Toolbar, signal listening) are equally mature or if some are experimental.
Package facts
| License | Copyright (c) 2020 ipylab contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — ipywidgets |
| Maintenance | aging — 416 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 241,286/month — #8,882 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ipylab-1.1.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
ipymplipympl enables interactive matplotlib plots in…
permissive · top 5,000 on PyPI
jupyterlab-widgetsEnables Jupyter/IPython widgets to render and…
permissive · top 1,000 on PyPI
ipyeventsipyevents provides a Jupyter widget that…
permissive · top 15,000 on PyPI
voilaVoilà converts Jupyter notebooks into…
permissive · top 15,000 on PyPI
jupyterlab-commands-toolkitExposes JupyterLab commands to Python code and…
permissive · top 15,000 on PyPI
jupyter_bokehRenders Bokeh visualizations directly within…
permissive · top 15,000 on PyPI
ipywidgetsipywidgets provides interactive HTML widgets…
permissive · top 1,000 on PyPI
ipytreeipytree provides a tree-structure widget for…
permissive · top 15,000 on PyPI
jupyterlabJupyterLab is an extensible web-based…
permissive · top 1,000 on PyPI
phoebusgenGenerates Phoebus Display Builder XML format…
copyleft · top 15,000 on PyPI