Skip to main content

Jupyterlab extension to handle copy to clipboard actions in a terminal to allow copy to clipboard of the browser/user

Project description

jupyterlab_terminal_clipboard_extension

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

[!TIP] This extension is part of the stellars_jupyterlab_extensions metapackage. Install all Stellars extensions at once: pip install stellars_jupyterlab_extensions

Copy to clipboard from JupyterLab terminal sessions. Intercepts OSC 52 escape sequences and routes them to the browser clipboard. Also auto-installs drop-in shims for xclip, xsel, and wl-copy so programs like pass-cli, vim, and tmux can copy to clipboard without an X11 display.

terminal app -> xclip/xsel (shim) -> OSC 52 -> extension -> browser clipboard

Features

  • OSC 52 clipboard interception - captures clipboard escape sequences from terminal output
  • Auto-installing shims - deploys xclip, xsel, wl-copy replacements to ~/.local/bin/ on startup when real tools are not functional (no display server)
  • Smart detection - preserves real clipboard tools when they work, only installs shims when needed

Installation

Requires JupyterLab 4.0.0 or higher.

pip install jupyterlab_terminal_clipboard_extension

Ensure ~/.local/bin is in your PATH for the shims to work:

export PATH="$HOME/.local/bin:$PATH"

Uninstall

pip uninstall jupyterlab_terminal_clipboard_extension

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_terminal_clipboard_extension-1.0.3.tar.gz (283.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyterlab_terminal_clipboard_extension-1.0.3.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_terminal_clipboard_extension-1.0.3.tar.gz
Algorithm Hash digest
SHA256 315e0538f4a6b8073f26c87f42bd9c7001d8404cfb1328036fa5f987698da3dd
MD5 d3479ae55b33622905e636929e975e40
BLAKE2b-256 2284356fd381b0fbc4c08ed73935e4a45f6bf9c63c5a9d4d4564c186ccc1950f

See more details on using hashes here.

File details

Details for the file jupyterlab_terminal_clipboard_extension-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_terminal_clipboard_extension-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 00f5df7f0fe9961293897543b1b6c9cf9eb95057aded4c5831e1f8765ade294a
MD5 0ead0a5ca256c66f2396360b90015c0c
BLAKE2b-256 8072784170bccaa103563f5861e4e27e17d57474c219ae111a9a4fc0efdb11f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page