September 11, 2026
Abstract
This demonstration showcases the ability of MarkCharm's interactive execution engine (Jupyterfication) to not only extract static plot images, but also complete HTML widgets.
We illustrate this through a two-dimensional animation of a sine wave using matplotlib.animation exported as an interactive dynamic widget (jshtml).
MarkCharm, in {#EXEC} mode, has the ability to render raw HTML originating from Jupyter cell executions. This ensures that complex animations do not lose their interactivity and fluidity in the final static documentation.
Below, we demonstrate the generation and rendering of a moving sine wave:
When compiling this document, the terminal will detect the text/html MIME output and the MarkCharm compiler will natively incorporate the JavaScript and HTML structure of the animation generated by Matplotlib.
The jshtml widget comes with play, pause buttons and a native progress bar for interactive exploration of physical or mathematical model outputs!