I'm trying to compile an interactive diagram example using GLMakie and it's not working. What can I do?

184 Views Asked by At

I just can't run the example available here https://juliadynamics.github.io/InteractiveDynamics.jl/dev/cobweb/

I copied and pasted this code into a file called "example_cobweb.jl" 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)

enter image description here

enter image description here

What can I do?

1

There are 1 best solutions below

7
On

I think the answer here is that you need to install the packages GLMakie, Makie, CairoMakie. So if you go into julia and tap the "]" key to open the package manager and type add GLMakie, Makie, CairoMakie..

It looks like from the pictures, that you tried to install GLMakie already. Perhaps you can try this.

  1. Add the other backends like I said, GLMakie, Makie, and CairoMakie.
  2. update your packages using the update command from the package manager prompt.
  3. In the main Julia project, type using Pkg; Pkg.precompile()

That might cover all the bases.