<div dir="ltr"><div><div>Hi Richard,<br><br></div>I don't think SymPy has tested with IPython 2.0 yet. It is possible that the printing is no broken... It should display in mathjax/latex by default in the notebook and pretty print in the terminal.<br>

<br></div>If you don't mind please submit an issue on github to the main sympy repository.<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br>Jason<br><a href="http://moorepants.info" target="_blank">moorepants.info</a><br>

<span>+01 530-601-9791</span><br></div></div>
<br><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 2:34 AM, Richard Johns <span dir="ltr"><<a href="mailto:rjohns67@gmail.com" target="_blank">rjohns67@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<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" target="_blank">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><div><div><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.<span class="HOEnZb"><font color="#888888"><br>


<br>Richard<br></font></span></td></tr></tbody></table></div>

</div>
</div></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>