Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I make MathJax output centered in the notebook?

My problem is the same one described here:

Equations in notebook jump from centered to L aligned upon rendering

and

Centered equations become left aligned if displayed through the markdown display hook

When I use @interact on something that outputs latex in the notebook, the constant jumping to the left is very annoying and distracting.

E.g.:

@interact
   def myfunc(n = slider(1,10)):
   P = matrix([[1,2,n], [2,2,3]])
   show(P)

Is there any way I can control the MathJax rendering in the notebook? Can I perhaps set it to render in the center so I don't have to deal with the jumping?

Thanks