Symbolic ODE extractor - Creating a brian2 tool

Hi everyone,

I’m sharing a small prototype tool: it recursively reconstructs a symbolic ODE from a Brian2 network and returns fully-expanded SymPy expressions for a designated variable (including dependencies across groups/synapses, summed variables, and subexpressions).

This has been useful for me when I needed symbolic analysis (e.g., Jacobians / stability / exporting equations). It’s early-stage and the API may change, but it already works for the cases I needed.

Repo: GitHub - BernardMaacaron/brian2-symbode
Example Notebook

Feedback is welcome and highly appreciated so please don’t hesitate to reach out!