#4575: [with patch, needs review] Option to show nested lists as html tables
-------------------------+--------------------------------------------------
Reporter: whuss | Owner: whuss
Type: enhancement | Status: reopened
Priority: major | Milestone: sage-4.0
Component: notebook | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment(by whuss):
Replying to [comment:15 jason]:
> More comments:
>
> * It would be simpler to have the row classes use itertools.cycle,
instead of the modular arithmetic (smaller code size, anyway, and standard
python tools)
> * It would be fantastic to be able to easily specify styles, like
borders, background colors, heading rows, etc.
>
> and again, the call to latex should be replaced with a call to show()
after #5836 is applied.
I attached a new patch, which needs on #5836 to be applied. The command is
now called html.table(). itertools.cycle is used, there is a option to use
the first row as a heading,
strings are put into the table cells unmodified and also graphic objects
are placed into
the table correctly.
It was not possible to just use show() unmodified because this results in
nested notebook
cells which render the notebook unusable.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4575#comment:16>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---