# Symbolic ODE extractor - Creating a brian2 tool

**URL:** <https://brian.discourse.group/t/symbolic-ode-extractor-creating-a-brian2-tool/1527>\
**Category:** Science, Projects, and Showcases\
**Tags:** equations\
**Created:** [10 February 2026 16:58 UTC](https://brian.discourse.group/t/symbolic-ode-extractor-creating-a-brian2-tool/1527 "2026-02-10T16:58:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BernardM](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/bernardm/32/947_2.png) [@BernardM](https://brian.discourse.group/u/BernardM)\
**Post date:** [10 February 2026 16:58 UTC](https://brian.discourse.group/t/symbolic-ode-extractor-creating-a-brian2-tool/1527/1 "2026-02-10T16:58:47Z")

</div>

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](https://github.com/BernardMaacaron/brian2-symbode)  
[Example Notebook](https://github.com/BernardMaacaron/brian2-symbode/blob/ba6852f3ed78828e54d98f1397ef0977ea3fc9ef/examples/walkthrough.ipynb)

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