Skip to main content

IPython/Jupyter magic commands for copying code to clipboard

Project description

Jupyter ClipMagic

A simple IPython/Jupyter magic extension that copies code to the clipboard.

Installation

pip install jupyter_clipmagic

Or using uv:

uv pip install jupyter_clipmagic

Usage

Load the extension in your notebook:

%load_ext jupyter_clipmagic

Copy a line to the clipboard:

%clip print("Hello, world!")

Copy a cell to the clipboard:

%%clip
for i in range(10):
    print(i)

Development

Set up development environment using uv:

uv venv
uv pip install -e ".[dev]"

Run tests:

pytest

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

jupyter_clipmagic-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

jupyter_clipmagic-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_clipmagic-0.1.0.tar.gz.

File metadata

  • Download URL: jupyter_clipmagic-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for jupyter_clipmagic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6195269f0b34a212dd2b25a6c9a10593ad98fa9672d5ec6e299dfc84cb09cf15
MD5 01cfb5230779cb3a78ce450de6383496
BLAKE2b-256 f921d77298e1da5da566ed05735c87958e093e3fbad8615ddaaa50817933a675

See more details on using hashes here.

File details

Details for the file jupyter_clipmagic-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_clipmagic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 635ebaa6ae59693a545b402958c2bce9b4ef034e2366acfa87340573062d0522
MD5 1256283eb20fcc0a89692d0d64f7034f
BLAKE2b-256 9f2e8378103f0d3d4da0aeef75ec3d731c801c7cfe96b31b59f742f7228c2bd6

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