#9774: Upgrade the notebook to use MathJax instead of jsMath
---------------------------+------------------------------------------------
Reporter: mpatel | Owner: jason, was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: notebook | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Jason Grout | Author: Rob Beezer, Davide Cervone, John
Palmieri, Jason Grout, Nathan Carter
Merged: | Dependencies: #11080
---------------------------+------------------------------------------------
Comment(by ppurka):
Some doctest failures with this patch:
{{{
...sage-5.0.beta2/devel/sage> ../../sage -t sage/misc/latex.py
sage -t "devel/sage-main-backup/sage/misc/latex.py"
**********************************************************************
File "/home/punarbasu/Installations/sage-5.0.beta2/devel/sage-main-
backup/sage/misc/latex.py", line 1765:
sage: MathJax().eval(type(3), mode='inline')
Expected:
<html><script type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{
< type 'sage.rings.integer.Integer' > }</script></html>
Got:
<html><script
type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\verb|<type|\phantom{\verb!x!}\verb|'sage.rings.integer.Integer'>|</script></html>
**********************************************************************
File "/home/punarbasu/Installations/sage-5.0.beta2/devel/sage-main-
backup/sage/misc/latex.py", line 2199:
sage: sys.displayhook
Expected:
<html>...\verb|<function|\phantom{x}\verb|pretty_print|...</html>
Got:
<html><script
type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\verb|<function|\phantom{\verb!x!}\verb|pretty_print|\phantom{\verb!x!}\verb|at|\phantom{\verb!x!}\verb|0x150b050>|</script></html>
**********************************************************************
2 items had failures:
1 of 7 in __main__.example_52
1 of 7 in __main__.example_59
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/punarbasu/.sage//tmp/latex_7938.py
[3.1 s]
----------------------------------------------------------------------
The following tests failed:
sage -t "devel/sage-main-backup/sage/misc/latex.py"
Total time for all tests: 3.1 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9774#comment:64>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.