Commits

Chris Wesseling committed 16f0e80

Converts ipython to new, profile-base configuration.

  • Participants
  • Parent commits 83bffe1

Comments (0)

Files changed (6)

 vim/.netrwhist
 mutt/headers
 ipython/{db,history}
+ipython/*/db
+ipython/*/history.sqlite

File ipython/ipy_user_conf.py

-""" User configuration file for IPython
-
-This is a more flexible and safe way to configure ipython than *rc files
-(ipythonrc, ipythonrc-pysh etc.)
-
-This file is always imported on ipython startup. You can import the
-ipython extensions you need here (see IPython/Extensions directory).
-
-Feel free to edit this file to customize your ipython experience.
-
-Note that as such this file does nothing, for backwards compatibility.
-Consult e.g. file 'ipy_profile_sh.py' for an example of the things 
-you can do here.
-
-See http://ipython.scipy.org/moin/IpythonExtensionApi for detailed
-description on what you could do here.
-"""
-
-# Most of your config files and extensions will probably start with this import
-
-import IPython.ipapi
-ip = IPython.ipapi.get()
-
-# You probably want to uncomment this if you did %upgrade -nolegacy
-# import ipy_defaults    
-
-import os   
-
-def main():   
-
-    # uncomment if you want to get ipython -p sh behaviour
-    # without having to use command line switches  
-    # import ipy_profile_sh
-
-    # Configure your favourite editor?
-    # Good idea e.g. for %edit os.path.isfile
-
-    #import ipy_editors
-    
-    # Choose one of these:
-    
-    #ipy_editors.scite()
-    #ipy_editors.scite('c:/opt/scite/scite.exe')
-    #ipy_editors.komodo()
-    #ipy_editors.idle()
-    # ... or many others, try 'ipy_editors??' after import to see them
-    
-    # Or roll your own:
-    #ipy_editors.install_editor("c:/opt/jed +$line $file")
-    
-    
-    o = ip.options
-    # An example on how to set options
-    #o.autocall = 1
-    o.system_verbose = 0
-    
-    #import_all("os sys")
-    #execf('~/_ipython/ns.py')
-
-
-    # -- prompt
-    # A different, more compact set of prompts from the default ones, that
-    # always show your current location in the filesystem:
-
-    #o.prompt_in1 = r'\C_LightBlue[\C_LightCyan\Y2\C_LightBlue]\C_Normal\n\C_Green|\#>'
-    #o.prompt_in2 = r'.\D: '
-    #o.prompt_out = r'[\#] '
-    
-    # Try one of these color settings if you can't read the text easily
-    # autoexec is a list of IPython commands to execute on startup
-    #o.autoexec.append('%colors LightBG')
-    #o.autoexec.append('%colors NoColor')
-    #o.autoexec.append('%colors Linux')
-    
-    # for sane integer division that converts to float (1/2 == 0.5)
-    #o.autoexec.append('from __future__ import division')
-    
-    # For %tasks and %kill
-    #import jobctrl 
-    
-    # For autoreloading of modules (%autoreload, %aimport)    
-    #import ipy_autoreload
-    
-    # For winpdb support (%wdb)
-    #import ipy_winpdb
-    
-    # For bzr completer, requires bzrlib (the python installation of bzr)
-    #ip.load('ipy_bzr')
-    
-    # Tab completer that is not quite so picky (i.e. 
-    # "foo".<TAB> and str(2).<TAB> will work). Complete 
-    # at your own risk!
-    #import ipy_greedycompleter
-    
-    # If you are on Linux, you may be annoyed by
-    # "Display all N possibilities? (y or n)" on tab completion,
-    # as well as the paging through "more". Uncomment the following
-    # lines to disable that behaviour
-    #import readline
-    #readline.parse_and_bind('set completion-query-items 1000')
-    #readline.parse_and_bind('set page-completions no')
-
-    execf('~/.ipython/virtualenv.py')
-
-# some config helper functions you can use 
-def import_all(modules):
-    """ Usage: import_all("os sys") """ 
-    for m in modules.split():
-        ip.ex("from %s import *" % m)
-
-def execf(fname):
-    """ Execute a file in user namespace """
-    ip.ex('execfile("%s")' % os.path.expanduser(fname))
-
-main()

