[sage-devel] Re: pretty-printing in the notebook

2008-01-25 Thread Jason Grout
Jason Grout wrote: > William Stein wrote: >> On Jan 24, 2008 9:43 PM, Jason Grout <[EMAIL PROTECTED]> wrote: >>> Following up on William's tip to look at the displayhook function, here >>> is a function that will enable "pretty-printing" by default in the notebook: >>> >>> def pretty_print (object

[sage-devel] Re: pretty-printing in the notebook

2008-01-24 Thread Jason Grout
William Stein wrote: > On Jan 24, 2008 9:43 PM, Jason Grout <[EMAIL PROTECTED]> wrote: >> Following up on William's tip to look at the displayhook function, here >> is a function that will enable "pretty-printing" by default in the notebook: >> >> def pretty_print (object): >> if object is No

[sage-devel] Re: pretty-printing in the notebook

2008-01-24 Thread William Stein
On Jan 24, 2008 9:43 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > Following up on William's tip to look at the displayhook function, here > is a function that will enable "pretty-printing" by default in the notebook: > > def pretty_print (object): > if object is None: > return >