Does not execute selected python code in terminal, it wait for user to press Enter key #10331
Unanswered
vinaychuri
asked this question in
Q&A
Replies: 1 comment
-
|
Hey @vinaychuri! Are you using a custom keybinding to send your selected code to the Terminal? Our suggested workflow to run code is typically Cmd/Ctrl + Enter to send and execute the code in a Console. Any chance you are using a Terminal because you want to use a different version of Python than currently active in the Console? If so, you may be interested in using multiple Consoles with different Python environments: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I select some lines of python code and use SHIFT+ENTER to execute the code in Terminal , the code is dispayed in the Terminal but it does not execute until I press ENTER key in the Terminal window.
I would expect the selected code to be executed in the Terminal after "code selection+SHIFT+ENTER"
I selected upto the last print(5) , added newlines and selected upto the newlines but still the same behaviour
I selected just the function definition upto print(3) , AND it works as intended !!!
I selected just the imports , AND it works as intended !!!
I selected just the imports + function definition , AND it works as intended !!!
Is this by design to ensure explicit user intervention before execution or am I missing some settings?
The image is enclosed.
System details:
Python 3.13.9
Mac OS Ventura 13.7.8
Positron Version: 2025.10.1 build 4
Beta Was this translation helpful? Give feedback.
All reactions