Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 622 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 622 Bytes

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!