Yea, right? So what’s the answer? How can we if at all do any PyCalls 
parallely? 

On Monday, October 26, 2015 at 11:49:35 PM UTC+10, Matthew Pearce wrote:

Thought I had an idea about this, I was wrong:
>
> ```julia
>
> julia> @everywhere using PyCall
>
> julia> @everywhere @pyimport pylab
>
> julia> remotecall_fetch(pylab.cumsum, 5, collect(1:10))
> ERROR: cannot serialize a pointer
>  [inlined code] from error.jl:21
>  in serialize at serialize.jl:420
>  [inlined code] from dict.jl:372
>  in serialize at serialize.jl:428
>  in serialize at serialize.jl:310
>  in serialize at serialize.jl:420 (repeats 2 times)
>  in serialize at serialize.jl:302
>  in serialize at serialize.jl:420
>  [inlined code] from dict.jl:372
>  in serialize at serialize.jl:428
>  in serialize at serialize.jl:310
>  in serialize at serialize.jl:420 (repeats 2 times)
>  in serialize at serialize.jl:302
>  in serialize at serialize.jl:420
>  [inlined code] from dict.jl:372
>  in send_msg_ at multi.jl:222
>  [inlined code] from multi.jl:177
>  in remotecall_fetch at multi.jl:728
>  [inlined code] from multi.jl:368
>  in remotecall_fetch at multi.jl:734
>
> julia> pylab.cumsum(collect(1:10))
> 10-element Array{Int64,1}:
>   1
>   3
>   6
>  10
>  15
>  21
>  28
>  36
>  45
>  55
>
> ```
>
​

Reply via email to