Problem using multiprocess with IPython

Answered

As posted in this stack overflow question: https://stackoverflow.com/questions/44658108/python-multiprocess-does-not-join-in-pycharm , when running a pool of processes in pycharm's interactive console (using IPython 5.1.0) the pool.join() doesn't seem to have any effect, while it works just fine when running from terminal or in debug mode. Any idea why this is happening? Could not find related questions, but if there is one you know of please point to it.

0
2 comments

Hi Gionatarogiani! We have a similar problem with using `multiprocessing.Pool`: https://youtrack.jetbrains.com/issue/PY-20885
But the problem is that Pool cannot be used inside interactive interpreter. It's not a PyCharm problem, it's a multiprocessing package limitation. Docs: https://docs.python.org/3/library/multiprocessing.html#using-a-pool-of-workers

Feel free to leave a comment and follow the issue.

0
Avatar
Permanently deleted user

Ok, good to know, thanks a lot for your help :)

0

Please sign in to leave a comment.