Static HTML Exports for Makie Proof of Concept

@bjarthur and I were exploring the state of static export of some dynamic Makie plots that vary in time. With the help of some AI agents (Google Antigravity CLI with Gemini Flash 3.5) we eventually found a path. I’ve created a demonstration by creating some 3D random walk simulations here:

The main key was to use onjs to write some JavaScript to do the dynamic updates:

In particular, we (Ben, I, and Gemini Flash 3.5) had to parse through WGLMakie internals to find the name “positions_transformed_f32c” as a key name to update.

For now, please enjoy the plots. If you have any thoughts about how to generalize and upstream this approach, I would be interested in pursuing that.

Cool stuff! I’m also working on some WASM compilation for WGLMakie and improving the JS interface, for more standalone use cases!
So hopefully this will become much easier in the future :slight_smile:

Wow, that sounds amazing, thanks all!