Skip to content

Instantly share code, notes, and snippets.

@jemshid
jemshid / clip_magic.py
Last active October 25, 2016 15:31 — forked from nova77/clip_magic.py
copy to clipboard ipython magic
"""
The functionality requires installation of xsel package
sudo apt-get install xsel
1. clip: Add copy to clipboard from IPython!
2. ch : Copy history to clipboard. Just one line.
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage: