I use PyDev for actual coding, but since Python is a language that encourages
you to play inside the shell and try stuff out, I've found iPython absolutely
invaluable.
To the point that I cringe when I go back to a normal shell. It's like going
back to pico from vim or emacs *shudder*.
--
--Leo
Richard Fuhr wrote:
Jon (and seattle-python),
Same here. In my initial ventures into Python, I have found that
TextMate on the Mac has been working the best so far. It is a
Python-aware editor, which handles the indentation quite well.
Richard
On Fri, Nov 19, 2010 at 3:18 PM, Jonathan P Jacky <[email protected]
<mailto:[email protected]>> wrote:
Richard,
I haven't used ipython, so I can't give a specific answer. In the
python shells I have used (python and IDLE), I find that indentation
is tricky and sometimes doesn't work for reasons that aren't clear
to me. In general I have found that creating more than one line of
Python in the shell itself doesn't work well, so I always just
create the Python code in an editor.
Jon
On Fri, 19 Nov 2010, Richard Fuhr wrote:
In yesterday evening's nice presentations on numpy, the speakers
mentioned the use of iPython, to
provide an improved interactive Python shell experience, so I
decided to give it a try.
One feature that it claims to have, but which I could not get to
work, is automatic indentation. I have
fiddled with it a bit, but am still perplexed. For instance,
here is a sample session
in which I set autoindent, but it does not seem to take effect.
Does anyone have any suggestions? I am
using a Mac, running Snow Leopard, and just launching ipython
from a Terminal session.
Richard-Fuhrs-iMac:ipythonlearn richardfuhr$ ipython
Leopard libedit detected.
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
Type "copyright", "credits" or "license" for more information.
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ??
prints more.
In [1]: autoindent
Automatic indentation is: OFF
In [2]: autoindent
Automatic indentation is: ON
In [3]: for i in range(10):
...: print i # I expected autoindent to take effect
------------------------------------------------------------
IndentationError: expected an indented block (<ipython console>,
line 2)
In [4]: quit()
Do you really want to exit ([y]/n)? y
Richard-Fuhrs-iMac:ipythonlearn richardfuhr$