I noticed this too. I'd say its a bug. Aaron Meurer
On Jan 22, 2013, at 2:19 PM, "Roberto Colistete Jr." <[email protected]> wrote: > When using SymPy 0.7.2 with IPython terminal ("$ ipython"), IPython Notebook > ("$ ipython notebook") or Qt console ("$ ipython qtconsole") : > > In [1]: from sympy import * > In [2]: from sympy.abc import * > In [3]: pi*x**2 > shows non-pretty print output, ok. > > But after using "init_printing()" on IPython Notebook or Qt console, it is > locked to LaTeX output, discarding any "pretty_print=None", "use_latex=None" > options : > In [4]: init_printing() > In [5]: pi*x**2 > In [6]: init_printing(pretty_print=False) > In [7]: pi*x**2 > gives again pretty print (LaTeX) output ! > > Is this behaviour intended or a bug ? > > My goal was to use disable LaTeX ouput, i.e, init_printing(use_latex=False), > for large outputs which don't fit the window of IPython Qt console. A > workaround is simple : use pprint(expr). > > By the way, with SymPy 0.7.1.rc1, the output is locked to non-pretty print on > IPython Notebook or Qt console. > > > Em 22-01-2013 17:36, Aaron Meurer escreveu: >> What is the recommended way to, inside IPython Qt Console or IPython >> Notebook, load SymPy with nice printing and online plots (form PyLab) ? >> >> For example, this sequence works : >> In [1]: %pylab inline >> In [2]: %load_ext sympy.interactive.ipythonprinting >> In [3]: from sympy.interactive import init_session >> In [4]: init_session() >> Is there another easy way ? >> I think you could use init_printing instead of the ipython extension, >> but they should be the same (modulo some bugs; search the issues). >> Actually, doesn't init_session call init_printing automatically? For >> Pylab, you'll have to do that separately. You might want to do it so >> that it doesn't import the numpy namespace. We also do that in >> isympy, but that's just the terminal for now. Eventually, you will be >> able to just do isympy -c qtconsole, but it hasn't been implemented >> yet (http://code.google.com/p/sympy/issues/detail?id=2632). > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" 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/sympy?hl=en.
