Check out the SOCEconModel GitHub repo, which contains a Jupyter notebook that you can run interactively to view the following demo.
See my blog post on Self-Organized Criticality and Economic Applications for more background, relevant articles and papers, and my project report with discussion of model behavior and results, and ideas for further development.