Skip to main content

A WebAssembly backend for the Brian 2 simulator

Project description

Brian2Wasm

Wasm code generation for the Brian simulator.

Using the emscripten toolchain, this "device" generates code in WebAssembly and JavaScript, enabling users to run Brian simulations in the browser.

You can directly access the built examples on this website: https://brian-team.github.io/brian2wasm/

UNDER CONSTRUCTION, not for general use

[!WARNING] The package currently only targets Linux – it might work on macOS and on Windows via the WSL, but this hasn't been tested.

Usage/Installation:

  • Install brian2wasm with pip, either by cloning this repository and using pip install ., or by using
    $ pip install git+https://github.com/brian-team/brian2wasm/
    
  • Install the emsdk and activate it following the instructions
  • You should then be able to run one of the examples in the examples folder

[!NOTE] Plotting will not work in the website that gets started automatically by the example script, since it needs to download the plotly.js library from a CDN. You can work around this limitation by going into the generated folder that contains the index.html file and run a Python webserver via python -m http.server. You can then open the displayed link in your browser.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brian2wasm-0.0.2.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brian2wasm-0.0.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file brian2wasm-0.0.2.tar.gz.

File metadata

  • Download URL: brian2wasm-0.0.2.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.13

File hashes

Hashes for brian2wasm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d11918a4c88bc2eb00d20a6f9ad41d9ed8d022096779fc1a5ab20be858326354
MD5 aa3689ec7f442eb08354395d955dff58
BLAKE2b-256 007ee83380d6154beb1b51e3ec2ef993c9e68a696d02744aae18ebc8130f1d72

See more details on using hashes here.

File details

Details for the file brian2wasm-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: brian2wasm-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.13

File hashes

Hashes for brian2wasm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fac5776de63ff94030f44ace646545565df1423c1eec84d7ceab77da62228a5e
MD5 e35738fd50fb588587421949dfdee148
BLAKE2b-256 0d38abd19ecf2187f33bdb68d6bd386e2471ab7b32f83f4475c90e65754c229e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page