qutip/qutip-notebooks

Parallel examples in tutorial notebooks do not work

yuchiuchao opened this issue · 0 comments

I simply don't see how tutorial examples involving parallel computations can work. If one executes any of these examples whether involving the parfor() function or the more formal pool.map construct one gets into AttributeError for not being able to access the called function explicitly defined above. If one puts these functions in a file and import, the Attributeerror goes away but then the called arguments are not global and the program cannot resolve them. The simple appearance of these parallel executions in the examples hides some pre-requisite or built in assumptions not shown that made these parallel examples useless. I am afraid I am not the only one trying to learn QuTip but ending up wasting a lot of time unnecessarily, which could have been avoided with a more carefully prepared tutorial.

I have tried these both in the nteract environment and in browser based Jupyter. None worked. It would save the beginning users a lot of time if these examples could be more explicit with what underlying environmental setup was involved before these innocent looking parallel calls can actually work.