Thank you to both of you!
I made some progress.
I want to solve an SDE which evolves in time and the user can interact with the parameters of the problem. It is a bit similar to the following apart from the fact that it does not work… Hence, I would need a last push to complete my simulation…
I would like
timer_sde to be updated and plotted every
0.1s and I would like the widget to feed back
J,sigma,... to the stepper
using Plots, Interact
N = 10
timer_sde = Observable(rand(N))
function step!(x,iter,sigma,dt, J)
@. x = x .+ (-x .+ J .* sum(x)) .* dt + (sigma) .* sqrt(dt) .* randn(length(x))
@async while true
@manipulate for sigma = 0:0.1:4, J = 0:0.1:5, y = timer_sde