Open TristanFauvel opened 1 year ago
Hi @TristanFauvel , sorry you're encountering an issue! In general, on Windows, any calls to multiprocess
need to happen within the __main__
block; see the answer here:
https://docs.idmod.org/projects/covasim/en/latest/faq.html#why-do-parallel-simulations-fail-on-windows-or-in-jupyter-notebooks
However, this doesn't usually happen from within a Jupyter notebook, so I'm surprised you encountered that here. While adding the __main__
block should fix it, it's possible that upgrading your Jupyter/IPython kernel might as well. Let us know if that works, and if not then we can investigate further and potentially update the FAQ.
Hi @cliffckerr,
thanks for the quick reply, and for the great package. Actually when running the example in the FAQ I don't get an error, even when not using a __main__
block. By contrast, adding a __main__
block does not solve the issue in tut_intro.ipynb
.
Describe the bug
In the last cell of the tutorial
tut_intro.ipynb
, when runningmsim = cv.MultiSim([s1, s2])
, I get the following error message:The full output is:
Note that the following works fine:
Platform (please complete the following information):