Skip to main content
Logo image

PreTeXt Sample Book: Abstract Algebra (SAMPLE ONLY)

Section 3.22 Expedited Samples

View Source for section
<section>
  <title>Expedited Samples</title>
  <p>
    We hack in various interactive Runestone exercise types while <pretext /> markup evolves to cover more of Runestone's repertoire.
    In static output these will just produce a message.
    In <init>HTML</init> they may be interactive simply in a browser,
    or they may require being hosted on a Runestone server in order to perform.
  </p>
  <p>
    CodeLens for a Python program:
  </p>
  <exercise runestone="over_codelens1" />
  <p>
    CodeLens for a Java program.
    Supplied in source with trace data built beforehand on a Runestone server:
  </p>
  <exercise runestone="asgn_viz1" />
</section>
We hack in various interactive Runestone exercise types while PreTeXt markup evolves to cover more of Runestone’s repertoire. In static output these will just produce a message. In HTML they may be interactive simply in a browser, or they may require being hosted on a Runestone server in order to perform.
CodeLens for a Python program:

Checkpoint 3.22.1.

View Source for exercise
<exercise runestone="over_codelens1" />

Activity: CodeLens 2 (over_codelens1)

CodeLens for a Java program. Supplied in source with trace data built beforehand on a Runestone server:

Checkpoint 3.22.2.

View Source for exercise
<exercise runestone="asgn_viz1" />

Activity: CodeLens 1 (asgn_viz1)