You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow "Run Python File in Terminal" to accept script arguments #19810
We already have the setting "python.terminal.launchArgs", which pass arguments to the python interpreter.
This simple request is to allow arguments to be passed to the python file (script) that is running.
Examples (existing):
If we configure: "python.terminal.launchArgs": ["-i"] and use the command "Run Python File in Terminal"
it will launch: python -i script.py
If we configure: "python.terminal.launchArgs": ["-m", "IPython", "-i" ] and use the command "Run Python File in Terminal"
it will launch: python -m IPython -i script.py
Example (requested):
To have a different setting, like, for instance, "python.terminal.scriptArgs" which would pass the arguments to the script when using the command "Run Python File in Terminal", not to the interpreter, i.e.:
"python.terminal.scriptArgs": ["arg1", "arg2"] would make the command launch python script.py arg1 arg2
Related:
The following topics make related requests, but not as simple as this one.
#11812 => Requests more complex configuration #19784 => Requests the arguments to be passed at run time in the debug launch.
changed the title [-][Feature request] Allow "Run Python File in Terminal" to accept arguments[/-][+][Feature request] Allow "Run Python File in Terminal" to accept script arguments[/+]on Sep 11, 2022
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
Seems to me that is part of the general issue #11812 and should be solved along with that. You can leave this idea there, and we'll consider it while solving #11812 regardless of whether this issue gets closed.
changed the title [-][Feature request] Allow "Run Python File in Terminal" to accept script arguments[/-][+]Allow "Run Python File in Terminal" to accept script arguments[/+]on Sep 12, 2022
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.
Activity
[-][Feature request] Allow "Run Python File in Terminal" to accept arguments[/-][+][Feature request] Allow "Run Python File in Terminal" to accept script arguments[/+]karrtikr commentedon Sep 12, 2022
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
Seems to me that is part of the general issue #11812 and should be solved along with that. You can leave this idea there, and we'll consider it while solving #11812 regardless of whether this issue gets closed.
[-][Feature request] Allow "Run Python File in Terminal" to accept script arguments[/-][+]Allow "Run Python File in Terminal" to accept script arguments[/+]brettcannon commentedon Nov 17, 2022
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.