Hide keyboard shortcuts

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

""" 

All imports for the Sage (IPython) command line 

 

This is all.py (load all sage functions) plus set-up for the Sage commandline. 

""" 

 

#***************************************************************************** 

# Copyright (C) 2007 William Stein <wstein@gmail.com> 

# 

# This program is free software: you can redistribute it and/or modify 

# it under the terms of the GNU General Public License as published by 

# the Free Software Foundation, either version 2 of the License, or 

# (at your option) any later version. 

# http://www.gnu.org/licenses/ 

#***************************************************************************** 

 

# 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 

 

 

sage_mode = 'cmdline' 

 

from sage.all import * 

from sage.calculus.predefined import x 

 

sage.misc.session.init()