Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
vivainio
- Fri, 20 Jan 2006 23:27:53
Show More
IPython/Extensions/ipy_system_conf.py
0
created
644
+19
0
@@
-0,0
+1,19
b''
1
""" System wide configuration file for IPython.
2
3
This will be imported by ipython for all users.
4
5
After this ipy_user_conf.py is imported, user specific configuration
6
should reside there.
7
8
"""
9
10
import IPython.ipapi as ip
11
12
# add system wide configuration information, import extensions etc. here.
13
# nothing here is essential
14
15
import sys
16
17
if sys . version_info >= ( 2 , 4 ):
18
# rehashdir extension requires python 2.4
19
import ext_rehashdir
No newline at end of file
IPython/UserConfig/ipy_user_conf.py
0
created
644
+40
0
@@
-0,0
+1,40
b''
1
""" User configuration file for IPython
2
3
This is a more flexible and safe way to configure ipython than *rc files
4
(ipythonrc, ipythonrc-pysh etc.)
5
6
This file is always imported on ipython startup. You should import all the
7
ipython extensions you need here (see IPython/Extensions directory).
8
9
"""
10
11
# see IPython.ipapi for configuration tips
12
13
import IPython.ipapi as ip
14
15
16
o = ip . options ()
17
# autocall 1 ('smart') is default anyway, this is just an
18
# example on how to set an option
19
o . autocall = 1
20
21
if o . profile == 'pysh' :
22
# Jason Orendorff's path class is handy to have in user namespace
23
# if you are doing shell-like stuff
24
ip . ex ( "from IPython.path import path" )
25
26
# get pysh-like prompt for all profiles. Comment these out for "old style"
27
# prompts, as determined by *rc files
28
29
o . prompt_in1 = '\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> '
30
o . prompt_in2 = '\C_Green|\C_LightGreen\D\C_Green> '
31
o . prompt_out = '<\#> '
32
33
# make 'd' an alias for ls -F
34
35
ip . magic ( 'alias d ls -F --color=auto' )
36
37
# Make available all system commands. Comment out to speed up
38
# startup os slow machines and conserve a bit of memory
39
40
ip . magic ( 'rehashx' )
No newline at end of file
IPython/ipapi.py
0
+8
-1
@@
-132,5
+132,12
b' class ashook:'
132
132
133
133
134
def ex ( cmd ):
134
def ex ( cmd ):
135
""" Execute a normal python statement """
135
""" Execute a normal python statement in user namespace """
136
exec cmd in user_ns ()
136
exec cmd in user_ns ()
137
138
def ev ( expr ):
139
""" Evaluate python expression expr in user namespace
140
141
Returns the result """
142
return eval ( expr , user_ns ())
143
No newline at end of file
IPython/ipmaker.py
0
+9
-1
@@
-6,7
+6,7
b' Requires Python 2.1 or better.'
6
6
7
This file contains the main make_IPython() starter function.
7
This file contains the main make_IPython() starter function.
8
8
9
$Id: ipmaker.py 1033 2006-01-20 10:41:20Z vivainio $"""
9
$Id: ipmaker.py 1037 2006-01-20 23:27:53 Z vivainio $"""
10
10
11
#*****************************************************************************
11
#*****************************************************************************
12
# Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu>
12
# Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu>
@@
-602,6
+602,14
b" object? -> Details about 'object'. ?object also works, ?? prints more."
602
else :
602
else :
603
IP . safe_execfile ( os . path . expanduser ( file ), IP . user_ns )
603
IP . safe_execfile ( os . path . expanduser ( file ), IP . user_ns )
604
604
605
# finally, try importing ipy_*_conf for final configuration
606
try :
607
import ipy_system_conf
608
import ipy_user_conf
609
610
except ImportError :
611
IP . InteractiveTB ()
612
605
# release stdout and stderr and save config log into a global summary
613
# release stdout and stderr and save config log into a global summary
606
msg . config . release_all ()
614
msg . config . release_all ()
607
if IP_rc . messages :
615
if IP_rc . messages :
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages