Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/all_notebook.py
4033 views
1
"""nodoctest"""
2
3
from __future__ import with_statement
4
5
6
from sage.all import *
7
preparser(on=True)
8
9
from sage.calculus.predefined import x
10
11
12
sage_mode = 'notebook'
13
14
from sage.misc.latex import Latex, pretty_print_default, JSMath
15
latex = Latex(density=130)
16
latex_debug = Latex(debug=True, density=130)
17
slide = Latex(slide=True, density=256)
18
slide_debug = Latex(slide=True, debug=True, density=256)
19
pdflatex = Latex(density=130, pdflatex=True)
20
pdflatex_debug = Latex(density=130, pdflatex=True, debug=True)
21
# we need a global instance of this in order to get %jsmath to work...
22
jsmath = JSMath()
23
24
from sage.misc.python import python
25
26
from sage.misc.html import html
27
28
from sage.server.support import help
29
30
from sagenb.misc.support import automatic_names
31
32
sage.misc.session.init()
33
34
35
36
37
38