Can I run numpy and pandas with Jython

We have some Java code we want to use with new code we plan to write in Python, hence our interest in using Jython. However we also want to use numpy and pandas libraries to do complex statistical analysis in this Python code.

Is it possible to call numpy and pandas from Jython?


Solution 1:

Keep an eye in JyNI which is at alpha.2 version, as of March-2014.

Solution 2:

Not directly.

One option which I've used in the past is to use jsonrpclib (which works for both) to communicate between python and jython. There's even a server builtin which makes things quite simple. You'll just need to figure out whether the gains of using numpy are worth the additional overhead.