[Tutor] python editor / IDE
W W
srilyk at gmail.com
Fri Oct 31 14:04:30 CET 2008
Denis,
You'll find that most editing is subjective - people use what they're
comfortable with.
My recommendation to you, since you love notepad++ and are obviously
comfortable with it; set it as your default editor and install IPython, then
use the %ed magic function to work on your code; or have two windows open;
Notepad++ on one side, IPython on the other, and use the %run magic function
to execute your code.
This is similar to what I do with vi, only if I want to execute (since I
work on *nix) I simply type :!python myfile.py
With IPython, you can use cd just like you would at the command line (and if
you install readlines you can use tab for autocomplete), pwd tells you the
current directory:
In [9]: pwd
Out[9]: 'C:\\Documents and Settings\\Wayne\\Desktop'
In [10]: ls
Volume in drive C has no label.
Volume Serial Number is 6082-062C
Directory of C:\Documents and Settings\Wayne\Desktop
<snip>
10/31/2008 07:57 AM 52 mytest.py
<snip>
In [11]: %run mytest.py
Hello world!
IPython is a nifty tool!
So, to sum it up - if you want to integrate notepad++ with a python
interpreter, IPython is the way to go!
(Find Ipython here: http://ipython.scipy.org/moin/ )
HTH,
Wayne
On Fri, Oct 31, 2008 at 6:58 AM, spir <denis.spir at free.fr> wrote:
> Hello,
>
> I have read tons of reviews of editors for python. But they seem to be all
> biased, meaning that what the author finds important is well documented
> while the rest not at all.
> I'm looking for something like a simple table showing main features for
> all editors or IDEs. Do you know of anything like that? If not, maybe you
> could point me to editors that meet the following requirements:
>
> Fondamental features:
> * Written in python (because I plan to tweak inside for some specific
> needs).
> * Use of wxPython for UI (ditto -- I find wx clearer than tk or QT).
> * /Really/ work well with non-ascii systems, including edition of utf-8
> files (most don't in real life use, even when they pretend to).
> * Customizable syntax highlighting.
> * Customizable key bindings.
> * Running of python code from inside the IDE.
> * Code browser at least for currently edited file.
> * Multiple file opening through tabs.
> * Basic editing: search/replace, (un)comment, un(indent),...
>
> Nice additional features:
> * Additional editing features: tooltips, code expansion, regexps (maybe one
> day I will learn that ;-)),...
> * Project level management/browsing.
> * GUI building (like boa, but boa constantly crashes with non-ascii -- even
> with unicode version of wxPython installed).
>
> I currently use DrPython which is very well designed for most of this, but
> its lack of code browsing is a pain as soon as a project starts scaling. And
> some of its behaviour is a bit weird for me in some fields (such as edition
> actions on folded or half-folded block).
> Notepad++ is my favorite editor for everything except coding in python. I
> would love to use it, but as far as I know, it lacks integration of a python
> interpretor.
>
> Thanks,
> Denis
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
To be considered stupid and to be told so is more painful than being called
gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness,
every vice, has found its defenders, its rhetoric, its ennoblement and
exaltation, but stupidity hasn't. - Primo Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081031/518ea610/attachment-0001.htm>
More information about the Tutor
mailing list