File: editor.rst

package info (click to toggle)
spyder 3.1.3+dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,552 kB
  • ctags: 4,851
  • sloc: python: 41,887; xml: 220; makefile: 23; sh: 6
file content (53 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.

Function/class/method browser:

|

.. image:: images/editor1.png
   :align: center
|

Code analysis with `pyflakes`:

|

.. image:: images/editor2.png
   :align: center
|

Horizontal/vertical splitting feature:

|

.. image:: images/editor3.png
   :align: center
|

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:

* `#%%` (standard cell separator)
* `# %%` (standard cell separator, when file has been edited with Eclipse)
* `# <codecell>` (IPython notebook cell separator)


Related plugins:

* :doc:`console`
* :doc:`fileexplorer`
* :doc:`findinfiles`