LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Softwareunique-oss

A free browser tool turns Python math animations into sliders readers can play with

The project gives familiar animation code a publishing route that lets visitors alter the demonstration themselves.

Chris Pirillo slides a control on an overhead projector and a projected curve bends, as a projector transparency
Illustration: LockerGnome

A math animation can show a circle growing perfectly on cue. Wanim lets the reader grab the control and make the circle grow at the wrong moment, which is often when an explanation starts getting useful. The audience gets a turn at the knobs (please share).

The open-source project takes Manim-style Python and runs scenes in the browser. Its README describes adding controls with small edits, then connecting their values to objects through reactions. A slider can change a width, a switch can change a color, and an editable matrix can turn a fixed demonstration into something a reader can challenge.

That is a different publishing decision from exporting another video. A recording preserves the presenter’s sequence of choices. An interactive scene preserves some room for the visitor’s choices, including the ones the presenter would never select for a clean demonstration. The math can stay the same while the route through it changes.

Wanim offers a browser playground with editable examples and sharing controls. The project also exposes a web component and an iframe route, so an author can place the result beside the paragraph that needs it. A reader should not need a development environment just to see whether moving a point changes the relationship being explained.

The implementation boundary deserves attention before anybody pastes in a notebook. The project supports a Python and Manim subset rather than promising that every existing script, package or animation works unchanged. Its own comparison and examples are a starting point for checking a particular scene. Familiar syntax does not make the browser a complete replacement for the author’s original environment.

The reaction model gives authors a useful way to limit the work. The README says reactions run when a blueprint page is entered and again after reader input. An idle page can redraw without recalculating the underlying model. That matters when the thing on screen is simple to paint but expensive to recompute every time the browser wants another frame.

For someone explaining a system, the first useful choice is what the reader should be allowed to vary. A slider with no consequence becomes decoration quickly. A parameter that changes the apparent rule gives the audience a reason to stop watching passively and start asking where the explanation holds. The controls need a job as much as the animation does.

Wanim’s site supplies a playground and gallery rather than requiring that decision to begin with a blank file. An existing example can reveal whether the intended interaction fits the supported language before a whole lesson depends on it. The next improvement in an explanation may come from letting the reader make it temporarily look wrong.

The circle is under new management.

More Software

Every Software story →