run-python-simply package
Run a python file in cmd or Powershell or other Linux terminals.
Prerequisite
- Python 3 in
PATH
Usage
- Open a
.py
file. - Press
F5
to run.
It will save the file in current editor immediately without a confirmation, be aware.
Features
- cmd or Powershell
- Two options for you, cmd and powershell. Choose one you like!
- CodeBlocks debug console style
- Show return value and execution time
- It is a rough time based on real time rather than CPU kernel time or CPU user time
- Show return value and execution time
- other Linux terminals(gnome-terminal etc.)
Config
The commands use {file}
as a placeholder for the file to run. I redesign the commands format to support linux systems in the future. Now Windows cmd and powershell are available.
terminal | config |
---|---|
cmd | start cmd /c python {file} |
powershell | start powershell -Command python {file} |
gnome-terminal | gnome-terminal -x python3 {file} |
Thanks
Thanks to atom-python-run, I learned a lot from it.