Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" All imports for the Sage notebook """
# Future statements which apply to this module. We delete the # future globals because we do not want these to appear in the sage.all # namespace. This deleting does not affect the parsing of this module. from __future__ import absolute_import, division, print_function del absolute_import, division, print_function
import sys from sage.all import * from sagenb.notebook.all import * from sage.calculus.predefined import x from sage.misc.python import python from sage.misc.html import html from sagenb.misc.support import help, automatic_names
sage_mode = 'notebook'
from sage.misc.latex import Latex, pretty_print_default, MathJax latex = Latex(density=130) latex_debug = Latex(debug=True, density=130) slide = Latex(slide=True, density=256) slide_debug = Latex(slide=True, debug=True, density=256) pdflatex = Latex(density=130, pdflatex=True) pdflatex_debug = Latex(density=130, pdflatex=True, debug=True)
# Set user globals to notebook worksheet globals from sage.repl.user_globals import set_globals set_globals(sys._getframe(1).f_globals)
sage.misc.session.init() |