Excellent !!! But is there a way to detect whether the user is using the notebook ( in which case I use the html.table function ), or if he is using the console ( in which case, do we have a similar function for the console ? )
Thanks !!! Nathann On Sep 19, 10:52 am, Jason Grout <jason-s...@creativetrax.com> wrote: > William Stein wrote: > > On Sat, Sep 19, 2009 at 1:32 AM, Nathann Cohen <nathann.co...@gmail.com> > > wrote: > >> By the way, as such a .info() method is mainly meant to be read by > >> humans and not by scripts, how do you think its output should look > >> like ? > >> Returning a dictionary seems a bit rough... Is it possible to nicely > >> print dictionaries as tables in Sage, or through LaTeX ? I know > >> nothing about the notebook... Anything to do there ? > > > The command html.table produces beautiful tables in the notebook. > > Try this in the notebook: > > cc={'a': 2, 'b': 3, 'c': 200} > html.table(cc.items()) > > Jason > > -- > Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---