1 # Configuration file for ipython.
5 #------------------------------------------------------------------------------
6 # InteractiveShellApp configuration
7 #------------------------------------------------------------------------------
9 # A Mixin for applications that start InteractiveShell instances.
11 # Provides configurables for loading extensions and executing files as part of
12 # configuring a Shell environment.
14 # Provides init_extensions() and init_code() methods, to be called after
15 # init_shell(), which must be implemented by subclasses.
17 # Execute the given command string.
18 # c.InteractiveShellApp.code_to_run = ''
20 # lines of code to run at IPython startup.
21 # c.InteractiveShellApp.exec_lines = []
23 # If true, an 'import *' is done from numpy and pylab, when using pylab
24 # c.InteractiveShellApp.pylab_import_all = True
26 # A list of dotted module names of IPython extensions to load.
27 # c.InteractiveShellApp.extensions = []
29 # dotted module name of an IPython extension to load.
30 # c.InteractiveShellApp.extra_extension = ''
32 # List of files to run at IPython startup.
33 # c.InteractiveShellApp.exec_files = []
36 # c.InteractiveShellApp.file_to_run = ''
38 #------------------------------------------------------------------------------
39 # TerminalIPythonApp configuration
40 #------------------------------------------------------------------------------
42 # TerminalIPythonApp will inherit config from: BaseIPythonApplication,
43 # Application, InteractiveShellApp
45 # Execute the given command string.
46 # c.TerminalIPythonApp.code_to_run = ''
48 # The IPython profile to use.
49 # c.TerminalIPythonApp.profile = u'default'
51 # Set the log level by value or name.
52 # c.TerminalIPythonApp.log_level = 30
54 # lines of code to run at IPython startup.
55 # c.TerminalIPythonApp.exec_lines = []
57 # Enable GUI event loop integration ('qt', 'wx', 'gtk', 'glut', 'pyglet').
58 c
.TerminalIPythonApp
.gui
= 'gtk'
60 # Pre-load matplotlib and numpy for interactive use, selecting a particular
61 # matplotlib backend and loop integration.
62 # c.TerminalIPythonApp.pylab = None
64 # Suppress warning messages about legacy config files
65 # c.TerminalIPythonApp.ignore_old_config = False
67 # Create a massive crash report when IPython enconters what may be an internal
68 # error. The default is to append a short message to the usual traceback
69 # c.TerminalIPythonApp.verbose_crash = False
71 # If a command or file is given via the command-line, e.g. 'ipython foo.py
72 # c.TerminalIPythonApp.force_interact = False
74 # If true, an 'import *' is done from numpy and pylab, when using pylab
75 # c.TerminalIPythonApp.pylab_import_all = True
77 # The name of the IPython directory. This directory is used for logging
78 # configuration (through profiles), history storage, etc. The default is usually
79 # $HOME/.ipython. This options can also be specified through the environment
80 # variable IPYTHON_DIR.
81 # c.TerminalIPythonApp.ipython_dir = u'/home/arnaud/.config/ipython'
83 # Whether to display a banner upon starting IPython.
84 c
.TerminalIPythonApp
.display_banner
= True
86 # Start IPython quickly by skipping the loading of config files.
87 # c.TerminalIPythonApp.quick = False
89 # A list of dotted module names of IPython extensions to load.
90 # c.TerminalIPythonApp.extensions = []
92 # Whether to install the default config files into the profile dir. If a new
93 # profile is being created, and IPython contains config files for that profile,
94 # then they will be staged into the new directory. Otherwise, default config
95 # files will be automatically generated.
96 # c.TerminalIPythonApp.copy_config_files = False
98 # dotted module name of an IPython extension to load.
99 # c.TerminalIPythonApp.extra_extension = ''
101 # List of files to run at IPython startup.
102 c
.TerminalIPythonApp
.exec_files
= ['@bindir@/ioscopy.py']
104 # Whether to overwrite existing config files when copying
105 # c.TerminalIPythonApp.overwrite = False
108 # c.TerminalIPythonApp.file_to_run = ''
110 #------------------------------------------------------------------------------
111 # TerminalInteractiveShell configuration
112 #------------------------------------------------------------------------------
114 # TerminalInteractiveShell will inherit config from: InteractiveShell
116 # auto editing of files with syntax errors.
117 # c.TerminalInteractiveShell.autoedit_syntax = False
119 # Use colors for displaying information about objects. Because this information
120 # is passed through a pager (like 'less'), and some pagers get confused with
121 # color codes, this capability can be turned off.
122 # c.TerminalInteractiveShell.color_info = True
125 # c.TerminalInteractiveShell.history_length = 10000
127 # Don't call post-execute functions that have failed in the past.
128 # c.TerminalInteractiveShell.disable_failing_post_execute = False
130 # Show rewritten input, e.g. for autocall.
131 # c.TerminalInteractiveShell.show_rewritten_input = True
133 # Set the color scheme (NoColor, Linux, or LightBG).
134 # c.TerminalInteractiveShell.colors = 'LightBG'
136 # Autoindent IPython code entered interactively.
137 # c.TerminalInteractiveShell.autoindent = True
140 # c.TerminalInteractiveShell.separate_in = '\n'
142 # Deprecated, use PromptManager.in2_template
143 # c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
146 # c.TerminalInteractiveShell.separate_out = ''
148 # Deprecated, use PromptManager.in_template
149 # c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
151 # Enable deep (recursive) reloading by default. IPython can use the deep_reload
152 # module which reloads changes in modules recursively (it replaces the reload()
153 # function, so you don't need to change anything to use it). deep_reload()
154 # forces a full reload of modules whose code may have changed, which the default
155 # reload() function does not. When deep_reload is off, IPython will use the
156 # normal reload(), but deep_reload will still be available as dreload().
157 # c.TerminalInteractiveShell.deep_reload = False
159 # Make IPython automatically call any callable object even if you didn't type
160 # explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
161 # The value can be '0' to disable the feature, '1' for 'smart' autocall, where
162 # it is not applied if there are no more arguments on the line, and '2' for
163 # 'full' autocall, where all callable objects are automatically called (even if
164 # no arguments are present).
165 # c.TerminalInteractiveShell.autocall = 0
167 # Number of lines of your screen, used to control printing of very long strings.
168 # Strings longer than this number of lines will be sent through a pager instead
169 # of directly printed. The default value for this is 0, which means IPython
170 # will auto-detect your screen size every time it needs to print certain
171 # potentially long strings (this doesn't change the behavior of the 'print'
172 # keyword, it's only triggered internally). If for some reason this isn't
173 # working well (it needs curses support), specify it yourself. Otherwise don't
174 # change the default.
175 # c.TerminalInteractiveShell.screen_length = 0
177 # Set the editor used by IPython (default to $EDITOR/vi/notepad).
178 # c.TerminalInteractiveShell.editor = 'vi'
180 # Deprecated, use PromptManager.justify
181 # c.TerminalInteractiveShell.prompts_pad_left = True
183 # The part of the banner to be printed before the profile
184 # c.TerminalInteractiveShell.banner1 = 'Python 2.7.3rc2 (default, Apr 22 2012, 22:30:17) \nType "copyright", "credits" or "license" for more information.\n\nIPython 0.12.1 -- An enhanced Interactive Python.\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n'
187 # c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard']
189 # The part of the banner to be printed after the profile
190 # c.TerminalInteractiveShell.banner2 = ''
191 c
.TerminalInteractiveShell
.banner2
= """This is oscopy, a program to view electrical simulation results on top of IPython\nCopyright (C) 2008 - 2012 Arnaud Gardelein and others.\nThis is free software, you are invited to redistribute it \nunder certain conditions.\nThere is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or\nFITNESS FOR A PARTICULAR PURPOSE."""
193 # c.TerminalInteractiveShell.separate_out2 = ''
196 # c.TerminalInteractiveShell.wildcards_case_sensitive = True
199 # c.TerminalInteractiveShell.debug = False
201 # Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
202 # Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
203 # direct exit without any confirmation.
204 c
.TerminalInteractiveShell
.confirm_exit
= False
207 # c.TerminalInteractiveShell.ipython_dir = ''
210 # c.TerminalInteractiveShell.readline_remove_delims = '-/~'
212 # Start logging to the default log file.
213 # c.TerminalInteractiveShell.logstart = False
215 # The name of the logfile to use.
216 # c.TerminalInteractiveShell.logfile = ''
218 # The shell program to be used for paging.
219 # c.TerminalInteractiveShell.pager = 'less'
221 # Enable magic commands to be called without the leading %.
222 c
.TerminalInteractiveShell
.automagic
= True
224 # Save multi-line entries as one entry in readline history
225 # c.TerminalInteractiveShell.multiline_history = True
228 # c.TerminalInteractiveShell.readline_use = True
230 # Start logging to the given file in append mode.
231 # c.TerminalInteractiveShell.logappend = ''
234 # c.TerminalInteractiveShell.xmode = 'Context'
237 # c.TerminalInteractiveShell.quiet = False
239 # Enable auto setting the terminal title.
240 # c.TerminalInteractiveShell.term_title = False
243 # c.TerminalInteractiveShell.object_info_string_level = 0
245 # Deprecated, use PromptManager.out_template
246 # c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
248 # Set the size of the output cache. The default is 1000, you can change it
249 # permanently in your config file. Setting it to 0 completely disables the
250 # caching system, and the minimum value accepted is 20 (if you provide a value
251 # less than 20, it is reset to 0 and a warning is issued). This limit is
252 # defined because otherwise you'll spend more time re-flushing a too small cache
254 # c.TerminalInteractiveShell.cache_size = 1000
256 # Automatically call the pdb debugger after every exception.
257 # c.TerminalInteractiveShell.pdb = False
259 #------------------------------------------------------------------------------
260 # PromptManager configuration
261 #------------------------------------------------------------------------------
263 # This is the primary interface for producing IPython's prompts.
265 # Output prompt. '\#' will be transformed to the prompt number
266 # c.PromptManager.out_template = 'Out[\\#]: '
268 # Continuation prompt.
269 # c.PromptManager.in2_template = ' .\\D.: '
271 # If True (default), each prompt will be right-aligned with the preceding one.
272 # c.PromptManager.justify = True
274 # Input prompt. '\#' will be transformed to the prompt number
275 c
.PromptManager
.in_template
= 'oscopy> '
278 # c.PromptManager.color_scheme = 'Linux'
280 #------------------------------------------------------------------------------
281 # ProfileDir configuration
282 #------------------------------------------------------------------------------
284 # An object to manage the profile directory and its resources.
286 # The profile directory is used by all IPython applications, to manage
287 # configuration, logging and security.
289 # This object knows how to find, create and manage these directories. This
290 # should be used by any code that wants to handle profiles.
292 # Set the profile location directly. This overrides the logic used by the
294 # c.ProfileDir.location = u''
296 #------------------------------------------------------------------------------
297 # PlainTextFormatter configuration
298 #------------------------------------------------------------------------------
300 # The default pretty-printer.
302 # This uses :mod:`IPython.lib.pretty` to compute the format data of the object.
303 # If the object cannot be pretty printed, :func:`repr` is used. See the
304 # documentation of :mod:`IPython.lib.pretty` for details on how to write pretty
305 # printers. Here is a simple example::
307 # def dtype_pprinter(obj, p, cycle):
309 # return p.text('dtype(...)')
310 # if hasattr(obj, 'fields'):
311 # if obj.fields is None:
314 # p.begin_group(7, 'dtype([')
315 # for i, field in enumerate(obj.descr):
320 # p.end_group(7, '])')
322 # PlainTextFormatter will inherit config from: BaseFormatter
325 # c.PlainTextFormatter.type_printers = {}
328 # c.PlainTextFormatter.newline = '\n'
331 # c.PlainTextFormatter.float_precision = ''
334 # c.PlainTextFormatter.verbose = False
337 # c.PlainTextFormatter.deferred_printers = {}
340 # c.PlainTextFormatter.pprint = True
343 # c.PlainTextFormatter.max_width = 79
346 # c.PlainTextFormatter.singleton_printers = {}
348 #------------------------------------------------------------------------------
349 # IPCompleter configuration
350 #------------------------------------------------------------------------------
352 # Extension of the completer class with IPython-specific features
354 # IPCompleter will inherit config from: Completer
356 # Instruct the completer to omit private method names
358 # Specifically, when completing on ``object.<tab>``.
360 # When 2 [default]: all names that start with '_' will be excluded.
362 # When 1: all 'magic' names (``__foo__``) will be excluded.
364 # When 0: nothing will be excluded.
365 # c.IPCompleter.omit__names = 2
367 # Whether to merge completion results into a single list
369 # If False, only the completion results from the first non-empty completer will
371 # c.IPCompleter.merge_completions = True
373 # Activate greedy completion
375 # This will enable completion on elements of lists, results of function calls,
376 # etc., but can be unsafe because the code is actually evaluated on TAB.
377 # c.IPCompleter.greedy = False