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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6195269f0b34a212dd2b25a6c9a10593ad98fa9672d5ec6e299dfc84cb09cf15
|
|
| MD5 |
01cfb5230779cb3a78ce450de6383496
|
|
| BLAKE2b-256 |
f921d77298e1da5da566ed05735c87958e093e3fbad8615ddaaa50817933a675
|
File details
Details for the file jupyter_clipmagic-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jupyter_clipmagic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635ebaa6ae59693a545b402958c2bce9b4ef034e2366acfa87340573062d0522
|
|
| MD5 |
1256283eb20fcc0a89692d0d64f7034f
|
|
| BLAKE2b-256 |
9f2e8378103f0d3d4da0aeef75ec3d731c801c7cfe96b31b59f742f7228c2bd6
|