KeyError in XBlock using MathJax LateX

I’m just getting started with XBlock development. I’m trying to render LateX within my XBlock. The following gives a KeyError on the LateX fraction. Any suggestions on what I’m doing wrong?

  <script src=""></script>
  <script type="text/javascript" id="MathJax-script" async src="">

<div class="test01_block">
<p>Test01XBlock: count is now
    <span class='count'>{self.count}</span> (click me to increment).
<p>A point charge of +1\(\mu\)C is placed at (x, y, z) = (0, 0, 0). Units of the Cartesian coordinate system are in meters.</p>
<p>The electric field that results from a point charge can be calculated with the following equation:</p>

error message in the browser:

KeyError at /scenario/test01.0/
Request Method:	GET
Request URL:	http://localhost:8000/scenario/test01.0/
Django Version:	3.2.18
Exception Type:	KeyError
Exception Value:	
Exception Location:	/Users/d24lau/src/xblock/test01/test01/, line 35, in student_view
Python Executable:	/Users/d24lau/src/xblock/venv/bin/python
Python Version:	3.9.0
Python Path:	
Server time:	Sat, 20 May 2023 16:45:19 -0400

Hi @d24lau welcome and thanks for the details on this issue. This post belongs in the “Developers” Category, that’s the group that can debug these kinds of technical issues.

Thanks, I have posted this to the Developers category.