Run Python Programs using IDE

You learned how to run Python programs on your machine in earlier lessons using: 

  • Interactive Python Interpreter
  • Command line 

In this lesson, you will learn to run Python programs using Python IDE. 

Eclipse IDE

Launch Eclipse IDE.

Open Python project in the IDE. Click on the project in the left Package Explorer.

Choose the file to execute and open it. 

Choose the following menu options:

Run >> Run As >> Python Run

To run the Python unit test:

Run >> Run As >> Python unit-test

 

Run Python Unit Test IDE

Alternatively, right-click on the script code:

Choose the following context menu option:

Run As >> Python Run

To run unit test:

Run As >> Python unit-test