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

Enhancement Request: Enable Legacy Mode for Python REPL in Versions Below 3.8 #22519

Closed
we684123 opened this issue Nov 23, 2023 · 2 comments
Closed
Assignees
Labels
area-repl feature-request Request for new features or functionality

Comments

@we684123
Copy link

Issue Description

I've come across a challenge with the VSCode Python extension where the "python.experiments.optOutFrom": ["pythonREPLSmartSend"] setting in the {project_name}/.vscode/settings.json doesn't seem to be taking effect. Could it be that this particular setting is only recognized in user.settings?

Would it be possible to extend the functionality so that {project_name}/.vscode/settings.json can also utilize the "python.experiments.optOutFrom": ["pythonREPLSmartSend"] setting? I believe it would be highly beneficial for project-specific configurations.

For developers working with legacy Python projects, it would be highly beneficial if the Python extension could automatically switch to legacy interaction mode when operating with Python versions below 3.8.
This would ensure compatibility and a seamless development experience across various Python environments.
Benefits

  • Consistent development experience across multiple Python versions.
  • Assistance in maintaining and running legacy Python code within VSCode.
  • Reduced need for manual toggling between different REPL modes.

Thank you for taking the time to look into this issue. (´▽`ʃ♡ƪ)

2023-11-23 13_15_08-Greenshot

Environment

版本: 1.84.2 (user setup)
認可: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
日期: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621

Python Extension Version: 2023.20
Python Version: 3.7 (Python REPL error), 3.10 (OK)
@we684123 we684123 added the feature-request Request for new features or functionality label Nov 23, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 23, 2023
@anthonykim1 anthonykim1 self-assigned this Nov 25, 2023
@anthonykim1 anthonykim1 added area-repl and removed triage-needed Needs assignment to the proper sub-team labels Nov 25, 2023
@anthonykim1
Copy link

anthonykim1 commented Nov 25, 2023

Hello @we684123! Thank you for filing this request.
I have actually added settings to turn off this new "Smart Send" behavior. It should be in insiders right now, and will be on stable soon. Meanwhile you can get a work around by explicitly highlighting/selecting lines of code you wish to run and then pressing shift+enter or pressing run selection/line.
Screenshot 2023-11-26 at 10 12 28 PM

@we684123
Copy link
Author

Thank you @anthonykim1 and VScode-python team, i got it~
v2023.21.13261010 is work

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-repl feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants