#18292: Fix HTML output
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_info
       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           |  11ebe8ad644133332558f297d074cedd7e5d4ebf
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vbraun):

 Replying to [comment:68 novoselt]:
 > Regarding interacts, which are also supported by SMCs (!SageMathCell and
 !SageMathCloud ;-)) - what is "the right way" to adjust
 `sage.interacts.decorator.interact` to other UIs?

 Perhaps the best solution would be to add a hook to the rich output
 backend, what do you think? It is very much related to the UI frontend.
 Though ideally do this on a separate ticket.

 > Do we need `math_parse`?

 I potentially agree but don't want to change it on this ticket. I haven't
 tried whether your suggestion will work.

 > Why do we need this test:
 > {{{
 > +        OutputHtml = display_manager.types.OutputHtml
 > +        if OutputHtml in display_manager.supported_output():
 > +            return OutputHtml(self._html_())
 > }}}
 > isn't the point of all this display framework to make these decisions
 WITHOUT object's interference?

 The commandline can't display HTML output, so that tests is false. Not
 returning anything from `_rich_repr_` means that the ordinary `_repr_` is
 used, which here means ascii art table.

--
Ticket URL: <http://trac.sagemath.org/ticket/18292#comment:80>
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