Using jython to call python procedures/methods

bobicanprogram icanbob at gmail.com
Wed Jan 20 20:00:10 EST 2010


On Jan 20, 10:32 am, KB <ke... at nekotaku.com> wrote:
> Hi there,
>
> I have an application that only publishes a Java API. I can use jython
> to access java classes, but jython currently (to the best of my
> knowledge) does not support numpy/scipy.
>
> Ideally I would like to have jython call a "native" python routine
> where I have the numpy/scipy procedures already written.
>
> Does anyone have any experience with this? Is it possible?
>
> I had toyed with the idea of having jython/java write the data to a
> file/database and then manually kick off the python process, but
> ideally I would like this as automated as possible.
>
> Thanks in advance.


You might want to take a look at the SIMPL toolkit (http://
www.icanprogram.com/simpl).   It sports both JAVA and Python hooks so
you should be able to pump the data from your JAVA module to a Python/
numpy/scipy module.

bob



More information about the Python-list mailing list