Animations in books

I teach acoustics and vibration, and I use a lot of Python animations in Jupyter notebooks with my students. It’s useful for them to be able to step back and forth through the animation a frame at a time within the notebook.

I’d like to develop these notebooks into an online book, and I’ve been looking into JupyterBook. But I’d also like to use Julia for the book (I’m restricted to Python for the day-to-day teaching, for now at least).

Is there a Julia animation tool that can provide stepping controls within the notebook/book? Would the choice of JupyterBook, Book.jl, Franklin.jl or another platform to build the book make a difference?



Ah, so you are the M. Wright of Lecture Notes on the Mathematics of Acoustics. I love that book!

1 Like

Quarto ( seems to get some positive reviews lately, it’s meant to be used with Python and Julia at the same time which could simplify things for you.

About the animations, would it be enough to render a video file and then embed that? You can drag forward and backward with normal video controls but it’s not a step-one-frame kind of UI. But it would be supported by basically any visualization tool.

Talking about animations, I can only share the info about the existence of Javis.jl. I cannot give much more, I have no experience with it. The authors also gave a talk at JuliaCon 2021: Javis.jl - Julia Animations and Visualizations | Jacob Zelko, Ole Kröger | JuliaCon2021 - YouTube.

Not Julia so not very satisfying in this context, but there is an open source animation program developed by University of Cincinnati students that is written in Matlab and last time I checked was hosted by Abravibe and also discussed on Matlab Central. It is used to animate operating deflection shapes and modal analysis results. It will create gif files that can be used for documentation.

It would be nice to see the equivalent in Julia.

I am, glad you like it, the one I’m planning here (if it ever happens) will be very different though.

1 Like