robhudson (owner)

Fork Of

Revisions

  • c1f6e7 robhudson Fri Mar 20 15:09:07 -0700 2009
  • 2fdee9 Fri Mar 20 12:36:00 -0700 2009
gist: 82605 Download_button fork
public
Description:
Fork of Jacob's ipython config to make the prompt just like standard Python
Public Clone URL: git://gist.github.com/82605.git
Embed All Files: show embed
~/.ipython/ipy_user_conf.py #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 = ''
o.prompt_out = ''
o.prompts_pad_left = 0
o.nosep = 1
 
# 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)