Wednesday, April 4, 2012

Will Spyder be our new Python IDE?

Your author has tried Emacs, Vi, eric4, drpython, spe, gedit, jedit, anjuta,idle, geany
kate, kedit, when writing Python programs, or modules


Among the editors/IDE mentioned eric4 comes close to be the most ideal for me, except that
is somewhat slow. Spe on the otherhand, has that unusual cursor-editor missynchronization.What
character you type sometimes does not appear immediately! It is disconcerting to say the least.



Here is a short list of features I demand to have in an editor:

  1. Quick zooming, unzooming. I wonder why editors do not implement or have removed
    the standard browser Ctrl-plus or Ctrl-minus for easy viewing of source codes?

  2. Interactive debugging support.

  3. Indent/unindent highlighted code blocks.

  4. Folding and unfolding code blocks. Not an absolute requirement.
Spyder aims to be the standard scientific python editor/ide. It is available in Ubuntu apt-get but it refused to run due to some versioning errors. One day last week, I got an email announcement from the scipy mailing list that there is a new version of spyder. So we tried installing it from the sources.Here are the steps:
wget -ct 0 http://spyderlib.googlecode.com/files/spyder-2.1.9.zip
unzip spyder-2.1.9.zip 
cd spyder-2.1.9/
sudo python2.7 setup.py install
spyder
That works! and that is the latest version of spyder. Spyder on default mode opens the following windows in one screen: console,editor and a tabbed inspector explorer/window for objects, variables, and files. Typing scientific on the console window gave the following information:
>>> scientific This is a standard Python interpreter with preloaded tools for scientific computing and visualization: >>> import numpy as np # NumPy (multidimensional arrays, linear algebra, ...) >>> import scipy as sp # SciPy (signal and image processing library) >>> import matplotlib as mpl # Matplotlib (2D/3D plotting library) >>> import matplotlib.pyplot as plt # Matplotlib's pyplot: MATLAB-like syntax >>> from pylab import * # Matplotlib's pylab interface >>> ion() # Turned on Matplotlib's interactive mode Within Spyder, this intepreter also provides: * special commands (e.g. %ls, %pwd, %clear) * system commands, i.e. all commands starting with '!' are subprocessed (e.g. !dir on Windows or !ls on Linux, and so on) >>>

We will spend more time with our newest editor/ide, but spyder looks very, very promising.

No comments:

Post a Comment