Question

I know I can make IPython parallel use dill instead of pickle with a direct view using

c = Client()
dv = c[:]
dv.use_dill()

But how can I enable it with dv.load_balanced_view()?

Was it helpful?

Solution

I think you can call use_dill on a direct view and then use a load-balanced view:

c = Client()
c.direct_view().use_dill()
v = c.load_balanced_view()
...

From the DirectView.use_dill documentation:

This calls IPython.utils.pickleutil.use_dill() here and on each engine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top