ipython_config.py
165 lines
| 5.2 KiB
| text/x-python
|
PythonLexer
Brian Granger
|
r2261 | # Get the config being loaded so we can set attributes on it | ||
c = get_config() | ||||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2245 | # Global options | ||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2261 | # c.Global.display_banner = True | ||
Brian Granger
|
r2258 | |||
Brian Granger
|
r2261 | # c.Global.classic = False | ||
Brian Granger
|
r2258 | |||
Brian Granger
|
r2261 | # c.Global.nosep = True | ||
Brian Granger
|
r2258 | |||
MinRK
|
r3837 | # If you still use multiple versions of IPytho on the same machine, | ||
# set this to True to suppress warnings about old configuration files | ||||
# c.Global.ignore_old_config = False | ||||
Brian Granger
|
r2258 | # Set this to determine the detail of what is logged at startup. | ||
# The default is 30 and possible values are 0,10,20,30,40,50. | ||||
Brian Granger
|
r2320 | # c.Global.log_level = 20 | ||
Brian Granger
|
r2258 | |||
# This should be a list of importable Python modules that have an | ||||
Darren Dale
|
r3829 | # load_ipython_extension(ip) method. This method gets called when the extension | ||
Brian Granger
|
r2258 | # is loaded. You can put your extensions anywhere they can be imported | ||
# but we add the extensions subdir of the ipython directory to sys.path | ||||
# during extension loading, so you can put them there as well. | ||||
Brian Granger
|
r2261 | # c.Global.extensions = [ | ||
Brian Granger
|
r2258 | # 'myextension' | ||
# ] | ||||
# These lines are run in IPython in the user's namespace after extensions | ||||
# are loaded. They can contain full IPython syntax with magics etc. | ||||
Brian Granger
|
r2261 | # c.Global.exec_lines = [ | ||
Brian Granger
|
r2258 | # 'import numpy', | ||
# 'a = 10; b = 20', | ||||
# '1/0' | ||||
# ] | ||||
# These files are run in IPython in the user's namespace. Files with a .py | ||||
# extension need to be pure Python. Files with a .ipy extension can have | ||||
# custom IPython syntax (like magics, etc.). | ||||
Brian Granger
|
r2322 | # These files need to be in the cwd, the ipython_dir or be absolute paths. | ||
Brian Granger
|
r2261 | # c.Global.exec_files = [ | ||
Brian Granger
|
r2258 | # 'mycode.py', | ||
# 'fancy.ipy' | ||||
# ] | ||||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2245 | # InteractiveShell options | ||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2261 | # c.InteractiveShell.autocall = 1 | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.autoedit_syntax = False | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2766 | # c.InteractiveShell.autoindent = True | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.automagic = False | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2761 | # c.TerminalTerminalInteractiveShell.banner1 = 'This if for overriding the default IPython banner' | ||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2761 | # c.TerminalTerminalInteractiveShell.banner2 = "This is for extra banner text" | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.cache_size = 1000 | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.colors = 'LightBG' | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.color_info = True | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.confirm_exit = True | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.deep_reload = False | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.editor = 'nano' | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.logstart = True | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2328 | # c.InteractiveShell.logfile = u'ipython_log.py' | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2328 | # c.InteractiveShell.logappend = u'mylog.py' | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.object_info_string_level = 0 | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.pager = 'less' | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.pdb = False | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.prompt_in1 = 'In [\#]: ' | ||
# c.InteractiveShell.prompt_in2 = ' .\D.: ' | ||||
# c.InteractiveShell.prompt_out = 'Out[\#]: ' | ||||
# c.InteractiveShell.prompts_pad_left = True | ||||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.quiet = False | ||
Brian Granger
|
r2073 | |||
Satrajit Ghosh
|
r3240 | # c.InteractiveShell.history_length = 10000 | ||
Brian Granger
|
r2245 | # Readline | ||
Brian Granger
|
r2261 | # c.InteractiveShell.readline_use = True | ||
Brian Granger
|
r2073 | |||
MinRK
|
r3842 | # be careful with meta-key ('\M-<x>') bindings, because | ||
# they conflict with 8-bit encodings (e.g. UTF8) | ||||
Brian Granger
|
r2261 | # c.InteractiveShell.readline_parse_and_bind = [ | ||
Brian Granger
|
r2258 | # 'tab: complete', | ||
# '"\C-l": possible-completions', | ||||
# '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', | ||||
# ] | ||||
Brian Granger
|
r2261 | # c.InteractiveShell.readline_remove_delims = '-/~' | ||
# c.InteractiveShell.readline_merge_completions = True | ||||
Fernando Perez
|
r2522 | # c.InteractiveShell.readline_omit__names = 0 | ||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.screen_length = 0 | ||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2766 | # c.InteractiveShell.separate_in = '\n' | ||
# c.InteractiveShell.separate_out = '' | ||||
# c.InteractiveShell.separate_out2 = '' | ||||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2761 | # c.TerminalInteractiveShell.term_title = False | ||
Brian Granger
|
r2073 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.wildcards_case_sensitive = True | ||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2261 | # c.InteractiveShell.xmode = 'Context' | ||
Brian Granger
|
r2073 | |||
#----------------------------------------------------------------------------- | ||||
Brian Granger
|
r3280 | # Formatter and display options | ||
#----------------------------------------------------------------------------- | ||||
# c.PlainTextFormatter.pprint = True | ||||
#----------------------------------------------------------------------------- | ||||
Brian Granger
|
r2245 | # PrefilterManager options | ||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2261 | # c.PrefilterManager.multi_line_specials = True | ||
Brian Granger
|
r2073 | |||
#----------------------------------------------------------------------------- | ||||
Brian Granger
|
r2245 | # AliasManager options | ||
Brian Granger
|
r2073 | #----------------------------------------------------------------------------- | ||
Brian Granger
|
r2277 | # Do this to disable all defaults | ||
Brian Granger
|
r2261 | # c.AliasManager.default_aliases = [] | ||
Brian Granger
|
r2245 | |||
Brian Granger
|
r2261 | # c.AliasManager.user_aliases = [ | ||
# ('foo', 'echo Hi') | ||||
Fernando Perez
|
r2522 | # ] | ||
Thomas Kluyver
|
r3393 | |||
#----------------------------------------------------------------------------- | ||||
# HistoryManager options | ||||
#----------------------------------------------------------------------------- | ||||
# Enable logging output as well as input to the database. | ||||
Thomas Kluyver
|
r3436 | # c.HistoryManager.db_log_output = False | ||
Thomas Kluyver
|
r3393 | |||
Thomas Kluyver
|
r3436 | # Only write to the database every n commands - this can save disk | ||
# access (and hence power) over the default of writing on every command. | ||||
# c.HistoryManager.db_cache_size = 0 | ||||