File ipython/profile_default/ipython_config.py

+# Configuration file for ipython.
+
+c = get_config()
+
+#------------------------------------------------------------------------------
+# InteractiveShellApp configuration
+#------------------------------------------------------------------------------
+
+# A Mixin for applications that start InteractiveShell instances.
+# 
+# Provides configurables for loading extensions and executing files as part of
+# configuring a Shell environment.
+# 
+# Provides init_extensions() and init_code() methods, to be called after
+# init_shell(), which must be implemented by subclasses.
+
+# Execute the given command string.
+# c.InteractiveShellApp.code_to_run = ''
+
+# lines of code to run at IPython startup.
+# c.InteractiveShellApp.exec_lines = []
+
+# If true, an 'import *' is done from numpy and pylab, when using pylab
+# c.InteractiveShellApp.pylab_import_all = True
+
+# A list of dotted module names of IPython extensions to load.
+# c.InteractiveShellApp.extensions = []
+
+# dotted module name of an IPython extension to load.
+# c.InteractiveShellApp.extra_extension = ''
+
+# List of files to run at IPython startup.
+# c.InteractiveShellApp.exec_files = []
+
+# A file to be run
+# c.InteractiveShellApp.file_to_run = ''
+
+#------------------------------------------------------------------------------
+# TerminalIPythonApp configuration
+#------------------------------------------------------------------------------
+
+# TerminalIPythonApp will inherit config from: BaseIPythonApplication,
+# Application, InteractiveShellApp
+
+# Execute the given command string.
+# c.TerminalIPythonApp.code_to_run = ''
+
+# The IPython profile to use.
+# c.TerminalIPythonApp.profile = u'default'
+
+# Set the log level by value or name.
+# c.TerminalIPythonApp.log_level = 30
+
+# lines of code to run at IPython startup.
+# c.TerminalIPythonApp.exec_lines = []
+
+# Enable GUI event loop integration ('qt', 'wx', 'gtk', 'glut', 'pyglet').
+# c.TerminalIPythonApp.gui = None
+
+# Pre-load matplotlib and numpy for interactive use, selecting a particular
+# matplotlib backend and loop integration.
+# c.TerminalIPythonApp.pylab = None
+
+# Suppress warning messages about legacy config files
+# c.TerminalIPythonApp.ignore_old_config = False
+
+# Create a massive crash report when IPython enconters what may be an internal
+# error.  The default is to append a short message to the usual traceback
+# c.TerminalIPythonApp.verbose_crash = False
+
+# If a command or file is given via the command-line, e.g. 'ipython foo.py
+# c.TerminalIPythonApp.force_interact = False
+
+# If true, an 'import *' is done from numpy and pylab, when using pylab
+# c.TerminalIPythonApp.pylab_import_all = True
+
+# The name of the IPython directory. This directory is used for logging
+# configuration (through profiles), history storage, etc. The default is usually
+# $HOME/.ipython. This options can also be specified through the environment
+# variable IPYTHON_DIR.
+# c.TerminalIPythonApp.ipython_dir = u'/export/ufs1/ccw/.ipython'
+
+# Whether to display a banner upon starting IPython.
+# c.TerminalIPythonApp.display_banner = True
+
+# Start IPython quickly by skipping the loading of config files.
+# c.TerminalIPythonApp.quick = False
+
+# A list of dotted module names of IPython extensions to load.
+# c.TerminalIPythonApp.extensions = []
+
+# Whether to install the default config files into the profile dir. If a new
+# profile is being created, and IPython contains config files for that profile,
+# then they will be staged into the new directory.  Otherwise, default config
+# files will be automatically generated.
+# c.TerminalIPythonApp.copy_config_files = False
+
+# dotted module name of an IPython extension to load.
+# c.TerminalIPythonApp.extra_extension = ''
+
+# List of files to run at IPython startup.
+# c.TerminalIPythonApp.exec_files = []
+
+# Whether to overwrite existing config files when copying
+# c.TerminalIPythonApp.overwrite = False
+
+# A file to be run
+# c.TerminalIPythonApp.file_to_run = ''
+
+#------------------------------------------------------------------------------
+# TerminalInteractiveShell configuration
+#------------------------------------------------------------------------------
+
+# TerminalInteractiveShell will inherit config from: InteractiveShell
+
+# auto editing of files with syntax errors.
+# c.TerminalInteractiveShell.autoedit_syntax = False
+
+# Use colors for displaying information about objects. Because this information
+# is passed through a pager (like 'less'), and some pagers get confused with
+# color codes, this capability can be turned off.
+# c.TerminalInteractiveShell.color_info = True
+
+# 
+# c.TerminalInteractiveShell.history_length = 10000
+
+# Don't call post-execute functions that have failed in the past.
+# c.TerminalInteractiveShell.disable_failing_post_execute = False
+
+# Show rewritten input, e.g. for autocall.
+# c.TerminalInteractiveShell.show_rewritten_input = True
+
+# Set the color scheme (NoColor, Linux, or LightBG).
+# c.TerminalInteractiveShell.colors = 'Linux'
+
+# Autoindent IPython code entered interactively.
+# c.TerminalInteractiveShell.autoindent = True
+
+# 
+# c.TerminalInteractiveShell.separate_in = '\n'
+
+# Deprecated, use PromptManager.in2_template
+# c.TerminalInteractiveShell.prompt_in2 = '   .\\D.: '
+
+# 
+# c.TerminalInteractiveShell.separate_out = ''
+
+# Deprecated, use PromptManager.in_template
+# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
+
+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
+# module which reloads changes in modules recursively (it replaces the reload()
+# function, so you don't need to change anything to use it). deep_reload()
+# forces a full reload of modules whose code may have changed, which the default
+# reload() function does not.  When deep_reload is off, IPython will use the
+# normal reload(), but deep_reload will still be available as dreload().
+# c.TerminalInteractiveShell.deep_reload = False
+
+# Make IPython automatically call any callable object even if you didn't type
+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
+# it is not applied if there are no more arguments on the line, and '2' for
+# 'full' autocall, where all callable objects are automatically called (even if
+# no arguments are present).
+# c.TerminalInteractiveShell.autocall = 0
+
+# Number of lines of your screen, used to control printing of very long strings.
+# Strings longer than this number of lines will be sent through a pager instead
+# of directly printed.  The default value for this is 0, which means IPython
+# will auto-detect your screen size every time it needs to print certain
+# potentially long strings (this doesn't change the behavior of the 'print'
+# keyword, it's only triggered internally). If for some reason this isn't
+# working well (it needs curses support), specify it yourself. Otherwise don't
+# change the default.
+# c.TerminalInteractiveShell.screen_length = 0
+
+# Set the editor used by IPython (default to $EDITOR/vi/notepad).
+# c.TerminalInteractiveShell.editor = '/usr/bin/vim'
+
+# Deprecated, use PromptManager.justify
+# c.TerminalInteractiveShell.prompts_pad_left = True
+
+# The part of the banner to be printed before the profile
+# c.TerminalInteractiveShell.banner1 = 'Python 2.7.2 (default, Oct 27 2011, 01:40:22) \nType "copyright", "credits" or "license" for more information.\n\nIPython 0.12 -- 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']
+
+# The part of the banner to be printed after the profile
+# c.TerminalInteractiveShell.banner2 = ''
+
+# 
+# c.TerminalInteractiveShell.separate_out2 = ''
+
+# 
+# c.TerminalInteractiveShell.wildcards_case_sensitive = True
+
+# 
+# c.TerminalInteractiveShell.debug = False
+
+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
+# direct exit without any confirmation.
+# c.TerminalInteractiveShell.confirm_exit = True
+
+# 
+# c.TerminalInteractiveShell.ipython_dir = ''
+
+# 
+# c.TerminalInteractiveShell.readline_remove_delims = '-/~'
+
+# Start logging to the default log file.
+# c.TerminalInteractiveShell.logstart = False
+
+# The name of the logfile to use.
+# c.TerminalInteractiveShell.logfile = ''
+
+# The shell program to be used for paging.
+# c.TerminalInteractiveShell.pager = 'less'
+
+# Enable magic commands to be called without the leading %.
+# c.TerminalInteractiveShell.automagic = True
+
+# Save multi-line entries as one entry in readline history
+# c.TerminalInteractiveShell.multiline_history = True
+
+# 
+# c.TerminalInteractiveShell.readline_use = True
+
+# Start logging to the given file in append mode.
+# c.TerminalInteractiveShell.logappend = ''
+
+# 
+# c.TerminalInteractiveShell.xmode = 'Context'
+
+# 
+# c.TerminalInteractiveShell.quiet = False
+
+# Enable auto setting the terminal title.
+# c.TerminalInteractiveShell.term_title = False
+
+# 
+# c.TerminalInteractiveShell.object_info_string_level = 0
+
+# Deprecated, use PromptManager.out_template
+# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
+
+# Set the size of the output cache.  The default is 1000, you can change it
+# permanently in your config file.  Setting it to 0 completely disables the
+# caching system, and the minimum value accepted is 20 (if you provide a value
+# less than 20, it is reset to 0 and a warning is issued).  This limit is
+# defined because otherwise you'll spend more time re-flushing a too small cache
+# than working
+# c.TerminalInteractiveShell.cache_size = 1000
+
+# Automatically call the pdb debugger after every exception.
+# c.TerminalInteractiveShell.pdb = False
+
+#------------------------------------------------------------------------------
+# 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 = 'Out[\\#]: '
+
+# Continuation prompt.
+# c.PromptManager.in2_template = '   .\\D.: '
+
+# 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 = 'In [\\#]: '
+
+# 
+# c.PromptManager.color_scheme = 'Linux'
+
+#------------------------------------------------------------------------------
+# 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.external.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.external.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
+
+# 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

