Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. from IPython.parallel import Client
  2. import multiprocessing
  3.  
  4. class SubProc(multiprocessing.Process):
  5.     def __init__(self, name):
  6.         multiprocessing.Process.__init__(self, name=name)
  7.  
  8.     def run(self):
  9.         my_client = Client()
  10.  
  11. if __name__ == '__main__':
  12.     client = Client()
  13.     print "There are %d engines." % len(client.ids)
  14.     proc = SubProc("blah")
  15.     proc.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement