Skip to content

Commit

Permalink
Fix mathjax in formgrade templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Brichet committed Jun 14, 2022
1 parent 4feb1cf commit 2d32e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nbgrader/server_extensions/formgrader/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ def get(self, submission_id):
'index': ix,
'total': len(indices),
'base_url': self.base_url,
'my_mathjax_url': self.base_url + '/' + self.mathjax_url,
'my_mathjax_url': self.mathjax_url if self.settings['is_jlab'] else self.base_url + '/' + self.mathjax_url,
'student': student_id,
'last_name': submission.student.last_name,
'last_name': submission.student.last_name,
'first_name': submission.student.first_name,
'notebook_path': self.url_prefix + '/' + relative_path
}
Expand Down

0 comments on commit 2d32e7c

Please sign in to comment.