I would like to call Python code from Java. What would be the best way of achieving that, so I could:
- Start specific function or script with parameters passed from Java
- Make communication asynchronous (I don't want to block user interface written in Java and I would like to send objects and arguments between Java and Python threads)
The goal of such application would be to create GUI written in Java, which allows user to perform tasks written in Python and receive additional output in between while Python is doing some work.