This looks like a problem with autoindent feature in ipython.
Anyway, now I disabled the autoindent to avoid it.
This looks like a problem with autoindent feature in ipython.
Anyway, now I disabled the autoindent to avoid it.