Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy to clipboard from IPython using Windows 7

I am running IPython on Windows 7 and can use the %paste magic command to paste from the clipboard. However, I cannot copy from IPython to the clipboard. I want to copy code snippets from IPython and paste them back to a text editor.

Anyone know a fix for this?

like image 378
user2367853 Avatar asked May 09 '13 20:05

user2367853


Video Answer


1 Answers

Found this gist to add a %copy magic command, my fork adds supports osx/linux/windows platforms.

I have yet to test it on windows, so please tell me if you encounter any issues.

like image 154
tutuDajuju Avatar answered Oct 10 '22 04:10

tutuDajuju