IPython-IPyparallel import error

I think my CWD is not in the right directory. So you can check your CWD

>>> import os
>>> print(dview.apply_sync(os.getcwd).get())

If it is in wrong directory, before parallel computing, you can set the right CWD to make sure you ipyparallel env is in the right work directory:

>>> import os
>>> dview.map(os.chdir, ['/path/to/my/project/on/engine']*number_of_engines)
>>> print(dview.apply_sync(os.getcwd).get())

You can also check your engines' name by

>>> import socket
>>> print(dview.apply_sync(socket.gethostname))

And it works fine!