Activating a .py ( Python) programm with a button

0
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?
asked
2 answers
0

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: https://www.baeldung.com/java-working-with-python

answered
0

None of the options in the baeldung article is useful. Jython is too old, running a shell won't work because Python is not on the server.

 

You can run Python in a container on another server and commnicate with REST.

answered