Skip to content

Run the CARTopiaX model in the browser. - #12

Merged
vgvassilev merged 1 commit into
masterfrom
sc-cartopiax
Nov 5, 2026
Merged

vgvassilev merged 1 commit into
masterfrom
sc-cartopiax

Conversation

@vgvassilev

Copy link
Copy Markdown
Contributor

Notebook 5 only restates the shape of the cancer model. The model itself, CARTopiaX on BioDynaMo, now also builds for wasm32 as a 1.2 MB side module, with one thread and the same output as the native single-thread build.

6_cartopiax.ipynb runs a 60 um organoid for 20 simulated minutes (about 50 s) and plots the model's summary CSV and its snapshots of cells and substance fields. Files under a series' data/ are packed into the archive every kernel downloads at start, so the library is fetched instead by the notebook itself: lazy.load_library(name) downloads /lazy/ once and loads it with cppjit.load_library.

The library is the release asset libcartopiax.so, pinned in lite/kernel/SHA256SUMS. Without the asset the site build leaves the notebook out. The notebook is browser-only, so it lives in lite/notebooks rather than in the natively tested cppjit/ series.

Notebook 5 only restates the shape of the cancer model. The model
itself, CARTopiaX on BioDynaMo, now also builds for wasm32 as a 1.2 MB
side module, with one thread and the same output as the native
single-thread build.

6_cartopiax.ipynb runs a 60 um organoid for 20 simulated minutes (about
50 s) and plots the model's summary CSV and its snapshots of cells and
substance fields. Files under a series' data/ are packed into the
archive every kernel downloads at start, so the library is fetched
instead by the notebook itself: lazy.load_library(name) downloads
<site>/lazy/<name> once and loads it with cppjit.load_library.

The library is the release asset libcartopiax.so, pinned in
lite/kernel/SHA256SUMS. Without the asset the site build leaves the
notebook out. The notebook is browser-only, so it lives in
lite/notebooks rather than in the natively tested cppjit/ series.
@vgvassilev
vgvassilev merged commit c64988f into master Nov 5, 2026
10 checks passed
@vgvassilev
vgvassilev deleted the sc-cartopiax branch November 5, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant