Pyodide [1] (Python in the browser) is available for writing interactive books like never before. You can let the user not just play with pre-built visualizations but actually modify the code as they see fit - the important thing being that python is easier to parse than javascript.
I am writing an interactive book in this fashion these days, and I am hoping it will help my readers build understanding that is much deeper than the existing static books and resources.
I am writing an interactive book in this fashion these days, and I am hoping it will help my readers build understanding that is much deeper than the existing static books and resources.
[1] https://pyodide.org/en/stable/