Activating a .py ( Python) programm with a button

Hi.  Im looking for a posibility to call a .py (Python) programm from a page in Mx.  ex. We have a microflow with two parameters. In that MF i want to kick of the .py programm where a liniair regression is kicked off and gives back a result. The result we want to use the result in Mx. is that possible? if yes, any ideas or advise?
1 answers

Don’t thnks this is possible directly, but you migth be able to execute the python script when stored in the resources folder and try to invoke the script froma java action with the help of Apache Commons Exec for example.

Never tried this though.

For some ideas on doing this from java have a look at: