Build python development environment in Notepad++

Introduction to python

Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.

Python runs on Windows, Linux/Unix, Mac OS X, and has been ported to the Java and .NET virtual machines.

Python is free to use, even for commercial products, because of its OSI-approved open source license. Official website for python is www.python.org. There are two versions of python, namely python 2.7.x and python 3.x. For more details, you can visit official website and download and install python according to your need. IDLE is the default IDE which contains editing, debug, shell…For a fresher, editing is enough. So I choose notepad++ as my editor.


Introduction to Notepad++

Notepad++ is a free (as in “free speech” and also as in “free beer”) source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.

——notepad-plus-plus.org


Python environment variable

  1. Computer -> System properties -> Advanced system settings -> Environment variables
  2. System variables -> Path -> Edit -> add ;C:Python27(or your installation directory of python) to Variable values -> OK
  3. Test if the setting works: Win+R -> input cmd -> input python

Notepad++ Settings

  • Run -> run -> input codes below -> save -> Name: Run Python(you can change as you prefer) -> OK

    cmd /k python "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
  • Test if it works

    • New text -> renamed with “test.py” -> open “test.py” -> input
      print "Hello World";

Enjoy editing python in Notepad++.