I just can’t run the example available here
https://juliadynamics.github.io/InteractiveDynamics.jl/dev/cobweb/
I copied and pasted this code and when I run it doesn’t work. I’ve already tried ]build GLMakie
.
using InteractiveDynamics, GLMakie, DynamicalSystems
# the second range is a convenience for intermittency example of logistic
rrange = 1:0.001:4.0
# rrange = (rc = 1 + sqrt(8); [rc, rc - 1e-5, rc - 1e-3])
lo = Systems.logistic(0.4; r=rrange[1])
interactive_cobweb(lo, rrange, 5)
This should return me an interactive diagram, but appears to me:
ERROR: LoadError: No backend available (GLMakie, CairoMakie, WGLMakie)!
Maybe you imported GLMakie but it didn't build correctly.
In that case, try `]build GLMakie` and watch out for any warnings.
If that's not the case, make sure to explicitely import any of the mentioned backends.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] backend_display(#unused#::Missing, #unused#::Scene)
@ Makie ~/.julia/packages/Makie/c5WJV/src/display.jl:43
[3] display
@ ~/.julia/packages/Makie/c5WJV/src/display.jl:62 [inlined]
[4] display
@ ~/.julia/packages/Makie/c5WJV/src/display.jl:52 [inlined]
[5] interactive_cobweb(ds::DiscreteDynamicalSystem{false, Float64, 1, typeof(DynamicalSystemsBase.Systems.logistic_rule), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.logistic_jacob), Float64, false}, prange::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}}, O::Int64; fkwargs::Vector{NamedTuple{(:linewidth, :color), Tuple{Float64, ColorTypes.RGBA{Float32}}}}, trajcolor::Symbol, pname::String, xmin::Float64, xmax::Float64, Tmax::Int64, pindex::Int64, x0s::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}})
@ InteractiveDynamics ~/.julia/packages/InteractiveDynamics/rKq1q/src/chaos/cobweb.jl:132
[6] interactive_cobweb(ds::DiscreteDynamicalSystem{false, Float64, 1, typeof(DynamicalSystemsBase.Systems.logistic_rule), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.logistic_jacob), Float64, false}, prange::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}}, O::Int64)
@ InteractiveDynamics ~/.julia/packages/InteractiveDynamics/rKq1q/src/chaos/cobweb.jl:36
[7] top-level scope
@ ~/Disciplinas/Dinâmica de Sistemas Não-lineares/exemplo_cobweb.jl:11
[8] include(fname::String)
@ Base.MainInclude ./client.jl:444
[9] top-level scope
@ REPL[5]:1
in expression starting at /home
I’ve already tried ]add GLMakie, Makie, CairoMakie.
; update my packages using the update
command from the package manager prompt; in the main Julia project, type using Pkg; Pkg.precompile()
.
What can I do?