简体   繁体   English

是否可以从Eclipse / PyDev控制台禁用IPython?

[英]Is it possible to disable IPython from the Eclipse/PyDev console?

The most recent releases of PyDev IDE for Eclipse come with IPython 'embeded' in its interactive console. 用于Eclipse的PyDev IDE的最新版本在其交互式控制台中嵌入了IPython。 I'm just wondering if there is a way to disable this option and let PyDev uses a regular python interactive console without uninstalling IPython? 我只是想知道是否有一种方法可以禁用此选项,并让PyDev使用常规的python交互式控制台而不卸载IPython? I know that if IPython is not installed PyDev will use a regular python interactive console. 我知道,如果未安装IPython,PyDev将使用常规的python交互式控制台。 But I think there must be a way of doing it without getting rid of IPython. 但是我认为必须有一种不脱离IPython的方法。

If somebody knows how to do this, pleas advise. 如果有人知道该怎么做,请提出建议。 Thanks. 谢谢。

There's currently no option to do that in the UI. 目前,用户界面中尚无选择。

You can do that in a hackish way by manually opening: 您可以通过手动打开以下方法来做到这一点:

plugins\\org.python.pydev\\pysrc\\pydev_ipython_console.py 插件\\ org.python.pydev \\ pysrc \\ pydev_ipython_console.py

in your Eclipse installation and uncommenting the 'raise ImportError()' in the top of the file :) 在Eclipse安装中,并取消注释文件顶部的'raise ImportError()':)

Now, I'm a bit curious on why you'd prefer the PyDev version instead of the IPython version in this case... 现在,我有点好奇为什么在这种情况下您更喜欢PyDev版本而不是IPython版本...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM