When a piece of tabbed code is sent to terminal with Python then it runs OK, but when exactly the same code is sent to terminal with IPython, then Geany adds extra indentation to each line.
Example: code in Terminal with Python: `>>> def my_function(x): ... #bla-bla-bla ... y = x + x ... return x ... ` while the same code sent in Terminal with IPython appears as `In [1]: def my_function(x): ...: #bla-bla-bla ...: y = x + x ...: return y ` which results in `IndentationError: unexpected indent`
Actually, the problem was with autoindent in IPython. The solution was to set `%autoindent OFF` inside IPython.
Closed #2238.
github-comments@lists.geany.org