I am trying to print a list of instances of a custom class. The input is -

print (o3d.grad, o3d.grad)

the output is (custom latex printer)

$$ (e_{x} \frac{\partial}{\partial x} + e_{y} \frac{\partial}{\partial y} + e_{z} \frac{\partial}{\partial z}, e_{x} \frac{\partial}{\partial x} + e_{y} \frac{\partial}{\partial y} + e_{z} \frac{\partial}{\partial z}) $$

however  in ipyrhon notebook I input

(o3d.grad, o3d.grad)

I get out

(e_{x} \frac{\partial}{\partial x} + e_{y} \frac{\partial}{\partial y} + e_{z} 
\frac{\partial}{\partial z},
 e_{x} \frac{\partial}{\partial x} + e_{y} \frac{\partial}{\partial y} + e_{z} 
\frac{\partial}{\partial z})

Also the standard latex tuple and list printer is not using \left ( \right and \left [ \right ) to enclose the tuple or list. How can I write a custom latex tuple and list printer that will also work in ipython notebook.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/53FD10D1.6080309%40verizon.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to