Code Monkey home page Code Monkey logo

Comments (6)

Tortar avatar Tortar commented on June 9, 2024

I think you need to update to v5.17.2 to solve the issue. There we have downgraded Makie so that it works fine as before.

from agents.jl.

manentai avatar manentai commented on June 9, 2024

thank you @Tortar , the error is resolved on my Mac, but nothing pops up, I just get the info below in console:

(Scene (1200px, 800px):
  1 Plot:
    └ Combined{Makie.tooltip, Tuple{Point{2, Float32}}}
  6 Child Scenes:
    ├ Scene (1200px, 800px)
    ├ Scene (1200px, 800px)
    ├ Scene (1200px, 800px)
    ├ Scene (1200px, 800px)
    ├ Scene (1200px, 800px)
    └ Scene (1200px, 800px), ABMObservable with model:
UnremovableABM with 320 agents of type SchellingAgent
 space: GridSpaceSingle with size (20, 20), metric=chebyshev, periodic=false
 scheduler: Agents.Schedulers.Randomly
 properties: min_to_be_happy
and with data collection:
 adata: nothing
 mdata: nothing)

julia> 

might it be because I am in VSCode?

from agents.jl.

Tortar avatar Tortar commented on June 9, 2024

I think you need to call figure, otherwise it doesn't show it even if it computed it if I remember correctly

from agents.jl.

manentai avatar manentai commented on June 9, 2024

at least in VSCode on a Mac Sonoma, only thing that happens when I call figure is a static plot like in figure, but I cannot move anything nor start the simulation:

Screenshot 2024-01-20 at 18 16 24

am I missing something else maybe?

from agents.jl.

Tortar avatar Tortar commented on June 9, 2024

I think this is because you are importing CairoMakie, try to change

using Agents, GLMakie, CairoMakie, Random # for reproducibility

in

using Agents, GLMakie, Random # for reproducibility

from agents.jl.

manentai avatar manentai commented on June 9, 2024

yes that was it, thanks!

from agents.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.