> On Mar 4, 2014, at 9:57 PM, Ondřej Čertík <ondrej.cer...@gmail.com> wrote: > >> On Tue, Mar 4, 2014 at 6:47 PM, Aaron Meurer <asmeu...@gmail.com> 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:
Yes, and we can release a lot more often now. > > https://github.com/hashdist/hashstack/pull/135 Since hashdist builds from source couldn't this happen automatically? > > and now it works out of the box. So it was a bug in 0.7.2, that was fixed > later. I think older sympy works with older python. Newer Ipython broke it somehow. But you should always use newest versions. > >> >> 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. There are new arguments in the newer versions to specify exact things, like matplotlib or png. > > Thanks for your help! > > Ondrej > >> >> Aaron Meurer >> >>> On Tue, Mar 4, 2014 at 3:44 PM, Ondřej Čertík <ondrej.cer...@gmail.com> >>> 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 <moorepa...@gmail.com> wrote: >>>> Attachment from master. >>>> >>>> >>>> Jason >>>> moorepants.info >>>> +01 530-601-9791 >>>> >>>> >>>>> On Tue, Mar 4, 2014 at 4:14 PM, Jason Moore <moorepa...@gmail.com> 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 <ondrej.cer...@gmail.com> >>>>> 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 sympy+unsubscr...@googlegroups.com. >>>>>> To post to this group, send email to sympy@googlegroups.com. >>>>>> 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 sympy+unsubscr...@googlegroups.com. >>>> To post to this group, send email to sympy@googlegroups.com. >>>> 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 sympy+unsubscr...@googlegroups.com. >>> To post to this group, send email to sympy@googlegroups.com. >>> 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 sympy+unsubscr...@googlegroups.com. >> To post to this group, send email to sympy@googlegroups.com. >> 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 sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > 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. -- 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. 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/6498F45B-7CAA-4E98-9E28-565F0BDC39F4%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.