#18292: Fix HTML output
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.7
      Component:  notebook           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Volker Braun       |    Reviewers:  Andrey Novoseltsev
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vbraun/fix_html_output           |  1f75112c7b835b8c7cdfdde992d8b86e4e7ab73e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by novoselt):

 Replying to [comment:30 kcrisman]:
 > Just to be clear, there should be a way to get html output without
 something crazy in sagenb and sage cell.  Since `html()` usually
 historically actually ''displayed'' the html, if that isn't happening any
 more a very loud deprecation should say exactly how to make that happen
 (perhaps not using show), though my preference would be for it to continue
 as has been.

 `show(table)` will show HTML table in the cell server. There are two
 independent steps - generating code for LaTeX/HTML/MathJax/whatever and
 displaying it. Separating them makes a lot of sense because you may want
 to use the code as a building block for something else before displaying
 and because displaying is backend specific and it should be as localized
 as possible for easy maintenance including seldom breaks rather than with
 every version bump.

 So I am for making `latex(x)` and `html(x)` return the code without
 displaying it and requiring `show` or `pretty_print` or whatever else to
 actually display it. Table display in !SageMathCell has been broken for a
 while with little complains, so I am not sure about necessity of
 deprecations there and I am not sure how I can keep printing something
 directly and displaying something returned as well.

--
Ticket URL: <http://trac.sagemath.org/ticket/18292#comment:31>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to