Skip to main content
added 107 characters in body
Source Link
KeyC0de
  • 5.1k
  • 9
  • 49
  • 72

No answer here, or plugin i found provided what i wanted. A minimalist method to launch my .pypython 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).

No answer here, or plugin i found provided what i wanted. A minimalist method to launch my .py 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.exe" -i "$(FULL_CURRENT_PATH)"

and hit the Run button. You can save this to a shortcut for convenience (mine is CTRL + SHIFT + P). This will launch the script in a cmd terminal and the terminal will still lie there, until you close it by typing exit().

No answer here, or plugin i found provided what i wanted. A minimalist method to launch my 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:\Path\to\Python\python.exe" -i "$(FULL_CURRENT_PATH)"

and hit the Run button. The i flag forces the terminal to stay still after code execution has terminated, for 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).

Source Link
KeyC0de
  • 5.1k
  • 9
  • 49
  • 72

No answer here, or plugin i found provided what i wanted. A minimalist method to launch my .py 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.exe" -i "$(FULL_CURRENT_PATH)"

and hit the Run button. You can save this to a shortcut for convenience (mine is CTRL + SHIFT + P). This will launch the script in a cmd terminal and the terminal will still lie there, until you close it by typing exit().