##language:zh #pragma section-numbers off ##含有章节索引导航的 ZPyUG 文章通用模板 <> ## 默许导航,请保留 <> = IPython并行计算 = ##startInc [[http://www.haokanbu.com/diary/36196/|IPython并行计算教程笔记 - 日记 - 好看簿图片博客:用照片记录生活]] == 视频教程 == https://www.osc.edu/cms/sip/bl... == 运行计算节点ipcluster == {{{#!python from IPython.kernel import client mec = client.MultiEngineClient() w = range(100) mec.scatter('w', w) mec.gather('w') mec.map(lambda x:x**2, w) mec.execute('print w') mec.push({'z':10}) mec.pull('z') def foo(x): return x*2 mec.execute('zz=foo(z)') }}} 此日记发布于2009-07-15 16:51:51 ##endInc ---- '''反馈''' 创建 by -- ZoomQuiet [<>]