I am wondering if it is possible to call python functions from java code using jython, or is it only for calling java code from python?
Several of the answers mention that you can use JNI or JNA to access cpython but I would not recommend starting from scratch because there are already open source libraries for accessing cpython from java. For example: