Spyder 是一個強大的互動式 Python 語言開發環境,提供高級的代碼編輯、變數監視、交互測試、調試等特性,支持包括 Windows、Linux 和 OS X 系統。
Anaconda集成了Spyder安裝包,可以通過Anaconda環境安裝最新的Spyder 4.0.1版本:
conda install spyder=4.0.1
Spyder 4帶來一些非常棒的特性更新,以及對窗口面板重新命名:
-
Static code analysis
to Code Analysis
-
File explorer
to Files
-
Find in files
to Find
-
History log
to History
-
Project explorer
to Project
-
Editor
- Code folding.
- Indentation guides.
- A class/method/function lookup panel. This can be shown in the menu
Source > Show selector for classes and functions
.
- Autosave functionality to recover unsaved files after a crash.
- Optional integration with the Kite completion
engine.
- Code completion and linting are provided by the Python Language Server.
-
IPython Console
- Run files in an empty namespace.
- Open dedicated consoles for Pylab, Sympy and Cython.
- Run cells through a new function called
runcell
.
- Run cells by name.
-
Debugger
- Code completion.
- Execute multi-line statements.
- Syntax highlighting.
- Permanent history.
-
runfile
and runcell
can be called when the debugger is active.
- Debug cells with
Alt+Shift+Return
.
-
Variable Explorer
- New viewer to inspect any Python object in a tree-like representation.
- Filter variables by name or type.
- MultiIndex support in the Dataframe viewer.
- Support for all Pandas indexes.
- Support for sets.
- Support for Numpy object arrays.
- Restore the ability to refresh it while code is being executed.
-
Files
- Associate external applications to open specific file extensions.
- Context menu action to open files externally.
- Multi-select functionality with
Ctrl/Shift + mouse click
.
- Copy/paste files and their absolute or relative paths.
- Use special icons for different file types.
-
Outline
- Show cells grouped in sections.
- Add default name to all cells.