What is the best way to use python code from Scala (or Java)?

Possible Duplicate:
Java Python Integration

Python has code, and I need to use it from Scala. Some native C is used in the code. Is it possible to use this from Scala or Java without rewriting a lot?

I intend to use the code as a black box without understanding, so I prefer not to look into it, but rather somehow generate a jar that I can import into my code.

+5
source share
1 answer

Why not try Jython ? You directly compile Python code into Java classes or call Python code from Java through an interface.

+1
source

All Articles