##// END OF EJS Templates
Beginning work on config system.
Brian Granger -
Show More
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
@@ -0,0 +1,120 b''
1 #-----------------------------------------------------------------------------
2 # IPython Shell Configuration Defaults
3 #-----------------------------------------------------------------------------
4
5 #-----------------------------------------------------------------------------
6 # Startup
7 #-----------------------------------------------------------------------------
8
9 AUTOCALL = True
10
11 AUTOEDIT_SYNTAX = False
12
13 AUTOINDENT = True
14
15 AUTOMAGIC = True
16
17 CACHE_SIZE = 1000
18
19 CLASSIC = False
20
21 COLORS = 'Linux'
22
23 COLOR_INFO = True
24
25 CONFIRM_EXIT = True
26
27 DEEP_RELOAD = False
28
29 EDITOR = 0
30
31 LOG = True
32
33 LOGFILE = ''
34
35 BANNER = True
36
37 MESSAGES = True
38
39 PDB = False
40
41 PPRINT = True
42
43 PROMPT_IN1 = 'In [\#]: '
44
45 PROMPT_IN2 = ' .\D.: '
46
47 PROMPT_OUT = 'Out[\#]: '
48
49 PROMPTS_PAD_LEFT = True
50
51 QUICK = False
52
53 SCREEN_LENGTH = 0
54
55 SEPARATE_IN = '\n'
56 SEPARATE_OUT = ''
57 SEPARATE_OUT2 = ''
58 NOSEP = False
59
60 WILDCARDS_CASE_SENSITIVE = True
61
62 OBJECT_INFO_STRING_LEVEL = 0
63
64 XMODE = 'Context'
65
66 MULTI_LINE_SPECIALS = True
67
68 SYSTEM_HEADER = "IPython system call: "
69
70 SYSTEM_VERBOSE = True
71
72 #-----------------------------------------------------------------------------
73 # Readline
74 #-----------------------------------------------------------------------------
75
76 READLINE = True
77
78 READLINE_PARSE_AND_BIND = [
79 'tab: complete',
80 '"\C-l": possible-completions',
81 'set show-all-if-ambiguous on',
82 '"\C-o": tab-insert',
83 '"\M-i": " "',
84 '"\M-o": "\d\d\d\d"',
85 '"\M-I": "\d\d\d\d"',
86 '"\C-r": reverse-search-history',
87 '"\C-s": forward-search-history',
88 '"\C-p": history-search-backward',
89 '"\C-n": history-search-forward',
90 '"\e[A": history-search-backward',
91 '"\e[B": history-search-forward',
92 '"\C-k": kill-line',
93 '"\C-u": unix-line-discard',
94 ]
95
96 READLINE_REMOVE_DELIMS = '-/~'
97
98 READLINE_MERGE_COMPLETIONS = True
99
100 READLINE_OMIT_NAMES = 0
101
102 #-----------------------------------------------------------------------------
103 # Code to execute
104 #-----------------------------------------------------------------------------
105
106 EXECUTE = [
107 'import numpy as np',
108 'import sympy',
109 'a = 10'
110 ]
111
112 EXECFILE = []
113
114 #-----------------------------------------------------------------------------
115 # Alias
116 #-----------------------------------------------------------------------------
117
118 ALIAS = [
119 ('myls', 'ls -la')
120 ] No newline at end of file
@@ -0,0 +1,62 b''
1 from os.path import join
2 pjoin = join
3
4 from IPython.utils.genutils import get_ipython_dir, get_security_dir
5 security_dir = get_security_dir()
6
7
8 ENGINE_LOGFILE = ''
9
10 ENGINE_FURL_FILE = 'ipcontroller-engine.furl'
11
12 MPI_CONFIG_MPI4PY = """from mpi4py import MPI as mpi
13 mpi.size = mpi.COMM_WORLD.Get_size()
14 mpi.rank = mpi.COMM_WORLD.Get_rank()
15 """
16
17 MPI_CONFIG_PYTRILINOS = """from PyTrilinos import Epetra
18 class SimpleStruct:
19 pass
20 mpi = SimpleStruct()
21 mpi.rank = 0
22 mpi.size = 0
23 """
24
25 MPI_DEFAULT = ''
26
27 CONTROLLER_LOGFILE = ''
28 CONTROLLER_IMPORT_STATEMENT = ''
29 CONTROLLER_REUSE_FURLS = False
30
31 ENGINE_TUB_IP = ''
32 ENGINE_TUB_PORT = 0
33 ENGINE_TUB_LOCATION = ''
34 ENGINE_TUB_SECURE = True
35 ENGINE_TUB_CERT_FILE = 'ipcontroller-engine.pem'
36 ENGINE_FC_INTERFACE = 'IPython.kernel.enginefc.IFCControllerBase'
37 ENGINE_FURL_FILE = 'ipcontroller-engine.furl'
38
39 CONTROLLER_INTERFACES = dict(
40 TASK = dict(
41 CONTROLLER_INTERFACE = 'IPython.kernel.task.ITaskController',
42 FC_INTERFACE = 'IPython.kernel.taskfc.IFCTaskController',
43 FURL_FILE = pjoin(security_dir, 'ipcontroller-tc.furl')
44 ),
45 MULTIENGINE = dict(
46 CONTROLLER_INTERFACE = 'IPython.kernel.multiengine.IMultiEngine',
47 FC_INTERFACE = 'IPython.kernel.multienginefc.IFCSynchronousMultiEngine',
48 FURL_FILE = pjoin(security_dir, 'ipcontroller-mec.furl')
49 )
50 )
51
52 CLIENT_TUB_IP = ''
53 CLIENT_TUB_PORT = 0
54 CLIENT_TUB_LOCATION = ''
55 CLIENT_TUB_SECURE = True
56 CLIENT_TUB_CERT_FILE = 'ipcontroller-client.pem'
57
58 CLIENT_INTERFACES = dict(
59 TASK = dict(FURL_FILE = 'ipcontroller-tc.furl'),
60 MULTIENGINE = dict(FURLFILE='ipcontroller-mec.furl')
61 )
62
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
@@ -0,0 +1,9 b''
1 from ipython_config import *
2
3 EXECUTE.extend([
4 'import cmath',
5 'from math import *',
6 'print "*** math functions available globally, cmath as a module"'
7
8 ])
9
@@ -0,0 +1,8 b''
1 from ipython_config import *
2
3 EXECUTE.extend([
4 'import numpy',
5 'import scipy',
6 'import numpy as np',
7 'import scipy as sp',
8 ]) No newline at end of file
@@ -0,0 +1,7 b''
1 from ipython_config_numeric import *
2
3 EXECUTE.extend([
4
5
6 ])
7
@@ -0,0 +1,15 b''
1 from ipython_config import *
2
3 EXECUTE.insert(0, 'from IPython.extensions.InterpreterExec import *')
4
5 PROMPT_IN1 = '\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
6 PROMPT_IN2 = '\C_Green|\C_LightGreen\D\C_Green> '
7 PROMPT_OUT = '<\#> '
8
9 PROMPTS_PAD_LEFT = True
10
11 SEPARATE_IN = 0
12 SEPARATE_OUT = 0
13 SEPARATE_OUT2 = 0
14
15 MULTI_LINE_SPECIALS = True No newline at end of file
@@ -0,0 +1,9 b''
1 from ipython_config import *
2
3 EXECUTE.extend([
4 'from __future__ import division'
5 'from sympy import *'
6 'x, y, z = symbols('xyz')'
7 'k, m, n = symbols('kmn', integer=True)'
8 'f, g, h = map(Function, 'fgh')'
9 ])
General Comments 0
You need to be logged in to leave comments. Login now