<p>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.</p>
<p>Example: code in Terminal with Python:<br>
<code>>>> def my_function(x): ...     #bla-bla-bla ...     y = x + x ...     return x ...  </code><br>
while the same code sent in Terminal with IPython appears as<br>
<code>In [1]: def my_function(x):  ...:         #bla-bla-bla  ...:             y = x + x  ...:                 return y  </code><br>
which results in <code>IndentationError: unexpected indent</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2238?email_source=notifications&email_token=AAIOWJ3XLLSKZ36PGHPLJPLQCL6TXA5CNFSM4IIR4U52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC3LYPQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5TVZKR6BZMP5CYNHLQCL6TXANCNFSM4IIR4U5Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYCI5KJRFLT2PNP5PLQCL6TXA5CNFSM4IIR4U52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC3LYPQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2238?email_source=notifications\u0026email_token=AAIOWJ3XLLSKZ36PGHPLJPLQCL6TXA5CNFSM4IIR4U52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC3LYPQ",
"url": "https://github.com/geany/geany/issues/2238?email_source=notifications\u0026email_token=AAIOWJ3XLLSKZ36PGHPLJPLQCL6TXA5CNFSM4IIR4U52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC3LYPQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>