Anaconda集成了Spyder安装包,可以通过Anaconda环境安装最新的Spyder 4.0.1版本:
conda install spyder=4.0.1
Spyder 4带来一些非常棒的特性更新,以及对窗口面板重新命名:
Static code analysis
toCode Analysis
File explorer
toFiles
Find in files
toFind
History log
toHistory
Project explorer
toProject
-
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
andruncell
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.