Skip to content

SolaraViz Cannot Be Run Locally - Multiple Installation and Execution Failures #2814

@ashfaq92

Description

@ashfaq92

Problem

SolaraViz cannot be run in local Python scripts despite following official documentation. Only works in Jupyter notebooks, which is inadequate for most ABM development workflows.

Environment

  • Python version: 3.13.5
  • Mesa version: 3.2.0
  • OS: Windows 11
  • Installation method: pip

Current Issues Preventing Local Development:

  1. solara.run() method doesn't exist in current API
  2. solara.server.run() method doesn't exist
  3. page.run() fails with "AttributeError: 'Element' object has no attribute 'run'"
  4. Command line solara run filename.py fails with various import errors
  5. Official documentation examples don't work for local scripts

Steps to Reproduce

folowed code https://mesa.readthedocs.io/latest/tutorials/6_visualization_custom.html but in the end, instead of page tried several hacks but was unable to visualize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsRelease notes label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions