[IPython-dev] wxPython console

Thomas Kluyver takowl@gmail....
Thu Nov 3 15:29:54 CDT 2011


On 3 November 2011 18:21, Emmanuel Bacry <emmanuel.bacry@polytechnique.fr>wrote:

> Will it tell me what is the level of indentation I need for an eventual
> acceptable line ?
>

Yes, your InputSplitter instance should have an indent_spaces attribute,
which is an integer multiple of 4, and applies to the next line. So if you
push a line "if a > 5:" to the InputSplitter, isp.indent_spaces will
increase.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20111103/4416a801/attachment.html 


More information about the IPython-dev mailing list