Recently I've been running into "NameError: name 'sage_jsmath_macros_easy'
is not defined" whenever I make a mistake that generates an error during
sage's import. I tracked this down to the following section of code in
from sage.misc.latex_macros import sage_jsmath_macros_easy
sage_jsmath_macros_easy = [
jsmath_macros = ',\n'.join(sage_jsmath_macros_easy)
So if you generate an error that's not an ImportError, it's covered up by
this code: instead you get a name error. An obvious fix is to add a block
sage_jsmath_macros_easy = 
before the finally. I haven't been involved with committing code to sagenb;
can someone who has comment on this?