jupyterlab_advanced_paste_content_extension
Paste a screenshot or a file into JupyterLab and have it land as a real file. The extension intercepts the paste, writes the payload into the folder you are working in, and gives the surface that received the paste a reference to that file instead of a blob of inline content. A plain-text paste is left alone.
A screenshot pasted into a markdown cell becomes a PNG on disk plus an image link. A copied file becomes a copy in the current folder. Text stays text.
A terminal has no document to give the file a home, so a paste into one becomes a clipping: the file is written into a clippings folder of its own and the shell receives its absolute path.
Features
- Screenshots become files - a pasted bitmap is written as PNG named
paste-20260920-191530.pngin the folder holding the document, instead of a base64 blob inside the notebook - Pasted files are copied in - a file copied from a file manager lands in the current folder under its own name; several files at once all arrive
- The reference suits the surface -
in a markdown file or markdown cell,"name"in a code cell so it drops intoplt.imread(), the bare name in a text file - Rich HTML becomes markdown - only on the two surfaces that render it; a text file, a code cell and a terminal take the plain-text flavour, which is what a normal paste already gives them
- A terminal gets a clipping - a file or image pasted into a terminal is written into the
clippings folder,
/tmp/paste-filesby default, and the terminal receives the absolute path to it, escaped for the shell, so it resolves wherever the shell has changed into; Claude Code and the other AI assistant terminals included - Nothing is written twice - an identical payload references the file already in the folder, and a name clash never overwrites
- Server-side write - the file is created through a Jupyter server endpoint, so it lands in the server's workspace rather than the browser sandbox; a request-named folder cannot escape the server root, and the server-chosen clippings folder is the deliberate exception
The full behaviour of every content type on every surface is in docs/design-content-types.md.
Configuration
The clippings folder is where a paste into a terminal writes. It defaults to
/tmp/paste-files and is set in jupyter_server_config.py:
c.PasteClippingsConfig.clippings_dir = "/srv/clippings"
A clipping is treated like clipboard content and is not expected to survive a reboot, which is why the default sits in the temporary directory. To keep them, put the folder anywhere and point the default name at it:
mkdir -p ~/.cache/paste-files && chmod 700 ~/.cache/paste-files
ln -s ~/.cache/paste-files /tmp/paste-files
The symlink is followed, so clips land in the folder under your home directory and outlive the temporary directory being cleared.
When the configured folder cannot be created, or resolves to one this server does not own, the paste is written into the folder the file browser shows instead. A paste never fails because of the clippings folder.
Requirements
- JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyterlab_advanced_paste_content_extension
Uninstall
To remove the extension, execute:
pip uninstall jupyterlab_advanced_paste_content_extension
Metadata
Release files for jupyterlab-advanced-paste-content-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyterlab_advanced_paste_content_extension-1.0.8.tar.gz | 235.8 kB | Without provenance | Details for jupyterlab_advanced_paste_content_extension-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterlab_advanced_paste_content_extension-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for jupyterlab_advanced_paste_content_extension-1.0.8-py3-none-any.whl |
Total release size: 291.0 kB
Release files / jupyterlab_advanced_paste_content_extension-1.0.8.tar.gz
| Download URL | jupyterlab_advanced_paste_content_extension-1.0.8.tar.gz |
|---|---|
| Size | 235.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a65a3eb7bec427b40a30a0ef6e08683d349fabbd17dfd61039cd9451ba51bb8b
|
|
BLAKE2b-256 checksum How to use checksums |
b5da54c16781ec02a390641bc8c64a7f95b1c6da2fe73897c1a8e71e1e4c7db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / jupyterlab_advanced_paste_content_extension-1.0.8-py3-none-any.whl
| Download URL | jupyterlab_advanced_paste_content_extension-1.0.8-py3-none-any.whl |
|---|---|
| Size | 55.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04fde4d702716b7c97f131cc2316f12f78e5a7c05a4125e29e639a56736d3745
|
|
BLAKE2b-256 checksum How to use checksums |
dfa6a755a48e87d0377a2f27e0cf8a784a8dd13e8929db6adbaa76cb99cfcfea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for jupyterlab-advanced-paste-content-extension 1.0.8
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.