Skip to content

Commit

Permalink
Merge pull request #758 from chrispyles/fix-754
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispyles authored Dec 28, 2023
2 parents ba126b2 + bad79df commit 9389d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**v5.3.0 (unreleased):**

* Updated Otter Assign to throw a `ValueError` when invalid Python code is encountered in test cells per [#756](https://github.com/ucbds-infra/otter-grader/issues/756)
* Fixed an error causing intercell seeding code to be added to cells using cell magic commands which caused syntax errors per [#754](https://github.com/ucbds-infra/otter-grader/issues/754)

**v5.2.2:**

Expand Down
2 changes: 1 addition & 1 deletion otter/execute/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def add_seeds(self, nb):

cells = nb.cells[1:] if skip_first else nb.cells
for cell in cells:
if cell.cell_type == "code":
if cell.cell_type == "code" and not cell.source.startswith("%%"):
cell.source = f"{do_seed}\n{cell.source}"

def add_checks(self, nb):
Expand Down

0 comments on commit 9389d3b

Please sign in to comment.