ITADN

Support from Pluto.jl

#111Closedahjulstad 创建于 2024-11-21
A
ahjulstadcommented
Would it be possible run inside of Pluto.jl? Initial testing with ConcurrentSim.jl (and ResumableFunctions.jl) give errors in Pluto.jl. Just something along the lines of the example ``` using Distributions, ResumableFunctions, ConcurrentSim, Random @resumable function fibonacci(n::Int) a = 0 b = 1 for i in 1:n @yield a a, b = b, a+b end end for val in fibonacci(10) println(val) end ``` Gives error message ``` UndefVarError: `##236` not defined in `Main.var"workspace#6"` Suggestion: check for spelling errors or missing imports. ``` at the last line (the end statement) of the fibonacci function. I have no idea how difficult this is, but I think the interactivity of Pluto together with the speed of simulations in Julia can be useful.
关闭于 2024-11-24 6 条评论