使用Windows 7从IPython复制到剪贴板 [英] Copy to clipboard from IPython using Windows 7

查看:234
本文介绍了使用Windows 7从IPython复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上运行IPython,可以使用%paste magic命令从剪贴板粘贴。但是,我无法从IPython复制到剪贴板。我想从IPython中复制代码片段并将它们粘贴回文本编辑器。

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?

推荐答案

找到这个要点以添加% copy magic命令,我的fork 添加了对osx / linux / windows平台的支持。

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

我还没有在Windows上测试它,所以如果您遇到任何问题请告诉我。

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

这篇关于使用Windows 7从IPython复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