[Paraview] Paraview Python Multiprocessing

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue May 26 12:00:40 EDT 2015


Bruce,

Try the attached patch. You'll need to apply it to the VTK subdir
under ParaView.

Utkarsh

On Tue, May 26, 2015 at 11:29 AM, Bruce Jones
<bruce.david.jones at gmail.com> wrote:
> Hi,
>
> I am trying to do some parallel programming within paraviews python shell
> and have encountered a problem. If I run the following two lines of code in
> the python shell, the result is that a whole bunch of new paraview sessions
> will be started...
>
> from multiprocessing import Pool
> pool = Pool();
>
> It appears that a new paraview session is being created for each thread of
> the thread pool. Unfortunately, I am not able to then use the thread pool to
> run functions assynchronously.
>
> Regards,
> Bruce
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixStdStream.patch
Type: text/x-patch
Size: 1955 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150526/55c511e1/attachment.bin>


More information about the ParaView mailing list