Executing Python Code Within Komodo Edit
Komodo Edit is a good free editor for Python development. However, there is no debugging feature in Komodo Edit. Therefore, it is a cumbersome process to execute Python scripts. Fortunately, there is a feature called Run command to satisfy this job.
To make use of the Run command feature to execute Python code, you can follow these steps:
- click Toolbox > Add > New Command.
- type “Run Python file” in the top field.
- enter
%(python) “%F”
in the command field. - Click on the “Key Binding” tab and you can set the keyboard shortcut key (optional). I personally like the F5 key.
- Click OK.
Now, you can easily execute the Python script by pressing “F5″, or by double clicking the “Run Python file” in your toolbox pane, which is usually located at the right. The output will be displayed in the Command output pane at the bottom.
For more information on the “Run Command”:
http://aspn.activestate.com/ASPN/docs/Komodo/4.4/run.html
If you liked this post, these other posts might also be interesting to you:
Category: Python | Comment (RSS) | Trackback


KNizam:
satu mende pun aku tak paham pasal ular sawa neh. hehe
July 8, 2008, 5:51 pmzamz:
apa phyton file nih hehe
July 21, 2008, 11:11 pmselinap.com:
What is Python > http://python.org/
July 22, 2008, 12:07 amPastinya bukan ular sawa.