def _do_show(x): if sage.server.support.EMBEDDED_MODE: print '<html><div class="math">%s</div></html>'%sage.misc.latex.latex(x) return sage.misc.latex.LatexExpr('') # so no visible output if sage.plot.plot.DOCTEST_MODE: return sage.misc.latex.latex(x) from latex import view view(x)
def _do_show(x): if sage.server.support.EMBEDDED_MODE: print '<html><div class="math">%s</div></html>' % sage.misc.latex.latex( x) return sage.misc.latex.LatexExpr('') # so no visible output if sage.plot.plot.DOCTEST_MODE: return sage.misc.latex.latex(x) from latex import view view(x)
def _do_show(x): if sage.doctest.DOCTEST_MODE: return sage.misc.latex.latex(x) from latex import view view(x, mode='display')
def _do_show(x): if sage.plot.plot.DOCTEST_MODE: return sage.misc.latex.latex(x) from latex import view view(x, mode="display")