How to run python script on notepad++

How to  Configure Notepad++ to run a python script via python IDLE

If you are learning python and want to use notepad++ as a free as well as simple and easy to use editor, follow these simple steps:

Install python (2.7.x)

First thing: Download the python 2.7.x (current is 2.7.13) windows installer from using the default settings. It should install python in the folder: C:\Python27. You can use a different version of python, just substitute out the version number wherever you see 27.

Install Notepad++

Download and install the Notepad++ installer from
Run the installer using the default settings for everything.
Open Notepad++

Configure Notepad++ to run a python script

  1. Open notepad ++
  2. Click run > run or press F5
  3. In the “program to run” dialog box press the three dots (…) and navigate to C:\Python27\Lib\idlelib\ (or change C: to your python installation drive)
  4. Than add “$(FULL_CURRENT_PATH)” after the py so that the line will look like this:

    C:\Python27\Lib\idlelib\ “$(FULL_CURRENT_PATH)”

  5. Click ‘save and give the shortcut a name like ‘python IDLE’
  6. You can also select a shortcut, for example”: Alt+shift+p
    notepad ++ python
  7. Click OK
  8. Click run
  9. A new notepad window will open. (you can minimize the black command line window)
  10. hit F5 and the python shell will now open
  11. In the notepad window, write your code Save as ‘’
  12. hit F5
  13. Now, every time you test your modified code, you will be prompted to save the file. When hit F5 the code will run on the python command line shell, it is a very convenient way to code and simultaneously see your code run.

One thought on “How to run python script on notepad++”

Leave a Reply