Created
December 12, 2012 09:40
-
-
Save tlecomte/4266432 to your computer and use it in GitHub Desktop.
Working jython+execnet in Icy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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