##// END OF EJS Templates
Minor changes to make sure logging is working well....
Minor changes to make sure logging is working well. We no longer replay logs at statup. Instead, users should simply %run them if they want to replay. I have also changed -logplay to -logappend to better reflect the fact that we don't run logs at startup. All seems to work!

File last commit:

r2265:20108d2b
r2265:20108d2b
Show More
ipython_config.py
147 lines | 4.3 KiB | text/x-python | PythonLexer
Brian Granger
Changed how config files are loaded....
r2261 # Get the config being loaded so we can set attributes on it
c = get_config()
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Massive refactoring of of the core....
r2245 # Global options
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Changed how config files are loaded....
r2261 # c.Global.display_banner = True
Brian Granger
Config system is finished!...
r2258
Brian Granger
Changed how config files are loaded....
r2261 # c.Global.classic = False
Brian Granger
Config system is finished!...
r2258
Brian Granger
Changed how config files are loaded....
r2261 # c.Global.nosep = True
Brian Granger
Config system is finished!...
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
Changed how config files are loaded....
r2261 c.Global.log_level = 20
Brian Granger
Config system is finished!...
r2258
# This should be a list of importable Python modules that have an
# load_in_ipython(ip) method. This method gets called when the extension
# 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
Changed how config files are loaded....
r2261 # c.Global.extensions = [
Brian Granger
Config system is finished!...
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
Changed how config files are loaded....
r2261 # c.Global.exec_lines = [
Brian Granger
Config system is finished!...
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.).
# These files need to be in the cwd, the ipythondir or be absolute paths.
Brian Granger
Changed how config files are loaded....
r2261 # c.Global.exec_files = [
Brian Granger
Config system is finished!...
r2258 # 'mycode.py',
# 'fancy.ipy'
# ]
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Massive refactoring of of the core....
r2245 # InteractiveShell options
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.autocall = 1
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.autoedit_syntax = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.autoindent = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.automagic = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.banner1 = 'This if for overriding the default IPython banner'
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.banner2 = "This is for extra banner text"
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.cache_size = 1000
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.colors = 'LightBG'
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.color_info = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.confirm_exit = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.deep_reload = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.editor = 'nano'
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.logstart = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.logfile = 'ipython_log.py'
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Minor changes to make sure logging is working well....
r2265 # c.InteractiveShell.logappend = 'mylog.py'
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.object_info_string_level = 0
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.pager = 'less'
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.pdb = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.pprint = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.prompt_in1 = 'In [\#]: '
# c.InteractiveShell.prompt_in2 = ' .\D.: '
# c.InteractiveShell.prompt_out = 'Out[\#]: '
# c.InteractiveShell.prompts_pad_left = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.quiet = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Massive refactoring of of the core....
r2245 # Readline
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.readline_use = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.readline_parse_and_bind = [
Brian Granger
Config system is finished!...
r2258 # 'tab: complete',
# '"\C-l": possible-completions',
# 'set show-all-if-ambiguous on',
# '"\C-o": tab-insert',
# '"\M-i": " "',
# '"\M-o": "\d\d\d\d"',
# '"\M-I": "\d\d\d\d"',
# '"\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
Changed how config files are loaded....
r2261 # c.InteractiveShell.readline_remove_delims = '-/~'
# c.InteractiveShell.readline_merge_completions = True
# c.InteractiveShell.readline_omit_names = 0
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.screen_length = 0
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.separate_in = '\n'
# c.InteractiveShell.separate_out = ''
# c.InteractiveShell.separate_out2 = ''
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.system_header = "IPython system call: "
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.system_verbose = True
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.term_title = False
Brian Granger
Beginning work on config system.
r2073
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.wildcards_case_sensitive = True
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.InteractiveShell.xmode = 'Context'
Brian Granger
Beginning work on config system.
r2073
#-----------------------------------------------------------------------------
Brian Granger
Massive refactoring of of the core....
r2245 # PrefilterManager options
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Changed how config files are loaded....
r2261 # c.PrefilterManager.multi_line_specials = True
Brian Granger
Beginning work on config system.
r2073
#-----------------------------------------------------------------------------
Brian Granger
Massive refactoring of of the core....
r2245 # AliasManager options
Brian Granger
Beginning work on config system.
r2073 #-----------------------------------------------------------------------------
Brian Granger
Massive refactoring of of the core....
r2245 # Do this to enable all defaults
Brian Granger
Changed how config files are loaded....
r2261 # c.AliasManager.default_aliases = []
Brian Granger
Massive refactoring of of the core....
r2245
Brian Granger
Changed how config files are loaded....
r2261 # c.AliasManager.user_aliases = [
# ('foo', 'echo Hi')
Brian Granger
Config system is finished!...
r2258 # ]