Skip to main content

jupyterlab_basic_terminal_extension

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

Launch a utility terminal in JupyterLab that runs without a shell. Perfect for spawning short-lived console utilities that close their tab automatically when the underlying process exits, instead of leaving behind an idle shell prompt.

Features

  • Shell-less terminal command - Adds a JupyterLab command that opens a terminal bound directly to a utility process, with no surrounding shell
  • Auto-close on exit - Terminal tab closes as soon as the utility process finishes, keeping the workspace tidy
  • Server extension companion - Python jupyter_server extension exposes the route used by the frontend to spawn the process
  • JupyterLab 4 native - Built against @jupyterlab/application 4.x and ships as a prebuilt federated extension

Installation

Requires JupyterLab 4.0.0 or higher, and bash on the server - the terminal initialisation step uses bash-specific syntax, so a sh-only image will not work.

pip install jupyterlab_basic_terminal_extension

Usage

The extension deliberately adds no menu item, palette entry or launcher tile. Its entire surface is one command, invoked programmatically by other extensions, notebook code, or a jupyter_app_launcher tile:

await app.commands.execute('basic-terminal:launch', {
  argv: ['/opt/utils/my-utility.sh'],
  cwd: 'projects/demo'
});
  • argv (required) - non-empty array of strings. argv[0] is executed directly; there is no shell, so no globbing, pipes or redirection
  • cwd (optional) - absolute path used as-is, or a server-relative path resolved against ServerApp.root_dir ('' is the root). Omit it and the current file browser folder is used, unless the browser is on a registered non-default drive - such a drive is not assumed to map onto the server filesystem, so the server's own working directory is used instead. A path that does not resolve to a directory is rejected with HTTP 400

The command resolves to the terminal widget, and rejects if the process exits before the widget can be displayed.

Uninstall

To remove the extension, execute:

pip uninstall jupyterlab_basic_terminal_extension

Metadata

Release files for jupyterlab-basic-terminal-extension 1.0.8

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-basic-terminal-extension 1.0.8
File Size Uploaded
jupyterlab_basic_terminal_extension-1.0.8.tar.gz 320.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-basic-terminal-extension 1.0.8
File Interpreter ABI Platform
jupyterlab_basic_terminal_extension-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 354.0 kB

Release files / jupyterlab_basic_terminal_extension-1.0.8.tar.gz

Download URL jupyterlab_basic_terminal_extension-1.0.8.tar.gz
Size 320.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0e3ea045131a05cb3eabdcd09484ef85339c939eb095a370290dbc4002689e19
BLAKE2b-256 checksum
How to use checksums
2e4717d1d35e91ae3648e7a4efb4aa7ff7b9fe69062c8c861efb5d117d1a7648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / jupyterlab_basic_terminal_extension-1.0.8-py3-none-any.whl

Download URL jupyterlab_basic_terminal_extension-1.0.8-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82674a75194a1a49b40fadccc9c0dd9618fb44390a223d975c2934c3ddfbdbe1
BLAKE2b-256 checksum
How to use checksums
78915fd6982feee807cd925a22665d6cde3c617693d2a4432d54d8d9e10e9da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

1.0.9

2 release files

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

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