-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sending selection to terminal using using IPython #17690
Comments
Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can. |
Hi @alandema , this looks like an issue with
in a IPython, it results in extra indentation resulting in an error: I think it is because in and |
See the following for the workaround: #8945 (comment), which gives a link on how to turn autoindent off. |
Environment data
python.languageServer
setting: PylanceExpected behaviour
with shortcut as:
{
"key": "ctrl+enter",
"command": "python.execSelectionInTerminal"
}
and using an IPython console:
"python.terminal.launchArgs": [
"-m",
"IPython"
],
When Ctrl + Enter, the expected is to send the lines to terminal and execute it as is.
Actual behaviour
When defining a function, the indentation goes crazy and for particular codes the console returns an indentation error. The same code works fine if executed or debugged or used in IPython in another IDE or running in the vanilla Python console.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: