Interactive, self-contained demos to embed as iframes in slides.com for a lecture on automatic differentiation. Hosted via GitHub Pages.
- Enable Pages: Settings → Pages → Deploy from branch →
main/ root. - The site will be available at:
- Project page:
https://eiffl.github.io/Autodiff4Astro/
- Project page:
All links in this repo use relative paths so they work on project pages.
index.html— landing page that lists demos.demos/derivative-definition/— first animation illustrating the definition of a derivative with a live secant→tangent visualization.
Use an iframe block in your slide and point to the demo page. Example:
<iframe src="https://eiffl.github.io/Autodiff4Astro/demos/derivative-definition/"
width="100%" height="520" style="border:0;" allow="fullscreen"></iframe>
Adjust height to fit your slide layout. The content is responsive and scales with the iframe size.
- Duplicate
demos/derivative-definitionasdemos/<your-demo>/. - Update the
<title>and page copy inside your newindex.html. - Keep all assets self-contained in the demo folder.
- Add a link card to the root
index.html.
You can open the HTML files directly in a browser, or serve locally.
python3 -m http.server 8000
# Then open http://localhost:8000/License: see LICENSE.