Skip to content

Fix emperor_dilemma: relative imports and outdated SpaceRenderer API #337

@mehaksalil

Description

@mehaksalil

The emperor_dilemma example is currently broken and cannot be run due to two issues:

  1. Relative imports in app.py, model.py, and agents.py are incompatible with
    how Solara loads example modules.

  2. SpaceRenderer.setup_agents() no longer exists in the current Mesa API.

Both issues prevent the example from running at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions