You are here: PSPad forum > English discussion forum > Re: Python execute

Re: Python execute

#1 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.

Options: Reply | Quote | Up ^


#2 Re: Python execute

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%":
"C:\Users\xxx\AppData\Local\Programs\Python\Python38\pythonw.exe" "%File%"
Then click on Add and OK
F9 runs an External Application

Instead of %File% you can specify a specific file name.

Options: Reply | Quote | Up ^


#3 Re: Python execute

Posted by: AskMe | Date: 2022-11-06 17:33 | IP: IP Logged

Thank you!

You have written a comprehensive recipe,
and I am glad that everything is so well thought out in the editor.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2022 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR