pretext icon indicating copy to clipboard operation
pretext copied to clipboard

Desmos plus Runestone question types in same exercises

Open Tanaquil18 opened this issue 5 months ago • 6 comments

The AC PROTEUS team authored a few (maybe just 3) PROTEUS exercises containing desmos interactives and Runestone question types together, all in one exercise, not with separate introduction or tasks. The question looks great in context, with the cardsort or short answer showing up below the desmos, but on the Runestone assignment page, the cardsort or short answer part is missing.

I wasn't sure if this issue belonged on Runestone's repository or PreTeXt's. It occurred to me that this might be related to issue #2312 where when I had Desmos and short answer together, the desmos part was missing in print. But maybe it's a different thing, since it's kind of opposite behavior.

I think their current plan is to add text to the question which says to be sure to view the question in context instead of on the assignment page, but I wanted to make the report. @bnmnetp

Chrissy

Tanaquil18 avatar Aug 06 '25 00:08 Tanaquil18

Runestone

Remember that Runestone doesn't understand multipart questions. If you want the individual parts/tasks from a larger question to appear on the assignment page you need to add them individually.

Maybe it is better to try to work with the system instead of against it. I understand that there are pedagogical reasons to write these multipart questions, but just continuing to do so knowing that Runestone doesn't support them is not going to accomplish anything, especially when there is a very simple workaround of writing separate questions.

Assuming I had a scheme in mind (which I don't) to make this work it would still be a huge amount of work for both Rob and I to make the changes.

Desmos

I don't think I've ever seen a desmos problem in an assignment before. Are these things supposed to be graded? I don't think they are in the manifest.

For me it is always helpful if you include the label for the problem, so I can find it in the Runestone database to see for myself what it looks like.

bnmnetp avatar Aug 06 '25 13:08 bnmnetp

That's why I made a new issue instead of commenting on the other one: it's not multipart. It's one exercise, with one short answer or cardsort question.

In the text of the question, they have included a Desmos interactive. That's not for grading, but to help the students answer the question they were asked. But the presence of the Desmos interactive messes things up on the Runestone assignment page.

The label is proteus-desmos-concavity, and this is only present in the active-calc-proteus based courses (not ac-single).

Tanaquil18 avatar Aug 06 '25 13:08 Tanaquil18

Thanks for the id. I added that to a test assignment and I can see the problem.

Blocked a frame with origin "https://www.desmos.com" from accessing a frame with origin "https://runestone.academy". Protocols, domains, and ports must match.

When it goes to render the problem it crashes on some part of something that Desmos is doing before it gets a chance to try to render the cardsort.

I don't know anything about Desmos or what it might be trying to do that is triggering a CORS error in the browser. This is browser security related. I have no immediate ideas on what might allow us to work around the issue on the assignment page.

bnmnetp avatar Aug 06 '25 14:08 bnmnetp

Also there is this:

Warning: iFrames aren't a supported or secure way to use Desmos inside of another application. Please reach out to [email protected] for more details on how to safely embed Desmos within your website.

bnmnetp avatar Aug 06 '25 14:08 bnmnetp

Finally I will note that those same errors are in the javascript console for the Desmos problem in context. So likely one or more parts of it will not work correctly in either context. I'll post about this on -dev in case there is a resident Desmos expert that might help.

bnmnetp avatar Aug 06 '25 14:08 bnmnetp

Thanks for tracking all this down!

Tanaquil18 avatar Aug 06 '25 14:08 Tanaquil18