Skip to main content

Copy text to OS clipboard when using Jupyter remotely

Project description

jupyter_browser_clipboard

Copy text to OS clipboard when using Jupyter remotely. This uses the web browser's own clipboard via Javascript.

Originally a gist on github but got tired of copy pasting it into each notebooks.

Installation

$ pip install jupyter_browser_clipboard

Or, alternatively,

$ pip install git+https://github.com/bsdz/jupyter_browser_clipboard.git#main

Usage

>>> from jupyter_browser_clipboard import BrowserClipboard
>>> df = pd.DataFrame(data=[1,2,3,5,6, 101])
>>> BrowserClipboard(df.to_csv(sep="\t"))
Copying text to browser's clipboard.. success!

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_browser_clipboard-0.1.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page