Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
def _do_show(x):
    if sage.doctest.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x, mode='display')
Пример #4
0
def _do_show(x):
    if sage.doctest.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x, mode='display')
Пример #5
0
def _do_show(x):
    if sage.plot.plot.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view

    view(x, mode="display")