Dear List, I would like to visualize some python objects using html. The objects return their html representation in a string which I would then delegate to a browser. In the sage notebook, I would like to use the html code directly to embed the visualization. My html code however uses css style definitions in the head tag, which seems to be incorrectly interpreted (or ignored) by the notebook. When the style information is contained in the html tags themselfs, they are interpreted correctly.
Here is a short toy example: Entering the follwing string in the notebook yields the words Hello World colored in red: '<html> <body> <h1 style="color:#FF0000">Hello World</h1> </body> </ html>' Entering the following string in the notebook yields the words Hello World colored in the default notebook color: '<html> <head> <style type="text/css">h1{color:#FF000}</style> </head> <body> <h1>Hello World</h1> </body> </html>' Providing the style info in the latter way is however the preferred way for my purposes. Is there a way to get notebook to display the html code correctly when the style info is given in the html head, rather than in the html body? I have not found any information about that in the documentation and therefore any help is much appreciated. thanks, Sven -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org