This example demonstrates how to integrate Python on GraalVM with a Java application.
- GraalVM
- Python support
-
Download GraalVM Commuity or Enterprise and set your
GRAALVM_HOME
to point to it. -
Add the Python support. GraalVM comes with
gu
which is a command line utility to install and manage additional functionalities, and to install Python, run this single command:
$GRAALVM_HOME/bin/gu install python
- Compile the example:
mvn compile
- Install the dependencies:
./install-deps.sh
- Run the example:
mvn exec:java
In the application, try loading the test1.py example notebook and experiment with it.