Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 7ec80a8

Browse files
committed
Throw error if trying to use adaptive with DAG grader
1 parent df14b13 commit 7ec80a8

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

runestone/parsons/parsons.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def findmax(alist):
194194
else:
195195
self.options["noindent"] = ""
196196
if "adaptive" in self.options:
197+
if self.options.get("grader") == "dag" and "adaptive" in self.options:
198+
raise Exception("Adaptivity not yet supported with DAG grader")
197199
self.options["adaptive"] = ' data-adaptive="true"'
198200
else:
199201
self.options["adaptive"] = ""

runestone/parsons/test/_sources/index.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ Section 2: Labeling
118118
Proof Blocks
119119
============
120120

121-
.. raw:: html
122-
123-
<embed>
124-
<!-- TODO load dependencies properly through NPM -->
125-
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
126-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
127-
</embed>
128-
129121
.. parsonsprob:: test_parsons_4
130122
:language: math
131123
:grader: dag

0 commit comments

Comments
 (0)