Copy to clipboard from IPython using Windows 7

大兔子大兔子 提交于 2019-12-04 04:13:12

As mentioned by @AdrianRatnapala, you can right-click in the terminal window and select Mark, mark the code snippets you want to copy, and then right-click (the marked content is copied to the clipboard when you right-click).

A more "permanent way" to use this feature is to right-click on the title bar of the terminal window and choose Properties. Under the Options tab, tick the box next to QuickEdit Mode and save this setting.

A third option is to use IPython's Qt Console. You can use this by entering ipython qtconsole in the command prompt.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!