How to call scala from python?
<p>I would like to build my project in Scala and then use it in a script in Python for my data hacking (as a module or something like that). I have seen that there are ways to integrate python code into JVM languages with Jython (only Python 2 projects though). What I want to do is the other way around though. I found no information on the net how to do this, but it seems strange that this should not be possible.</p>

<p>General solution -- use some RPC/IPC (sockets, protobuf, whatever).</p>

<p>However, you might want to look at Spark's solution -- how they translate Python code in Scala's APIs (<a href="https://www.py4j.org/" rel="nofollow">https://www.py4j.org/</a>) .</p>

python scala