Created
March 20, 2009 19:35
-
-
Save jacobian/82534 to your computer and use it in GitHub Desktop.
This file contains 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
import os | |
import time | |
import readline | |
import ipy_defaults | |
import IPython.ipapi | |
import ipy_stock_completers | |
ip = IPython.ipapi.get() | |
o = ip.options | |
o.autocall = False | |
o.autoedit_syntax = True | |
o.autoindent = True | |
o.automagic = True | |
o.banner = False | |
o.confirm_exit = False | |
o.messages = False | |
# Make the prompt a bit more like the standard shell. | |
o.prompt_in1 = '[\#] >>> ' | |
o.prompt_in2 = ' .\D.: ' | |
o.prompt_out = '[\#] : ' | |
o.separate_out = '' | |
o.separate_out2 = '' | |
# Set up logging by Y/M/D directories | |
logdir = os.path.expanduser(time.strftime("~/.ipython/logs/%Y/%m/")) | |
logfile = os.path.join(logdir, time.strftime("%d.log")) | |
if not os.path.exists(logdir): | |
os.makedirs(logdir) | |
ip.magic("logstart %s append" % logfile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment