question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"manual grading" screen unable to format any math containing a prime symbol `'`

See original GitHub issue

Operating system

MacOS 10.14.4 (18E226)

nbgrader --version

0.6.1

jupyter notebook --version

6.0.3

Expected behavior

In one of the courses I am teaching, we wanted to use nbgrader to automate some of the grading. Until now it’s working beautifully – thanks for this. For this week, we have a notebook containing function derivatives, like so: $$ y’(x) = f(x, y(x)) $$ which sets correctly in my source and release versions, looking a little like this: image

Actual behaviour

If I then open a student submission, at first I am able to see the math, like so, image

but when it is about to replace the text with a MathJax formula, it looks like so: image

When this happens, I get these errors in my terminal:

[W 17:49:18.142 NotebookApp] 404 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?V=2.7.7 (::1) 2.53ms referer=http://localhost:8889/formgrader/submissions/ccc77ef030ea4ae5bda1d7d0e787089c/?index=0
[W 17:49:20.909 NotebookApp] 404 GET /static/components/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf (::1) 1.49ms referer=http://localhost:8889/formgrader/submissions/ccc77ef030ea4ae5bda1d7d0e787089c/?index=0

This only happens in the formulas containing a prime/derivative sign, weirdly enough.

Steps to reproduce the behavior

I get the same results using a different browser and also using a different machine (MacOS 10.14.6, jupyter 6.0.2, nbgrader 0.6.1)

I am not sure how I can add a MWE but if it seems useful later I can try making a test assignment and a submission, or I could share an anonymized submission from the real assignment. Please let me know which one is preferable.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Jannertjecommented, May 14, 2020

OK pardon me, this is a duplicate of #426 – I am willing to help search for the root cause instead of (stupidly) reinstalling MathJax?

0reactions
brichetcommented, Sep 6, 2022

Thanks for reporting this. It may also be related to https://github.com/jupyter/nbgrader/issues/1622.

Can you try replacing the mathjax import in your local installation to see if that solves the problem ?

The line is : https://github.com/jupyter/nbgrader/blob/90f749b8ea0514700dfa28fe560bbb489746e26f/nbgrader/server_extensions/formgrader/templates/formgrade/index.html.j2#L18

to replace by

{{ mathjax() }} 

This will use the default mathjax from nbconvert. On my side the 404 error disappear and mathjax seems to work correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manual grading interface fails to load Mathjax (returns 404)
Returns 404 when navigating to manual-grading interface ... "manual grading" screen unable to format any math containing a prime symbol ' # ...
Read more >
Number Forms and Mathematical Symbols - WebAssign
You can use these symbols in your questions or assignments.
Read more >
2022-23 SAT School Day Standard Testing Manual
You'll account for all testing materials, conduct the testing, appropriately document irregularities, and monitor students to ensure a fair administration. Test ...
Read more >
2021–2022 Accessibility Features - Texas Education Agency
A student cannot be required to use accessibility features during testing, and there is no need to document their use on the answer...
Read more >
MathType 5.0 Manual
equations. In this manual, we use the term “equation” to refer to any combination of mathematical symbols. The approach to equation creation is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found