[IPython-dev] Anyone encountering IndentationError issues in the notebook?

Dmitry Chichkov dchichkov@gmail....
Wed Aug 22 14:08:54 CDT 2012


Hi,

Wanted to check, if any of you are encountering any IndentationError issues
with the notebook, or is it just me?

I'm using development version of codemirror (corrected as per
README-IPython.rst), and some times I'm encountering:

   IndentationError: expected an indented block


1. with no line numbers or other context information;
2. caused by a mix of '4 spaces' / 'tabs', invisible in the editor;
3. by itself caused by codemirror, which disregards a tabMode:"spaces"
setting.


I've temporarily fixed it for myself, by converting all tabs into 4 spaces
during every save.
And saving/reloading the notebook [if I encounter that problem]. But I'm
not entirely happy with that.


Anyone else hitting the same problem?


Thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120822/3935a413/attachment.html 


More information about the IPython-dev mailing list