Section 3.28 SPLICE Integration
SPLICE is a project to supply documentation and infrastructure to help with adopting shared standards, protocols, and tools for web-based learning tools. The project has designed a protocol for an embedded iframe to communicate with its host page.
One aspect is the ability of an iframe to ask for a new size. Below is a test of that capability.
These are examples that use the SPLICE protocol for communicating with a server, such as Runestone. They are all integrated into this PreTeXt book as an
<interactive> that uses an @iframe attribute to embed an iframe from some other server.
This first sample tests the ability of an iframe to ask for a new size.
iframe(2025-11-05) The following two exercises are strictly EXPERIMENTAL. Do not incorporate them into your projects as they are likely to change dramatically.
Checkpoint 3.28.7. OpenDSA List Insertion (Dual).
Work this following problem. Note that this is really just a test to see if additional text (beyond an
<interactive>) will show up.
This example recreates the Show-Eval visualization from the Runestone Components, using a PreTexT
<interactive>. It also records student activity using SPLICE.
It demonstrates how the Show-Eval tool can be used to visualize the evaluation of Python expressions step by step.
This could also be used for doing similar visualization of mathematical expressions. Support for MathJax would take some work, but this example would be a good starting point.

