Skip to content

Instantly share code, notes, and snippets.

@certik
Created March 19, 2009 04:34
Show Gist options
  • Save certik/81594 to your computer and use it in GitHub Desktop.
Save certik/81594 to your computer and use it in GitHub Desktop.
In [1]: from IPython.kernel import client
In [2]: mec = client.MultiEngineClient()
In [3]: mec.activate()
In [4]: px import socket
Parallel execution on engines: all
Out[4]:
<Results List>
[0] In [2]: import socket
[1] In [2]: import socket
In [5]: px print socket.__file__
Parallel execution on engines: all
Out[5]:
<Results List>
[0] In [3]: print socket.__file__
[0] Out[3]: /usr/lib/python2.5/socket.pyc
[1] In [3]: print socket.__file__
[1] Out[3]: /usr/lib/python2.5/socket.pyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment