Skip to content
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

IPython indentation issue #940

Closed
robsalomone opened this issue Mar 4, 2018 · 4 comments
Closed

IPython indentation issue #940

robsalomone opened this issue Mar 4, 2018 · 4 comments
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@robsalomone
Copy link

When a Python terminal is open with IPython running, and you select a code block and select "execute in Python console", it adds additional tabs in the pasted text before executing and returns syntax error.

This happens on Mac, not sure about Windows.

@brettcannon
Copy link
Member

Can you verify you don't have the issue if you are not running IPython? If so that would suggest IPython is injecting the extra indentation.

@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster area-terminal labels Mar 5, 2018
@robsalomone
Copy link
Author

Yes, specifically ipython. Obviously something is up however as PyCharm can send code to iPython with no issue. Perhaps there should be a “send to iPython” command that correctly adjusts indentation?

Getting this feature correct I believe is important to get the scientific computing (and perhaps also data science) community onboard with VSCode and Python.

@brettcannon brettcannon added needs verification and removed info-needed Issue requires more information from poster labels Mar 7, 2018
@DonJayamanne
Copy link

@Moretizzle

  • select "execute in Python console",

There is no such command in the extension.

  • Please could you provide some sample code
  • Please could you provide the exact steps used to replicate this issue.
    For instance when do you run ipython, is this after you execute some code, or before?
    How are sending the python code to the terminal (what menu or command are you using)?

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed needs verification labels Mar 20, 2018
@DonJayamanne
Copy link

Closing this issue has It has been over a month since we requested some information.
Please feel free to re-open the issue with the requested information.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants