You are here: PSPad forum > English discussion forum > Re: Python execute
Posted by: AskMe | Date: 2022-11-06 07:39 | IP: IP Logged
How to run my Python program directly from the editor?
About the same as html files can be viewed and executed as in the browser immediately from the editor, it would be desirable for Python files after editing to be able to execute the code by pressing just one button. To display the progress of the program in a separate Windows window.
Perhaps this is somehow already provided and implemented, but I just do not know.
Posted by: Ilya | Date: 2022-11-06 09:03 | IP: IP Logged
Settings -> Highlighters Settings -> Python. Tab External applications. In the Application entry type the python.exe's path in quotes and "%File%":
Then click on Add and OK
F9 runs an External Application
Instead of %File% you can specify a specific file name.
Posted by: AskMe | Date: 2022-11-06 17:33 | IP: IP Logged
You have written a comprehensive recipe,
and I am glad that everything is so well thought out in the editor.