1

Is there now a simple way to pass Java classes to a .py program using scipy libraries?

I have seen suggestions for using Jython here on StackExchange (Java Python Integration and Using Python from within Java). I have also seen posts saying that it will not work with numpy or similar libraries (Integrate Python and his libraries with Java, Calling python functions from *.py files from java and passing and returning, and Executing Python script from Java in Tomcat project).

I would like to be able to pass a Java class to the .py code, run a scipy computation, and then pass the results back to Java (something that I am currently able to do with MATLAB .m files). I would also like to be able to put this on a parallel processing cloud server since 1) my real-time Java program (running the GUI and main features) is already on the cloud, and 2) computational speed is of essence.

Community
  • 1
  • 1
FlyingTurbine
  • 323
  • 2
  • 9
  • MATLAB has been integrated with Java for quite sometime. But `scipy` works with `numpy`, and uses a lot of compiled `C` code. So it works best with the regular Python (`CPython`). Adaptations to alternative Pythons (Jython, Ironpython, Pypy) are, at best, partial. – hpaulj Jan 02 '17 at 18:58

1 Answers1

0

There is nothing java-specific or java-aware in scipy.

ev-br
  • 24,968
  • 9
  • 65
  • 78