How can I run the first Python program in Komodo Edit 8.5?

Prasadika picture Prasadika · Feb 10, 2014 · Viewed 33.1k times · Source

I'm learning Python for the first time and I use Komodo Edit 8.5 to practice Python.

But I don't know how to run a program in Komodo Edit.

How can I do that?

Enter image description here

Answer

user1834437 picture user1834437 · Feb 10, 2014

There is no debugging feature in Komodo Edit but you can just run the current file by creating a Run Command:

  1. go to Toolbox -> Add -> New Command...
  2. in the top field enter the name 'Run Python file'
  3. in the 'Command' field enter this text:%(python) %F
  4. (optional) click on the 'Key Binding' tab and assign a key command to this command
  5. click Ok.

You should now have a new Run Command in your toolbox called 'Run Python file'; when you double-click on it the command should run the current Python script open in the editor and display the output in the Command Output pane.

For more on Run Commands:

http://aspn.activestate.com/ASPN/docs/Komodo/4.2/komodo-doc-run.html#run...