Skip to main content

jupyterlab_advanced_paste_content_extension

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

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.

Features

  • Screenshots become files - a pasted bitmap is written as PNG named paste-20260920-191530.png in 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 - ![](name) in a markdown file or markdown cell, "name" in a code cell so it drops into plt.imread(), the bare name in a text file or a terminal
  • 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
  • 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, and writes cannot escape the server root

The full behaviour of every content type on every surface is in docs/design-content-types.md.

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

Release files for jupyterlab-advanced-paste-content-extension 1.0.1

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-paste-content-extension 1.0.1
File Size Uploaded
jupyterlab_advanced_paste_content_extension-1.0.1.tar.gz 220.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-advanced-paste-content-extension 1.0.1
File Interpreter ABI Platform
jupyterlab_advanced_paste_content_extension-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 272.4 kB

Release files / jupyterlab_advanced_paste_content_extension-1.0.1.tar.gz

Download URL jupyterlab_advanced_paste_content_extension-1.0.1.tar.gz
Size 220.7 kB
Tags Source
SHA-256 checksum
How to use checksums
096c1e76a36f863c447d9de6305021eab904048e7a132f3c1c00a90b189fd8d2
BLAKE2b-256 checksum
How to use checksums
b992bef1cd36df04f1b9643e2d67306d6626940f2a8410589f58fb6b467c1886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / jupyterlab_advanced_paste_content_extension-1.0.1-py3-none-any.whl

Download URL jupyterlab_advanced_paste_content_extension-1.0.1-py3-none-any.whl
Size 51.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7ecc625e2835016d443eb7618651e79f78b9245a632e71d2770bc20ccc59b98
BLAKE2b-256 checksum
How to use checksums
5615f35c348b1b4b070cad2e2feed1d135dd507d598e73a1b63c28b28c57769e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

1.0.3

2 release files

1.0.2

2 release files

This release

1.0.1 This release

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