File ipython/profile_default/ipython_notebook_config.py

+# Configuration file for ipython-notebook.
+
+c = get_config()
+
+#------------------------------------------------------------------------------
+# NotebookApp configuration
+#------------------------------------------------------------------------------
+
+# NotebookApp will inherit config from: BaseIPythonApplication, Application
+
+# Whether to prevent editing/execution of notebooks.
+# c.NotebookApp.read_only = False
+
+# Whether to enable MathJax for typesetting math/TeX
+# 
+# MathJax is the javascript library IPython uses to render math/LaTeX. It is
+# very large, so you may want to disable it if you have a slow internet
+# connection, or for offline use of the notebook.
+# 
+# When disabled, equations etc. will appear as their untransformed TeX source.
+# c.NotebookApp.enable_mathjax = True
+
+# Hashed password to use for web authentication.
+# 
+# To generate, type in a python/IPython shell:
+# 
+#   from IPython.lib import passwd; passwd()
+# 
+# The string should be of the form type:salt:hashed-password.
+# c.NotebookApp.password = u''
+
+# The full path to an SSL/TLS certificate file.
+# c.NotebookApp.certfile = u''
+
+# The url for MathJax.js.
+# c.NotebookApp.mathjax_url = ''
+
+# The IP address the notebook server will listen on.
+# c.NotebookApp.ip = '127.0.0.1'
+
+# Whether to create profile dir if it doesn't exist
+# c.NotebookApp.auto_create = False
+
+# The IPython profile to use.
+# c.NotebookApp.profile = u'default'
+
+# Supply overrides for the tornado.web.Application that the IPython notebook
+# uses.
+# c.NotebookApp.webapp_settings = {}
+
+# The full path to a private key file for usage with SSL/TLS.
+# c.NotebookApp.keyfile = u''
+
+# Whether to open in a browser after starting.
+# c.NotebookApp.open_browser = True
+
+# Set the log level by value or name.
+# c.NotebookApp.log_level = 20
+
+# Whether to install the default config files into the profile dir. If a new
+# profile is being created, and IPython contains config files for that profile,
+# then they will be staged into the new directory.  Otherwise, default config
+# files will be automatically generated.
+# c.NotebookApp.copy_config_files = False
+
+# Create a massive crash report when IPython enconters what may be an internal
+# error.  The default is to append a short message to the usual traceback
+# c.NotebookApp.verbose_crash = False
+
+# The name of the IPython directory. This directory is used for logging
+# configuration (through profiles), history storage, etc. The default is usually
+# $HOME/.ipython. This options can also be specified through the environment
+# variable IPYTHON_DIR.
+# c.NotebookApp.ipython_dir = u'/export/ufs1/ccw/.ipython'
+
+# The port the notebook server will listen on.
+# c.NotebookApp.port = 8888
+
+# Whether to overwrite existing config files when copying
+# c.NotebookApp.overwrite = False
+
+#------------------------------------------------------------------------------
+# IPKernelApp configuration
+#------------------------------------------------------------------------------
+
+# IPython: an enhanced interactive Python shell.
+
+# IPKernelApp will inherit config from: KernelApp, BaseIPythonApplication,
+# Application, InteractiveShellApp
+
+# The importstring for the DisplayHook factory
+# c.IPKernelApp.displayhook_class = 'IPython.zmq.displayhook.ZMQDisplayHook'
+
+# Set the IP or interface on which the kernel will listen.
+# c.IPKernelApp.ip = '127.0.0.1'
+
+# Pre-load matplotlib and numpy for interactive use, selecting a particular
+# matplotlib backend and loop integration.
+# c.IPKernelApp.pylab = None
+
+# Create a massive crash report when IPython enconters what may be an internal
+# error.  The default is to append a short message to the usual traceback
+# c.IPKernelApp.verbose_crash = False
+
+# set the shell (XREP) port [default: random]
+# c.IPKernelApp.shell_port = 0
+
+# Whether to overwrite existing config files when copying
+# c.IPKernelApp.overwrite = False
+
+# Execute the given command string.
+# c.IPKernelApp.code_to_run = ''
+
+# set the stdin (XREQ) port [default: random]
+# c.IPKernelApp.stdin_port = 0
+
+# Set the log level by value or name.
+# c.IPKernelApp.log_level = 30
+
+# lines of code to run at IPython startup.
+# c.IPKernelApp.exec_lines = []
+
+# The importstring for the OutStream factory
+# c.IPKernelApp.outstream_class = 'IPython.zmq.iostream.OutStream'
+
+# Whether to create profile dir if it doesn't exist
+# c.IPKernelApp.auto_create = False
+
+# set the heartbeat port [default: random]
+# c.IPKernelApp.hb_port = 0
+
+# redirect stdout to the null device
+# c.IPKernelApp.no_stdout = False
+
+# dotted module name of an IPython extension to load.
+# c.IPKernelApp.extra_extension = ''
+
+# A file to be run
+# c.IPKernelApp.file_to_run = ''
+
+# The IPython profile to use.
+# c.IPKernelApp.profile = u'default'
+
+# 
+# c.IPKernelApp.parent_appname = u''
+
+# kill this process if its parent dies.  On Windows, the argument specifies the
+# HANDLE of the parent process, otherwise it is simply boolean.
+# c.IPKernelApp.parent = 0
+
+# JSON file in which to store connection info [default: kernel-<pid>.json]
+# 
+# This file will contain the IP, ports, and authentication key needed to connect
+# clients to this kernel. By default, this file will be created in the security-
+# dir of the current profile, but can be specified by absolute path.
+# c.IPKernelApp.connection_file = ''
+
+# If true, an 'import *' is done from numpy and pylab, when using pylab
+# c.IPKernelApp.pylab_import_all = True
+
+# The name of the IPython directory. This directory is used for logging
+# configuration (through profiles), history storage, etc. The default is usually
+# $HOME/.ipython. This options can also be specified through the environment
+# variable IPYTHON_DIR.
+# c.IPKernelApp.ipython_dir = u'/export/ufs1/ccw/.ipython'
+
+# ONLY USED ON WINDOWS Interrupt this process when the parent is signalled.
+# c.IPKernelApp.interrupt = 0
+
+# Whether to install the default config files into the profile dir. If a new
+# profile is being created, and IPython contains config files for that profile,
+# then they will be staged into the new directory.  Otherwise, default config
+# files will be automatically generated.
+# c.IPKernelApp.copy_config_files = False
+
+# List of files to run at IPython startup.
+# c.IPKernelApp.exec_files = []
+
+# A list of dotted module names of IPython extensions to load.
+# c.IPKernelApp.extensions = []
+
+# redirect stderr to the null device
+# c.IPKernelApp.no_stderr = False
+
+# set the iopub (PUB) port [default: random]
+# c.IPKernelApp.iopub_port = 0
+
+#------------------------------------------------------------------------------
+# ZMQInteractiveShell configuration
+#------------------------------------------------------------------------------
+
+# A subclass of InteractiveShell for ZMQ.
+
+# ZMQInteractiveShell will inherit config from: InteractiveShell
+
+# Use colors for displaying information about objects. Because this information
+# is passed through a pager (like 'less'), and some pagers get confused with
+# color codes, this capability can be turned off.
+# c.ZMQInteractiveShell.color_info = True
+
+# 
+# c.ZMQInteractiveShell.history_length = 10000
+
+# Don't call post-execute functions that have failed in the past.
+# c.ZMQInteractiveShell.disable_failing_post_execute = False
+
+# Show rewritten input, e.g. for autocall.
+# c.ZMQInteractiveShell.show_rewritten_input = True
+
+# Set the color scheme (NoColor, Linux, or LightBG).
+# c.ZMQInteractiveShell.colors = 'Linux'
+
+# 
+# c.ZMQInteractiveShell.separate_in = '\n'
+
+# Deprecated, use PromptManager.in2_template
+# c.ZMQInteractiveShell.prompt_in2 = '   .\\D.: '
+
+# 
+# c.ZMQInteractiveShell.separate_out = ''
+
+# Deprecated, use PromptManager.in_template
+# c.ZMQInteractiveShell.prompt_in1 = 'In [\\#]: '
+
+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
+# module which reloads changes in modules recursively (it replaces the reload()
+# function, so you don't need to change anything to use it). deep_reload()
+# forces a full reload of modules whose code may have changed, which the default
+# reload() function does not.  When deep_reload is off, IPython will use the
+# normal reload(), but deep_reload will still be available as dreload().
+# c.ZMQInteractiveShell.deep_reload = False
+
+# Make IPython automatically call any callable object even if you didn't type
+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
+# it is not applied if there are no more arguments on the line, and '2' for
+# 'full' autocall, where all callable objects are automatically called (even if
+# no arguments are present).
+# c.ZMQInteractiveShell.autocall = 0
+
+# 
+# c.ZMQInteractiveShell.separate_out2 = ''
+
+# Deprecated, use PromptManager.justify
+# c.ZMQInteractiveShell.prompts_pad_left = True
+
+# 
+# c.ZMQInteractiveShell.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']
+
+# Enable magic commands to be called without the leading %.
+# c.ZMQInteractiveShell.automagic = True
+
+# 
+# c.ZMQInteractiveShell.debug = False
+
+# 
+# c.ZMQInteractiveShell.object_info_string_level = 0
+
+# 
+# c.ZMQInteractiveShell.ipython_dir = ''
+
+# 
+# c.ZMQInteractiveShell.readline_remove_delims = '-/~'
+
+# Start logging to the default log file.
+# c.ZMQInteractiveShell.logstart = False
+
+# The name of the logfile to use.
+# c.ZMQInteractiveShell.logfile = ''
+
+# 
+# c.ZMQInteractiveShell.wildcards_case_sensitive = True
+
+# Save multi-line entries as one entry in readline history
+# c.ZMQInteractiveShell.multiline_history = True
+
+# Start logging to the given file in append mode.
+# c.ZMQInteractiveShell.logappend = ''
+
+# 
+# c.ZMQInteractiveShell.xmode = 'Context'
+
+# 
+# c.ZMQInteractiveShell.quiet = False
+
+# Deprecated, use PromptManager.out_template
+# c.ZMQInteractiveShell.prompt_out = 'Out[\\#]: '
+
+# Set the size of the output cache.  The default is 1000, you can change it
+# permanently in your config file.  Setting it to 0 completely disables the
+# caching system, and the minimum value accepted is 20 (if you provide a value
+# less than 20, it is reset to 0 and a warning is issued).  This limit is
+# defined because otherwise you'll spend more time re-flushing a too small cache
+# than working
+# c.ZMQInteractiveShell.cache_size = 1000
+
+# Automatically call the pdb debugger after every exception.
+# c.ZMQInteractiveShell.pdb = False
+
+#------------------------------------------------------------------------------
+# 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''
+
+#------------------------------------------------------------------------------
+# Session configuration
+#------------------------------------------------------------------------------
+
+# Object for handling serialization and sending of messages.
+# 
+# The Session object handles building messages and sending them with ZMQ sockets
+# or ZMQStream objects.  Objects can communicate with each other over the
+# network via Session objects, and only need to work with the dict-based IPython
+# message spec. The Session will handle serialization/deserialization, security,
+# and metadata.
+# 
+# Sessions support configurable serialiization via packer/unpacker traits, and
+# signing with HMAC digests via the key/keyfile traits.
+# 
+# Parameters ----------
+# 
+# debug : bool
+#     whether to trigger extra debugging statements
+# packer/unpacker : str : 'json', 'pickle' or import_string
+#     importstrings for methods to serialize message parts.  If just
+#     'json' or 'pickle', predefined JSON and pickle packers will be used.
+#     Otherwise, the entire importstring must be used.
+# 
+#     The functions must accept at least valid JSON input, and output *bytes*.
+# 
+#     For example, to use msgpack:
+#     packer = 'msgpack.packb', unpacker='msgpack.unpackb'
+# pack/unpack : callables
+#     You can also set the pack/unpack callables for serialization directly.
+# session : bytes
+#     the ID of this Session object.  The default is to generate a new UUID.
+# username : unicode
+#     username added to message headers.  The default is to ask the OS.
+# key : bytes
+#     The key used to initialize an HMAC signature.  If unset, messages
+#     will not be signed or checked.
+# keyfile : filepath
+#     The file containing a key.  If this is set, `key` will be initialized
+#     to the contents of the file.
+
+# Username for the Session. Default is your system username.
+# c.Session.username = 'ccw'
+
+# The name of the packer for serializing messages. Should be one of 'json',
+# 'pickle', or an import name for a custom callable serializer.
+# c.Session.packer = 'json'
+
+# The UUID identifying this session.
+# c.Session.session = u''
+
+# execution key, for extra authentication.
+# c.Session.key = ''
+
+# Debug output in the Session
+# c.Session.debug = False
+
+# The name of the unpacker for unserializing messages. Only used with custom
+# functions for `packer`.
+# c.Session.unpacker = 'json'
+
+# path to file containing execution key.
+# c.Session.keyfile = ''
+
+#------------------------------------------------------------------------------
+# MappingKernelManager configuration
+#------------------------------------------------------------------------------
+
+# A KernelManager that handles notebok mapping and HTTP error handling
+
+# The max raw message size accepted from the browser over a WebSocket
+# connection.
+# c.MappingKernelManager.max_msg_size = 65536
+
+# Kernel heartbeat interval in seconds.
+# c.MappingKernelManager.time_to_dead = 3.0
+
+#------------------------------------------------------------------------------
+# NotebookManager configuration
+#------------------------------------------------------------------------------
+
+# Automatically create a Python script when saving the notebook.
+# 
+# For easier use of import, %run and %loadpy across notebooks, a <notebook-
+# name>.py script will be created next to any <notebook-name>.ipynb on each
+# save.  This can also be set with the short `--script` flag.
+# c.NotebookManager.save_script = False
+
+# The directory to use for notebooks.
+# c.NotebookManager.notebook_dir = '/export/ufs1/ccw'

File ipython/profile_default/startup/00-virtualenv.py

+import site
+from os import environ
+from os.path import join
+import sys
+
+if 'VIRTUAL_ENV' in environ:
+    virtual_env = join(environ.get('VIRTUAL_ENV'),
+                       'lib',
+                       'python%d.%d' % sys.version_info[:2],
+                       'site-packages')
+
+    # Remember original sys.path.
+    prev_sys_path = list(sys.path)
+    site.addsitedir(virtual_env)
+
+    # Reorder sys.path so new directories at the front.
+    new_sys_path = []
+    for item in list(sys.path):
+        if item not in prev_sys_path:
+            new_sys_path.append(item)
+            sys.path.remove(item)
+    sys.path[1:1] = new_sys_path
+
+    print 'VIRTUAL_ENV ->', virtual_env
+    del virtual_env
+
+del site, environ, join, sys

File ipython/profile_default/startup/README

+This is the IPython startup directory
+
+.py and .ipy files in this directory will be run *prior* to any code or files specified
+via the exec_lines or exec_files configurables whenever you load this profile.
+
+Files will be run in lexicographical order, so you can control the execution order of files
+with a prefix, e.g.::
+
+    00-first.py
+    50-middle.py
+    99-last.ipy