Created
November 20, 2012 05:40
-
-
Save bobmurder/4116245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for ipython. | |
c = get_config() | |
#------------------------------------------------------------------------------ | |
# TerminalInteractiveShell configuration | |
#------------------------------------------------------------------------------ | |
# pager settings | |
c.TerminalInteractiveShell.pager = 'less' | |
c.TerminalInteractiveShell.color_info = True | |
# unlimited history | |
# Autoindent IPython code entered interactively. | |
c.TerminalInteractiveShell.autoindent = True | |
# prompt and output settings to mimic the python interpreter | |
# no newlines after input and output | |
c.TerminalInteractiveShell.separate_in = '' | |
c.TerminalInteractiveShell.separate_out = '' | |
c.TerminalInteractiveShell.separate_out2 = '' | |
# Set the editor used by IPython (default to $EDITOR/vi/notepad). | |
c.TerminalInteractiveShell.editor = 'vim' | |
# readline settings | |
c.TerminalInteractiveShell.readline_use = True | |
c.TerminalInteractiveShell.multiline_history = True | |
c.TerminalInteractiveShell.history_length = -1 | |
# defaults i may want to change | |
# Enable magic commands to be called without the leading %. | |
# c.TerminalInteractiveShell.automagic = True | |
# Automatically call the pdb debugger after every exception. | |
# c.TerminalInteractiveShell.pdb = False | |
# The part of the banner to be printed before the profile | |
# c.TerminalInteractiveShell.banner1 = 'Python 2.7.3 (default, Oct 18 2012, 17:28:17) \nType "copyright", "credits" or "license" for more information.\n\nIPython 0.13.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' | |
# | |
# 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'] | |
#------------------------------------------------------------------------------ | |
# PromptManager configuration | |
#------------------------------------------------------------------------------ | |
# This is the primary interface for producing IPython's prompts. | |
# Output prompt. '\#' will be transformed to the prompt number | |
c.PromptManager.out_template = '' | |
# Continuation prompt. | |
c.PromptManager.in2_template = '... ' | |
# If True (default), each prompt will be right-aligned with the preceding one. | |
# c.PromptManager.justify = True | |
# Input prompt. '\#' will be transformed to the prompt number | |
c.PromptManager.in_template = '[\#]>>> ' | |
# | |
# c.PromptManager.color_scheme = 'Linux' | |
#------------------------------------------------------------------------------ | |
# HistoryManager configuration | |
#------------------------------------------------------------------------------ | |
# A class to organize all history-related functionality in one place. | |
# HistoryManager will inherit config from: HistoryAccessor | |
# | |
# c.HistoryManager.db_log_output = False | |
# Path to file to use for SQLite history database. | |
# | |
# By default, IPython will put the history database in the IPython profile | |
# directory. If you would rather share one history among profiles, you can set | |
# this value in each, so that they are consistent. | |
# | |
# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts. | |
# If you see IPython hanging, try setting this to something on a local disk, | |
# e.g:: | |
# | |
# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite | |
# c.HistoryManager.hist_file = u'' | |
# | |
# c.HistoryManager.db_cache_size = 0 | |
#------------------------------------------------------------------------------ | |
# ProfileDir configuration | |
#------------------------------------------------------------------------------ | |
# An object to manage the profile directory and its resources. | |
# | |
# The profile directory is used by all IPython applications, to manage | |
# configuration, logging and security. | |
# | |
# This object knows how to find, create and manage these directories. This | |
# should be used by any code that wants to handle profiles. | |
# Set the profile location directly. This overrides the logic used by the | |
# `profile` option. | |
# c.ProfileDir.location = u'' | |
#------------------------------------------------------------------------------ | |
# PlainTextFormatter configuration | |
#------------------------------------------------------------------------------ | |
# The default pretty-printer. | |
# | |
# This uses :mod:`IPython.lib.pretty` to compute the format data of the object. | |
# If the object cannot be pretty printed, :func:`repr` is used. See the | |
# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty | |
# printers. Here is a simple example:: | |
# | |
# def dtype_pprinter(obj, p, cycle): | |
# if cycle: | |
# return p.text('dtype(...)') | |
# if hasattr(obj, 'fields'): | |
# if obj.fields is None: | |
# p.text(repr(obj)) | |
# else: | |
# p.begin_group(7, 'dtype([') | |
# for i, field in enumerate(obj.descr): | |
# if i > 0: | |
# p.text(',') | |
# p.breakable() | |
# p.pretty(field) | |
# p.end_group(7, '])') | |
# PlainTextFormatter will inherit config from: BaseFormatter | |
# | |
# c.PlainTextFormatter.type_printers = {} | |
# | |
# c.PlainTextFormatter.newline = '\n' | |
# | |
# c.PlainTextFormatter.float_precision = '' | |
# | |
# c.PlainTextFormatter.verbose = False | |
# | |
# c.PlainTextFormatter.deferred_printers = {} | |
# | |
# c.PlainTextFormatter.pprint = True | |
# | |
# c.PlainTextFormatter.max_width = 79 | |
# | |
# c.PlainTextFormatter.singleton_printers = {} | |
#------------------------------------------------------------------------------ | |
# IPCompleter configuration | |
#------------------------------------------------------------------------------ | |
# Extension of the completer class with IPython-specific features | |
# IPCompleter will inherit config from: Completer | |
# Instruct the completer to omit private method names | |
# | |
# Specifically, when completing on ``object.<tab>``. | |
# | |
# When 2 [default]: all names that start with '_' will be excluded. | |
# | |
# When 1: all 'magic' names (``__foo__``) will be excluded. | |
# | |
# When 0: nothing will be excluded. | |
# c.IPCompleter.omit__names = 2 | |
# Whether to merge completion results into a single list | |
# | |
# If False, only the completion results from the first non-empty completer will | |
# be returned. | |
# c.IPCompleter.merge_completions = True | |
# Instruct the completer to use __all__ for the completion | |
# | |
# Specifically, when completing on ``object.<tab>``. | |
# | |
# When True: only those names in obj.__all__ will be included. | |
# | |
# When False [default]: the __all__ attribute is ignored | |
# c.IPCompleter.limit_to__all__ = False | |
# Activate greedy completion | |
# | |
# This will enable completion on elements of lists, results of function calls, | |
# etc., but can be unsafe because the code is actually evaluated on TAB. | |
# c.IPCompleter.greedy = False | |
#------------------------------------------------------------------------------ | |
# ScriptMagics configuration | |
#------------------------------------------------------------------------------ | |
# Magics for talking to scripts | |
# | |
# This defines a base `%%script` cell magic for running a cell with a program in | |
# a subprocess, and registers a few top-level magics that call %%script with | |
# common interpreters. | |
# Extra script cell magics to define | |
# | |
# This generates simple wrappers of `%%script foo` as `%%foo`. | |
# | |
# If you want to add script magics that aren't on your path, specify them in | |
# script_paths | |
# c.ScriptMagics.script_magics = [] | |
# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby' | |
# | |
# Only necessary for items in script_magics where the default path will not find | |
# the right interpreter. | |
# c.ScriptMagics.script_paths = {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment