为什么Spyder是适用于科学的最佳Python IDE

Spyder is the best IDE that I have tested so far for doing data analysis, but also for plain programming. In this post I will start to briefly describe the IDE. Following the description of this top IDE the text will continue with a discussion of my favourite features. You will also find out how to install Spyder on Ubuntu 14.04 and at the end of the post you will find a comparison of Rodeo (a newer IDE more RStudio like) and Spyder.

到目前为止, Spyder是我测试过的最好的IDE ,既可以进行数据分析,又可以进行简单编程。 在本文中,我将开始简要描述IDE。 在此顶级IDE的描述之后,本文将继续讨论我最喜欢的功能。 您还将发现如何在Ubuntu 14.04上安装Spyder,并在文章结尾找到了Rodeo(一种新的IDE,更像RStudio)和Spyder的比较。

When I started programming in Python I used IDLE which is the IDE that you will get with your installation of Python (e.g., on Windows computers). I actually used IDLE IDE for some time. It was not until I started to learn R and found  RStudio IDE. I thought that RStudio was great (and it still is!). However, after learning R and RStudio I started to look for a better Python IDE.

当我开始使用Python进行编程时,我使用了IDLE(即在安装Python(例如,在Windows计算机上)时将获得的IDE)。 我实际上使用IDLE IDE已有一段时间。 直到我开始学习R并找到RStudio IDE为止。 我认为RStudio很棒(现在仍然如此!)。 但是,在学习R和RStudio之后,我开始寻找更好的Python IDE。

There are, of course, other IDEs. Personally, I used Ninja-IDE for a while but I quite quickly found Spyder IDE better. Spyder is an acronym for  “Scientific PYthon Development EnviRonment”. The IDE create a MATLAB-like development environment but, as previously mentioned, it is also quite similar to RStudio. Great, for people with experience of both RStudio and MATLAB!

当然,还有其他IDE。 我个人使用Ninja-IDE已有一段时间,但是很快我发现Spyder IDE 更好 Spyder是“科学Python开发环境”的首字母缩写。 IDE创建了类似MATLAB的开发环境,但是,如前所述,它也与RStudio非常相似。 太好了,适合拥有RStudio和MATLAB经验的人!

Spyder GUI including the object inspector Spyder GUI(包括对象检查器)

In fact, Python with the right IDE may be a free open source alternative to MATLAB (e.g., Spyder). Last time I used Matlab was 2011 and I don’t have a working installation on any computer. Moreover, a Spyder (Python) vs. MATLAB comparison is out of the scope for this post.

实际上,具有正确IDE的Python可能是MATLAB(例如Spyder)的免费开源替代品。 我上次使用Matlab的时间是2011年,但是我在任何计算机上都无法正常安装。 而且,Spyder(Python)与MATLAB的比较不在本文讨论范围之内。

为什么我认为Spyder是适用于Python的最佳IDE? (Why do I think Spyder is the best IDE for Python?)

Well, I really like working with RStudio. One of my favourite features of RStudio is that it easy to find help for a package or a function (i.e., type “help(function)”in the console). Spyder has the “Object inspector” (see image below) in which you can search for documentation for a class, function or module.

好吧,我真的很喜欢使用RStudio。 RStudio我最喜欢的功能之一是可以轻松找到软件包或功能的帮助(即,在控制台中键入“ help(function)”)。 Spyder具有“对象检查器”(请参见下图),您可以在其中搜索类,函数或模块的文档。

为什么Spyder是适用于科学的最佳Python IDE_第1张图片
Object Inspector 对象检查器

Another feature in the GUI I really like is the “Variable explorer” (again similar to RStudio; you can see your variables (Data and values) in the Environment).  When using Spyder  your code can also be analysed using Pylint or Pyflakes.

我真正喜欢的GUI中的另一个功能是“变量浏览器”(再次类似于RStudio;您可以在环境中看到变量(数据和值))。 在使用Spyder的代码也可以使用分析pylint的或Pyflakes 。

Spyder Python IDE Variable explorer
Variable explorer 变量浏览器

Spyder also got many other great features and here are some of them:

Spyder还具有许多其他出色的功能,其中一些是:

  • syntax coloring for Python, C/C++, and Fortran
  • breakpoints and conditional breakpoints
  • run or debug Python scripts
  • iPython and Python consoles
  • Python,C / C ++和Fortran的语法着色
  • 断点和条件断点
  • 运行或调试Python脚本
  • iPython和Python控制台

These were some of the qualities that makes me think that the Spyder is the best Python IDE. Obviously, the IDE many other good qualities. Below is a short video showing these properties.

这些都是一些 让我觉得 Spyder的 是最好 的Python IDE 的品质 显然IDE 还有许多其他优良 品质 以下是 显示 这些属性 的简短 视频

如何安装Spyder (How to install Spyder)

On Ubuntu 14.04 Spyder can be installed by using pip or apt-get:

在Ubuntu 14.04上,可以使用pip或apt-get安装Spyder:

点子 (Pip)

sudo pip install spyder

适当的 (apt-get)

sudo apt-get install spyder

Spyder对阵Rode​​o (Spyder vs. Rodeo)

I will finish the post with a quick comparison between Spyder and Rodeo. As can bee seen on the image below, Rodeo look almost identical to RStudio.

我将通过对Spyder和Rodeo的快速比较来完成这篇文章 。 从下图可以看出,Rodeo的外观几乎 RStudio 相同

Rodeo looks similar to RStudio
RStudio and Rodeo interfaces RStudio和Rodeo界面

翻译自: https://www.pybloggers.com/2016/01/why-spyder-is-the-best-python-ide-for-science/

你可能感兴趣的:(为什么Spyder是适用于科学的最佳Python IDE)