At terminal it is pretty printing the result but in the docstrings it is
just wrapping the text into next line.

At terminal:
In [14]: pprint(b.load)
          -1                    -1                 0
R₁⋅<x>   + R₂⋅<x - 4>   + 6⋅<x - 2>

At docstrings:
>>> b.load
    R1*SingularityFunction(x, 0, -1) + R2*SingularityFunction(x, 4, -1) +
6*SingularityFunction(x, 2, 0)

>>> pprint(b.load)
    R1*SingularityFunction(x, 0, -1) + R2*SingularityFunction(x, 4, -1) +
6*Singul
    arityFunction(x, 2, 0)




Regards
Sampad Kumar Saha
Mathematics and Computing
I.I.T. Kharagpur

On Tue, Aug 16, 2016 at 8:04 AM, Aaron Meurer <asmeu...@gmail.com> wrote:

> The simplest way is to just call pprint manually.
>
> Aaron Meurer
>
>
> On Monday, August 15, 2016, SAMPAD SAHA <sampadsa...@gmail.com> wrote:
>
>> How to enable pretty printing in the docstrings?
>>
>> Regards
>> Sampad Kumar Saha
>> Mathematics and Computing
>> I.I.T. Kharagpur
>>
>>
>>
>> --
>> 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 https://groups.google.com/group/sympy.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/sympy/CANzav4Gv4xQcf-8c3gZ7u7FEkJ2WBHziVmkfqxaxwUogkmsha
>> Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/sympy/CANzav4Gv4xQcf-8c3gZ7u7FEkJ2WBHziVmkfqxaxwUogkmshaQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 https://groups.google.com/group/sympy.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/sympy/CAKgW%3D6%2BeXsMf5bDTBo-8mzUA%2B2eAa6sc6XB--t_wKuQy1XAjFQ%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BeXsMf5bDTBo-8mzUA%2B2eAa6sc6XB--t_wKuQy1XAjFQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CANzav4HrntqZPcFW%2BwL51Vir621iK908rCkeo9ksxubXDcmxng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to