Differences between revisions 2 and 3
Revision 2 as of 2009-11-28 14:57:26
Size: 869
Editor: Elias
Comment: 删除对PageComment2组件的引用
Revision 3 as of 2009-12-25 07:09:39
Size: 871
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
[[TableOfContents]] <<TableOfContents>>
Line 6: Line 6:
[[Include(ZPyUGnav)]] <<Include(ZPyUGnav)>>
Line 13: Line 13:
[http://www.haokanbu.com/diary/36196/ IPython并行计算教程笔记 - 日记 - 好看簿图片博客:用照片记录生活] [[http://www.haokanbu.com/diary/36196/|IPython并行计算教程笔记 - 日记 - 好看簿图片博客:用照片记录生活]]
Line 46: Line 46:
创建 by -- ZoomQuiet [[[DateTime(2009-07-16T00:54:26Z)]]] 创建 by -- ZoomQuiet [<<DateTime(2009-07-16T00:54:26Z)>>]

IPython并行计算

IPython并行计算教程笔记 - 日记 - 好看簿图片博客:用照片记录生活

视频教程

https://www.osc.edu/cms/sip/bl...

运行计算节点ipcluster

   1 from IPython.kernel import client
   2 mec = client.MultiEngineClient()
   3 w = range(100)
   4 mec.scatter('w', w)
   5 mec.gather('w')
   6 
   7 mec.map(lambda x:x**2, w)
   8 mec.execute('print w')
   9 
  10 mec.push({'z':10})
  11 mec.pull('z')
  12 
  13 def foo(x):
  14     return x*2
  15 
  16 mec.execute('zz=foo(z)')

此日记发布于2009-07-15 16:51:51


反馈

创建 by -- ZoomQuiet [2009-07-16 00:54:26]

MiscItems/2009-07-16 (last edited 2009-12-25 07:09:39 by localhost)