JuliaGizmos / InteractNext.jl

28 stars 6 forks source link

Error while using Base functions #3

Closed vipinbmenon closed 6 years ago

vipinbmenon commented 6 years ago

I'm using interactNext in atom and jupyter and the following result in an error.

using Plots,InteractNext
gr()
x = linspace(0,2*pi,100)
@manipulate for f in Dict(:sin => sin,:cos => cos) 
    y = f.(x)
    scatter(x,y)
end
Cannot serialize type Base.#cos
try_yieldto(::Base.##296#297{Task}, ::Task) at event.jl:189
wait() at event.jl:234
wait(::Condition) at event.jl:27
wait(::Task) at task.jl:181
macro expansion at dynamic.jl:67 [inlined]
(::Atom.##47#51)(::Dict{String,Any}) at eval.jl:44
handlemsg(::Dict{String,Any}, ::Dict{String,Any}, ::Vararg{Dict{String,Any},N} where N) at comm.jl:163
(::Atom.##11#13)() at event.jl:73

Using other functions like sigmoid we don't have this issue.