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.4.2.tar.gz (25.6 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.4.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brian2wasm-0.4.2.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for brian2wasm-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c2def2426e60eb21f71aeea9fe3225512e0e0b9e63fb69b3761c9d9d0b5bba8d
MD5 a0ce473cfd826b35a1dbfb308cec6f6a
BLAKE2b-256 76d28b5848d7d47d024c05a029e7b79a807f79ee57459e5ced0f6bd9360f3ed6

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2wasm-0.4.2.tar.gz:

Publisher: publish.yml on brian-team/brian2wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: brian2wasm-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for brian2wasm-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af7ba74734be0e7ebf4eb898ba0083badf918e63ce2c4e3bd0b993b01c7afe3b
MD5 6339be6c12496477ebf057bfcfd220a2
BLAKE2b-256 ce281892c52f4d53803fde6459d847f31b6c2ebd197200cd129d5154a67f2458

See more details on using hashes here.

Provenance

The following attestation bundles were made for brian2wasm-0.4.2-py3-none-any.whl:

Publisher: publish.yml on brian-team/brian2wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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