Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from IPython.parallel import Client
- import multiprocessing
- class SubProc(multiprocessing.Process):
- def __init__(self, name):
- multiprocessing.Process.__init__(self, name=name)
- def run(self):
- my_client = Client()
- if __name__ == '__main__':
- client = Client()
- print "There are %d engines." % len(client.ids)
- proc = SubProc("blah")
- proc.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement