#8123: Notebook inclusion of SVG files
------------------------+---------------------------------------------------
   Reporter:  nbruin    |       Owner:  was
       Type:  defect    |      Status:  new
   Priority:  minor     |   Milestone:     
  Component:  notebook  |    Keywords:     
     Author:            |    Upstream:  N/A
   Reviewer:            |      Merged:     
Work_issues:            |  
------------------------+---------------------------------------------------
 It seems that the notebook is close to serving "SVG" files in a way usable
 for SVG capable browser, but is not quite there:
 If I try
 {{{
 sage: p = plot(x^2, -2, 2)
 sage: p.save('xsquared.svg')
 }}}
 in the notebook, Firefox 3.5.2 gives me a "plugin needed" message and
 where the picture is supposed to be, I only get a placeholder.
 If I save {{{xsquared.svg}}} and point my browser directly to it, firefox
 displays the picture, so Firefox 3.5.2 can understand the SVG produced.
 HTML code that succeeds in displaying the picture:
 {{{
 <html>
 <body>
 <object data="xsquared.svg">
 </body>
 </html>
 }}}
 So, it may be that the notebook simply needs to generate different HTML
 for including SVG files it finds. Alternatively, it may be a matter of
 serving the SVG file with the appropriate MIME type.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8123>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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.

Reply via email to