JupyterLab extension replacing jupyter-resource-usage with a less intrusive, better implementation of resource usage monitoring
Project description
jupyterlab_resource_monitor_extension
JupyterLab extension that replaces jupyter-resource-usage with a less intrusive and better implementation of resource usage monitoring.
This extension is composed of a Python package named jupyterlab_resource_monitor_extension
for the server extension and a NPM package named jupyterlab_resource_monitor_extension
for the frontend extension.
Features
- Memory monitor in the status bar - current memory usage with the maximum available memory shown alongside; under cgroup v2 this is the server's own cgroup, and without it the reading is host-wide
- CPU usage in the status bar - live CPU utilization next to the memory indicator, as a percentage or a compact bar; same scope as the memory reading
- Kernel usage panel - sidebar panel showing memory and CPU for the kernel attached to the notebook you are looking at
- Container aware - reads the cgroup v2 limits when present, so the ceiling shown is the container's limit rather than the host's RAM
- Event-loop safe metrics collection - metrics are gathered off the tornado event loop, so polling never blocks websockets, kernel messages, or static file serving
- Bounded collection cost - no synchronous recursive walk of the server's child process tree, so a large or leaked process population cannot degrade JupyterLab responsiveness
- Measures kernels only while you are watching - the kernel panel samples solely while it is open, and stops entirely when it is closed
- Drop-in replacement - designed to replace
jupyter-resource-usagewith a safer implementation
How the collection stays off the event loop, what bounds its cost, and how it degrades is described in How Resource Collection Avoids Blocking the Server.
Settings
Configure under Settings -> Settings Editor -> Resource Monitor.
| Setting | Default | Effect |
|---|---|---|
showMemory |
true |
Show the memory item in the status bar |
showCpu |
true |
Show the CPU item in the status bar |
showMemoryPercent |
false |
Append the used-of-limit percentage to the memory item |
cpuMode |
normalised |
normalised shares all cores (0-100%), aggregate sums each core's own 100%, bar draws a filled bar |
showKernelUsage |
true |
Show the kernel usage sidebar panel |
Hovering either status bar item shows the full detail regardless of these settings, including the memory percentage and the CPU core count.
Requirements
- JupyterLab >= 4.0.0
- Linux host - the sampler reads cgroup v2 and
/proc; on macOS and Windows no reading is available, so the status bar items stay hidden and the kernel panel reportsMeasuring...
Install
To install the extension, execute:
pip install jupyterlab_resource_monitor_extension
Uninstall
To remove the extension, execute:
pip uninstall jupyterlab_resource_monitor_extension
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlab_resource_monitor_extension-1.0.24.tar.gz.
File metadata
- Download URL: jupyterlab_resource_monitor_extension-1.0.24.tar.gz
- Upload date:
- Size: 313.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a9598d88de7f1b15e9f68e82b8909257b0620b9b5bbe49abd730482424a6804
|
|
| MD5 |
48b4df28a61154264b31ceeb099a765b
|
|
| BLAKE2b-256 |
04e399d485d35043fc71617642fb4e9ede9babf4cf29f396f2a22f791a274bb7
|
File details
Details for the file jupyterlab_resource_monitor_extension-1.0.24-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_resource_monitor_extension-1.0.24-py3-none-any.whl
- Upload date:
- Size: 71.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9e844b589dce9577956a7e4677eee204a1eeb3ff9a7f1c5f331caf6f4bc978b
|
|
| MD5 |
81c4997356651ba282f8b7351ecfe093
|
|
| BLAKE2b-256 |
f3e303eb99b40c899a3e1754c340dd4a781300bf81c0bfba96f2eae12fc567ec
|