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

Have "Run Selection/Line in Python terminal" work with "Start REPL" #22242

Open
brettcannon opened this issue Oct 17, 2023 Discussed in #22227 · 0 comments
Open

Have "Run Selection/Line in Python terminal" work with "Start REPL" #22242

brettcannon opened this issue Oct 17, 2023 Discussed in #22227 · 0 comments
Assignees
Labels
area-repl area-terminal bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on

Comments

@brettcannon
Copy link
Member

Discussed in #22227

Originally posted by cbrnr October 16, 2023
With the new smart Shift+Enter feature, it is now very convenient to run a line (or a selection of lines) of code in the interactive interpreter. After hitting Shift+Enter (or selecting "Run Selection/Line in Python terminal"), a new terminal titled "Python" opens with the interactive interpreter, which accepts intput from this command.

However, I was wondering if I can manually start this terminal (i.e., the Python one, which is connected to the "Run Selection/Line in Python terminal" action). I found the "Python: Start REPL" action, which launches the interactive interpreter, but this terminal does not accept input from Shift+Enter.

Would it be possible to unify these two ways of starting the interactive Python interpreter and/or running code? Or maybe let users decide to which terminal they want to send their Shift+Enter commands? This would be very convenient, because right now the only way to kickstart the interpreter for sending commands is to actually send the first line of code.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 17, 2023
@brettcannon brettcannon changed the title Unify REPL and "Run Selection/Line in Python terminal" terminals? Have "Run Selection/Line in Python terminal" work with "Start REPL" Oct 17, 2023
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Oct 18, 2023
@luabud luabud added needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-repl area-terminal bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

4 participants