rc = Client(profile='ssh')
rc.block = True
dview = rc.direct_view()
dview.use_dill()
with dview.sync_imports():
import numpy as np
# update dict
dview['np'] = np
dview['MyDerive'] = MyDerive
如果有自已定義的package(e.g. ipro)時,必須在每台機器設定PYTHONPATH,以保證可以直接在python當中import pro。
如果有自已定義的package(e.g. ipro)時,必須在每台機器設定PYTHONPATH,以保證可以直接在python當中import pro。