##// END OF EJS Templates
easy_install ipython==dev works correctly now...
easy_install ipython==dev works correctly now user config changes, if rc.banner is string, use it as is. %pycat accepts a string argument and pages it's contents.

File last commit:

r176:3174f903
r176:3174f903
Show More
ipy_user_conf.py
64 lines | 1.8 KiB | text/x-python | PythonLexer
vivainio
config changes
r130 """ User configuration file for IPython
This is a more flexible and safe way to configure ipython than *rc files
(ipythonrc, ipythonrc-pysh etc.)
vivainio
easy_install ipython==dev works correctly now...
r176 This file is always imported on ipython startup. You can import the
vivainio
config changes
r130 ipython extensions you need here (see IPython/Extensions directory).
vivainio
easy_install ipython==dev works correctly now...
r176 Feel free to edit this file to customize your ipython experience.
Note that as such this file does nothing, for backwards compatibility.
To enable this config file, uncomment the call to main() at the end.
Try it out!
vivainio
Changed startup message, and be a bit more conservative with the settings
r131
vivainio
config changes
r130 """
vivainio
Changed startup message, and be a bit more conservative with the settings
r131 # Most of your config files and extensions will probably start with this import
vivainio
config changes
r130
vivainio
ipapi rehaul, moved api methods to class IPApi. Usage didn't change...
r146 from IPython import ipapi
vivainio
rehashing now done by the config file alone - providing the system...
r132 import os
vivainio
easy_install ipython==dev works correctly now...
r176 from IPython import Release
vivainio
config changes
r130
vivainio
easy_install ipython==dev works correctly now...
r176 import sys
vivainio
config changes
r130
vivainio
easy_install ipython==dev works correctly now...
r176
def main():
ip = ipapi.get()
o = ip.options()
# autocall to "full" mode (smart mode is default, I like full mode)
o.autocall = 1
vivainio
config changes
r130 # Jason Orendorff's path class is handy to have in user namespace
# if you are doing shell-like stuff
vivainio
change "profile not found" warning heuristics (only warn...
r175 try:
ip.ex("from path import path" )
except ImportError:
pass
vivainio
easy_install ipython==dev works correctly now...
r176
# Get prompt with working dir
vivainio
config changes
r130
vivainio
easy_install ipython==dev works correctly now...
r176 o.prompt_in1= '\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
o.prompt_in2= '\C_Green|\C_LightGreen\D\C_Green> '
o.prompt_out= '<\#> '
# I like my banner minimal.
o.banner = "Py %s IPy %s\n" % (sys.version.split('\n')[0],Release.version)
# make 'd' an alias for ls -F
ip.magic('alias d ls -F --color=auto')
# Make available all system commands through "rehashing" immediately.
# You can comment these lines out to speed up startup on very slow
# machines, and to conserve a bit of memory. Note that pysh profile does this
# automatically
#if os.name=='posix':
# ip.magic('rehash')
#else:
# #slightly slower, but better results esp. with Windows
# ip.magic('rehashx')
vivainio
Made missing ipy_*_conf.py files less intrusive
r134
vivainio
easy_install ipython==dev works correctly now...
r176 #main()