Skip to main content

jupyterlab_trash_mgmt_extension

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

A dedicated left panel for managing your JupyterLab trash. See what's taking up space, restore files you need, or empty the bin entirely.

Trash Management Panel

Features

  • Trash panel in sidebar - Accessible alongside file browser, kernels, git, and extensions panels
  • Storage usage display - See how much space deleted files occupy
  • Every trash source - The XDG trash stays the main list, and /home/cache and every user's home trash appear below it as collapsible sections with their own item count and size
  • Trash on other file systems - The trash folder of the notebook root and of every folder in c.TrashManagement.locations appears as a section; its rows restore with a right-click or Shift+F10 (see Configuration)
  • Mount-safe delete - Deleting or emptying a trashed folder stops at a file system mounted inside it; that entry stays in the trash with an error naming the mount
  • Range of the clean - two commands in the command palette: Clean All Sources empties every source; Clean Workspace removes only entries whose original path lies under the workspace
  • Individual item management - Remove or restore specific files from trash
  • Folder navigation - Open a trashed folder and restore or remove single items inside it
  • Keyboard control - Tab to the list, move with the arrow keys, select with Space, open a folder with Enter and reach Restore and Delete with Shift+F10
  • Motion that carries meaning - the loading ring keeps turning under every system preference, while the refresh button stays static
  • Large trash - Emptying tens of thousands of items no longer blocks the rest of the lab
  • Empty bin - Clear all deleted files at once
  • Server-side integration - Python backend for reliable trash operations

Installation

Requires JupyterLab 4.6 or higher.

pip install jupyterlab_trash_mgmt_extension

Uninstall

pip uninstall jupyterlab_trash_mgmt_extension

Configuration

send2trash can put a deleted item into a trash folder at the top of another file system: <folder>/.Trash-<uid>, or <folder>/.Trash/<uid> when .Trash is a sticky directory that is not a symbolic link. The XDG trash (the main list) and the trash folder of the notebook root are always monitored. The server option c.TrashManagement.locations adds folders; the panel lists the trash folder of each one as a section after the notebook root, in option order, labelled with that folder.

  • Default []: the XDG trash and the notebook root only
  • ~ is expanded; a relative path resolves against the server root_dir
  • A folder with no trash folder gets no section
  • A folder that repeats the notebook root or the XDG trash gets no second section
  • No mount table is read and no mount below a folder is visited
  • A change needs a server restart

Add folders in jupyter_server_config.py:

c.TrashManagement.locations = ['~/.cache', '/mnt/nas-shared']

Built because I kept running out of disk space and blaming everything except my own hoarding of failed notebooks.

Metadata

Release files for jupyterlab-trash-mgmt-extension 1.1.27

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-trash-mgmt-extension 1.1.27
File Size Uploaded Provenance Actions
jupyterlab_trash_mgmt_extension-1.1.27.tar.gz 584.4 kB Without provenance Details for jupyterlab_trash_mgmt_extension-1.1.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-trash-mgmt-extension 1.1.27
File Interpreter ABI Platform Actions
jupyterlab_trash_mgmt_extension-1.1.27-py3-none-any.whl Python 3 none any Details for jupyterlab_trash_mgmt_extension-1.1.27-py3-none-any.whl

Total release size: 659.2 kB

Release files / jupyterlab_trash_mgmt_extension-1.1.27.tar.gz

Download URL jupyterlab_trash_mgmt_extension-1.1.27.tar.gz
Size 584.4 kB
Tags Source
SHA-256 checksum
How to use checksums
64cb64ac6a1716b62702f49fc92577d59ba6022b4cba1f774736827f9b0bb5df
BLAKE2b-256 checksum
How to use checksums
cb091d79ddb608853cfb1f582b9e082a84680a07959c28f157168c2a26295548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / jupyterlab_trash_mgmt_extension-1.1.27-py3-none-any.whl

Download URL jupyterlab_trash_mgmt_extension-1.1.27-py3-none-any.whl
Size 74.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09bc965b47ac20ee1d47f78f23cefcd6c47b4014f947e38fa95394a94ef36576
BLAKE2b-256 checksum
How to use checksums
41185af90d002194edce7f2bd1424a0ea8c04b8fb27a78c9a1861da4710d2706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for jupyterlab-trash-mgmt-extension 1.1.27

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