Skip to main content

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.

Metadata

Release files for brian2wasm 0.0.post114

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brian2wasm 0.0.post114
File Size Uploaded
brian2wasm-0.0.post114.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brian2wasm 0.0.post114
File Interpreter ABI Platform
brian2wasm-0.0.post114-py3-none-any.whl Python 3 none any Details

Total release size: 41.9 kB

Release files / brian2wasm-0.0.post114.tar.gz

Download URL brian2wasm-0.0.post114.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e3afc8bfa3d09ed3eb71dc99135f75edad91b0bff52cd23cc5144233e23275db
BLAKE2b-256 checksum
How to use checksums
876a4249c5d2b6fc9228cfcfaf18315089d20bc5941390737303f057246cd3a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.13

Release files / brian2wasm-0.0.post114-py3-none-any.whl

Download URL brian2wasm-0.0.post114-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64e2d5d425837aad7f283e0fbbb5726eae465f21de24143370d74c6f9c40eb90
BLAKE2b-256 checksum
How to use checksums
8759145372f3efe0a59d15559cc577a6547d8543baf061525aca13b37d49f8f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.13

Release history Release notifications | RSS feed

0.4.3

2 release files

0.4.2

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

This release

0.0.post114 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page