Java Embedded Python (JEP)

 

Java Embedded Python (JEP) provides access to a locally-installed Python interpreter and makes it very easy to pass values from Java to Python, execute Python operations, functions, and objects, and retrieve Python data suitably translated into Java (e.g. a Python dictionary becomes a Java Map, and a NumPy array is treated as a Java array).

The biggest drawback of using JEP is that its installation on MS Windows requires Visual Studio Build Tools (a 9 GB download) to compile the necessary C++ glue code which links JEP to Python. However, the JEP developers have gone to some trouble to document the required steps with specific installation guides for Linux, OSX, and MS Windows.

I've also included a few additional tips that I picked up when installing JEP on MS Windows 10. They're listed in the "Other Downloads and Links" section at the bottom of this page.

My Examples

Most of these examples come with a corresponding Python script which can be executed in Python directly. That's a good strategy for testing that you have Python, and all the necessary third-party modules, correctly installed. It's also useful to compare the JEP version of code with similar Python.

Other Downloads and Links


Dr. Andrew Davison
E-mail: ad@coe.psu.ac.th
Back to the third-party libraries page