There is of course JPython, that allows to run Python within JVM.
But will it do to run Python that have some or many dependencies/libraries like pandas
, requests
?
Is there guaranteed way to run any Python script on JVM?
P.S. within the same process, so that memory structures can be shared.
P.P.S Jython version is 2.7, compatible with Python 2.x, there is likely no Python 3.6+ support.
The most recent release is Jython 2.7.2. It was released on 21 March 2020 and is compatible with Python 2.7
More general question was Calling Python in Java?
GraalVM Python Runtime is experimental, but aims at Python 3.8 and supporting SciPy/NumPy https://www.graalvm.org/reference-manual/python/
GraalVM provides a Python 3.8 compliant runtime. A primary goal of the GraalVM Python runtime is to support SciPy and its constituent libraries, as well as to work with other data science and machine learning libraries from the rich Python ecosystem. At this point, the Python runtime is made available for experimentation and curious end-users.