Skip to main content

jupyterlab_advanced_file_browser_extension

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

Adds features to the JupyterLab file browser: folders that unfold in place as a tree, Unix Style Sorting, Open in Terminal on files and drag-and-drop path insertion into terminals, editors and notebooks. It replaces jupyterlab_file_browser_sorting_extension, jupyterlab_open_in_terminal_extension and jupyterlab_drag_and_drop_path_extension.

Features

  • Folder unfolding - A triangle on each folder row folds or unfolds the folder in place, as a tree; folding and unfolding animate over a short interval; a double-click on a folder still enters it. Based on jupyterlab-unfold
  • Unfolding switch - Right-click the column header of the file browser to turn unfolding on or off, beside Show Last Modified Column and the other column items
  • Unix Style Sorting - Names sorted in LC_COLLATE=C byte order (dot files, digits, capitals, underscore, lower case), folders first, also inside unfolded folders; switched in the column-header menu
  • New items at once - A new folder, file or notebook shows in the listing as soon as the server confirms it, in its sorted place; its rename editor opens after one read of its own folder, and a Paste, Duplicate or drag-copy answer joins the read of its folder already in flight instead of starting a second one
  • Open in Terminal - On a file or on the empty area of the file browser, opens a terminal in that file's folder, also for a file inside an unfolded folder
  • Drop a path into a terminal - Drag a file or folder from the file browser onto a terminal to insert its path escaped for the shell, or single-quoted with quoting turned on; the dropped-on terminal comes to the foreground
  • Drop several files onto a terminal - Every dragged path arrives in one send, in the order selected, separated by a space or by a newline
  • Drop a path into an editor or a notebook - A Python file or a Python notebook code cell receives a quoted string literal or a pathlib expression; any other open file or code cell receives the bare path. A notebook drop lands in the cell under the pointer at that cell's cursor, and a drag holding several items is declined by an editor and by a notebook
  • Drag from the breadcrumbs - The folder trail above the listing is a drag source, so the folder the browser shows can be dropped onto a target without first finding its row; a click on a breadcrumb still navigates
  • Delete with trash - With the server's trash on, the Delete dialog offers Cancel, Delete Permanently and Move to Trash, and Move to Trash is the default; with the trash off, it offers Cancel and Delete. Delete Permanently removes a folder with its content whatever the server's always_delete_dir setting
  • Trash only where it is monitored - Move to Trash moves only the items whose trash the trash management extension monitors: the item's mount, found from the real path of its folder, is the mount of the home trash, the server root, or a folder in the server option TrashManagement.locations (default []; ~ is expanded and a relative entry is taken from the server root). When no selected item is monitored, such as on a network volume linked into the server root, the dialog offers Cancel and Delete Permanently only, with a line saying the trash of this location is not monitored. When some are, a line in the dialog gives the count of the others; Move to Trash moves the monitored items, then a second dialog lists the others and asks to delete them permanently, with Cancel the default
  • Trash on all volumes - The server option c.AdvancedFileBrowser.trash_on_all_volumes (default False) set to True offers Move to Trash for every item whatever its mount, and Move to Trash moves the item through the server's contents manager; False keeps the rule above
  • Core patches recommended - jupyterlab_core_patches_extension with its jupyterlab_file_delete_trash_fix switch on is recommended for Move to Trash on other mounts, where it moves each item into the trash of its own mount; without it, the stock JupyterLab trash behaviour applies, and the server logs one start line saying the fix is not installed or switched off
  • Large removal warning - With the trash on, a selection larger than 10 GiB shows a warning that moving large files to the trash is not advised; the 10 GiB threshold is not a setting
  • Removal progress - A removal still running after 1 second shows a progress dialog with a spinner and a progress bar; its Hide button closes the dialog and the removal keeps running

Settings

Open Settings → Settings Editor → Advanced File Browser. These six keys replace the former Drag and Drop Path settings page; saved values from that extension are not carried over. Each entry below leads with the label the editor shows, with the JSON key in brackets:

  • Enable drag-and-drop path insertion (dragDropPathEnabled) - master on/off switch; default true
  • Path type (pathType) - relative (default) or absolute; a relative path is measured from the terminal's working directory or from the open document's folder
  • Relative terminal path caveat - the terminal working directory comes from the deepest shell the terminal is running, so a background job that changed directory can be the one used; absolute paths and editor or notebook drops are unaffected
  • Python path style (pythonPathStyle) - posix inserts a quoted string literal (default), pathlib inserts a Path(...) expression
  • Pathlib constructor (pathlibConstructor) - pathlib.Path (default) or Path; choose Path only in files that already do from pathlib import Path, because the extension inserts no import
  • Terminal separator for several paths (terminalSeparator) - space (default) keeps the paths on one line as arguments; newline gives each path a line of its own, ending every line but the last with a backslash so the shell reads it as a continuation
  • Quote paths in the terminal (terminalQuotePaths) - false (default) backslash-escapes the characters that need it; true wraps each path in single quotes instead

Requirements

  • JupyterLab 4.6 or later
  • Python 3.12 or later

Install

pip install jupyterlab_advanced_file_browser_extension

Uninstall

pip uninstall jupyterlab_advanced_file_browser_extension

Metadata

Release files for jupyterlab-advanced-file-browser-extension 1.0.7

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-advanced-file-browser-extension 1.0.7
File Size Uploaded Provenance Actions
jupyterlab_advanced_file_browser_extension-1.0.7.tar.gz 451.4 kB Without provenance Details for jupyterlab_advanced_file_browser_extension-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-advanced-file-browser-extension 1.0.7
File Interpreter ABI Platform Actions
jupyterlab_advanced_file_browser_extension-1.0.7-py3-none-any.whl Python 3 none any Details for jupyterlab_advanced_file_browser_extension-1.0.7-py3-none-any.whl

Total release size: 548.0 kB

Release files / jupyterlab_advanced_file_browser_extension-1.0.7.tar.gz

Download URL jupyterlab_advanced_file_browser_extension-1.0.7.tar.gz
Size 451.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2003f2dd5232faf61a9aa584ff52027429d9041641cf36dda852d0c1bb4c2c60
BLAKE2b-256 checksum
How to use checksums
cf114fadf64ad3d3421ac2a8ac18a98da5a71b1f02aae54ae3cfc922bf997f08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / jupyterlab_advanced_file_browser_extension-1.0.7-py3-none-any.whl

Download URL jupyterlab_advanced_file_browser_extension-1.0.7-py3-none-any.whl
Size 96.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0113115b2bcb666344a82e5268889caa25fc3ba9b6f92f54e3b5e74bdc64b62
BLAKE2b-256 checksum
How to use checksums
30e9a62e8f29226318e2496ae9fbd1e46b6db306c831a449cf1a0e8d4b6054c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for jupyterlab-advanced-file-browser-extension 1.0.7

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