Skip to main content

vidigi (Visual Interactive Dynamics and Integrated Graphical Insights)

Project info: Code licence DOI ORCID All Contributors
Installation: PyPI Anaconda-Server Badge
Metrics: PyPI downloads all time PyPI downloads monthly PyPI downloads weekly Conda Downloads GitHub Repo stars
Activity: GitHub forks GitHub last commit GitHub Release Date GitHub open-pull-requests
Build & quality status: Project Status: Active – The project has reached a stable, usable state and is being actively developed. Tests Documentation Dogfooding-by-docs Documentation Against PyPI Release
Supported platforms: 3.10|3.11|3.12|3.13|3.14 OS

Welcome to vidigi - a package for visualising real or simulated pathways.

vidigi is the Esperanto for 'to show'

(or it's the backronym 'Visual Interactive Dynamics and Integrated Graphical Insights' - whichever floats your boat)

https://github.com/hsma-programme/Teaching_DES_Concepts_Streamlit/assets/29951987/1adc36a0-7bc0-4808-8d71-2d253a855b31

Primarily developed for healthcare simulation and intended to allow easy integration with tools like Streamlit so users can see the impact of changes to simulation parameters in real-time, vidigi handles the conversion of your simulation event logs into engaging and flexible animations.

With just a minimal set of logs - with helper functions provided to make that easier than ever to integrate into existing SimPy or Ciw simulations - you can start generating and customising your visualisations in minutes.

Getting started

Head to the documentation to find out how to create an animated version of your model.

You can install vidigi from PyPi with the command pip install vidigi.

Introduction

Visual display of the outputs of discrete event simulations in simpy have been identified as one of the limitations of simpy, potentially hindering adoption of FOSS simulation in comparison to commercial modelling offerings or GUI FOSS alternatives such as JaamSim.

When compared to commercial DES software packages that are commonly used in health research, such as Simul8, or AnyLogic, a limitation of our approach is that we do not display a dynamic patient pathway or queuing network that updates as the model runs a single replication. This is termed Visual Interactive Simulation (VIS) and can help users understand where process problems and delays occur in a patient pathway; albeit with the caveat that single replications can be outliers. A potential FOSS solution compatible with a browser-based app could use a Python package that can represent a queuing network, such as NetworkX, and displaying results via matplotlib. If sophisticated VIS is essential for a FOSS model then researchers may need to look outside of web apps; for example, salabim provides a powerful FOSS solution for custom animation of DES models.

  • Monks T and Harper A. Improving the usability of open health service delivery simulation models using Python and web apps [version 2; peer review: 3 approved]. NIHR Open Res 2023, 3:48 (https://doi.org/10.3310/nihropenres.13467.2)

This package allows visually appealing, flexible visualisations of the movement of entities through some kind of pathway.

It is primarily tested with discrete event simulations to be created from SimPy and Ciw models, though could be used with other simulation libraries or real-world data.

Plotly is leveraged to create the final animation, meaning that users can benefit from the ability to further customise or extend the plotly plot, as well as easily integrating with web frameworks such as Streamlit, Dash or Shiny for Python.

Examples

To develop and demonstrate the concept, it has so far been used to incorporate visualisation into several existing simpy models that were not initially designed with this sort of visualisation in mind:

  • a minor injuries unit, showing the utility of the model at high resolutions with branching pathways and the ability to add in a custom background to clearly demarcate process steps

https://github.com/hsma-programme/Teaching_DES_Concepts_Streamlit/assets/29951987/1adc36a0-7bc0-4808-8d71-2d253a855b31

  • an elective surgical pathway (with a focus on cancelled theatre slots due to bed unavailability in recovery areas), with length of stay displayed as well as additional text and graphical data

https://github.com/Bergam0t/simpy_visualisation/assets/29951987/12e5cf33-7ce3-4f76-b621-62ab49903113

  • a community mental health assessment pathway, showing the wait to an appointment as well as highlighting 'urgent' patients with a different icon and showing the time from referral to appointment below the patient icons when they attend the appointment.

https://github.com/Bergam0t/simpy_visualisation/assets/29951987/80467f76-90c2-43db-bf44-41ec8f4d3abd

  • a community mental health assessment pathway with pooling of clinics, showing the 'home' clinic for clients via icon so the balance between 'home' and 'other' clients can be explored.

https://github.com/Bergam0t/simpy_visualisation/assets/29951987/9f1378f3-1688-4fc1-8603-bd75cfc990fb

  • a community mental health assessment and treatment pathway, showing the movement of clients between a wait list, a booking list, and returning for repeat appointments over a period of time while sitting on a caseload in between.

https://github.com/Bergam0t/simpy_visualisation/assets/29951987/1cfe48cf-310d-4dc0-bfc2-3c2185e02f0f

Test Coverage

Vidigi is still in relatively early development, with test coverage being limited. More tests are being written all the time - but for now, please continue to sense-check your outputs!

Fancy helping out? Consider submitting a pull request with some tests! It's a great way to get to know the codebase better.

Animation Functions

Resource Classes and Helper Functions

Logging Classes and Helpers

Event Positioning Helpers

Citation

If you use vidigi in your work, please cite the paper:

Rosser, S., & Chalk, D. (2026). Vidigi: A Python library for interactive-animated visualisations of discrete event simulation models. Journal of Simulation. Advance online publication. https://doi.org/10.1080/17477778.2026.2663849

BibTeX
@article{rosser2026vidigi,
  title     = {Vidigi: a Python library for interactive-animated visualisations of discrete event simulation models},
  author    = {Rosser, Sammi and Chalk, Daniel},
  journal   = {Journal of Simulation},
  year      = {2026},
  publisher = {Taylor \& Francis},
  doi       = {10.1080/17477778.2026.2663849}
}

To cite a specific version of the software, use its Zenodo archive - the all-versions DOI always resolves to the latest release. GitHub's Cite this repository button generates both citations from CITATION.cff.

Acknowledgements

Thanks are due to

Models used as examples

Emergency department (Treatment Centre) model

Monks.T, Harper.A, Anagnoustou. A, Allen.M, Taylor.S. (2022) Open Science for Computer Simulation

https://github.com/TomMonks/treatment-centre-sim

The layout code for the emergency department model: https://github.com/hsma-programme/Teaching_DES_Concepts_Streamlit

The hospital efficiency project model

Harper, A., & Monks, T. Hospital Efficiency Project Orthopaedic Planning Model Discrete-Event Simulation [Computer software]. https://doi.org/10.5281/zenodo.7951080

https://github.com/AliHarp/HEP/tree/main

Simulation model with scheduling example

Monks, T.

https://github.com/health-data-science-OR/stochastic_systems

https://github.com/health-data-science-OR/stochastic_systems/tree/master/labs/simulation/lab5

Contributors

Thanks goes to all of the following people (emoji key).

Amy Heather
Amy Heather

🐛 📖 💡 🤔 🚇 🚧 ⚠️ ✅
Sammi Rosser
Sammi Rosser

💻 📖 ⚠️ 🐛 🖋 🎨 💡 🤔 🚇 🚧 📆 📣 🔬 📢 ✅
Helena Robinson
Helena Robinson

🐛 🤔 📓
Dr Daniel Chalk
Dr Daniel Chalk

🧑‍🏫
Tom Monks
Tom Monks

🧑‍🏫
ReyTan8
ReyTan8

🐛 🤔 📓

Contributors of any kind - not just code - are welcome! Please see CONTRIBUTING.md for guidance.

Generative AI use disclosure and policy

A note about AI usage from Sammi (primary library author and maintainer):

I've been coding for over ten years, love the act of coding, and have significant concerns about the ethics and environmental impact of AI. However, I can't deny its utility as a solo maintainer when it comes to making all the features I want to include in my projects a reality. I hope you find these projects useful enough to help offset some of the downsides of AI, and will use them to help do some good in the world, or at least use them to claw back some of your time so you can spend more of it enjoying being human. For my part, I will continue to use AI critically and carefully, and I will try to make environmentally-conscious choices in my personal life to help balance the scales.

The fundamentals of this library were written by hand, with occasionaly use of the web version of ChatGPT, Gemini and Claude for debugging, debating architecture, and exploring possible approaches. Vidigi was born from a real gap that I saw in simulation visualisation for teaching, debugging and communication, and throughout the development process, I have used vidigi myself in real projects to help steer its development and test it thoroughly beyond the borders of the notebooks and tests in the library.

Claude usage via Claude Code was not introduced until 17 August 2026. The project's CLAUDE.md is provided for transparency, and for consistency if contributors wish to use it. CHAT-GPT usage via Codex was introduced on 15 September 2026, and the AGENTS.md is similarly provided for transparency.

All AI-generated code or prose will always be thoroughly reviewed, tweaked and tested before inclusion.

We are happy to accept AI-supported contributions to the library, but reserve the right to reject wholly AI generated pull requests which are not felt to add value to the project.

Metadata

Release files for vidigi 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidigi 2.0.0
File Size Uploaded
vidigi-2.0.0.tar.gz 204.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vidigi 2.0.0
File Interpreter ABI Platform
vidigi-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 415.3 kB

Release files / vidigi-2.0.0.tar.gz

Download URL vidigi-2.0.0.tar.gz
Size 204.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8ae6fb3c16bf728592f9611378665374de99501441679e779ab2871c0cbee86c
BLAKE2b-256 checksum
How to use checksums
f128c23a84c1f5d5cd873b1f257b3143c789d0f2229956502cd761e211599dfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / vidigi-2.0.0-py3-none-any.whl

Download URL vidigi-2.0.0-py3-none-any.whl
Size 211.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
768d91a92fef5384327be262c7d38d0bfc28aa7168e54d4ca1e76c25b11a8e60
BLAKE2b-256 checksum
How to use checksums
cdd658bf5905e07b69111d4a37c411a6bfa554e779f2f18cc245df6bf13293e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page