[IPython-dev] Engineering formatting
Stéfan van der Walt
Sat Apr 24 13:35:42 CDT 2010
Hey Warren, Robert
On 21 April 2010 18:17, Warren Weckesser <firstname.lastname@example.org> wrote:
> Robert Kern wrote:
>> On 4/19/10 3:37 PM, Stéfan van der Walt wrote:
>>> Hi all,
>>> This is probably an easy question, but how do I tweak IPython to
>>> display my numerical results in engineering notation?
>> Use the pretty extension! In your ipy_user_conf.py:
> Following Robert's example, but defining float_eng_pprinter like this:
> def float_eng_pprinter(obj, p, cycle):
Thanks for the code snippets! I've put them into a profile and added
array printing (attached). Maybe a useful profile to distribute?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1671 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/ipython-dev/attachments/20100424/e3f4e988/attachment.bin
More information about the IPython-dev