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
[!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-copyreplacements 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
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_terminal_clipboard_extension-1.0.3.tar.gz.
File metadata
- Download URL: jupyterlab_terminal_clipboard_extension-1.0.3.tar.gz
- Upload date:
- Size: 283.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
315e0538f4a6b8073f26c87f42bd9c7001d8404cfb1328036fa5f987698da3dd
|
|
| MD5 |
d3479ae55b33622905e636929e975e40
|
|
| BLAKE2b-256 |
2284356fd381b0fbc4c08ed73935e4a45f6bf9c63c5a9d4d4564c186ccc1950f
|
File details
Details for the file jupyterlab_terminal_clipboard_extension-1.0.3-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_terminal_clipboard_extension-1.0.3-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00f5df7f0fe9961293897543b1b6c9cf9eb95057aded4c5831e1f8765ade294a
|
|
| MD5 |
0ead0a5ca256c66f2396360b90015c0c
|
|
| BLAKE2b-256 |
8072784170bccaa103563f5861e4e27e17d57474c219ae111a9a4fc0efdb11f2
|