Skip to content

bsdz/jupyter_browser_clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Copy text to OS clipboard when using Jupyter remotely

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages