Configure Notepad++ to run a python script

 Install python (2.7.4)

  1. Download the python 2.7.4 windows installer from

  2. Run through the installer using the default settings for everything. It should install python in the folder: C:\Python27. If you’re using a different version of python, just substitute out the version number wherever you see 27.

 Install Notepad++

  1. From, download the Notepad++ installer.

  2. Run through the installer using the default settings for everything.
    Open Notepad++

 Configure Notepad++ to run a python script

  1. Open up a command prompt
  2. Run the following command:

set PATH=%PATH%;C:\Python27

Note: If your version of python was installed in a different location, make sure to substitute out that location with the one in the command.

You can use the following command to make sure the python path was added to the PATH variable:

echo %PATH%

You should see the location of the python directory at the end of the output.

  1. Switch back to Notepad++, and go up to the menu bar, select Run, and then select Run… (F5)

  2. Insert the following in the text box that appears:

    C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"

  3. Click Save…

  4. Configure CTRL+R to be the command. Give it a name, and press OK.

Now whenever you want to run the python script you’re working on, press CTRL+R and it will be executed. Also you should see the window stay opened after command execution for debugging purposes because of the -i flag. Remove it if you don’t want that feature.


Now read this

Ansible - Kerberos message encryption to enable WinRM

Kerberos message encryption was just released for pywinrm, and it’s a great time to be alive. With this, if you don’t have a fully deployed certificate architecture, you can still have... Continue →