Python Tutorial

 

Table of Contents

Generating Output

Run the Program to Generate Output

To start, you will simply generate output by running the program through the debugger without setting any breakpoints.

  1. Run the debugger Click on the "xmlrpcdemo.py" tab in the editor. From the menu, select Debug|Start (or <F5>). In the Debugging Options dialog box, click OK to accept the defaults.
  2. View the Debug Output Tab Notice the messages in the bottom left corner of the Komodo screen; these inform you of the status of the debugger. When the program has finished, program output is displayed in the Output Pane. If necessary, click on the Debug Output tab to display it.

Python Pointer "Why are there no articles in the output?" If no article references are displayed in the Output Pane, no articles have been picked up by Meerkat containing the topic word (by default "python") specified on line 12 within the "time_period" criterion on line 26. Try increasing the number of hours or changing the topic word.

  1. View rendered HTML Click on the "Toggle HTML Preview" button to the right of the Output Pane. The HTML is displayed in the Output Pane; click on the links to read the articles. Click the "Toggle HTML Preview" button again to return to the HTML code.
  2. Create New File To create a new HTML file that contains the HTML code in the Output Pane, select File|New|New File. In the New File dialog box, select the HTML Category, and the HTML 4.01 Template. Click OK.
  3. Save the Output Delete the contents of the new HTML file tab in the Editor Pane, then select the contents of the Output Pane (Ctrl+A). Copy the contents to the new HTML file tab in the Editor Pane (Ctrl+C, Ctrl+V). Select File|Save As to save the file with a unique name.

Top Previous Next