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
brian2wasmwithpip, either by cloning this repository and usingpip 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
examplesfolder
[!NOTE] Plotting will not work in the website that gets started automatically by the example script, since it needs to download the
plotly.jslibrary from a CDN. You can work around this limitation by going into the generated folder that contains theindex.htmlfile and run a Python webserver viapython -m http.server. You can then open the displayed link in your browser.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brian2wasm-0.0.1.tar.gz.
File metadata
- Download URL: brian2wasm-0.0.1.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
739617123121c710b8a11c226eb6d26d61cb8f10d21986b189ca1a981e1979f8
|
|
| MD5 |
bd05a13e1ded97f3bf760bf0f3a58b98
|
|
| BLAKE2b-256 |
af1cd4f75dfc6dab1b0fd11182f4140f8cb67941ee4bc7c2f8c9bc5571d770fb
|
File details
Details for the file brian2wasm-0.0.1-py3-none-any.whl.
File metadata
- Download URL: brian2wasm-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4c5cc635cf1a87144422acfaa4acb3cdf5de13b0782a23c01cdc2f1f64e87ec
|
|
| MD5 |
1ed82c41a848e5aa52d48d51fa71f90d
|
|
| BLAKE2b-256 |
6ea055fa6aecb76385f976db27115f8891bf79932eccb4146e72c4a3bc7b511b
|