Skip to content

Instantly share code, notes, and snippets.

@iwconfig
iwconfig / clip_magic.py
Last active November 9, 2019 17:46 — forked from bwagner/clip_magic.py
copy to clipboard ipython magic -- linux only
"""
Add copy to clipboard from IPython!
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage:
%clip hello world
# will store "hello world"