Stats and Maths Teaching Innovations Meetup
2026-12-04
Lecturer (Education Focused) in pure mathematics
passion for creating good resources / very shallow technical background
currently using Quarto to produce publicly available free-to-use, accessible and inclusive maths and stats support resources (at https://starmast.org)
co-create these resources with students as part of a Vertically Integrated Project
interactive figures / elements that enhance learning of difficult mathematics and statistical topics, but also
consistency in visual design across the website
any interactive elements to be digitally accessible
language used to reflect the tone of the resources
not to introduce concepts beyond the guide in question
wide range of topics - wide range of methods for best results?
R package webexercises for ‘quick-check’ questions (T/F, multiple choice…)
Quarto’s synergy with R encourages R Shiny apps, particularly good for statistics
works best with a dedicated R Shiny server (money)
but can use R Shinylive to run these apps without a server (free, at the cost of longer loading times - more on this later)
Desmos is best for graphs / recognisable brand for students / accessibility features built-in
can use Desmos API environment for full editability (money)
can embed directly from Desmos without API (free, restricted features)
raw html/integrated JavaScript provides natural flexibility for everything else (calculators, animations…)
generative AI provides starting points for use of these tools
R Shiny Assistant (for R Shiny Live, more on that later)
Copilot (for html/javascript)
ChatGPT (for html/Desmos API environment)
[other agentic AI tools/large language models/harbingers of human armaggeddon are available]
very disjointed production of interactive elements, with duplication of work across many sessions
mostly R Shinylive, with some Copilot/ChatGPT
range of different inputs led to range of different visual styles
I used to use R Shiny to create all my statistics figures, which relied on an external server (shinylive, via WebAssembly and WebR) that served the Shiny application.
This was acheivable by R Shiny Assistant.
While very flexible in what it can do, these applications were always plagued with long loading times, and since it was an external server, was at the mercy of their updates and dependencies.
ported all my shinylive apps involving ggplot (the offending package) to html/javascript - got rid of the long loading times and created a cleaner-looking application
the sudden need to replace 80% of our interactive figures overnight meant that a pipeline needed to be developed
an important part of the website is the visual consistency throughout, and so a template was crucial
this experience made me think more deeply about how to get the best out of AI to mass produce interactive elements
be specific up front to get something close to what you want to - even down to hex codes for colours!
AI does not take digital accessibility concerns into account, you will have to ask for it
don’t be afraid to tell AI to get back in its lane if it doesn’t serve your purpose
if you are not comfortable with editing chunks of code it gives, ask it to regenerate the entire file
be mindful of the context in which you place your apps (‘name spacing’)
once you’re happy with the templating and the results you are generating, use the same chat to generate further figures
my experiences allow me to teach students on my VIP to use generative AI responsibly and how to match an existing brief (employability points for me!)
get started with quarto
loads of examples at https://starmast.org :)
link to starmast github repository for all source code
keep reading for more technical concerns in embedding interactive elements in Quarto documents
contact me at tdhc@st-andrews.ac.uk: any ideas, feedback, comments, most welcome :)
thank you for listening!
use conditional content tags if using multiple outputs
with API key
then use Desmos’ documentation to start building (clickable) (step 1 covered by above)
without API key
for Shinylive, no server
install shinylive quarto extension link to github
in _quarto.yml file (or put filter on each relevant .qmd file)
install the webexercises package (link to package with documentation)
follow package instructions to enable css and js files in the yaml file
load library in each .qmd file
webex-boxes where you want questions in your text