For faster navigation, this Iframe is preloading the Wikiwand page for Spyder.

Spyder

Spyder
Spyder IDE
Spyder在Windows上执行的屏幕截图
开发者Spyder开发团队
当前版本
  • 5.5.5 (2024年6月12日;稳定版本)[1]
编辑维基数据链接
原始码库 编辑维基数据链接
编程语言Python
操作系统Windows, Linux, Mac OS
类型集成开发环境
许可协议MIT许可证
网站github.com/spyder-ide

Spyder(前身为Pydee)是一个使用Python语言的开放原始码跨平台科学运算集成开发环境(IDE)。Spyder集成了NumPySciPyMatplotlibIPython,以及其他开源软件。[2][3]

与其他科学数值分析专用IDE(如MatlabRStudio)相比,Spyder有下列特色:开放原始码,以Python编写并且可以兼容于非自由软件许可协议。Spyder可以使用附加组件扩展,内建交互式工具以处理数据。跨平台的特性使得它可以通过Anaconda,Winpython和Python(x,y)(Windows平台)。此外在主流的Linux发行版本例如UbuntuDebianFedoraOpenSUSE等等中都有它。

Spyder还可以通过绑定PyQtPySide来使用Qt

特性

Spyder有以下特性:[4]

  • 编辑器:支持多语言,具有函数和类查看器,代码分析特性(pyflakes和pylint获得了支持),代码补全,水平与垂直视窗的分离,直接跳入定义等等。
  • 交互端口:Python或IPython端口都在工作区可以调整和使用。支持对编辑器里的代码直接调试。此外集成了Matplotlib的图表显示。
  • 文档浏览器:在编辑器或端口中显示任意类或函数调用的文档。
  • 可变的浏览窗口:在文件的执行过程中可以创建可变的浏览窗口。同时也可以对其进行编辑。
  • 在文件中查找:支持正则表达式与Mercurial仓库
  • 其他扩展使用: Spyder也可以作为PyQt4/PySide的扩展使用(spyderlib模块)。例如,Spyder当中使用的Python交互端也可以被你用在自己的PyQt4/PySide程序中。
  • 文件浏览器
  • 历史记录

Light Mode

Spyder也可以启动Light mode来运行一个轻量化的IDE。Light mode是一个非常简单轻巧的环境,仅包含了可变的浏览窗口和解释端口。

Light mode已于Spyder 3.0.0版移除。[5]

独立性

如果你是通过Python(x,y)、WinPython和Anaconda安装的,那你就不需要去单独去安装下列组件。一般来说,这些组件都被上述的Python科学发行包囊括了。

独立编译

如果通过原始码编译安装,唯一的要求就是Python的版本应当高于2.6。(注意,Python 3.2并不被支持)

独立运行

你需要如下条件:

  1. Python 2.6, 2.7, 3.3 or 3.4
  2. PyQt4 4.6+, PySide 1.2.0+或PyQt5 5.2+(推荐使用PyQt4)

推荐模块

  • IPython 3.0+(一个增强型Python解释器)
  • Rope v0.9.4+或Jedi 0.8 +(支持编辑器的代码补全、调用提示以及转到定义)
  • Pyflakes v0.5.0+(进行实时代码分析)
  • Sphinx v0.6+(对象查看器支持富文本模式)
  • Matplotlib v1.0+(2D/3D绘图)
  • Pandas v0.13.1+(支持数据标签与数据系列)
  • Numpy(N维数组运算)
  • Scipy(信号与图像分析)

需要注意的一点是,在Ubuntu中使用IPython需要安装ipython-qtconsole,而在Fedora中需要ipython-gui,在 Gentoo中需要安装qt4 USE flag。

可选的模块

  • Pygments v1.6+(支持各种文件类型的代码高亮)
  • Pylint v0.25+(静态代码分析)
  • Pep8 v0.6+(代码风格分析)
  • Psutil v0.3+(CPU和内存使用状态条)

参考文献

  1. ^ Release Spyder 5.5.5. 2024年6月12日 [2024年6月13日]. 
  2. ^ Migrating from MATLAB to Python. Greener Engineering. [2014-04-16]. (原始内容存档于2012-03-23). 
  3. ^ Spyder review - Techworld.com. [2014-04-16]. (原始内容存档于2013-12-03). 
  4. ^ 特性介绍. [2015-07-23]. (原始内容存档于2015-08-04). 
  5. ^ No light mode anymore for Spyder 3.0.0?. [2018-03-20]. (原始内容存档于2019-02-18). 

参阅

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
Spyder
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?