No answer here, or plugin i found provided what i wanted. A minimalist method to launch my .py
python code i wrote on Notepad++ with the press of a shortcut, with preferably no plugins.
I have Python 3.6 (64-bit), for Windows 8.1 x86_64 and Notepad++ 32bit. After you write your Python script in Notepad++ and save it, Hit F5 for Run
. Then write:
"C:\Program Files\Path\to\Python\python\Path\to\Python\python.exe" -i "$(FULL_CURRENT_PATH)"
and hit the Run button. You can save thisThe i
flag forces the terminal to a shortcutstay still after code execution has terminated, for convenience (mine is CTRL + SHIFT + P)you to inspect it. This command will launch the script in a cmd terminal and the terminal will still lie there, until you close it by typing exit()
.
You can save this to a shortcut for convenience (mine is CTRL + SHIFT + P).