On Tue, Mar 4, 2014 at 6:47 PM, Aaron Meurer <[email protected]> wrote: > You should use SymPy 0.7.5. There were some issues with > init_printing() in recent older versions, but they should have all > been straightened out. Don't use 0.7.2. That was released in 2012!
That's right, I didn't realize 0.7.2 is so old... I just upgraded it in Hashdist: https://github.com/hashdist/hashstack/pull/135 and now it works out of the box. So it was a bug in 0.7.2, that was fixed later. > > The priority for init_printing() with no arguments should be > > - MathJax LaTeX in the notebook > - LaTeX printing with latex itself in the qtconsole if latex is installed > - LaTeX printing with matplotlib in the qtconsole if matplotlib is > installed (note that this currently falls back to unicode pretty > printing for things matplotlib can't handle, which currently includes > matrices and lists, which print like matrices) > - Unicode pretty printing anywhere, if Unicode support is detected > (this detection only works in tty terminals) > - ASCII pretty printing Very good, I agree with this order. > > See > http://docs.sympy.org/latest/tutorial/printing.html#setting-up-pretty-printing > for pictures. Yes, nice. > > You can pass in arguments to init_printing to override any of these > (see the docstring). Yes, that works even in 0.7.2. Thanks for your help! Ondrej > > Aaron Meurer > > On Tue, Mar 4, 2014 at 3:44 PM, Ondřej Čertík <[email protected]> wrote: >> Thanks for this. For me it sometimes works and sometimes it doesn't, >> and I haven't quite nailed it out yet, >> whether it depends on IPython version, or SymPy version or what. I use: >> >> IPython 1.1.0 >> SymPy 0.7.2 >> >> Ondrej >> >> On Tue, Mar 4, 2014 at 2:19 PM, Jason Moore <[email protected]> wrote: >>> Attachment from master. >>> >>> >>> Jason >>> moorepants.info >>> +01 530-601-9791 >>> >>> >>> On Tue, Mar 4, 2014 at 4:14 PM, Jason Moore <[email protected]> wrote: >>>> >>>> I don't have this same issue. I use init_printing() and get LaTeX by >>>> default in IPython. >>>> >>>> >>>> Jason >>>> moorepants.info >>>> +01 530-601-9791 >>>> >>>> >>>> On Tue, Mar 4, 2014 at 4:08 PM, Ondřej Čertík <[email protected]> >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> It used to be the case, that I just did: >>>>> >>>>> init_printing() >>>>> >>>>> in IPython Notebook and it initialized the Latex (mathjax) printing by >>>>> default. >>>>> Now when I do init_printing(), it uses unicode ascii art printing >>>>> instead. I have to do: >>>>> >>>>> init_printing(use_latex=True) >>>>> >>>>> only then it starts using Latex printing. That's quite annoying to >>>>> always type this by hand. >>>>> >>>>> Is there any reason not to make init_printing() to always use >>>>> use_latex=True in IPython notebook? >>>>> >>>>> Ondrej >>>>> >>>>> -- >>>>> 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/CADDwiVC5F1u4oGVs0r%2B3ds_tFGQf3hHXHCxUFVR%2BtTR6Br1tvg%40mail.gmail.com. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>> >>> -- >>> 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/CAP7f1AiXgai8bbEHhEPq1GNANQqwZG4bJjHD-ptnbWhFpnu4gg%40mail.gmail.com. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> 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/CADDwiVCu3dBCiTMCBoRbzNjPGhP0QWPvxn4skx5TBoEodkorUQ%40mail.gmail.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > 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/CAKgW%3D6Kz-XEeQt8K55Sq1ue78Fb4QsZfrf7WbfoRJVjnG1t7Og%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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/CADDwiVBOhGNxZttXK7CtLu%2BrvROpbimCm9nMsG2wRT%2BChXWmHg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
