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
  • 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 path it can use - the file lands in the folder the file browser shows, and the terminal receives the path to it from the shell's own working directory, escaped for the shell; 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, 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.3

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.3
File Size Uploaded
jupyterlab_advanced_paste_content_extension-1.0.3.tar.gz 225.5 kB Details

Built distribution (wheel)

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

Total release size: 278.3 kB

Release files / jupyterlab_advanced_paste_content_extension-1.0.3.tar.gz

Download URL jupyterlab_advanced_paste_content_extension-1.0.3.tar.gz
Size 225.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6832377b5441c7bd94748a222b74c3ebe7a6b53ec50862c790dc040a323baa0
BLAKE2b-256 checksum
How to use checksums
d788366a5e919bab9b2ce8e5b693dc4d3867e04a5e34e0cf9e4d70d72aecd718
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.3-py3-none-any.whl

Download URL jupyterlab_advanced_paste_content_extension-1.0.3-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd77988b2efa20b922d3e527443c762ab693fdf1526a417c0019a92f11662675
BLAKE2b-256 checksum
How to use checksums
63df174149f5f141ac9d5a06fe9917527a7f0461b23293684668029f1ff7c6b1
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

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

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