Hi I am trying to get python to run from notepad++. When I go to run in notepad++ and select python.exe in default folder C:\Program Files\Python27\python.exe

It does not execute. Nothing happens. However if I save the .py file and double click it the program will execute, why can't I do it directly from Notepad++?

6 Years
Discussion Span
Last Post by polochen

It's a little clumsy since the output is in cmd.exe window.
Here is how you do it:
load the python file you want to run
click the run tab run
in the edit area type for instance
C:\Python27\python.exe -u $(FULL_CURRENT_PATH)
and run the command

If your code is a tkinter program it works fine, but console programs need
a wait line at the end, something like:
raw_input("Press enter to go on ... ")

The unfortunate thing is that any traceback error messages are simply swallowed up.

Edited by vegaseat


You would be better off to use a Python IDE like IDLE (comes with Python) or Eric5.
Notepad++ is more geared for html development.


You could use netbeans, it allows you to run python programs right from the text editor window.

Edited by HTMLperson5

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.