Skip to content

Commit c9e119b

Browse files
author
Jonathan Rocher
committed
Adding an ipython parallel demo.
1 parent fcfe5cc commit c9e119b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ipython_parallel_demo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
$ ipcluster start -n 4
3+
"""
4+
from IPython.parallel import Client
5+
6+
c = Client()
7+
8+
print c.ids
9+
c[:].apply_sync(lambda : "Hello, World")

0 commit comments

Comments
 (0)