I have Java application and I use PythonInterpreter. Sometimes when I execute python script I want to stop running it, and I don't know how can I do it. For example:
PythonInterpreter interpreter = new PythonInterpreter()
interpreter.stop() // I need method like this or something else...
Of course PythonInterpreter is running as independend thread.