<div dir="ltr"><div>I attempted to follow the examples in<br><br><a href="http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/SymPy%20Examples.ipynb">http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/SymPy%20Examples.ipynb</a><br>
<br></div>If I open a new notebook and carry out the steps below the output is mathematically correct but it isn't displayed in latex/mathjax format:<br><div><div class=""><div class=""><div class=""><pre>from IPython.display import display<br>
<br>from sympy.interactive import printing<br>printing.init_printing()<br><br>from __future__ import division<br>import sympy as sym<br>from sympy import *<br>x, y, z = symbols("x y z")<br>k, m, n = symbols("k m n", integer=True)<br>
f, g, h = map(Function, 'fgh')<br><br>Rational(3,2)*pi + exp(I*x) / (x**2 + y)<br><br></pre><pre>The output is:<br></pre><pre><br>3*pi/2 + exp(I*x)/(x**2 + y)<br> </pre><table><tbody><tr><th>Software</th><th>Version</th>
</tr><tr><td>Python</td><td>2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3]</td></tr><tr><td>IPython</td><td>2.0.0</td></tr><tr><td>OS</td><td>posix [linux2]</td></tr><tr><td>numpy</td><td>1.6.1</td></tr><tr><td>matplotlib</td>
<td>1.1.1rc</td></tr><tr><td>scipy</td><td>0.9.0</td></tr><tr><td colspan="2">Thu Apr 03 00:02:41 2014 MST<br><br>If I open a terminal in the same directory and repeat these steps the output is displayed in a pretty printing format:<br>
<br>rj@rjslptp:~$ ipython<br>Python 2.7.3 (default, Feb 27 2014, 20:00:17) <br>Type "copyright", "credits" or "license" for more information.<br><br>IPython 2.0.0 -- An enhanced Interactive Python.<br>
?         -> Introduction and overview of IPython's features.<br>%quickref -> Quick reference.<br>help      -> Python's own help system.<br>object?   -> Details about 'object', use 'object??' for extra details.<br>
<br>In [1]: from IPython.display import display<br><br>In [2]: <br><br>In [2]: from sympy.interactive import printing<br><br>In [3]: printing.init_printing()<br><br>In [4]: <br><br>In [4]: from __future__ import division<br>
<br>In [5]: import sympy as sym<br><br>In [6]: from sympy import *<br><br>In [7]: x, y, z = symbols("x y z")<br><br>In [8]: k, m, n = symbols("k m n", integer=True)<br><br>In [9]: f, g, h = map(Function, 'fgh')<br>
<br>In [10]: Rational(3,2)*pi + exp(I*x) / (x**2 + y)<br>        ⅈ⋅x <br>3⋅π    ℯ    <br>─── + ──────<br> 2     2    <br>      x  + y<br><br>I imagine I'm missing something simple but I haven't been able to figure out what it is. Any help would be appreciated.<br>
<br>Richard<br></td></tr></tbody></table></div>

</div>
</div></div></div>