Spyder: A MATLAB-like IDE

Spyder is the Scientific PYthon Development EnviRonment: Spyder websites: Key features of Spyder:

I. Installation


Spyder is quite easy to install on Windows, Linux, and MacOS X. Just read the following instructions with care.

1. Installing on Windows

Spyder is already included in these Python Scientific Distributions:
  1. Anaconda
  2. WinPython
  3. Python(x,y)
You can start using it immediately after installing one of them (you only need to install one!). You can install Spyder and its dependencies by running this command:
pip install spyder

Updating Spyder

You can update Spyder by:
  1. Updating Anaconda, WinPython or Python(x,y).
  2. Or using this command (in case you don't use any of those scientific distributions):

  3. pip install --upgrade spyder

2. Installing on MacOS X

There are two alternatives:
  1. Use the Anaconda Python distribution.
  2. Use our DMG installers, which can be found here.

3. Installing on Linux

  1. Ububtu:
    • Using the official package manager sudo apt-get install spyder
    • Using the pip package manager:
      • Installing: sudo pip install spyder
      • Updating: sudo pip install -U spyder
  2. Debian:
    Using the package manager: sudo apt-get install spyder
    The Spyder's official Debian package is available here.
  3. Other Distributions:
    Spyder is also available in other GNU/Linux distributions.

II. Editor


Spyder's text editor is a multi-language editor with features such as syntax coloring, code analysis (real-time code analysis powered by pyflakes and advanced code analysis using pylint), introspection capabilities such as code completion, calltips and go-to-definition features (powered by rope), function/class browser, horizontal/vertical splitting features, etc.

How to define a code cell


A "code cell" is a concept similar to matlab's "cell" (except that there is no "cell mode" in Spyder), i.e. a block of lines to be executed at once in the current interpreter (Python or IPython). Every script may be divided in as many cells as needed.
Cells are separated by lines starting with:

IPython Console


Spyder's IPython Console implements a full two-process IPython session where a lightweight front-end interface connects to a full IPython kernel on the back end. Visit the IPython project website for full documentation of IPython's many features.

From the Consoles menu, Spyder can launch IPython Console instances that attach to kernels that are managed by Spyder itself or it can connect to external kernels that are managed by IPython Qt Console sessions or the IPython Notebook.

When "Connect to an existing kernel" is selected, Spyder prompts for the kernel connection file details:

IPython Consoles that are attached to kernels that were created by Spyder support the following features:

Debugging


Debugging in Spyder is supported thanks to the following Python modules:

Console


The Console is where you may enter, interact with and visualize data, inside a command interpreter. All the commands entered in the console are executed in a separate process, thus allowing the user to interrupt any process at any time.

Many command windows may be created in the Console:

Python-based command windows support the following features: