+""" 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
+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
+ip = IPython.ipapi.get()
+# You probably want to uncomment this if you did %upgrade -nolegacy
+ # 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
+ # ... or many others, try 'ipy_editors??' after import to see them
+ #ipy_editors.install_editor("c:/opt/jed +$line $file")
+ # An example on how to set options
+ # 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 autoreloading of modules (%autoreload, %aimport)
+ # For winpdb support (%wdb)
+ # For bzr completer, requires bzrlib (the python installation of bzr)
+ # Tab completer that is not quite so picky (i.e.
+ # "foo".<TAB> and str(2).<TAB> will work). Complete
+ #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
+ #readline.parse_and_bind('set completion-query-items 1000')
+ #readline.parse_and_bind('set page-completions no')
+# some config helper functions you can use
+ """ Usage: import_all("os sys") """
+ for m in modules.split():
+ ip.ex("from %s import *" % m)
+ """ Execute a file in user namespace """
+ ip.ex('execfile("%s")' % os.path.expanduser(fname))