[IPython-dev] start_ipython() and multiprocessing
Thomas Kluyver
takowl at gmail.com
Thu Jul 13 03:23:49 EDT 2017
Hi Hugo,
See the 'safe importing of main module' section here:
https://docs.python.org/3/library/multiprocessing.html#the-spawn-and-forkserver-start-methods
Best wishes,
Thomas
On 12 July 2017 at 22:33, Hugo Gagnon <freesoftware.ipython at user.fastmail.fm
> wrote:
> Hi,
>
> When I do "import multiprocessing; p = multiprocessing.Pool()" in IPython
> everything works fine. However when I put "import IPython;
> IPython.start_ipython()" in say "test.py" and then do "$python test.py" and
> try starting a pool with the above command the prompt starts "multiplying
> itself" and sometimes crashes.
>
> I use Anaconda 4.4.0 Python 2.7.13 IPython 5.3.0 on Windows 7.
>
> --
> Hugo Gagnon
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20170713/b9ae9f4a/attachment.html>
More information about the IPython-dev
mailing list