Skip to content

Latest commit

 

History

History
 
 

graalpy-notebook-example

Java and Python Integration Example for GraalVM

This example demonstrates how to integrate Python on GraalVM with a Java application.

Prerequisites

  • GraalVM
  • Python support

Getting Started

  1. Download GraalVM Commuity or Enterprise and set your GRAALVM_HOME to point to it.

  2. 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
  1. Compile the example:
mvn compile
  1. Install the dependencies:
./install-deps.sh
  1. Run the example:
mvn exec:java

In the application, try loading the test1.py example notebook and experiment with it.