#18292: Fix HTML output
-------------------------------------------------+-------------------------
Reporter: vbraun | Owner:
Type: defect | Status: closed
Priority: major | Milestone: sage-6.7
Component: notebook | Resolution: fixed
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Andrey
Report Upstream: N/A | Novoseltsev
Branch: | Work issues:
553d2bba92e0cda60ed9ce7579c11d079963ea8b | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by novoselt):
That's not at all a workaround if you have code that tries to display
multiple HTML bits in different places. And there is (or rather there will
be) nothing special about `html(x)`: it **returns** HTML code similar to
`latex(x)` returning a LaTeX expression, `plot(x)` returning a graphical
object, and, for that matter, `str(x)` returning a string. All of them
just return, but not display by themselves in case you have different
plans (e.g. constructing a more complicated object from pieces or saving
to a file). If you want to see any, call `print` or `pretty_print`. This
also helps with the issue of what `pretty_print(x)` should mean when `x`
can be typeset/plotted/etc - it will do some default, but if you prefer
something specific do `pretty_print(plot(x))` or `pretty_print(html(x))`
depending on your needs.
--
Ticket URL: <http://trac.sagemath.org/ticket/18292#comment:94>
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.