Adding options for CodeTailor on Runestone

14 views
Skip to first unread message

Aadarsh Padiyath

unread,
Jun 9, 2026, 12:55:35 PM (9 days ago) Jun 9
to PreTeXt support
Hello,

I recently spoke to Rob during office hours about how we can migrate CodeTailor problems from rst on Runestone into pretext.

He told me to craft to files, one without and one with the options required to activate CodeTailor on runestone so he can reverse engineer what is necessary for pretext. Please find them attached.

Please let me know if you need anything else!
Aadarsh Padiyath
activecode-after.xml
activecode-before.xml

Rob Beezer

unread,
Jun 10, 2026, 5:33:17 PM (8 days ago) Jun 10
to pretext...@googlegroups.com
Dear Aadarsh,

Implemented at:

https://github.com/PreTeXtBook/pretext/pull/2911

Notes:

* Ignore first commit, totally unrelated. Just cleaning up a mess.
* I'm getting the "Help Me" button locally, so it must be close.
* You will need to test a build on Runestone servers and get back to me, either
way. (Use a nightly CLI, most likely.)
* The PreTeXt markup looks nothing like the Runestone additions, since in part,
I have no idea what those attributes are talking about.
* Claude Code AI thinks the Parsons problem will have one line of code per
block? Is that right? (I don't think so?) But almost looks that way at:
https://arxiv.org/html/2401.12125v2. Documentation may need adjustment.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/397f2d94-6669-49af-9d7e-3412107651b3n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-
> support/397f2d94-6669-49af-9d7e-3412107651b3n%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Jun 10, 2026, 5:52:21 PM (8 days ago) Jun 10
to pretext...@googlegroups.com
Forgot to say: here is a "static" example, Checkpoint 5.4.5 in the sample book

Checkpoint 5.4.5: Coding Exercise, with CodeTailor Help
https://pretextbook.org/examples/sample-book/noparts/html/coding-exercises.html#coding-exercise-codetailor

Aadarsh Padiyath

unread,
Jun 10, 2026, 9:06:27 PM (8 days ago) Jun 10
to pretext...@googlegroups.com
Thanks for helping implement this!

A couple of modifications we might need if I understand correctly:

1. If @codetailor is set to yes, we want to give question authors a couple of options: the data-parsonspersonalize field should be either “movable” (the default - all the parsons blocks need to be moved by the student to assemble a correct solution) or “partial” (the student’s correct blocks are locked, and incorrect blocks are movable and must be assembled correctly), and data-parsonsexample should be either “LLM-example” (default) or the unique id of a parsons problem in runestone’s question database to be served as backup (the backup will show up if a course does not have an AI API key, or if AI fails to generate a personalized parsons problem).

2. Some parsons problems have multiple lines of code per block, especially “adaptable" parsons problems, which combine blocks together to alter the difficulty of the parsons problem.

Thanks again!
Aadarsh


You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/T271AE9xKqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAzMS5iZWV6ZXI.1781128338%40pnsh.

Reply all
Reply to author
Forward
0 new messages