Skip to content

Instantly share code, notes, and snippets.

@tlecomte
Created December 12, 2012 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tlecomte/4266432 to your computer and use it in GitHub Desktop.
Save tlecomte/4266432 to your computer and use it in GitHub Desktop.
Working jython+execnet in Icy
import execnet
print "making gateway"
gw = execnet.makegateway("popen//python=python")
print "executing"
channel = gw.remote_exec("""
loads = channel.receive()
channel.send(loads)
""")
print "sending"
channel.send([[1,2,3,4],[4,3,2,1]])
print "receiving"
for item in channel:
print item
print "finished !"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment