🧠 Brian2 Web Simulation App: Interactive Spiking Neural Network Simulator in Your Browser

Hi everyone,

I’m excited to share Brian2 Web Simulation App, a browser-based interactive simulator for spiking neural networks built with Brian2 and Flask.

Goal/Idea: The main idea is to make neural modeling and simulation with Brian2 accessible and user-friendly, lowering the barrier for learning, teaching, and rapid prototyping in neuroscience.

Features:

  • Multiple neuron models: LIF, Izhikevich, AdEx, and custom equations
  • Network options: synaptic weights, connection probability, noise, and more
  • Presets for common network scenarios
  • Interactive (Plotly) and static (Matplotlib) plots
  • Download simulation results as CSV or JSON
  • Responsive, accessible UI
  • Automatic cleanup of old output files
  • And more…

How it works:

  1. Install dependencies: pip install flask brian2 matplotlib pandas numpy plotly
  2. Run: python app.py
  3. Open http://127.0.0.1:5000/ in your browser

You can configure neuron/network parameters, run simulations, visualize results, and download data, all from your browser.
Custom equations and reset/threshold rules are supported for advanced users.

Demo Screenshots:


Repo: https://github.com/Metanome/brian2sim-web

Feedback, suggestions, and contributions are welcome!
Let me know if you have questions or ideas for improvements.

3 Likes