如何在 spyder 中添加 python 控制台

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45960590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 17:22:59  来源:igfitidea点击:

How to add python console in spyder

pythonconsoleipythonspyder

提问by X.H Cui

After upgrade spyder version 3.2.1 .I con't find the python console in spyder. It is inconvenient when i plot data interactively though the Ipython console.How can i add the python console to the spyder.

升级 spyder 3.2.1 版后,我在 spyder 中找不到 python 控制台。当我通过 Ipython 控制台以交互方式绘制数据时很不方便。如何将 python 控制台添加到 spyder。

采纳答案by Carlos Cordoba

(Spyder developer here) The Python console was completely removed in Spyder 3.2.0and it's not coming back. For the reasons to do that, please read this Github issue.

此处为 Spyder 开发人员) Python 控制台在 Spyder 3.2.0 中已完全删除,并且不会再回来了。出于这样做的原因,请阅读此Github 问题

If you want to create interactive plots in the IPython console, you need to change your graphics backend to Automaticin

如果要在 IPython 控制台中创建交互式绘图,则需要将图形后端更改为Automaticin

Tools > Preferences > IPython console > Graphics > Graphics Backend

Tools > Preferences > IPython console > Graphics > Graphics Backend

回答by denson

The variable explorer in makes Spyder great for debugging but it doesn't stack up to full featured IDE's such as PyCharm community edition. In my opinion, Spyder is a much worse debugger since the console was removed so after 2 months of frustration with the newer version I "downgraded" back to version 3.1.4 which I love.

中的变量资源管理器使 Spyder 非常适合调试,但它无法与功能齐全的 IDE(例如 PyCharm 社区版)相提并论。在我看来,自从控制台被删除以来,Spyder 是一个更糟糕的调试器,所以在对新版本感到沮丧 2 个月后,我“降级”到了我喜欢的版本 3.1.4。

This will get you back to the version of Spyder where the beloved console still exists:

这将使您回到心爱的控制台仍然存在的 Spyder 版本:

conda uninstall spyder

conda 卸载 spyder

conda install spyder=3.1.4

康达安装 spyder=3.1.4