##// END OF EJS Templates
Macros are now simple callables, no special handling in Prompt.py
vivainio -
Show More
@@ -1,595 +1,588 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """
2 """
3 Classes for handling input/output prompts.
3 Classes for handling input/output prompts.
4
4
5 $Id: Prompts.py 2192 2007-04-01 20:51:06Z fperez $"""
5 $Id: Prompts.py 2349 2007-05-15 16:20:35Z vivainio $"""
6
6
7 #*****************************************************************************
7 #*****************************************************************************
8 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
8 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
9 #
9 #
10 # Distributed under the terms of the BSD License. The full license is in
10 # Distributed under the terms of the BSD License. The full license is in
11 # the file COPYING, distributed as part of this software.
11 # the file COPYING, distributed as part of this software.
12 #*****************************************************************************
12 #*****************************************************************************
13
13
14 from IPython import Release
14 from IPython import Release
15 __author__ = '%s <%s>' % Release.authors['Fernando']
15 __author__ = '%s <%s>' % Release.authors['Fernando']
16 __license__ = Release.license
16 __license__ = Release.license
17 __version__ = Release.version
17 __version__ = Release.version
18
18
19 #****************************************************************************
19 #****************************************************************************
20 # Required modules
20 # Required modules
21 import __builtin__
21 import __builtin__
22 import os
22 import os
23 import socket
23 import socket
24 import sys
24 import sys
25 import time
25 import time
26
26
27 # IPython's own
27 # IPython's own
28 from IPython import ColorANSI
28 from IPython import ColorANSI
29 from IPython.Itpl import ItplNS
29 from IPython.Itpl import ItplNS
30 from IPython.ipstruct import Struct
30 from IPython.ipstruct import Struct
31 from IPython.macro import Macro
31 from IPython.macro import Macro
32 from IPython.genutils import *
32 from IPython.genutils import *
33
33
34 #****************************************************************************
34 #****************************************************************************
35 #Color schemes for Prompts.
35 #Color schemes for Prompts.
36
36
37 PromptColors = ColorANSI.ColorSchemeTable()
37 PromptColors = ColorANSI.ColorSchemeTable()
38 InputColors = ColorANSI.InputTermColors # just a shorthand
38 InputColors = ColorANSI.InputTermColors # just a shorthand
39 Colors = ColorANSI.TermColors # just a shorthand
39 Colors = ColorANSI.TermColors # just a shorthand
40
40
41 PromptColors.add_scheme(ColorANSI.ColorScheme(
41 PromptColors.add_scheme(ColorANSI.ColorScheme(
42 'NoColor',
42 'NoColor',
43 in_prompt = InputColors.NoColor, # Input prompt
43 in_prompt = InputColors.NoColor, # Input prompt
44 in_number = InputColors.NoColor, # Input prompt number
44 in_number = InputColors.NoColor, # Input prompt number
45 in_prompt2 = InputColors.NoColor, # Continuation prompt
45 in_prompt2 = InputColors.NoColor, # Continuation prompt
46 in_normal = InputColors.NoColor, # color off (usu. Colors.Normal)
46 in_normal = InputColors.NoColor, # color off (usu. Colors.Normal)
47
47
48 out_prompt = Colors.NoColor, # Output prompt
48 out_prompt = Colors.NoColor, # Output prompt
49 out_number = Colors.NoColor, # Output prompt number
49 out_number = Colors.NoColor, # Output prompt number
50
50
51 normal = Colors.NoColor # color off (usu. Colors.Normal)
51 normal = Colors.NoColor # color off (usu. Colors.Normal)
52 ))
52 ))
53
53
54 # make some schemes as instances so we can copy them for modification easily:
54 # make some schemes as instances so we can copy them for modification easily:
55 __PColLinux = ColorANSI.ColorScheme(
55 __PColLinux = ColorANSI.ColorScheme(
56 'Linux',
56 'Linux',
57 in_prompt = InputColors.Green,
57 in_prompt = InputColors.Green,
58 in_number = InputColors.LightGreen,
58 in_number = InputColors.LightGreen,
59 in_prompt2 = InputColors.Green,
59 in_prompt2 = InputColors.Green,
60 in_normal = InputColors.Normal, # color off (usu. Colors.Normal)
60 in_normal = InputColors.Normal, # color off (usu. Colors.Normal)
61
61
62 out_prompt = Colors.Red,
62 out_prompt = Colors.Red,
63 out_number = Colors.LightRed,
63 out_number = Colors.LightRed,
64
64
65 normal = Colors.Normal
65 normal = Colors.Normal
66 )
66 )
67 # Don't forget to enter it into the table!
67 # Don't forget to enter it into the table!
68 PromptColors.add_scheme(__PColLinux)
68 PromptColors.add_scheme(__PColLinux)
69
69
70 # Slightly modified Linux for light backgrounds
70 # Slightly modified Linux for light backgrounds
71 __PColLightBG = __PColLinux.copy('LightBG')
71 __PColLightBG = __PColLinux.copy('LightBG')
72
72
73 __PColLightBG.colors.update(
73 __PColLightBG.colors.update(
74 in_prompt = InputColors.Blue,
74 in_prompt = InputColors.Blue,
75 in_number = InputColors.LightBlue,
75 in_number = InputColors.LightBlue,
76 in_prompt2 = InputColors.Blue
76 in_prompt2 = InputColors.Blue
77 )
77 )
78 PromptColors.add_scheme(__PColLightBG)
78 PromptColors.add_scheme(__PColLightBG)
79
79
80 del Colors,InputColors
80 del Colors,InputColors
81
81
82 #-----------------------------------------------------------------------------
82 #-----------------------------------------------------------------------------
83 def multiple_replace(dict, text):
83 def multiple_replace(dict, text):
84 """ Replace in 'text' all occurences of any key in the given
84 """ Replace in 'text' all occurences of any key in the given
85 dictionary by its corresponding value. Returns the new string."""
85 dictionary by its corresponding value. Returns the new string."""
86
86
87 # Function by Xavier Defrang, originally found at:
87 # Function by Xavier Defrang, originally found at:
88 # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81330
88 # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81330
89
89
90 # Create a regular expression from the dictionary keys
90 # Create a regular expression from the dictionary keys
91 regex = re.compile("(%s)" % "|".join(map(re.escape, dict.keys())))
91 regex = re.compile("(%s)" % "|".join(map(re.escape, dict.keys())))
92 # For each match, look-up corresponding value in dictionary
92 # For each match, look-up corresponding value in dictionary
93 return regex.sub(lambda mo: dict[mo.string[mo.start():mo.end()]], text)
93 return regex.sub(lambda mo: dict[mo.string[mo.start():mo.end()]], text)
94
94
95 #-----------------------------------------------------------------------------
95 #-----------------------------------------------------------------------------
96 # Special characters that can be used in prompt templates, mainly bash-like
96 # Special characters that can be used in prompt templates, mainly bash-like
97
97
98 # If $HOME isn't defined (Windows), make it an absurd string so that it can
98 # If $HOME isn't defined (Windows), make it an absurd string so that it can
99 # never be expanded out into '~'. Basically anything which can never be a
99 # never be expanded out into '~'. Basically anything which can never be a
100 # reasonable directory name will do, we just want the $HOME -> '~' operation
100 # reasonable directory name will do, we just want the $HOME -> '~' operation
101 # to become a no-op. We pre-compute $HOME here so it's not done on every
101 # to become a no-op. We pre-compute $HOME here so it's not done on every
102 # prompt call.
102 # prompt call.
103
103
104 # FIXME:
104 # FIXME:
105
105
106 # - This should be turned into a class which does proper namespace management,
106 # - This should be turned into a class which does proper namespace management,
107 # since the prompt specials need to be evaluated in a certain namespace.
107 # since the prompt specials need to be evaluated in a certain namespace.
108 # Currently it's just globals, which need to be managed manually by code
108 # Currently it's just globals, which need to be managed manually by code
109 # below.
109 # below.
110
110
111 # - I also need to split up the color schemes from the prompt specials
111 # - I also need to split up the color schemes from the prompt specials
112 # somehow. I don't have a clean design for that quite yet.
112 # somehow. I don't have a clean design for that quite yet.
113
113
114 HOME = os.environ.get("HOME","//////:::::ZZZZZ,,,~~~")
114 HOME = os.environ.get("HOME","//////:::::ZZZZZ,,,~~~")
115
115
116 # We precompute a few more strings here for the prompt_specials, which are
116 # We precompute a few more strings here for the prompt_specials, which are
117 # fixed once ipython starts. This reduces the runtime overhead of computing
117 # fixed once ipython starts. This reduces the runtime overhead of computing
118 # prompt strings.
118 # prompt strings.
119 USER = os.environ.get("USER")
119 USER = os.environ.get("USER")
120 HOSTNAME = socket.gethostname()
120 HOSTNAME = socket.gethostname()
121 HOSTNAME_SHORT = HOSTNAME.split(".")[0]
121 HOSTNAME_SHORT = HOSTNAME.split(".")[0]
122 ROOT_SYMBOL = "$#"[os.name=='nt' or os.getuid()==0]
122 ROOT_SYMBOL = "$#"[os.name=='nt' or os.getuid()==0]
123
123
124 prompt_specials_color = {
124 prompt_specials_color = {
125 # Prompt/history count
125 # Prompt/history count
126 '%n' : '${self.col_num}' '${self.cache.prompt_count}' '${self.col_p}',
126 '%n' : '${self.col_num}' '${self.cache.prompt_count}' '${self.col_p}',
127 r'\#': '${self.col_num}' '${self.cache.prompt_count}' '${self.col_p}',
127 r'\#': '${self.col_num}' '${self.cache.prompt_count}' '${self.col_p}',
128 # Just the prompt counter number, WITHOUT any coloring wrappers, so users
128 # Just the prompt counter number, WITHOUT any coloring wrappers, so users
129 # can get numbers displayed in whatever color they want.
129 # can get numbers displayed in whatever color they want.
130 r'\N': '${self.cache.prompt_count}',
130 r'\N': '${self.cache.prompt_count}',
131 # Prompt/history count, with the actual digits replaced by dots. Used
131 # Prompt/history count, with the actual digits replaced by dots. Used
132 # mainly in continuation prompts (prompt_in2)
132 # mainly in continuation prompts (prompt_in2)
133 r'\D': '${"."*len(str(self.cache.prompt_count))}',
133 r'\D': '${"."*len(str(self.cache.prompt_count))}',
134 # Current working directory
134 # Current working directory
135 r'\w': '${os.getcwd()}',
135 r'\w': '${os.getcwd()}',
136 # Current time
136 # Current time
137 r'\t' : '${time.strftime("%H:%M:%S")}',
137 r'\t' : '${time.strftime("%H:%M:%S")}',
138 # Basename of current working directory.
138 # Basename of current working directory.
139 # (use os.sep to make this portable across OSes)
139 # (use os.sep to make this portable across OSes)
140 r'\W' : '${os.getcwd().split("%s")[-1]}' % os.sep,
140 r'\W' : '${os.getcwd().split("%s")[-1]}' % os.sep,
141 # These X<N> are an extension to the normal bash prompts. They return
141 # These X<N> are an extension to the normal bash prompts. They return
142 # N terms of the path, after replacing $HOME with '~'
142 # N terms of the path, after replacing $HOME with '~'
143 r'\X0': '${os.getcwd().replace("%s","~")}' % HOME,
143 r'\X0': '${os.getcwd().replace("%s","~")}' % HOME,
144 r'\X1': '${self.cwd_filt(1)}',
144 r'\X1': '${self.cwd_filt(1)}',
145 r'\X2': '${self.cwd_filt(2)}',
145 r'\X2': '${self.cwd_filt(2)}',
146 r'\X3': '${self.cwd_filt(3)}',
146 r'\X3': '${self.cwd_filt(3)}',
147 r'\X4': '${self.cwd_filt(4)}',
147 r'\X4': '${self.cwd_filt(4)}',
148 r'\X5': '${self.cwd_filt(5)}',
148 r'\X5': '${self.cwd_filt(5)}',
149 # Y<N> are similar to X<N>, but they show '~' if it's the directory
149 # Y<N> are similar to X<N>, but they show '~' if it's the directory
150 # N+1 in the list. Somewhat like %cN in tcsh.
150 # N+1 in the list. Somewhat like %cN in tcsh.
151 r'\Y0': '${self.cwd_filt2(0)}',
151 r'\Y0': '${self.cwd_filt2(0)}',
152 r'\Y1': '${self.cwd_filt2(1)}',
152 r'\Y1': '${self.cwd_filt2(1)}',
153 r'\Y2': '${self.cwd_filt2(2)}',
153 r'\Y2': '${self.cwd_filt2(2)}',
154 r'\Y3': '${self.cwd_filt2(3)}',
154 r'\Y3': '${self.cwd_filt2(3)}',
155 r'\Y4': '${self.cwd_filt2(4)}',
155 r'\Y4': '${self.cwd_filt2(4)}',
156 r'\Y5': '${self.cwd_filt2(5)}',
156 r'\Y5': '${self.cwd_filt2(5)}',
157 # Hostname up to first .
157 # Hostname up to first .
158 r'\h': HOSTNAME_SHORT,
158 r'\h': HOSTNAME_SHORT,
159 # Full hostname
159 # Full hostname
160 r'\H': HOSTNAME,
160 r'\H': HOSTNAME,
161 # Username of current user
161 # Username of current user
162 r'\u': USER,
162 r'\u': USER,
163 # Escaped '\'
163 # Escaped '\'
164 '\\\\': '\\',
164 '\\\\': '\\',
165 # Newline
165 # Newline
166 r'\n': '\n',
166 r'\n': '\n',
167 # Carriage return
167 # Carriage return
168 r'\r': '\r',
168 r'\r': '\r',
169 # Release version
169 # Release version
170 r'\v': __version__,
170 r'\v': __version__,
171 # Root symbol ($ or #)
171 # Root symbol ($ or #)
172 r'\$': ROOT_SYMBOL,
172 r'\$': ROOT_SYMBOL,
173 }
173 }
174
174
175 # A copy of the prompt_specials dictionary but with all color escapes removed,
175 # A copy of the prompt_specials dictionary but with all color escapes removed,
176 # so we can correctly compute the prompt length for the auto_rewrite method.
176 # so we can correctly compute the prompt length for the auto_rewrite method.
177 prompt_specials_nocolor = prompt_specials_color.copy()
177 prompt_specials_nocolor = prompt_specials_color.copy()
178 prompt_specials_nocolor['%n'] = '${self.cache.prompt_count}'
178 prompt_specials_nocolor['%n'] = '${self.cache.prompt_count}'
179 prompt_specials_nocolor[r'\#'] = '${self.cache.prompt_count}'
179 prompt_specials_nocolor[r'\#'] = '${self.cache.prompt_count}'
180
180
181 # Add in all the InputTermColors color escapes as valid prompt characters.
181 # Add in all the InputTermColors color escapes as valid prompt characters.
182 # They all get added as \\C_COLORNAME, so that we don't have any conflicts
182 # They all get added as \\C_COLORNAME, so that we don't have any conflicts
183 # with a color name which may begin with a letter used by any other of the
183 # with a color name which may begin with a letter used by any other of the
184 # allowed specials. This of course means that \\C will never be allowed for
184 # allowed specials. This of course means that \\C will never be allowed for
185 # anything else.
185 # anything else.
186 input_colors = ColorANSI.InputTermColors
186 input_colors = ColorANSI.InputTermColors
187 for _color in dir(input_colors):
187 for _color in dir(input_colors):
188 if _color[0] != '_':
188 if _color[0] != '_':
189 c_name = r'\C_'+_color
189 c_name = r'\C_'+_color
190 prompt_specials_color[c_name] = getattr(input_colors,_color)
190 prompt_specials_color[c_name] = getattr(input_colors,_color)
191 prompt_specials_nocolor[c_name] = ''
191 prompt_specials_nocolor[c_name] = ''
192
192
193 # we default to no color for safety. Note that prompt_specials is a global
193 # we default to no color for safety. Note that prompt_specials is a global
194 # variable used by all prompt objects.
194 # variable used by all prompt objects.
195 prompt_specials = prompt_specials_nocolor
195 prompt_specials = prompt_specials_nocolor
196
196
197 #-----------------------------------------------------------------------------
197 #-----------------------------------------------------------------------------
198 def str_safe(arg):
198 def str_safe(arg):
199 """Convert to a string, without ever raising an exception.
199 """Convert to a string, without ever raising an exception.
200
200
201 If str(arg) fails, <ERROR: ... > is returned, where ... is the exception
201 If str(arg) fails, <ERROR: ... > is returned, where ... is the exception
202 error message."""
202 error message."""
203
203
204 try:
204 try:
205 out = str(arg)
205 out = str(arg)
206 except UnicodeError:
206 except UnicodeError:
207 try:
207 try:
208 out = arg.encode('utf_8','replace')
208 out = arg.encode('utf_8','replace')
209 except Exception,msg:
209 except Exception,msg:
210 # let's keep this little duplication here, so that the most common
210 # let's keep this little duplication here, so that the most common
211 # case doesn't suffer from a double try wrapping.
211 # case doesn't suffer from a double try wrapping.
212 out = '<ERROR: %s>' % msg
212 out = '<ERROR: %s>' % msg
213 except Exception,msg:
213 except Exception,msg:
214 out = '<ERROR: %s>' % msg
214 out = '<ERROR: %s>' % msg
215 return out
215 return out
216
216
217 class BasePrompt:
217 class BasePrompt:
218 """Interactive prompt similar to Mathematica's."""
218 """Interactive prompt similar to Mathematica's."""
219 def __init__(self,cache,sep,prompt,pad_left=False):
219 def __init__(self,cache,sep,prompt,pad_left=False):
220
220
221 # Hack: we access information about the primary prompt through the
221 # Hack: we access information about the primary prompt through the
222 # cache argument. We need this, because we want the secondary prompt
222 # cache argument. We need this, because we want the secondary prompt
223 # to be aligned with the primary one. Color table info is also shared
223 # to be aligned with the primary one. Color table info is also shared
224 # by all prompt classes through the cache. Nice OO spaghetti code!
224 # by all prompt classes through the cache. Nice OO spaghetti code!
225 self.cache = cache
225 self.cache = cache
226 self.sep = sep
226 self.sep = sep
227
227
228 # regexp to count the number of spaces at the end of a prompt
228 # regexp to count the number of spaces at the end of a prompt
229 # expression, useful for prompt auto-rewriting
229 # expression, useful for prompt auto-rewriting
230 self.rspace = re.compile(r'(\s*)$')
230 self.rspace = re.compile(r'(\s*)$')
231 # Flag to left-pad prompt strings to match the length of the primary
231 # Flag to left-pad prompt strings to match the length of the primary
232 # prompt
232 # prompt
233 self.pad_left = pad_left
233 self.pad_left = pad_left
234 # Set template to create each actual prompt (where numbers change)
234 # Set template to create each actual prompt (where numbers change)
235 self.p_template = prompt
235 self.p_template = prompt
236 self.set_p_str()
236 self.set_p_str()
237
237
238 def set_p_str(self):
238 def set_p_str(self):
239 """ Set the interpolating prompt strings.
239 """ Set the interpolating prompt strings.
240
240
241 This must be called every time the color settings change, because the
241 This must be called every time the color settings change, because the
242 prompt_specials global may have changed."""
242 prompt_specials global may have changed."""
243
243
244 import os,time # needed in locals for prompt string handling
244 import os,time # needed in locals for prompt string handling
245 loc = locals()
245 loc = locals()
246 self.p_str = ItplNS('%s%s%s' %
246 self.p_str = ItplNS('%s%s%s' %
247 ('${self.sep}${self.col_p}',
247 ('${self.sep}${self.col_p}',
248 multiple_replace(prompt_specials, self.p_template),
248 multiple_replace(prompt_specials, self.p_template),
249 '${self.col_norm}'),self.cache.user_ns,loc)
249 '${self.col_norm}'),self.cache.user_ns,loc)
250
250
251 self.p_str_nocolor = ItplNS(multiple_replace(prompt_specials_nocolor,
251 self.p_str_nocolor = ItplNS(multiple_replace(prompt_specials_nocolor,
252 self.p_template),
252 self.p_template),
253 self.cache.user_ns,loc)
253 self.cache.user_ns,loc)
254
254
255 def write(self,msg): # dbg
255 def write(self,msg): # dbg
256 sys.stdout.write(msg)
256 sys.stdout.write(msg)
257 return ''
257 return ''
258
258
259 def __str__(self):
259 def __str__(self):
260 """Return a string form of the prompt.
260 """Return a string form of the prompt.
261
261
262 This for is useful for continuation and output prompts, since it is
262 This for is useful for continuation and output prompts, since it is
263 left-padded to match lengths with the primary one (if the
263 left-padded to match lengths with the primary one (if the
264 self.pad_left attribute is set)."""
264 self.pad_left attribute is set)."""
265
265
266 out_str = str_safe(self.p_str)
266 out_str = str_safe(self.p_str)
267 if self.pad_left:
267 if self.pad_left:
268 # We must find the amount of padding required to match lengths,
268 # We must find the amount of padding required to match lengths,
269 # taking the color escapes (which are invisible on-screen) into
269 # taking the color escapes (which are invisible on-screen) into
270 # account.
270 # account.
271 esc_pad = len(out_str) - len(str_safe(self.p_str_nocolor))
271 esc_pad = len(out_str) - len(str_safe(self.p_str_nocolor))
272 format = '%%%ss' % (len(str(self.cache.last_prompt))+esc_pad)
272 format = '%%%ss' % (len(str(self.cache.last_prompt))+esc_pad)
273 return format % out_str
273 return format % out_str
274 else:
274 else:
275 return out_str
275 return out_str
276
276
277 # these path filters are put in as methods so that we can control the
277 # these path filters are put in as methods so that we can control the
278 # namespace where the prompt strings get evaluated
278 # namespace where the prompt strings get evaluated
279 def cwd_filt(self,depth):
279 def cwd_filt(self,depth):
280 """Return the last depth elements of the current working directory.
280 """Return the last depth elements of the current working directory.
281
281
282 $HOME is always replaced with '~'.
282 $HOME is always replaced with '~'.
283 If depth==0, the full path is returned."""
283 If depth==0, the full path is returned."""
284
284
285 cwd = os.getcwd().replace(HOME,"~")
285 cwd = os.getcwd().replace(HOME,"~")
286 out = os.sep.join(cwd.split(os.sep)[-depth:])
286 out = os.sep.join(cwd.split(os.sep)[-depth:])
287 if out:
287 if out:
288 return out
288 return out
289 else:
289 else:
290 return os.sep
290 return os.sep
291
291
292 def cwd_filt2(self,depth):
292 def cwd_filt2(self,depth):
293 """Return the last depth elements of the current working directory.
293 """Return the last depth elements of the current working directory.
294
294
295 $HOME is always replaced with '~'.
295 $HOME is always replaced with '~'.
296 If depth==0, the full path is returned."""
296 If depth==0, the full path is returned."""
297
297
298 cwd = os.getcwd().replace(HOME,"~").split(os.sep)
298 cwd = os.getcwd().replace(HOME,"~").split(os.sep)
299 if '~' in cwd and len(cwd) == depth+1:
299 if '~' in cwd and len(cwd) == depth+1:
300 depth += 1
300 depth += 1
301 out = os.sep.join(cwd[-depth:])
301 out = os.sep.join(cwd[-depth:])
302 if out:
302 if out:
303 return out
303 return out
304 else:
304 else:
305 return os.sep
305 return os.sep
306
306
307 class Prompt1(BasePrompt):
307 class Prompt1(BasePrompt):
308 """Input interactive prompt similar to Mathematica's."""
308 """Input interactive prompt similar to Mathematica's."""
309
309
310 def __init__(self,cache,sep='\n',prompt='In [\\#]: ',pad_left=True):
310 def __init__(self,cache,sep='\n',prompt='In [\\#]: ',pad_left=True):
311 BasePrompt.__init__(self,cache,sep,prompt,pad_left)
311 BasePrompt.__init__(self,cache,sep,prompt,pad_left)
312
312
313 def set_colors(self):
313 def set_colors(self):
314 self.set_p_str()
314 self.set_p_str()
315 Colors = self.cache.color_table.active_colors # shorthand
315 Colors = self.cache.color_table.active_colors # shorthand
316 self.col_p = Colors.in_prompt
316 self.col_p = Colors.in_prompt
317 self.col_num = Colors.in_number
317 self.col_num = Colors.in_number
318 self.col_norm = Colors.in_normal
318 self.col_norm = Colors.in_normal
319 # We need a non-input version of these escapes for the '--->'
319 # We need a non-input version of these escapes for the '--->'
320 # auto-call prompts used in the auto_rewrite() method.
320 # auto-call prompts used in the auto_rewrite() method.
321 self.col_p_ni = self.col_p.replace('\001','').replace('\002','')
321 self.col_p_ni = self.col_p.replace('\001','').replace('\002','')
322 self.col_norm_ni = Colors.normal
322 self.col_norm_ni = Colors.normal
323
323
324 def __str__(self):
324 def __str__(self):
325 self.cache.prompt_count += 1
325 self.cache.prompt_count += 1
326 self.cache.last_prompt = str_safe(self.p_str_nocolor).split('\n')[-1]
326 self.cache.last_prompt = str_safe(self.p_str_nocolor).split('\n')[-1]
327 return str_safe(self.p_str)
327 return str_safe(self.p_str)
328
328
329 def auto_rewrite(self):
329 def auto_rewrite(self):
330 """Print a string of the form '--->' which lines up with the previous
330 """Print a string of the form '--->' which lines up with the previous
331 input string. Useful for systems which re-write the user input when
331 input string. Useful for systems which re-write the user input when
332 handling automatically special syntaxes."""
332 handling automatically special syntaxes."""
333
333
334 curr = str(self.cache.last_prompt)
334 curr = str(self.cache.last_prompt)
335 nrspaces = len(self.rspace.search(curr).group())
335 nrspaces = len(self.rspace.search(curr).group())
336 return '%s%s>%s%s' % (self.col_p_ni,'-'*(len(curr)-nrspaces-1),
336 return '%s%s>%s%s' % (self.col_p_ni,'-'*(len(curr)-nrspaces-1),
337 ' '*nrspaces,self.col_norm_ni)
337 ' '*nrspaces,self.col_norm_ni)
338
338
339 class PromptOut(BasePrompt):
339 class PromptOut(BasePrompt):
340 """Output interactive prompt similar to Mathematica's."""
340 """Output interactive prompt similar to Mathematica's."""
341
341
342 def __init__(self,cache,sep='',prompt='Out[\\#]: ',pad_left=True):
342 def __init__(self,cache,sep='',prompt='Out[\\#]: ',pad_left=True):
343 BasePrompt.__init__(self,cache,sep,prompt,pad_left)
343 BasePrompt.__init__(self,cache,sep,prompt,pad_left)
344 if not self.p_template:
344 if not self.p_template:
345 self.__str__ = lambda: ''
345 self.__str__ = lambda: ''
346
346
347 def set_colors(self):
347 def set_colors(self):
348 self.set_p_str()
348 self.set_p_str()
349 Colors = self.cache.color_table.active_colors # shorthand
349 Colors = self.cache.color_table.active_colors # shorthand
350 self.col_p = Colors.out_prompt
350 self.col_p = Colors.out_prompt
351 self.col_num = Colors.out_number
351 self.col_num = Colors.out_number
352 self.col_norm = Colors.normal
352 self.col_norm = Colors.normal
353
353
354 class Prompt2(BasePrompt):
354 class Prompt2(BasePrompt):
355 """Interactive continuation prompt."""
355 """Interactive continuation prompt."""
356
356
357 def __init__(self,cache,prompt=' .\\D.: ',pad_left=True):
357 def __init__(self,cache,prompt=' .\\D.: ',pad_left=True):
358 self.cache = cache
358 self.cache = cache
359 self.p_template = prompt
359 self.p_template = prompt
360 self.pad_left = pad_left
360 self.pad_left = pad_left
361 self.set_p_str()
361 self.set_p_str()
362
362
363 def set_p_str(self):
363 def set_p_str(self):
364 import os,time # needed in locals for prompt string handling
364 import os,time # needed in locals for prompt string handling
365 loc = locals()
365 loc = locals()
366 self.p_str = ItplNS('%s%s%s' %
366 self.p_str = ItplNS('%s%s%s' %
367 ('${self.col_p2}',
367 ('${self.col_p2}',
368 multiple_replace(prompt_specials, self.p_template),
368 multiple_replace(prompt_specials, self.p_template),
369 '$self.col_norm'),
369 '$self.col_norm'),
370 self.cache.user_ns,loc)
370 self.cache.user_ns,loc)
371 self.p_str_nocolor = ItplNS(multiple_replace(prompt_specials_nocolor,
371 self.p_str_nocolor = ItplNS(multiple_replace(prompt_specials_nocolor,
372 self.p_template),
372 self.p_template),
373 self.cache.user_ns,loc)
373 self.cache.user_ns,loc)
374
374
375 def set_colors(self):
375 def set_colors(self):
376 self.set_p_str()
376 self.set_p_str()
377 Colors = self.cache.color_table.active_colors
377 Colors = self.cache.color_table.active_colors
378 self.col_p2 = Colors.in_prompt2
378 self.col_p2 = Colors.in_prompt2
379 self.col_norm = Colors.in_normal
379 self.col_norm = Colors.in_normal
380 # FIXME (2004-06-16) HACK: prevent crashes for users who haven't
380 # FIXME (2004-06-16) HACK: prevent crashes for users who haven't
381 # updated their prompt_in2 definitions. Remove eventually.
381 # updated their prompt_in2 definitions. Remove eventually.
382 self.col_p = Colors.out_prompt
382 self.col_p = Colors.out_prompt
383 self.col_num = Colors.out_number
383 self.col_num = Colors.out_number
384
384
385
385
386 #-----------------------------------------------------------------------------
386 #-----------------------------------------------------------------------------
387 class CachedOutput:
387 class CachedOutput:
388 """Class for printing output from calculations while keeping a cache of
388 """Class for printing output from calculations while keeping a cache of
389 reults. It dynamically creates global variables prefixed with _ which
389 reults. It dynamically creates global variables prefixed with _ which
390 contain these results.
390 contain these results.
391
391
392 Meant to be used as a sys.displayhook replacement, providing numbered
392 Meant to be used as a sys.displayhook replacement, providing numbered
393 prompts and cache services.
393 prompts and cache services.
394
394
395 Initialize with initial and final values for cache counter (this defines
395 Initialize with initial and final values for cache counter (this defines
396 the maximum size of the cache."""
396 the maximum size of the cache."""
397
397
398 def __init__(self,shell,cache_size,Pprint,
398 def __init__(self,shell,cache_size,Pprint,
399 colors='NoColor',input_sep='\n',
399 colors='NoColor',input_sep='\n',
400 output_sep='\n',output_sep2='',
400 output_sep='\n',output_sep2='',
401 ps1 = None, ps2 = None,ps_out = None,pad_left=True):
401 ps1 = None, ps2 = None,ps_out = None,pad_left=True):
402
402
403 cache_size_min = 3
403 cache_size_min = 3
404 if cache_size <= 0:
404 if cache_size <= 0:
405 self.do_full_cache = 0
405 self.do_full_cache = 0
406 cache_size = 0
406 cache_size = 0
407 elif cache_size < cache_size_min:
407 elif cache_size < cache_size_min:
408 self.do_full_cache = 0
408 self.do_full_cache = 0
409 cache_size = 0
409 cache_size = 0
410 warn('caching was disabled (min value for cache size is %s).' %
410 warn('caching was disabled (min value for cache size is %s).' %
411 cache_size_min,level=3)
411 cache_size_min,level=3)
412 else:
412 else:
413 self.do_full_cache = 1
413 self.do_full_cache = 1
414
414
415 self.cache_size = cache_size
415 self.cache_size = cache_size
416 self.input_sep = input_sep
416 self.input_sep = input_sep
417
417
418 # we need a reference to the user-level namespace
418 # we need a reference to the user-level namespace
419 self.shell = shell
419 self.shell = shell
420 self.user_ns = shell.user_ns
420 self.user_ns = shell.user_ns
421 # and to the user's input
421 # and to the user's input
422 self.input_hist = shell.input_hist
422 self.input_hist = shell.input_hist
423 # and to the user's logger, for logging output
423 # and to the user's logger, for logging output
424 self.logger = shell.logger
424 self.logger = shell.logger
425
425
426 # Set input prompt strings and colors
426 # Set input prompt strings and colors
427 if cache_size == 0:
427 if cache_size == 0:
428 if ps1.find('%n') > -1 or ps1.find(r'\#') > -1 \
428 if ps1.find('%n') > -1 or ps1.find(r'\#') > -1 \
429 or ps1.find(r'\N') > -1:
429 or ps1.find(r'\N') > -1:
430 ps1 = '>>> '
430 ps1 = '>>> '
431 if ps2.find('%n') > -1 or ps2.find(r'\#') > -1 \
431 if ps2.find('%n') > -1 or ps2.find(r'\#') > -1 \
432 or ps2.find(r'\N') > -1:
432 or ps2.find(r'\N') > -1:
433 ps2 = '... '
433 ps2 = '... '
434 self.ps1_str = self._set_prompt_str(ps1,'In [\\#]: ','>>> ')
434 self.ps1_str = self._set_prompt_str(ps1,'In [\\#]: ','>>> ')
435 self.ps2_str = self._set_prompt_str(ps2,' .\\D.: ','... ')
435 self.ps2_str = self._set_prompt_str(ps2,' .\\D.: ','... ')
436 self.ps_out_str = self._set_prompt_str(ps_out,'Out[\\#]: ','')
436 self.ps_out_str = self._set_prompt_str(ps_out,'Out[\\#]: ','')
437
437
438 self.color_table = PromptColors
438 self.color_table = PromptColors
439 self.prompt1 = Prompt1(self,sep=input_sep,prompt=self.ps1_str,
439 self.prompt1 = Prompt1(self,sep=input_sep,prompt=self.ps1_str,
440 pad_left=pad_left)
440 pad_left=pad_left)
441 self.prompt2 = Prompt2(self,prompt=self.ps2_str,pad_left=pad_left)
441 self.prompt2 = Prompt2(self,prompt=self.ps2_str,pad_left=pad_left)
442 self.prompt_out = PromptOut(self,sep='',prompt=self.ps_out_str,
442 self.prompt_out = PromptOut(self,sep='',prompt=self.ps_out_str,
443 pad_left=pad_left)
443 pad_left=pad_left)
444 self.set_colors(colors)
444 self.set_colors(colors)
445
445
446 # other more normal stuff
446 # other more normal stuff
447 # b/c each call to the In[] prompt raises it by 1, even the first.
447 # b/c each call to the In[] prompt raises it by 1, even the first.
448 self.prompt_count = 0
448 self.prompt_count = 0
449 # Store the last prompt string each time, we need it for aligning
449 # Store the last prompt string each time, we need it for aligning
450 # continuation and auto-rewrite prompts
450 # continuation and auto-rewrite prompts
451 self.last_prompt = ''
451 self.last_prompt = ''
452 self.Pprint = Pprint
452 self.Pprint = Pprint
453 self.output_sep = output_sep
453 self.output_sep = output_sep
454 self.output_sep2 = output_sep2
454 self.output_sep2 = output_sep2
455 self._,self.__,self.___ = '','',''
455 self._,self.__,self.___ = '','',''
456 self.pprint_types = map(type,[(),[],{}])
456 self.pprint_types = map(type,[(),[],{}])
457
457
458 # these are deliberately global:
458 # these are deliberately global:
459 to_user_ns = {'_':self._,'__':self.__,'___':self.___}
459 to_user_ns = {'_':self._,'__':self.__,'___':self.___}
460 self.user_ns.update(to_user_ns)
460 self.user_ns.update(to_user_ns)
461
461
462 def _set_prompt_str(self,p_str,cache_def,no_cache_def):
462 def _set_prompt_str(self,p_str,cache_def,no_cache_def):
463 if p_str is None:
463 if p_str is None:
464 if self.do_full_cache:
464 if self.do_full_cache:
465 return cache_def
465 return cache_def
466 else:
466 else:
467 return no_cache_def
467 return no_cache_def
468 else:
468 else:
469 return p_str
469 return p_str
470
470
471 def set_colors(self,colors):
471 def set_colors(self,colors):
472 """Set the active color scheme and configure colors for the three
472 """Set the active color scheme and configure colors for the three
473 prompt subsystems."""
473 prompt subsystems."""
474
474
475 # FIXME: the prompt_specials global should be gobbled inside this
475 # FIXME: the prompt_specials global should be gobbled inside this
476 # class instead. Do it when cleaning up the whole 3-prompt system.
476 # class instead. Do it when cleaning up the whole 3-prompt system.
477 global prompt_specials
477 global prompt_specials
478 if colors.lower()=='nocolor':
478 if colors.lower()=='nocolor':
479 prompt_specials = prompt_specials_nocolor
479 prompt_specials = prompt_specials_nocolor
480 else:
480 else:
481 prompt_specials = prompt_specials_color
481 prompt_specials = prompt_specials_color
482
482
483 self.color_table.set_active_scheme(colors)
483 self.color_table.set_active_scheme(colors)
484 self.prompt1.set_colors()
484 self.prompt1.set_colors()
485 self.prompt2.set_colors()
485 self.prompt2.set_colors()
486 self.prompt_out.set_colors()
486 self.prompt_out.set_colors()
487
487
488 def __call__(self,arg=None):
488 def __call__(self,arg=None):
489 """Printing with history cache management.
489 """Printing with history cache management.
490
490
491 This is invoked everytime the interpreter needs to print, and is
491 This is invoked everytime the interpreter needs to print, and is
492 activated by setting the variable sys.displayhook to it."""
492 activated by setting the variable sys.displayhook to it."""
493
493
494 # If something injected a '_' variable in __builtin__, delete
494 # If something injected a '_' variable in __builtin__, delete
495 # ipython's automatic one so we don't clobber that. gettext() in
495 # ipython's automatic one so we don't clobber that. gettext() in
496 # particular uses _, so we need to stay away from it.
496 # particular uses _, so we need to stay away from it.
497 if '_' in __builtin__.__dict__:
497 if '_' in __builtin__.__dict__:
498 try:
498 try:
499 del self.user_ns['_']
499 del self.user_ns['_']
500 except KeyError:
500 except KeyError:
501 pass
501 pass
502 if arg is not None:
502 if arg is not None:
503 cout_write = Term.cout.write # fast lookup
503 cout_write = Term.cout.write # fast lookup
504 # first handle the cache and counters
504 # first handle the cache and counters
505
505
506 # do not print output if input ends in ';'
506 # do not print output if input ends in ';'
507 if self.input_hist[self.prompt_count].endswith(';\n'):
507 if self.input_hist[self.prompt_count].endswith(';\n'):
508 return
508 return
509 # don't use print, puts an extra space
509 # don't use print, puts an extra space
510 cout_write(self.output_sep)
510 cout_write(self.output_sep)
511 outprompt = self.shell.hooks.generate_output_prompt()
511 outprompt = self.shell.hooks.generate_output_prompt()
512 if self.do_full_cache:
512 if self.do_full_cache:
513 cout_write(outprompt)
513 cout_write(outprompt)
514
514
515 if isinstance(arg,Macro):
516 print 'Executing Macro...'
517 # in case the macro takes a long time to execute
518 Term.cout.flush()
519 self.shell.runlines(arg.value)
520 return None
521
522 # and now call a possibly user-defined print mechanism
515 # and now call a possibly user-defined print mechanism
523 manipulated_val = self.display(arg)
516 manipulated_val = self.display(arg)
524
517
525 # user display hooks can change the variable to be stored in
518 # user display hooks can change the variable to be stored in
526 # output history
519 # output history
527
520
528 if manipulated_val is not None:
521 if manipulated_val is not None:
529 arg = manipulated_val
522 arg = manipulated_val
530
523
531 # avoid recursive reference when displaying _oh/Out
524 # avoid recursive reference when displaying _oh/Out
532 if arg is not self.user_ns['_oh']:
525 if arg is not self.user_ns['_oh']:
533 self.update(arg)
526 self.update(arg)
534
527
535 if self.logger.log_output:
528 if self.logger.log_output:
536 self.logger.log_write(repr(arg),'output')
529 self.logger.log_write(repr(arg),'output')
537 cout_write(self.output_sep2)
530 cout_write(self.output_sep2)
538 Term.cout.flush()
531 Term.cout.flush()
539
532
540 def _display(self,arg):
533 def _display(self,arg):
541 """Default printer method, uses pprint.
534 """Default printer method, uses pprint.
542
535
543 Do ip.set_hook("result_display", my_displayhook) for custom result
536 Do ip.set_hook("result_display", my_displayhook) for custom result
544 display, e.g. when your own objects need special formatting.
537 display, e.g. when your own objects need special formatting.
545 """
538 """
546
539
547 return self.shell.hooks.result_display(arg)
540 return self.shell.hooks.result_display(arg)
548
541
549 # Assign the default display method:
542 # Assign the default display method:
550 display = _display
543 display = _display
551
544
552 def update(self,arg):
545 def update(self,arg):
553 #print '***cache_count', self.cache_count # dbg
546 #print '***cache_count', self.cache_count # dbg
554 if len(self.user_ns['_oh']) >= self.cache_size and self.do_full_cache:
547 if len(self.user_ns['_oh']) >= self.cache_size and self.do_full_cache:
555 warn('Output cache limit (currently '+
548 warn('Output cache limit (currently '+
556 `self.cache_size`+' entries) hit.\n'
549 `self.cache_size`+' entries) hit.\n'
557 'Flushing cache and resetting history counter...\n'
550 'Flushing cache and resetting history counter...\n'
558 'The only history variables available will be _,__,___ and _1\n'
551 'The only history variables available will be _,__,___ and _1\n'
559 'with the current result.')
552 'with the current result.')
560
553
561 self.flush()
554 self.flush()
562 # Don't overwrite '_' and friends if '_' is in __builtin__ (otherwise
555 # Don't overwrite '_' and friends if '_' is in __builtin__ (otherwise
563 # we cause buggy behavior for things like gettext).
556 # we cause buggy behavior for things like gettext).
564 if '_' not in __builtin__.__dict__:
557 if '_' not in __builtin__.__dict__:
565 self.___ = self.__
558 self.___ = self.__
566 self.__ = self._
559 self.__ = self._
567 self._ = arg
560 self._ = arg
568 self.user_ns.update({'_':self._,'__':self.__,'___':self.___})
561 self.user_ns.update({'_':self._,'__':self.__,'___':self.___})
569
562
570 # hackish access to top-level namespace to create _1,_2... dynamically
563 # hackish access to top-level namespace to create _1,_2... dynamically
571 to_main = {}
564 to_main = {}
572 if self.do_full_cache:
565 if self.do_full_cache:
573 new_result = '_'+`self.prompt_count`
566 new_result = '_'+`self.prompt_count`
574 to_main[new_result] = arg
567 to_main[new_result] = arg
575 self.user_ns.update(to_main)
568 self.user_ns.update(to_main)
576 self.user_ns['_oh'][self.prompt_count] = arg
569 self.user_ns['_oh'][self.prompt_count] = arg
577
570
578 def flush(self):
571 def flush(self):
579 if not self.do_full_cache:
572 if not self.do_full_cache:
580 raise ValueError,"You shouldn't have reached the cache flush "\
573 raise ValueError,"You shouldn't have reached the cache flush "\
581 "if full caching is not enabled!"
574 "if full caching is not enabled!"
582 # delete auto-generated vars from global namespace
575 # delete auto-generated vars from global namespace
583
576
584 for n in range(1,self.prompt_count + 1):
577 for n in range(1,self.prompt_count + 1):
585 key = '_'+`n`
578 key = '_'+`n`
586 try:
579 try:
587 del self.user_ns[key]
580 del self.user_ns[key]
588 except: pass
581 except: pass
589 self.user_ns['_oh'].clear()
582 self.user_ns['_oh'].clear()
590
583
591 if '_' not in __builtin__.__dict__:
584 if '_' not in __builtin__.__dict__:
592 self.user_ns.update({'_':None,'__':None, '___':None})
585 self.user_ns.update({'_':None,'__':None, '___':None})
593 import gc
586 import gc
594 gc.collect() # xxx needed?
587 gc.collect() # xxx needed?
595
588
@@ -1,26 +1,38 b''
1 """Support for interactive macros in IPython"""
1 """Support for interactive macros in IPython"""
2
2
3 #*****************************************************************************
3 #*****************************************************************************
4 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
4 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
5 #
5 #
6 # Distributed under the terms of the BSD License. The full license is in
6 # Distributed under the terms of the BSD License. The full license is in
7 # the file COPYING, distributed as part of this software.
7 # the file COPYING, distributed as part of this software.
8 #*****************************************************************************
8 #*****************************************************************************
9
9
10 import IPython.ipapi
11
12
13 from IPython.genutils import Term
14
15
10 class Macro:
16 class Macro:
11 """Simple class to store the value of macros as strings.
17 """Simple class to store the value of macros as strings.
12
18
13 This allows us to later exec them by checking when something is an
19 Macro is just a callable that executes a string of IPython
14 instance of this class."""
20 input when called.
21 """
15
22
16 def __init__(self,data):
23 def __init__(self,data):
17
24
18 # store the macro value, as a single string which can be evaluated by
25 # store the macro value, as a single string which can be evaluated by
19 # runlines()
26 # runlines()
20 self.value = ''.join(data).rstrip()+'\n'
27 self.value = ''.join(data).rstrip()+'\n'
21
28
22 def __str__(self):
29 def __str__(self):
23 return self.value
30 return self.value
24
31
25 def __repr__(self):
32 def __repr__(self):
26 return 'IPython.macro.Macro(%s)' % repr(self.value) No newline at end of file
33 return 'IPython.macro.Macro(%s)' % repr(self.value)
34
35 def __call__(self):
36 Term.cout.flush()
37 ip = IPython.ipapi.get()
38 ip.runlines(self.value) No newline at end of file
@@ -1,6675 +1,6672 b''
1 2007-05-15 Ville Vainio <vivainio@gmail.com>
1 2007-05-15 Ville Vainio <vivainio@gmail.com>
2
2
3 * pycolorize.py, pycolor.1: Paul Mueller's patches that
3 * pycolorize.py, pycolor.1: Paul Mueller's patches that
4 make pycolorize read input from stdin when run without arguments.
4 make pycolorize read input from stdin when run without arguments.
5
5
6 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
6 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
7
7
8 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
8 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
9 it in sh profile (instead of ipy_system_conf.py).
9 it in sh profile (instead of ipy_system_conf.py).
10
10
11 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
11 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
12 aliases are now lower case on windows (MyCommand.exe => mycommand).
12 aliases are now lower case on windows (MyCommand.exe => mycommand).
13
14
15
16
13
17 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
14 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
18
15
19 * IPython/rlineimpl.py: check for clear_history in readline and
16 * IPython/rlineimpl.py: check for clear_history in readline and
20 make it a dummy no-op if not available. This function isn't
17 make it a dummy no-op if not available. This function isn't
21 guaranteed to be in the API and appeared in Python 2.4, so we need
18 guaranteed to be in the API and appeared in Python 2.4, so we need
22 to check it ourselves. Also, clean up this file quite a bit.
19 to check it ourselves. Also, clean up this file quite a bit.
23
20
24 * ipython.1: update man page and full manual with information
21 * ipython.1: update man page and full manual with information
25 about threads (remove outdated warning). Closes #151.
22 about threads (remove outdated warning). Closes #151.
26
23
27 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
24 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
28
25
29 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
26 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
30 in trunk (note that this made it into the 0.8.1 release already,
27 in trunk (note that this made it into the 0.8.1 release already,
31 but the changelogs didn't get coordinated). Many thanks to Gael
28 but the changelogs didn't get coordinated). Many thanks to Gael
32 Varoquaux <gael.varoquaux-AT-normalesup.org>
29 Varoquaux <gael.varoquaux-AT-normalesup.org>
33
30
34 2007-05-09 *** Released version 0.8.1
31 2007-05-09 *** Released version 0.8.1
35
32
36 2007-05-10 Walter Doerwald <walter@livinglogic.de>
33 2007-05-10 Walter Doerwald <walter@livinglogic.de>
37
34
38 * IPython/Extensions/igrid.py: Incorporate html help into
35 * IPython/Extensions/igrid.py: Incorporate html help into
39 the module, so we don't have to search for the file.
36 the module, so we don't have to search for the file.
40
37
41 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
38 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
42
39
43 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
40 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
44
41
45 2007-04-30 Ville Vainio <vivainio@gmail.com>
42 2007-04-30 Ville Vainio <vivainio@gmail.com>
46
43
47 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
44 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
48 user has illegal (non-ascii) home directory name
45 user has illegal (non-ascii) home directory name
49
46
50 2007-04-27 Ville Vainio <vivainio@gmail.com>
47 2007-04-27 Ville Vainio <vivainio@gmail.com>
51
48
52 * platutils_win32.py: implement set_term_title for windows
49 * platutils_win32.py: implement set_term_title for windows
53
50
54 * Update version number
51 * Update version number
55
52
56 * ipy_profile_sh.py: more informative prompt (2 dir levels)
53 * ipy_profile_sh.py: more informative prompt (2 dir levels)
57
54
58 2007-04-26 Walter Doerwald <walter@livinglogic.de>
55 2007-04-26 Walter Doerwald <walter@livinglogic.de>
59
56
60 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
57 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
61 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
58 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
62 bug discovered by Ville).
59 bug discovered by Ville).
63
60
64 2007-04-26 Ville Vainio <vivainio@gmail.com>
61 2007-04-26 Ville Vainio <vivainio@gmail.com>
65
62
66 * Extensions/ipy_completers.py: Olivier's module completer now
63 * Extensions/ipy_completers.py: Olivier's module completer now
67 saves the list of root modules if it takes > 4 secs on the first run.
64 saves the list of root modules if it takes > 4 secs on the first run.
68
65
69 * Magic.py (%rehashx): %rehashx now clears the completer cache
66 * Magic.py (%rehashx): %rehashx now clears the completer cache
70
67
71
68
72 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
69 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
73
70
74 * ipython.el: fix incorrect color scheme, reported by Stefan.
71 * ipython.el: fix incorrect color scheme, reported by Stefan.
75 Closes #149.
72 Closes #149.
76
73
77 * IPython/PyColorize.py (Parser.format2): fix state-handling
74 * IPython/PyColorize.py (Parser.format2): fix state-handling
78 logic. I still don't like how that code handles state, but at
75 logic. I still don't like how that code handles state, but at
79 least now it should be correct, if inelegant. Closes #146.
76 least now it should be correct, if inelegant. Closes #146.
80
77
81 2007-04-25 Ville Vainio <vivainio@gmail.com>
78 2007-04-25 Ville Vainio <vivainio@gmail.com>
82
79
83 * Extensions/ipy_which.py: added extension for %which magic, works
80 * Extensions/ipy_which.py: added extension for %which magic, works
84 a lot like unix 'which' but also finds and expands aliases, and
81 a lot like unix 'which' but also finds and expands aliases, and
85 allows wildcards.
82 allows wildcards.
86
83
87 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
84 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
88 as opposed to returning nothing.
85 as opposed to returning nothing.
89
86
90 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
87 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
91 ipy_stock_completers on default profile, do import on sh profile.
88 ipy_stock_completers on default profile, do import on sh profile.
92
89
93 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
90 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
94
91
95 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
92 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
96 like ipython.py foo.py which raised a IndexError.
93 like ipython.py foo.py which raised a IndexError.
97
94
98 2007-04-21 Ville Vainio <vivainio@gmail.com>
95 2007-04-21 Ville Vainio <vivainio@gmail.com>
99
96
100 * Extensions/ipy_extutil.py: added extension to manage other ipython
97 * Extensions/ipy_extutil.py: added extension to manage other ipython
101 extensions. Now only supports 'ls' == list extensions.
98 extensions. Now only supports 'ls' == list extensions.
102
99
103 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
100 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
104
101
105 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
102 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
106 would prevent use of the exception system outside of a running
103 would prevent use of the exception system outside of a running
107 IPython instance.
104 IPython instance.
108
105
109 2007-04-20 Ville Vainio <vivainio@gmail.com>
106 2007-04-20 Ville Vainio <vivainio@gmail.com>
110
107
111 * Extensions/ipy_render.py: added extension for easy
108 * Extensions/ipy_render.py: added extension for easy
112 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
109 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
113 'Iptl' template notation,
110 'Iptl' template notation,
114
111
115 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
112 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
116 safer & faster 'import' completer.
113 safer & faster 'import' completer.
117
114
118 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
115 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
119 and _ip.defalias(name, command).
116 and _ip.defalias(name, command).
120
117
121 * Extensions/ipy_exportdb.py: New extension for exporting all the
118 * Extensions/ipy_exportdb.py: New extension for exporting all the
122 %store'd data in a portable format (normal ipapi calls like
119 %store'd data in a portable format (normal ipapi calls like
123 defmacro() etc.)
120 defmacro() etc.)
124
121
125 2007-04-19 Ville Vainio <vivainio@gmail.com>
122 2007-04-19 Ville Vainio <vivainio@gmail.com>
126
123
127 * upgrade_dir.py: skip junk files like *.pyc
124 * upgrade_dir.py: skip junk files like *.pyc
128
125
129 * Release.py: version number to 0.8.1
126 * Release.py: version number to 0.8.1
130
127
131 2007-04-18 Ville Vainio <vivainio@gmail.com>
128 2007-04-18 Ville Vainio <vivainio@gmail.com>
132
129
133 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
130 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
134 and later on win32.
131 and later on win32.
135
132
136 2007-04-16 Ville Vainio <vivainio@gmail.com>
133 2007-04-16 Ville Vainio <vivainio@gmail.com>
137
134
138 * iplib.py (showtraceback): Do not crash when running w/o readline.
135 * iplib.py (showtraceback): Do not crash when running w/o readline.
139
136
140 2007-04-12 Walter Doerwald <walter@livinglogic.de>
137 2007-04-12 Walter Doerwald <walter@livinglogic.de>
141
138
142 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
139 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
143 sorted (case sensitive with files and dirs mixed).
140 sorted (case sensitive with files and dirs mixed).
144
141
145 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
142 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
146
143
147 * IPython/Release.py (version): Open trunk for 0.8.1 development.
144 * IPython/Release.py (version): Open trunk for 0.8.1 development.
148
145
149 2007-04-10 *** Released version 0.8.0
146 2007-04-10 *** Released version 0.8.0
150
147
151 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
148 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
152
149
153 * Tag 0.8.0 for release.
150 * Tag 0.8.0 for release.
154
151
155 * IPython/iplib.py (reloadhist): add API function to cleanly
152 * IPython/iplib.py (reloadhist): add API function to cleanly
156 reload the readline history, which was growing inappropriately on
153 reload the readline history, which was growing inappropriately on
157 every %run call.
154 every %run call.
158
155
159 * win32_manual_post_install.py (run): apply last part of Nicolas
156 * win32_manual_post_install.py (run): apply last part of Nicolas
160 Pernetty's patch (I'd accidentally applied it in a different
157 Pernetty's patch (I'd accidentally applied it in a different
161 directory and this particular file didn't get patched).
158 directory and this particular file didn't get patched).
162
159
163 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
160 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
164
161
165 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
162 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
166 find the main thread id and use the proper API call. Thanks to
163 find the main thread id and use the proper API call. Thanks to
167 Stefan for the fix.
164 Stefan for the fix.
168
165
169 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
166 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
170 unit tests to reflect fixed ticket #52, and add more tests sent by
167 unit tests to reflect fixed ticket #52, and add more tests sent by
171 him.
168 him.
172
169
173 * IPython/iplib.py (raw_input): restore the readline completer
170 * IPython/iplib.py (raw_input): restore the readline completer
174 state on every input, in case third-party code messed it up.
171 state on every input, in case third-party code messed it up.
175 (_prefilter): revert recent addition of early-escape checks which
172 (_prefilter): revert recent addition of early-escape checks which
176 prevent many valid alias calls from working.
173 prevent many valid alias calls from working.
177
174
178 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
175 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
179 flag for sigint handler so we don't run a full signal() call on
176 flag for sigint handler so we don't run a full signal() call on
180 each runcode access.
177 each runcode access.
181
178
182 * IPython/Magic.py (magic_whos): small improvement to diagnostic
179 * IPython/Magic.py (magic_whos): small improvement to diagnostic
183 message.
180 message.
184
181
185 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
182 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
186
183
187 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
184 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
188 asynchronous exceptions working, i.e., Ctrl-C can actually
185 asynchronous exceptions working, i.e., Ctrl-C can actually
189 interrupt long-running code in the multithreaded shells.
186 interrupt long-running code in the multithreaded shells.
190
187
191 This is using Tomer Filiba's great ctypes-based trick:
188 This is using Tomer Filiba's great ctypes-based trick:
192 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
189 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
193 this in the past, but hadn't been able to make it work before. So
190 this in the past, but hadn't been able to make it work before. So
194 far it looks like it's actually running, but this needs more
191 far it looks like it's actually running, but this needs more
195 testing. If it really works, I'll be *very* happy, and we'll owe
192 testing. If it really works, I'll be *very* happy, and we'll owe
196 a huge thank you to Tomer. My current implementation is ugly,
193 a huge thank you to Tomer. My current implementation is ugly,
197 hackish and uses nasty globals, but I don't want to try and clean
194 hackish and uses nasty globals, but I don't want to try and clean
198 anything up until we know if it actually works.
195 anything up until we know if it actually works.
199
196
200 NOTE: this feature needs ctypes to work. ctypes is included in
197 NOTE: this feature needs ctypes to work. ctypes is included in
201 Python2.5, but 2.4 users will need to manually install it. This
198 Python2.5, but 2.4 users will need to manually install it. This
202 feature makes multi-threaded shells so much more usable that it's
199 feature makes multi-threaded shells so much more usable that it's
203 a minor price to pay (ctypes is very easy to install, already a
200 a minor price to pay (ctypes is very easy to install, already a
204 requirement for win32 and available in major linux distros).
201 requirement for win32 and available in major linux distros).
205
202
206 2007-04-04 Ville Vainio <vivainio@gmail.com>
203 2007-04-04 Ville Vainio <vivainio@gmail.com>
207
204
208 * Extensions/ipy_completers.py, ipy_stock_completers.py:
205 * Extensions/ipy_completers.py, ipy_stock_completers.py:
209 Moved implementations of 'bundled' completers to ipy_completers.py,
206 Moved implementations of 'bundled' completers to ipy_completers.py,
210 they are only enabled in ipy_stock_completers.py.
207 they are only enabled in ipy_stock_completers.py.
211
208
212 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
209 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
213
210
214 * IPython/PyColorize.py (Parser.format2): Fix identation of
211 * IPython/PyColorize.py (Parser.format2): Fix identation of
215 colorzied output and return early if color scheme is NoColor, to
212 colorzied output and return early if color scheme is NoColor, to
216 avoid unnecessary and expensive tokenization. Closes #131.
213 avoid unnecessary and expensive tokenization. Closes #131.
217
214
218 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
215 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
219
216
220 * IPython/Debugger.py: disable the use of pydb version 1.17. It
217 * IPython/Debugger.py: disable the use of pydb version 1.17. It
221 has a critical bug (a missing import that makes post-mortem not
218 has a critical bug (a missing import that makes post-mortem not
222 work at all). Unfortunately as of this time, this is the version
219 work at all). Unfortunately as of this time, this is the version
223 shipped with Ubuntu Edgy, so quite a few people have this one. I
220 shipped with Ubuntu Edgy, so quite a few people have this one. I
224 hope Edgy will update to a more recent package.
221 hope Edgy will update to a more recent package.
225
222
226 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
223 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
227
224
228 * IPython/iplib.py (_prefilter): close #52, second part of a patch
225 * IPython/iplib.py (_prefilter): close #52, second part of a patch
229 set by Stefan (only the first part had been applied before).
226 set by Stefan (only the first part had been applied before).
230
227
231 * IPython/Extensions/ipy_stock_completers.py (module_completer):
228 * IPython/Extensions/ipy_stock_completers.py (module_completer):
232 remove usage of the dangerous pkgutil.walk_packages(). See
229 remove usage of the dangerous pkgutil.walk_packages(). See
233 details in comments left in the code.
230 details in comments left in the code.
234
231
235 * IPython/Magic.py (magic_whos): add support for numpy arrays
232 * IPython/Magic.py (magic_whos): add support for numpy arrays
236 similar to what we had for Numeric.
233 similar to what we had for Numeric.
237
234
238 * IPython/completer.py (IPCompleter.complete): extend the
235 * IPython/completer.py (IPCompleter.complete): extend the
239 complete() call API to support completions by other mechanisms
236 complete() call API to support completions by other mechanisms
240 than readline. Closes #109.
237 than readline. Closes #109.
241
238
242 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
239 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
243 protect against a bug in Python's execfile(). Closes #123.
240 protect against a bug in Python's execfile(). Closes #123.
244
241
245 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
242 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
246
243
247 * IPython/iplib.py (split_user_input): ensure that when splitting
244 * IPython/iplib.py (split_user_input): ensure that when splitting
248 user input, the part that can be treated as a python name is pure
245 user input, the part that can be treated as a python name is pure
249 ascii (Python identifiers MUST be pure ascii). Part of the
246 ascii (Python identifiers MUST be pure ascii). Part of the
250 ongoing Unicode support work.
247 ongoing Unicode support work.
251
248
252 * IPython/Prompts.py (prompt_specials_color): Add \N for the
249 * IPython/Prompts.py (prompt_specials_color): Add \N for the
253 actual prompt number, without any coloring. This allows users to
250 actual prompt number, without any coloring. This allows users to
254 produce numbered prompts with their own colors. Added after a
251 produce numbered prompts with their own colors. Added after a
255 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
252 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
256
253
257 2007-03-31 Walter Doerwald <walter@livinglogic.de>
254 2007-03-31 Walter Doerwald <walter@livinglogic.de>
258
255
259 * IPython/Extensions/igrid.py: Map the return key
256 * IPython/Extensions/igrid.py: Map the return key
260 to enter() and shift-return to enterattr().
257 to enter() and shift-return to enterattr().
261
258
262 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
259 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
263
260
264 * IPython/Magic.py (magic_psearch): add unicode support by
261 * IPython/Magic.py (magic_psearch): add unicode support by
265 encoding to ascii the input, since this routine also only deals
262 encoding to ascii the input, since this routine also only deals
266 with valid Python names. Fixes a bug reported by Stefan.
263 with valid Python names. Fixes a bug reported by Stefan.
267
264
268 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
265 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
269
266
270 * IPython/Magic.py (_inspect): convert unicode input into ascii
267 * IPython/Magic.py (_inspect): convert unicode input into ascii
271 before trying to evaluate it as a Python identifier. This fixes a
268 before trying to evaluate it as a Python identifier. This fixes a
272 problem that the new unicode support had introduced when analyzing
269 problem that the new unicode support had introduced when analyzing
273 long definition lines for functions.
270 long definition lines for functions.
274
271
275 2007-03-24 Walter Doerwald <walter@livinglogic.de>
272 2007-03-24 Walter Doerwald <walter@livinglogic.de>
276
273
277 * IPython/Extensions/igrid.py: Fix picking. Using
274 * IPython/Extensions/igrid.py: Fix picking. Using
278 igrid with wxPython 2.6 and -wthread should work now.
275 igrid with wxPython 2.6 and -wthread should work now.
279 igrid.display() simply tries to create a frame without
276 igrid.display() simply tries to create a frame without
280 an application. Only if this fails an application is created.
277 an application. Only if this fails an application is created.
281
278
282 2007-03-23 Walter Doerwald <walter@livinglogic.de>
279 2007-03-23 Walter Doerwald <walter@livinglogic.de>
283
280
284 * IPython/Extensions/path.py: Updated to version 2.2.
281 * IPython/Extensions/path.py: Updated to version 2.2.
285
282
286 2007-03-23 Ville Vainio <vivainio@gmail.com>
283 2007-03-23 Ville Vainio <vivainio@gmail.com>
287
284
288 * iplib.py: recursive alias expansion now works better, so that
285 * iplib.py: recursive alias expansion now works better, so that
289 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
286 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
290 doesn't trip up the process, if 'd' has been aliased to 'ls'.
287 doesn't trip up the process, if 'd' has been aliased to 'ls'.
291
288
292 * Extensions/ipy_gnuglobal.py added, provides %global magic
289 * Extensions/ipy_gnuglobal.py added, provides %global magic
293 for users of http://www.gnu.org/software/global
290 for users of http://www.gnu.org/software/global
294
291
295 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
292 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
296 Closes #52. Patch by Stefan van der Walt.
293 Closes #52. Patch by Stefan van der Walt.
297
294
298 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
295 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
299
296
300 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
297 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
301 respect the __file__ attribute when using %run. Thanks to a bug
298 respect the __file__ attribute when using %run. Thanks to a bug
302 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
299 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
303
300
304 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
301 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
305
302
306 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
303 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
307 input. Patch sent by Stefan.
304 input. Patch sent by Stefan.
308
305
309 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
306 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
310 * IPython/Extensions/ipy_stock_completer.py
307 * IPython/Extensions/ipy_stock_completer.py
311 shlex_split, fix bug in shlex_split. len function
308 shlex_split, fix bug in shlex_split. len function
312 call was missing an if statement. Caused shlex_split to
309 call was missing an if statement. Caused shlex_split to
313 sometimes return "" as last element.
310 sometimes return "" as last element.
314
311
315 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
312 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
316
313
317 * IPython/completer.py
314 * IPython/completer.py
318 (IPCompleter.file_matches.single_dir_expand): fix a problem
315 (IPCompleter.file_matches.single_dir_expand): fix a problem
319 reported by Stefan, where directories containign a single subdir
316 reported by Stefan, where directories containign a single subdir
320 would be completed too early.
317 would be completed too early.
321
318
322 * IPython/Shell.py (_load_pylab): Make the execution of 'from
319 * IPython/Shell.py (_load_pylab): Make the execution of 'from
323 pylab import *' when -pylab is given be optional. A new flag,
320 pylab import *' when -pylab is given be optional. A new flag,
324 pylab_import_all controls this behavior, the default is True for
321 pylab_import_all controls this behavior, the default is True for
325 backwards compatibility.
322 backwards compatibility.
326
323
327 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
324 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
328 modified) R. Bernstein's patch for fully syntax highlighted
325 modified) R. Bernstein's patch for fully syntax highlighted
329 tracebacks. The functionality is also available under ultraTB for
326 tracebacks. The functionality is also available under ultraTB for
330 non-ipython users (someone using ultraTB but outside an ipython
327 non-ipython users (someone using ultraTB but outside an ipython
331 session). They can select the color scheme by setting the
328 session). They can select the color scheme by setting the
332 module-level global DEFAULT_SCHEME. The highlight functionality
329 module-level global DEFAULT_SCHEME. The highlight functionality
333 also works when debugging.
330 also works when debugging.
334
331
335 * IPython/genutils.py (IOStream.close): small patch by
332 * IPython/genutils.py (IOStream.close): small patch by
336 R. Bernstein for improved pydb support.
333 R. Bernstein for improved pydb support.
337
334
338 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
335 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
339 DaveS <davls@telus.net> to improve support of debugging under
336 DaveS <davls@telus.net> to improve support of debugging under
340 NTEmacs, including improved pydb behavior.
337 NTEmacs, including improved pydb behavior.
341
338
342 * IPython/Magic.py (magic_prun): Fix saving of profile info for
339 * IPython/Magic.py (magic_prun): Fix saving of profile info for
343 Python 2.5, where the stats object API changed a little. Thanks
340 Python 2.5, where the stats object API changed a little. Thanks
344 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
341 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
345
342
346 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
343 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
347 Pernetty's patch to improve support for (X)Emacs under Win32.
344 Pernetty's patch to improve support for (X)Emacs under Win32.
348
345
349 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
346 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
350
347
351 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
348 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
352 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
349 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
353 a report by Nik Tautenhahn.
350 a report by Nik Tautenhahn.
354
351
355 2007-03-16 Walter Doerwald <walter@livinglogic.de>
352 2007-03-16 Walter Doerwald <walter@livinglogic.de>
356
353
357 * setup.py: Add the igrid help files to the list of data files
354 * setup.py: Add the igrid help files to the list of data files
358 to be installed alongside igrid.
355 to be installed alongside igrid.
359 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
356 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
360 Show the input object of the igrid browser as the window tile.
357 Show the input object of the igrid browser as the window tile.
361 Show the object the cursor is on in the statusbar.
358 Show the object the cursor is on in the statusbar.
362
359
363 2007-03-15 Ville Vainio <vivainio@gmail.com>
360 2007-03-15 Ville Vainio <vivainio@gmail.com>
364
361
365 * Extensions/ipy_stock_completers.py: Fixed exception
362 * Extensions/ipy_stock_completers.py: Fixed exception
366 on mismatching quotes in %run completer. Patch by
363 on mismatching quotes in %run completer. Patch by
367 JοΏ½rgen Stenarson. Closes #127.
364 JοΏ½rgen Stenarson. Closes #127.
368
365
369 2007-03-14 Ville Vainio <vivainio@gmail.com>
366 2007-03-14 Ville Vainio <vivainio@gmail.com>
370
367
371 * Extensions/ext_rehashdir.py: Do not do auto_alias
368 * Extensions/ext_rehashdir.py: Do not do auto_alias
372 in %rehashdir, it clobbers %store'd aliases.
369 in %rehashdir, it clobbers %store'd aliases.
373
370
374 * UserConfig/ipy_profile_sh.py: envpersist.py extension
371 * UserConfig/ipy_profile_sh.py: envpersist.py extension
375 (beefed up %env) imported for sh profile.
372 (beefed up %env) imported for sh profile.
376
373
377 2007-03-10 Walter Doerwald <walter@livinglogic.de>
374 2007-03-10 Walter Doerwald <walter@livinglogic.de>
378
375
379 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
376 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
380 as the default browser.
377 as the default browser.
381 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
378 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
382 As igrid displays all attributes it ever encounters, fetch() (which has
379 As igrid displays all attributes it ever encounters, fetch() (which has
383 been renamed to _fetch()) doesn't have to recalculate the display attributes
380 been renamed to _fetch()) doesn't have to recalculate the display attributes
384 every time a new item is fetched. This should speed up scrolling.
381 every time a new item is fetched. This should speed up scrolling.
385
382
386 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
383 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
387
384
388 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
385 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
389 Schmolck's recently reported tab-completion bug (my previous one
386 Schmolck's recently reported tab-completion bug (my previous one
390 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
387 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
391
388
392 2007-03-09 Walter Doerwald <walter@livinglogic.de>
389 2007-03-09 Walter Doerwald <walter@livinglogic.de>
393
390
394 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
391 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
395 Close help window if exiting igrid.
392 Close help window if exiting igrid.
396
393
397 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
394 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
398
395
399 * IPython/Extensions/ipy_defaults.py: Check if readline is available
396 * IPython/Extensions/ipy_defaults.py: Check if readline is available
400 before calling functions from readline.
397 before calling functions from readline.
401
398
402 2007-03-02 Walter Doerwald <walter@livinglogic.de>
399 2007-03-02 Walter Doerwald <walter@livinglogic.de>
403
400
404 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
401 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
405 igrid is a wxPython-based display object for ipipe. If your system has
402 igrid is a wxPython-based display object for ipipe. If your system has
406 wx installed igrid will be the default display. Without wx ipipe falls
403 wx installed igrid will be the default display. Without wx ipipe falls
407 back to ibrowse (which needs curses). If no curses is installed ipipe
404 back to ibrowse (which needs curses). If no curses is installed ipipe
408 falls back to idump.
405 falls back to idump.
409
406
410 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
407 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
411
408
412 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
409 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
413 my changes from yesterday, they introduced bugs. Will reactivate
410 my changes from yesterday, they introduced bugs. Will reactivate
414 once I get a correct solution, which will be much easier thanks to
411 once I get a correct solution, which will be much easier thanks to
415 Dan Milstein's new prefilter test suite.
412 Dan Milstein's new prefilter test suite.
416
413
417 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
414 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
418
415
419 * IPython/iplib.py (split_user_input): fix input splitting so we
416 * IPython/iplib.py (split_user_input): fix input splitting so we
420 don't attempt attribute accesses on things that can't possibly be
417 don't attempt attribute accesses on things that can't possibly be
421 valid Python attributes. After a bug report by Alex Schmolck.
418 valid Python attributes. After a bug report by Alex Schmolck.
422 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
419 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
423 %magic with explicit % prefix.
420 %magic with explicit % prefix.
424
421
425 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
422 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
426
423
427 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
424 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
428 avoid a DeprecationWarning from GTK.
425 avoid a DeprecationWarning from GTK.
429
426
430 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
427 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
431
428
432 * IPython/genutils.py (clock): I modified clock() to return total
429 * IPython/genutils.py (clock): I modified clock() to return total
433 time, user+system. This is a more commonly needed metric. I also
430 time, user+system. This is a more commonly needed metric. I also
434 introduced the new clocku/clocks to get only user/system time if
431 introduced the new clocku/clocks to get only user/system time if
435 one wants those instead.
432 one wants those instead.
436
433
437 ***WARNING: API CHANGE*** clock() used to return only user time,
434 ***WARNING: API CHANGE*** clock() used to return only user time,
438 so if you want exactly the same results as before, use clocku
435 so if you want exactly the same results as before, use clocku
439 instead.
436 instead.
440
437
441 2007-02-22 Ville Vainio <vivainio@gmail.com>
438 2007-02-22 Ville Vainio <vivainio@gmail.com>
442
439
443 * IPython/Extensions/ipy_p4.py: Extension for improved
440 * IPython/Extensions/ipy_p4.py: Extension for improved
444 p4 (perforce version control system) experience.
441 p4 (perforce version control system) experience.
445 Adds %p4 magic with p4 command completion and
442 Adds %p4 magic with p4 command completion and
446 automatic -G argument (marshall output as python dict)
443 automatic -G argument (marshall output as python dict)
447
444
448 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
445 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
449
446
450 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
447 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
451 stop marks.
448 stop marks.
452 (ClearingMixin): a simple mixin to easily make a Demo class clear
449 (ClearingMixin): a simple mixin to easily make a Demo class clear
453 the screen in between blocks and have empty marquees. The
450 the screen in between blocks and have empty marquees. The
454 ClearDemo and ClearIPDemo classes that use it are included.
451 ClearDemo and ClearIPDemo classes that use it are included.
455
452
456 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
453 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
457
454
458 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
455 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
459 protect against exceptions at Python shutdown time. Patch
456 protect against exceptions at Python shutdown time. Patch
460 sumbmitted to upstream.
457 sumbmitted to upstream.
461
458
462 2007-02-14 Walter Doerwald <walter@livinglogic.de>
459 2007-02-14 Walter Doerwald <walter@livinglogic.de>
463
460
464 * IPython/Extensions/ibrowse.py: If entering the first object level
461 * IPython/Extensions/ibrowse.py: If entering the first object level
465 (i.e. the object for which the browser has been started) fails,
462 (i.e. the object for which the browser has been started) fails,
466 now the error is raised directly (aborting the browser) instead of
463 now the error is raised directly (aborting the browser) instead of
467 running into an empty levels list later.
464 running into an empty levels list later.
468
465
469 2007-02-03 Walter Doerwald <walter@livinglogic.de>
466 2007-02-03 Walter Doerwald <walter@livinglogic.de>
470
467
471 * IPython/Extensions/ipipe.py: Add an xrepr implementation
468 * IPython/Extensions/ipipe.py: Add an xrepr implementation
472 for the noitem object.
469 for the noitem object.
473
470
474 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
471 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
475
472
476 * IPython/completer.py (Completer.attr_matches): Fix small
473 * IPython/completer.py (Completer.attr_matches): Fix small
477 tab-completion bug with Enthought Traits objects with units.
474 tab-completion bug with Enthought Traits objects with units.
478 Thanks to a bug report by Tom Denniston
475 Thanks to a bug report by Tom Denniston
479 <tom.denniston-AT-alum.dartmouth.org>.
476 <tom.denniston-AT-alum.dartmouth.org>.
480
477
481 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
478 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
482
479
483 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
480 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
484 bug where only .ipy or .py would be completed. Once the first
481 bug where only .ipy or .py would be completed. Once the first
485 argument to %run has been given, all completions are valid because
482 argument to %run has been given, all completions are valid because
486 they are the arguments to the script, which may well be non-python
483 they are the arguments to the script, which may well be non-python
487 filenames.
484 filenames.
488
485
489 * IPython/irunner.py (InteractiveRunner.run_source): major updates
486 * IPython/irunner.py (InteractiveRunner.run_source): major updates
490 to irunner to allow it to correctly support real doctesting of
487 to irunner to allow it to correctly support real doctesting of
491 out-of-process ipython code.
488 out-of-process ipython code.
492
489
493 * IPython/Magic.py (magic_cd): Make the setting of the terminal
490 * IPython/Magic.py (magic_cd): Make the setting of the terminal
494 title an option (-noterm_title) because it completely breaks
491 title an option (-noterm_title) because it completely breaks
495 doctesting.
492 doctesting.
496
493
497 * IPython/demo.py: fix IPythonDemo class that was not actually working.
494 * IPython/demo.py: fix IPythonDemo class that was not actually working.
498
495
499 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
496 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
500
497
501 * IPython/irunner.py (main): fix small bug where extensions were
498 * IPython/irunner.py (main): fix small bug where extensions were
502 not being correctly recognized.
499 not being correctly recognized.
503
500
504 2007-01-23 Walter Doerwald <walter@livinglogic.de>
501 2007-01-23 Walter Doerwald <walter@livinglogic.de>
505
502
506 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
503 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
507 a string containing a single line yields the string itself as the
504 a string containing a single line yields the string itself as the
508 only item.
505 only item.
509
506
510 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
507 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
511 object if it's the same as the one on the last level (This avoids
508 object if it's the same as the one on the last level (This avoids
512 infinite recursion for one line strings).
509 infinite recursion for one line strings).
513
510
514 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
511 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
515
512
516 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
513 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
517 all output streams before printing tracebacks. This ensures that
514 all output streams before printing tracebacks. This ensures that
518 user output doesn't end up interleaved with traceback output.
515 user output doesn't end up interleaved with traceback output.
519
516
520 2007-01-10 Ville Vainio <vivainio@gmail.com>
517 2007-01-10 Ville Vainio <vivainio@gmail.com>
521
518
522 * Extensions/envpersist.py: Turbocharged %env that remembers
519 * Extensions/envpersist.py: Turbocharged %env that remembers
523 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
520 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
524 "%env VISUAL=jed".
521 "%env VISUAL=jed".
525
522
526 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
523 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
527
524
528 * IPython/iplib.py (showtraceback): ensure that we correctly call
525 * IPython/iplib.py (showtraceback): ensure that we correctly call
529 custom handlers in all cases (some with pdb were slipping through,
526 custom handlers in all cases (some with pdb were slipping through,
530 but I'm not exactly sure why).
527 but I'm not exactly sure why).
531
528
532 * IPython/Debugger.py (Tracer.__init__): added new class to
529 * IPython/Debugger.py (Tracer.__init__): added new class to
533 support set_trace-like usage of IPython's enhanced debugger.
530 support set_trace-like usage of IPython's enhanced debugger.
534
531
535 2006-12-24 Ville Vainio <vivainio@gmail.com>
532 2006-12-24 Ville Vainio <vivainio@gmail.com>
536
533
537 * ipmaker.py: more informative message when ipy_user_conf
534 * ipmaker.py: more informative message when ipy_user_conf
538 import fails (suggest running %upgrade).
535 import fails (suggest running %upgrade).
539
536
540 * tools/run_ipy_in_profiler.py: Utility to see where
537 * tools/run_ipy_in_profiler.py: Utility to see where
541 the time during IPython startup is spent.
538 the time during IPython startup is spent.
542
539
543 2006-12-20 Ville Vainio <vivainio@gmail.com>
540 2006-12-20 Ville Vainio <vivainio@gmail.com>
544
541
545 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
542 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
546
543
547 * ipapi.py: Add new ipapi method, expand_alias.
544 * ipapi.py: Add new ipapi method, expand_alias.
548
545
549 * Release.py: Bump up version to 0.7.4.svn
546 * Release.py: Bump up version to 0.7.4.svn
550
547
551 2006-12-17 Ville Vainio <vivainio@gmail.com>
548 2006-12-17 Ville Vainio <vivainio@gmail.com>
552
549
553 * Extensions/jobctrl.py: Fixed &cmd arg arg...
550 * Extensions/jobctrl.py: Fixed &cmd arg arg...
554 to work properly on posix too
551 to work properly on posix too
555
552
556 * Release.py: Update revnum (version is still just 0.7.3).
553 * Release.py: Update revnum (version is still just 0.7.3).
557
554
558 2006-12-15 Ville Vainio <vivainio@gmail.com>
555 2006-12-15 Ville Vainio <vivainio@gmail.com>
559
556
560 * scripts/ipython_win_post_install: create ipython.py in
557 * scripts/ipython_win_post_install: create ipython.py in
561 prefix + "/scripts".
558 prefix + "/scripts".
562
559
563 * Release.py: Update version to 0.7.3.
560 * Release.py: Update version to 0.7.3.
564
561
565 2006-12-14 Ville Vainio <vivainio@gmail.com>
562 2006-12-14 Ville Vainio <vivainio@gmail.com>
566
563
567 * scripts/ipython_win_post_install: Overwrite old shortcuts
564 * scripts/ipython_win_post_install: Overwrite old shortcuts
568 if they already exist
565 if they already exist
569
566
570 * Release.py: release 0.7.3rc2
567 * Release.py: release 0.7.3rc2
571
568
572 2006-12-13 Ville Vainio <vivainio@gmail.com>
569 2006-12-13 Ville Vainio <vivainio@gmail.com>
573
570
574 * Branch and update Release.py for 0.7.3rc1
571 * Branch and update Release.py for 0.7.3rc1
575
572
576 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
573 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
577
574
578 * IPython/Shell.py (IPShellWX): update for current WX naming
575 * IPython/Shell.py (IPShellWX): update for current WX naming
579 conventions, to avoid a deprecation warning with current WX
576 conventions, to avoid a deprecation warning with current WX
580 versions. Thanks to a report by Danny Shevitz.
577 versions. Thanks to a report by Danny Shevitz.
581
578
582 2006-12-12 Ville Vainio <vivainio@gmail.com>
579 2006-12-12 Ville Vainio <vivainio@gmail.com>
583
580
584 * ipmaker.py: apply david cournapeau's patch to make
581 * ipmaker.py: apply david cournapeau's patch to make
585 import_some work properly even when ipythonrc does
582 import_some work properly even when ipythonrc does
586 import_some on empty list (it was an old bug!).
583 import_some on empty list (it was an old bug!).
587
584
588 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
585 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
589 Add deprecation note to ipythonrc and a url to wiki
586 Add deprecation note to ipythonrc and a url to wiki
590 in ipy_user_conf.py
587 in ipy_user_conf.py
591
588
592
589
593 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
590 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
594 as if it was typed on IPython command prompt, i.e.
591 as if it was typed on IPython command prompt, i.e.
595 as IPython script.
592 as IPython script.
596
593
597 * example-magic.py, magic_grepl.py: remove outdated examples
594 * example-magic.py, magic_grepl.py: remove outdated examples
598
595
599 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
596 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
600
597
601 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
598 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
602 is called before any exception has occurred.
599 is called before any exception has occurred.
603
600
604 2006-12-08 Ville Vainio <vivainio@gmail.com>
601 2006-12-08 Ville Vainio <vivainio@gmail.com>
605
602
606 * Extensions/ipy_stock_completers.py: fix cd completer
603 * Extensions/ipy_stock_completers.py: fix cd completer
607 to translate /'s to \'s again.
604 to translate /'s to \'s again.
608
605
609 * completer.py: prevent traceback on file completions w/
606 * completer.py: prevent traceback on file completions w/
610 backslash.
607 backslash.
611
608
612 * Release.py: Update release number to 0.7.3b3 for release
609 * Release.py: Update release number to 0.7.3b3 for release
613
610
614 2006-12-07 Ville Vainio <vivainio@gmail.com>
611 2006-12-07 Ville Vainio <vivainio@gmail.com>
615
612
616 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
613 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
617 while executing external code. Provides more shell-like behaviour
614 while executing external code. Provides more shell-like behaviour
618 and overall better response to ctrl + C / ctrl + break.
615 and overall better response to ctrl + C / ctrl + break.
619
616
620 * tools/make_tarball.py: new script to create tarball straight from svn
617 * tools/make_tarball.py: new script to create tarball straight from svn
621 (setup.py sdist doesn't work on win32).
618 (setup.py sdist doesn't work on win32).
622
619
623 * Extensions/ipy_stock_completers.py: fix cd completer to give up
620 * Extensions/ipy_stock_completers.py: fix cd completer to give up
624 on dirnames with spaces and use the default completer instead.
621 on dirnames with spaces and use the default completer instead.
625
622
626 * Revision.py: Change version to 0.7.3b2 for release.
623 * Revision.py: Change version to 0.7.3b2 for release.
627
624
628 2006-12-05 Ville Vainio <vivainio@gmail.com>
625 2006-12-05 Ville Vainio <vivainio@gmail.com>
629
626
630 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
627 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
631 pydb patch 4 (rm debug printing, py 2.5 checking)
628 pydb patch 4 (rm debug printing, py 2.5 checking)
632
629
633 2006-11-30 Walter Doerwald <walter@livinglogic.de>
630 2006-11-30 Walter Doerwald <walter@livinglogic.de>
634 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
631 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
635 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
632 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
636 "refreshfind" (mapped to "R") does the same but tries to go back to the same
633 "refreshfind" (mapped to "R") does the same but tries to go back to the same
637 object the cursor was on before the refresh. The command "markrange" is
634 object the cursor was on before the refresh. The command "markrange" is
638 mapped to "%" now.
635 mapped to "%" now.
639 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
636 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
640
637
641 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
638 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
642
639
643 * IPython/Magic.py (magic_debug): new %debug magic to activate the
640 * IPython/Magic.py (magic_debug): new %debug magic to activate the
644 interactive debugger on the last traceback, without having to call
641 interactive debugger on the last traceback, without having to call
645 %pdb and rerun your code. Made minor changes in various modules,
642 %pdb and rerun your code. Made minor changes in various modules,
646 should automatically recognize pydb if available.
643 should automatically recognize pydb if available.
647
644
648 2006-11-28 Ville Vainio <vivainio@gmail.com>
645 2006-11-28 Ville Vainio <vivainio@gmail.com>
649
646
650 * completer.py: If the text start with !, show file completions
647 * completer.py: If the text start with !, show file completions
651 properly. This helps when trying to complete command name
648 properly. This helps when trying to complete command name
652 for shell escapes.
649 for shell escapes.
653
650
654 2006-11-27 Ville Vainio <vivainio@gmail.com>
651 2006-11-27 Ville Vainio <vivainio@gmail.com>
655
652
656 * ipy_stock_completers.py: bzr completer submitted by Stefan van
653 * ipy_stock_completers.py: bzr completer submitted by Stefan van
657 der Walt. Clean up svn and hg completers by using a common
654 der Walt. Clean up svn and hg completers by using a common
658 vcs_completer.
655 vcs_completer.
659
656
660 2006-11-26 Ville Vainio <vivainio@gmail.com>
657 2006-11-26 Ville Vainio <vivainio@gmail.com>
661
658
662 * Remove ipconfig and %config; you should use _ip.options structure
659 * Remove ipconfig and %config; you should use _ip.options structure
663 directly instead!
660 directly instead!
664
661
665 * genutils.py: add wrap_deprecated function for deprecating callables
662 * genutils.py: add wrap_deprecated function for deprecating callables
666
663
667 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
664 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
668 _ip.system instead. ipalias is redundant.
665 _ip.system instead. ipalias is redundant.
669
666
670 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
667 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
671 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
668 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
672 explicit.
669 explicit.
673
670
674 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
671 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
675 completer. Try it by entering 'hg ' and pressing tab.
672 completer. Try it by entering 'hg ' and pressing tab.
676
673
677 * macro.py: Give Macro a useful __repr__ method
674 * macro.py: Give Macro a useful __repr__ method
678
675
679 * Magic.py: %whos abbreviates the typename of Macro for brevity.
676 * Magic.py: %whos abbreviates the typename of Macro for brevity.
680
677
681 2006-11-24 Walter Doerwald <walter@livinglogic.de>
678 2006-11-24 Walter Doerwald <walter@livinglogic.de>
682 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
679 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
683 we don't get a duplicate ipipe module, where registration of the xrepr
680 we don't get a duplicate ipipe module, where registration of the xrepr
684 implementation for Text is useless.
681 implementation for Text is useless.
685
682
686 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
683 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
687
684
688 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
685 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
689
686
690 2006-11-24 Ville Vainio <vivainio@gmail.com>
687 2006-11-24 Ville Vainio <vivainio@gmail.com>
691
688
692 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
689 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
693 try to use "cProfile" instead of the slower pure python
690 try to use "cProfile" instead of the slower pure python
694 "profile"
691 "profile"
695
692
696 2006-11-23 Ville Vainio <vivainio@gmail.com>
693 2006-11-23 Ville Vainio <vivainio@gmail.com>
697
694
698 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
695 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
699 Qt+IPython+Designer link in documentation.
696 Qt+IPython+Designer link in documentation.
700
697
701 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
698 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
702 correct Pdb object to %pydb.
699 correct Pdb object to %pydb.
703
700
704
701
705 2006-11-22 Walter Doerwald <walter@livinglogic.de>
702 2006-11-22 Walter Doerwald <walter@livinglogic.de>
706 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
703 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
707 generic xrepr(), otherwise the list implementation would kick in.
704 generic xrepr(), otherwise the list implementation would kick in.
708
705
709 2006-11-21 Ville Vainio <vivainio@gmail.com>
706 2006-11-21 Ville Vainio <vivainio@gmail.com>
710
707
711 * upgrade_dir.py: Now actually overwrites a nonmodified user file
708 * upgrade_dir.py: Now actually overwrites a nonmodified user file
712 with one from UserConfig.
709 with one from UserConfig.
713
710
714 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
711 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
715 it was missing which broke the sh profile.
712 it was missing which broke the sh profile.
716
713
717 * completer.py: file completer now uses explicit '/' instead
714 * completer.py: file completer now uses explicit '/' instead
718 of os.path.join, expansion of 'foo' was broken on win32
715 of os.path.join, expansion of 'foo' was broken on win32
719 if there was one directory with name 'foobar'.
716 if there was one directory with name 'foobar'.
720
717
721 * A bunch of patches from Kirill Smelkov:
718 * A bunch of patches from Kirill Smelkov:
722
719
723 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
720 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
724
721
725 * [patch 7/9] Implement %page -r (page in raw mode) -
722 * [patch 7/9] Implement %page -r (page in raw mode) -
726
723
727 * [patch 5/9] ScientificPython webpage has moved
724 * [patch 5/9] ScientificPython webpage has moved
728
725
729 * [patch 4/9] The manual mentions %ds, should be %dhist
726 * [patch 4/9] The manual mentions %ds, should be %dhist
730
727
731 * [patch 3/9] Kill old bits from %prun doc.
728 * [patch 3/9] Kill old bits from %prun doc.
732
729
733 * [patch 1/9] Fix typos here and there.
730 * [patch 1/9] Fix typos here and there.
734
731
735 2006-11-08 Ville Vainio <vivainio@gmail.com>
732 2006-11-08 Ville Vainio <vivainio@gmail.com>
736
733
737 * completer.py (attr_matches): catch all exceptions raised
734 * completer.py (attr_matches): catch all exceptions raised
738 by eval of expr with dots.
735 by eval of expr with dots.
739
736
740 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
737 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
741
738
742 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
739 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
743 input if it starts with whitespace. This allows you to paste
740 input if it starts with whitespace. This allows you to paste
744 indented input from any editor without manually having to type in
741 indented input from any editor without manually having to type in
745 the 'if 1:', which is convenient when working interactively.
742 the 'if 1:', which is convenient when working interactively.
746 Slightly modifed version of a patch by Bo Peng
743 Slightly modifed version of a patch by Bo Peng
747 <bpeng-AT-rice.edu>.
744 <bpeng-AT-rice.edu>.
748
745
749 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
746 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
750
747
751 * IPython/irunner.py (main): modified irunner so it automatically
748 * IPython/irunner.py (main): modified irunner so it automatically
752 recognizes the right runner to use based on the extension (.py for
749 recognizes the right runner to use based on the extension (.py for
753 python, .ipy for ipython and .sage for sage).
750 python, .ipy for ipython and .sage for sage).
754
751
755 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
752 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
756 visible in ipapi as ip.config(), to programatically control the
753 visible in ipapi as ip.config(), to programatically control the
757 internal rc object. There's an accompanying %config magic for
754 internal rc object. There's an accompanying %config magic for
758 interactive use, which has been enhanced to match the
755 interactive use, which has been enhanced to match the
759 funtionality in ipconfig.
756 funtionality in ipconfig.
760
757
761 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
758 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
762 so it's not just a toggle, it now takes an argument. Add support
759 so it's not just a toggle, it now takes an argument. Add support
763 for a customizable header when making system calls, as the new
760 for a customizable header when making system calls, as the new
764 system_header variable in the ipythonrc file.
761 system_header variable in the ipythonrc file.
765
762
766 2006-11-03 Walter Doerwald <walter@livinglogic.de>
763 2006-11-03 Walter Doerwald <walter@livinglogic.de>
767
764
768 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
765 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
769 generic functions (using Philip J. Eby's simplegeneric package).
766 generic functions (using Philip J. Eby's simplegeneric package).
770 This makes it possible to customize the display of third-party classes
767 This makes it possible to customize the display of third-party classes
771 without having to monkeypatch them. xiter() no longer supports a mode
768 without having to monkeypatch them. xiter() no longer supports a mode
772 argument and the XMode class has been removed. The same functionality can
769 argument and the XMode class has been removed. The same functionality can
773 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
770 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
774 One consequence of the switch to generic functions is that xrepr() and
771 One consequence of the switch to generic functions is that xrepr() and
775 xattrs() implementation must define the default value for the mode
772 xattrs() implementation must define the default value for the mode
776 argument themselves and xattrs() implementations must return real
773 argument themselves and xattrs() implementations must return real
777 descriptors.
774 descriptors.
778
775
779 * IPython/external: This new subpackage will contain all third-party
776 * IPython/external: This new subpackage will contain all third-party
780 packages that are bundled with IPython. (The first one is simplegeneric).
777 packages that are bundled with IPython. (The first one is simplegeneric).
781
778
782 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
779 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
783 directory which as been dropped in r1703.
780 directory which as been dropped in r1703.
784
781
785 * IPython/Extensions/ipipe.py (iless): Fixed.
782 * IPython/Extensions/ipipe.py (iless): Fixed.
786
783
787 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
784 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
788
785
789 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
786 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
790
787
791 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
788 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
792 handling in variable expansion so that shells and magics recognize
789 handling in variable expansion so that shells and magics recognize
793 function local scopes correctly. Bug reported by Brian.
790 function local scopes correctly. Bug reported by Brian.
794
791
795 * scripts/ipython: remove the very first entry in sys.path which
792 * scripts/ipython: remove the very first entry in sys.path which
796 Python auto-inserts for scripts, so that sys.path under IPython is
793 Python auto-inserts for scripts, so that sys.path under IPython is
797 as similar as possible to that under plain Python.
794 as similar as possible to that under plain Python.
798
795
799 * IPython/completer.py (IPCompleter.file_matches): Fix
796 * IPython/completer.py (IPCompleter.file_matches): Fix
800 tab-completion so that quotes are not closed unless the completion
797 tab-completion so that quotes are not closed unless the completion
801 is unambiguous. After a request by Stefan. Minor cleanups in
798 is unambiguous. After a request by Stefan. Minor cleanups in
802 ipy_stock_completers.
799 ipy_stock_completers.
803
800
804 2006-11-02 Ville Vainio <vivainio@gmail.com>
801 2006-11-02 Ville Vainio <vivainio@gmail.com>
805
802
806 * ipy_stock_completers.py: Add %run and %cd completers.
803 * ipy_stock_completers.py: Add %run and %cd completers.
807
804
808 * completer.py: Try running custom completer for both
805 * completer.py: Try running custom completer for both
809 "foo" and "%foo" if the command is just "foo". Ignore case
806 "foo" and "%foo" if the command is just "foo". Ignore case
810 when filtering possible completions.
807 when filtering possible completions.
811
808
812 * UserConfig/ipy_user_conf.py: install stock completers as default
809 * UserConfig/ipy_user_conf.py: install stock completers as default
813
810
814 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
811 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
815 simplified readline history save / restore through a wrapper
812 simplified readline history save / restore through a wrapper
816 function
813 function
817
814
818
815
819 2006-10-31 Ville Vainio <vivainio@gmail.com>
816 2006-10-31 Ville Vainio <vivainio@gmail.com>
820
817
821 * strdispatch.py, completer.py, ipy_stock_completers.py:
818 * strdispatch.py, completer.py, ipy_stock_completers.py:
822 Allow str_key ("command") in completer hooks. Implement
819 Allow str_key ("command") in completer hooks. Implement
823 trivial completer for 'import' (stdlib modules only). Rename
820 trivial completer for 'import' (stdlib modules only). Rename
824 ipy_linux_package_managers.py to ipy_stock_completers.py.
821 ipy_linux_package_managers.py to ipy_stock_completers.py.
825 SVN completer.
822 SVN completer.
826
823
827 * Extensions/ledit.py: %magic line editor for easily and
824 * Extensions/ledit.py: %magic line editor for easily and
828 incrementally manipulating lists of strings. The magic command
825 incrementally manipulating lists of strings. The magic command
829 name is %led.
826 name is %led.
830
827
831 2006-10-30 Ville Vainio <vivainio@gmail.com>
828 2006-10-30 Ville Vainio <vivainio@gmail.com>
832
829
833 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
830 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
834 Bernsteins's patches for pydb integration.
831 Bernsteins's patches for pydb integration.
835 http://bashdb.sourceforge.net/pydb/
832 http://bashdb.sourceforge.net/pydb/
836
833
837 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
834 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
838 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
835 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
839 custom completer hook to allow the users to implement their own
836 custom completer hook to allow the users to implement their own
840 completers. See ipy_linux_package_managers.py for example. The
837 completers. See ipy_linux_package_managers.py for example. The
841 hook name is 'complete_command'.
838 hook name is 'complete_command'.
842
839
843 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
840 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
844
841
845 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
842 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
846 Numeric leftovers.
843 Numeric leftovers.
847
844
848 * ipython.el (py-execute-region): apply Stefan's patch to fix
845 * ipython.el (py-execute-region): apply Stefan's patch to fix
849 garbled results if the python shell hasn't been previously started.
846 garbled results if the python shell hasn't been previously started.
850
847
851 * IPython/genutils.py (arg_split): moved to genutils, since it's a
848 * IPython/genutils.py (arg_split): moved to genutils, since it's a
852 pretty generic function and useful for other things.
849 pretty generic function and useful for other things.
853
850
854 * IPython/OInspect.py (getsource): Add customizable source
851 * IPython/OInspect.py (getsource): Add customizable source
855 extractor. After a request/patch form W. Stein (SAGE).
852 extractor. After a request/patch form W. Stein (SAGE).
856
853
857 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
854 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
858 window size to a more reasonable value from what pexpect does,
855 window size to a more reasonable value from what pexpect does,
859 since their choice causes wrapping bugs with long input lines.
856 since their choice causes wrapping bugs with long input lines.
860
857
861 2006-10-28 Ville Vainio <vivainio@gmail.com>
858 2006-10-28 Ville Vainio <vivainio@gmail.com>
862
859
863 * Magic.py (%run): Save and restore the readline history from
860 * Magic.py (%run): Save and restore the readline history from
864 file around %run commands to prevent side effects from
861 file around %run commands to prevent side effects from
865 %runned programs that might use readline (e.g. pydb).
862 %runned programs that might use readline (e.g. pydb).
866
863
867 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
864 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
868 invoking the pydb enhanced debugger.
865 invoking the pydb enhanced debugger.
869
866
870 2006-10-23 Walter Doerwald <walter@livinglogic.de>
867 2006-10-23 Walter Doerwald <walter@livinglogic.de>
871
868
872 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
869 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
873 call the base class method and propagate the return value to
870 call the base class method and propagate the return value to
874 ifile. This is now done by path itself.
871 ifile. This is now done by path itself.
875
872
876 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
873 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
877
874
878 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
875 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
879 api: set_crash_handler(), to expose the ability to change the
876 api: set_crash_handler(), to expose the ability to change the
880 internal crash handler.
877 internal crash handler.
881
878
882 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
879 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
883 the various parameters of the crash handler so that apps using
880 the various parameters of the crash handler so that apps using
884 IPython as their engine can customize crash handling. Ipmlemented
881 IPython as their engine can customize crash handling. Ipmlemented
885 at the request of SAGE.
882 at the request of SAGE.
886
883
887 2006-10-14 Ville Vainio <vivainio@gmail.com>
884 2006-10-14 Ville Vainio <vivainio@gmail.com>
888
885
889 * Magic.py, ipython.el: applied first "safe" part of Rocky
886 * Magic.py, ipython.el: applied first "safe" part of Rocky
890 Bernstein's patch set for pydb integration.
887 Bernstein's patch set for pydb integration.
891
888
892 * Magic.py (%unalias, %alias): %store'd aliases can now be
889 * Magic.py (%unalias, %alias): %store'd aliases can now be
893 removed with '%unalias'. %alias w/o args now shows most
890 removed with '%unalias'. %alias w/o args now shows most
894 interesting (stored / manually defined) aliases last
891 interesting (stored / manually defined) aliases last
895 where they catch the eye w/o scrolling.
892 where they catch the eye w/o scrolling.
896
893
897 * Magic.py (%rehashx), ext_rehashdir.py: files with
894 * Magic.py (%rehashx), ext_rehashdir.py: files with
898 'py' extension are always considered executable, even
895 'py' extension are always considered executable, even
899 when not in PATHEXT environment variable.
896 when not in PATHEXT environment variable.
900
897
901 2006-10-12 Ville Vainio <vivainio@gmail.com>
898 2006-10-12 Ville Vainio <vivainio@gmail.com>
902
899
903 * jobctrl.py: Add new "jobctrl" extension for spawning background
900 * jobctrl.py: Add new "jobctrl" extension for spawning background
904 processes with "&find /". 'import jobctrl' to try it out. Requires
901 processes with "&find /". 'import jobctrl' to try it out. Requires
905 'subprocess' module, standard in python 2.4+.
902 'subprocess' module, standard in python 2.4+.
906
903
907 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
904 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
908 so if foo -> bar and bar -> baz, then foo -> baz.
905 so if foo -> bar and bar -> baz, then foo -> baz.
909
906
910 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
907 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
911
908
912 * IPython/Magic.py (Magic.parse_options): add a new posix option
909 * IPython/Magic.py (Magic.parse_options): add a new posix option
913 to allow parsing of input args in magics that doesn't strip quotes
910 to allow parsing of input args in magics that doesn't strip quotes
914 (if posix=False). This also closes %timeit bug reported by
911 (if posix=False). This also closes %timeit bug reported by
915 Stefan.
912 Stefan.
916
913
917 2006-10-03 Ville Vainio <vivainio@gmail.com>
914 2006-10-03 Ville Vainio <vivainio@gmail.com>
918
915
919 * iplib.py (raw_input, interact): Return ValueError catching for
916 * iplib.py (raw_input, interact): Return ValueError catching for
920 raw_input. Fixes infinite loop for sys.stdin.close() or
917 raw_input. Fixes infinite loop for sys.stdin.close() or
921 sys.stdout.close().
918 sys.stdout.close().
922
919
923 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
920 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
924
921
925 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
922 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
926 to help in handling doctests. irunner is now pretty useful for
923 to help in handling doctests. irunner is now pretty useful for
927 running standalone scripts and simulate a full interactive session
924 running standalone scripts and simulate a full interactive session
928 in a format that can be then pasted as a doctest.
925 in a format that can be then pasted as a doctest.
929
926
930 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
927 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
931 on top of the default (useless) ones. This also fixes the nasty
928 on top of the default (useless) ones. This also fixes the nasty
932 way in which 2.5's Quitter() exits (reverted [1785]).
929 way in which 2.5's Quitter() exits (reverted [1785]).
933
930
934 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
931 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
935 2.5.
932 2.5.
936
933
937 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
934 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
938 color scheme is updated as well when color scheme is changed
935 color scheme is updated as well when color scheme is changed
939 interactively.
936 interactively.
940
937
941 2006-09-27 Ville Vainio <vivainio@gmail.com>
938 2006-09-27 Ville Vainio <vivainio@gmail.com>
942
939
943 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
940 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
944 infinite loop and just exit. It's a hack, but will do for a while.
941 infinite loop and just exit. It's a hack, but will do for a while.
945
942
946 2006-08-25 Walter Doerwald <walter@livinglogic.de>
943 2006-08-25 Walter Doerwald <walter@livinglogic.de>
947
944
948 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
945 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
949 the constructor, this makes it possible to get a list of only directories
946 the constructor, this makes it possible to get a list of only directories
950 or only files.
947 or only files.
951
948
952 2006-08-12 Ville Vainio <vivainio@gmail.com>
949 2006-08-12 Ville Vainio <vivainio@gmail.com>
953
950
954 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
951 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
955 they broke unittest
952 they broke unittest
956
953
957 2006-08-11 Ville Vainio <vivainio@gmail.com>
954 2006-08-11 Ville Vainio <vivainio@gmail.com>
958
955
959 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
956 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
960 by resolving issue properly, i.e. by inheriting FakeModule
957 by resolving issue properly, i.e. by inheriting FakeModule
961 from types.ModuleType. Pickling ipython interactive data
958 from types.ModuleType. Pickling ipython interactive data
962 should still work as usual (testing appreciated).
959 should still work as usual (testing appreciated).
963
960
964 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
961 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
965
962
966 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
963 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
967 running under python 2.3 with code from 2.4 to fix a bug with
964 running under python 2.3 with code from 2.4 to fix a bug with
968 help(). Reported by the Debian maintainers, Norbert Tretkowski
965 help(). Reported by the Debian maintainers, Norbert Tretkowski
969 <norbert-AT-tretkowski.de> and Alexandre Fayolle
966 <norbert-AT-tretkowski.de> and Alexandre Fayolle
970 <afayolle-AT-debian.org>.
967 <afayolle-AT-debian.org>.
971
968
972 2006-08-04 Walter Doerwald <walter@livinglogic.de>
969 2006-08-04 Walter Doerwald <walter@livinglogic.de>
973
970
974 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
971 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
975 (which was displaying "quit" twice).
972 (which was displaying "quit" twice).
976
973
977 2006-07-28 Walter Doerwald <walter@livinglogic.de>
974 2006-07-28 Walter Doerwald <walter@livinglogic.de>
978
975
979 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
976 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
980 the mode argument).
977 the mode argument).
981
978
982 2006-07-27 Walter Doerwald <walter@livinglogic.de>
979 2006-07-27 Walter Doerwald <walter@livinglogic.de>
983
980
984 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
981 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
985 not running under IPython.
982 not running under IPython.
986
983
987 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
984 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
988 and make it iterable (iterating over the attribute itself). Add two new
985 and make it iterable (iterating over the attribute itself). Add two new
989 magic strings for __xattrs__(): If the string starts with "-", the attribute
986 magic strings for __xattrs__(): If the string starts with "-", the attribute
990 will not be displayed in ibrowse's detail view (but it can still be
987 will not be displayed in ibrowse's detail view (but it can still be
991 iterated over). This makes it possible to add attributes that are large
988 iterated over). This makes it possible to add attributes that are large
992 lists or generator methods to the detail view. Replace magic attribute names
989 lists or generator methods to the detail view. Replace magic attribute names
993 and _attrname() and _getattr() with "descriptors": For each type of magic
990 and _attrname() and _getattr() with "descriptors": For each type of magic
994 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
991 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
995 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
992 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
996 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
993 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
997 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
994 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
998 are still supported.
995 are still supported.
999
996
1000 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
997 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
1001 fails in ibrowse.fetch(), the exception object is added as the last item
998 fails in ibrowse.fetch(), the exception object is added as the last item
1002 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
999 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
1003 a generator throws an exception midway through execution.
1000 a generator throws an exception midway through execution.
1004
1001
1005 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1002 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1006 encoding into methods.
1003 encoding into methods.
1007
1004
1008 2006-07-26 Ville Vainio <vivainio@gmail.com>
1005 2006-07-26 Ville Vainio <vivainio@gmail.com>
1009
1006
1010 * iplib.py: history now stores multiline input as single
1007 * iplib.py: history now stores multiline input as single
1011 history entries. Patch by Jorgen Cederlof.
1008 history entries. Patch by Jorgen Cederlof.
1012
1009
1013 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1010 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1014
1011
1015 * IPython/Extensions/ibrowse.py: Make cursor visible over
1012 * IPython/Extensions/ibrowse.py: Make cursor visible over
1016 non existing attributes.
1013 non existing attributes.
1017
1014
1018 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1015 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1019
1016
1020 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1017 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1021 error output of the running command doesn't mess up the screen.
1018 error output of the running command doesn't mess up the screen.
1022
1019
1023 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1020 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1024
1021
1025 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1022 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1026 argument. This sorts the items themselves.
1023 argument. This sorts the items themselves.
1027
1024
1028 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1025 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1029
1026
1030 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1027 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1031 Compile expression strings into code objects. This should speed
1028 Compile expression strings into code objects. This should speed
1032 up ifilter and friends somewhat.
1029 up ifilter and friends somewhat.
1033
1030
1034 2006-07-08 Ville Vainio <vivainio@gmail.com>
1031 2006-07-08 Ville Vainio <vivainio@gmail.com>
1035
1032
1036 * Magic.py: %cpaste now strips > from the beginning of lines
1033 * Magic.py: %cpaste now strips > from the beginning of lines
1037 to ease pasting quoted code from emails. Contributed by
1034 to ease pasting quoted code from emails. Contributed by
1038 Stefan van der Walt.
1035 Stefan van der Walt.
1039
1036
1040 2006-06-29 Ville Vainio <vivainio@gmail.com>
1037 2006-06-29 Ville Vainio <vivainio@gmail.com>
1041
1038
1042 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1039 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1043 mode, patch contributed by Darren Dale. NEEDS TESTING!
1040 mode, patch contributed by Darren Dale. NEEDS TESTING!
1044
1041
1045 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1042 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1046
1043
1047 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1044 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1048 a blue background. Fix fetching new display rows when the browser
1045 a blue background. Fix fetching new display rows when the browser
1049 scrolls more than a screenful (e.g. by using the goto command).
1046 scrolls more than a screenful (e.g. by using the goto command).
1050
1047
1051 2006-06-27 Ville Vainio <vivainio@gmail.com>
1048 2006-06-27 Ville Vainio <vivainio@gmail.com>
1052
1049
1053 * Magic.py (_inspect, _ofind) Apply David Huard's
1050 * Magic.py (_inspect, _ofind) Apply David Huard's
1054 patch for displaying the correct docstring for 'property'
1051 patch for displaying the correct docstring for 'property'
1055 attributes.
1052 attributes.
1056
1053
1057 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1054 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1058
1055
1059 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1056 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1060 commands into the methods implementing them.
1057 commands into the methods implementing them.
1061
1058
1062 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1059 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1063
1060
1064 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1061 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1065 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1062 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1066 autoindent support was authored by Jin Liu.
1063 autoindent support was authored by Jin Liu.
1067
1064
1068 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1065 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1069
1066
1070 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1067 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1071 for keymaps with a custom class that simplifies handling.
1068 for keymaps with a custom class that simplifies handling.
1072
1069
1073 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1070 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1074
1071
1075 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1072 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1076 resizing. This requires Python 2.5 to work.
1073 resizing. This requires Python 2.5 to work.
1077
1074
1078 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1075 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1079
1076
1080 * IPython/Extensions/ibrowse.py: Add two new commands to
1077 * IPython/Extensions/ibrowse.py: Add two new commands to
1081 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1078 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1082 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1079 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1083 attributes again. Remapped the help command to "?". Display
1080 attributes again. Remapped the help command to "?". Display
1084 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1081 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1085 as keys for the "home" and "end" commands. Add three new commands
1082 as keys for the "home" and "end" commands. Add three new commands
1086 to the input mode for "find" and friends: "delend" (CTRL-K)
1083 to the input mode for "find" and friends: "delend" (CTRL-K)
1087 deletes to the end of line. "incsearchup" searches upwards in the
1084 deletes to the end of line. "incsearchup" searches upwards in the
1088 command history for an input that starts with the text before the cursor.
1085 command history for an input that starts with the text before the cursor.
1089 "incsearchdown" does the same downwards. Removed a bogus mapping of
1086 "incsearchdown" does the same downwards. Removed a bogus mapping of
1090 the x key to "delete".
1087 the x key to "delete".
1091
1088
1092 2006-06-15 Ville Vainio <vivainio@gmail.com>
1089 2006-06-15 Ville Vainio <vivainio@gmail.com>
1093
1090
1094 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1091 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1095 used to create prompts dynamically, instead of the "old" way of
1092 used to create prompts dynamically, instead of the "old" way of
1096 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1093 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1097 way still works (it's invoked by the default hook), of course.
1094 way still works (it's invoked by the default hook), of course.
1098
1095
1099 * Prompts.py: added generate_output_prompt hook for altering output
1096 * Prompts.py: added generate_output_prompt hook for altering output
1100 prompt
1097 prompt
1101
1098
1102 * Release.py: Changed version string to 0.7.3.svn.
1099 * Release.py: Changed version string to 0.7.3.svn.
1103
1100
1104 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1101 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1105
1102
1106 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1103 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1107 the call to fetch() always tries to fetch enough data for at least one
1104 the call to fetch() always tries to fetch enough data for at least one
1108 full screen. This makes it possible to simply call moveto(0,0,True) in
1105 full screen. This makes it possible to simply call moveto(0,0,True) in
1109 the constructor. Fix typos and removed the obsolete goto attribute.
1106 the constructor. Fix typos and removed the obsolete goto attribute.
1110
1107
1111 2006-06-12 Ville Vainio <vivainio@gmail.com>
1108 2006-06-12 Ville Vainio <vivainio@gmail.com>
1112
1109
1113 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1110 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1114 allowing $variable interpolation within multiline statements,
1111 allowing $variable interpolation within multiline statements,
1115 though so far only with "sh" profile for a testing period.
1112 though so far only with "sh" profile for a testing period.
1116 The patch also enables splitting long commands with \ but it
1113 The patch also enables splitting long commands with \ but it
1117 doesn't work properly yet.
1114 doesn't work properly yet.
1118
1115
1119 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1116 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1120
1117
1121 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1118 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1122 input history and the position of the cursor in the input history for
1119 input history and the position of the cursor in the input history for
1123 the find, findbackwards and goto command.
1120 the find, findbackwards and goto command.
1124
1121
1125 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1122 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1126
1123
1127 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1124 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1128 implements the basic functionality of browser commands that require
1125 implements the basic functionality of browser commands that require
1129 input. Reimplement the goto, find and findbackwards commands as
1126 input. Reimplement the goto, find and findbackwards commands as
1130 subclasses of _CommandInput. Add an input history and keymaps to those
1127 subclasses of _CommandInput. Add an input history and keymaps to those
1131 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1128 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1132 execute commands.
1129 execute commands.
1133
1130
1134 2006-06-07 Ville Vainio <vivainio@gmail.com>
1131 2006-06-07 Ville Vainio <vivainio@gmail.com>
1135
1132
1136 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1133 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1137 running the batch files instead of leaving the session open.
1134 running the batch files instead of leaving the session open.
1138
1135
1139 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1136 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1140
1137
1141 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1138 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1142 the original fix was incomplete. Patch submitted by W. Maier.
1139 the original fix was incomplete. Patch submitted by W. Maier.
1143
1140
1144 2006-06-07 Ville Vainio <vivainio@gmail.com>
1141 2006-06-07 Ville Vainio <vivainio@gmail.com>
1145
1142
1146 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1143 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1147 Confirmation prompts can be supressed by 'quiet' option.
1144 Confirmation prompts can be supressed by 'quiet' option.
1148 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1145 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1149
1146
1150 2006-06-06 *** Released version 0.7.2
1147 2006-06-06 *** Released version 0.7.2
1151
1148
1152 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1149 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1153
1150
1154 * IPython/Release.py (version): Made 0.7.2 final for release.
1151 * IPython/Release.py (version): Made 0.7.2 final for release.
1155 Repo tagged and release cut.
1152 Repo tagged and release cut.
1156
1153
1157 2006-06-05 Ville Vainio <vivainio@gmail.com>
1154 2006-06-05 Ville Vainio <vivainio@gmail.com>
1158
1155
1159 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1156 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1160 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1157 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1161
1158
1162 * upgrade_dir.py: try import 'path' module a bit harder
1159 * upgrade_dir.py: try import 'path' module a bit harder
1163 (for %upgrade)
1160 (for %upgrade)
1164
1161
1165 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1162 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1166
1163
1167 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1164 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1168 instead of looping 20 times.
1165 instead of looping 20 times.
1169
1166
1170 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1167 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1171 correctly at initialization time. Bug reported by Krishna Mohan
1168 correctly at initialization time. Bug reported by Krishna Mohan
1172 Gundu <gkmohan-AT-gmail.com> on the user list.
1169 Gundu <gkmohan-AT-gmail.com> on the user list.
1173
1170
1174 * IPython/Release.py (version): Mark 0.7.2 version to start
1171 * IPython/Release.py (version): Mark 0.7.2 version to start
1175 testing for release on 06/06.
1172 testing for release on 06/06.
1176
1173
1177 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1174 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1178
1175
1179 * scripts/irunner: thin script interface so users don't have to
1176 * scripts/irunner: thin script interface so users don't have to
1180 find the module and call it as an executable, since modules rarely
1177 find the module and call it as an executable, since modules rarely
1181 live in people's PATH.
1178 live in people's PATH.
1182
1179
1183 * IPython/irunner.py (InteractiveRunner.__init__): added
1180 * IPython/irunner.py (InteractiveRunner.__init__): added
1184 delaybeforesend attribute to control delays with newer versions of
1181 delaybeforesend attribute to control delays with newer versions of
1185 pexpect. Thanks to detailed help from pexpect's author, Noah
1182 pexpect. Thanks to detailed help from pexpect's author, Noah
1186 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1183 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1187 correctly (it works in NoColor mode).
1184 correctly (it works in NoColor mode).
1188
1185
1189 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1186 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1190 SAGE list, from improper log() calls.
1187 SAGE list, from improper log() calls.
1191
1188
1192 2006-05-31 Ville Vainio <vivainio@gmail.com>
1189 2006-05-31 Ville Vainio <vivainio@gmail.com>
1193
1190
1194 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1191 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1195 with args in parens to work correctly with dirs that have spaces.
1192 with args in parens to work correctly with dirs that have spaces.
1196
1193
1197 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1194 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1198
1195
1199 * IPython/Logger.py (Logger.logstart): add option to log raw input
1196 * IPython/Logger.py (Logger.logstart): add option to log raw input
1200 instead of the processed one. A -r flag was added to the
1197 instead of the processed one. A -r flag was added to the
1201 %logstart magic used for controlling logging.
1198 %logstart magic used for controlling logging.
1202
1199
1203 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1200 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1204
1201
1205 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1202 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1206 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1203 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1207 recognize the option. After a bug report by Will Maier. This
1204 recognize the option. After a bug report by Will Maier. This
1208 closes #64 (will do it after confirmation from W. Maier).
1205 closes #64 (will do it after confirmation from W. Maier).
1209
1206
1210 * IPython/irunner.py: New module to run scripts as if manually
1207 * IPython/irunner.py: New module to run scripts as if manually
1211 typed into an interactive environment, based on pexpect. After a
1208 typed into an interactive environment, based on pexpect. After a
1212 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1209 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1213 ipython-user list. Simple unittests in the tests/ directory.
1210 ipython-user list. Simple unittests in the tests/ directory.
1214
1211
1215 * tools/release: add Will Maier, OpenBSD port maintainer, to
1212 * tools/release: add Will Maier, OpenBSD port maintainer, to
1216 recepients list. We are now officially part of the OpenBSD ports:
1213 recepients list. We are now officially part of the OpenBSD ports:
1217 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1214 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1218 work.
1215 work.
1219
1216
1220 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1217 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1221
1218
1222 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1219 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1223 so that it doesn't break tkinter apps.
1220 so that it doesn't break tkinter apps.
1224
1221
1225 * IPython/iplib.py (_prefilter): fix bug where aliases would
1222 * IPython/iplib.py (_prefilter): fix bug where aliases would
1226 shadow variables when autocall was fully off. Reported by SAGE
1223 shadow variables when autocall was fully off. Reported by SAGE
1227 author William Stein.
1224 author William Stein.
1228
1225
1229 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1226 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1230 at what detail level strings are computed when foo? is requested.
1227 at what detail level strings are computed when foo? is requested.
1231 This allows users to ask for example that the string form of an
1228 This allows users to ask for example that the string form of an
1232 object is only computed when foo?? is called, or even never, by
1229 object is only computed when foo?? is called, or even never, by
1233 setting the object_info_string_level >= 2 in the configuration
1230 setting the object_info_string_level >= 2 in the configuration
1234 file. This new option has been added and documented. After a
1231 file. This new option has been added and documented. After a
1235 request by SAGE to be able to control the printing of very large
1232 request by SAGE to be able to control the printing of very large
1236 objects more easily.
1233 objects more easily.
1237
1234
1238 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1235 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1239
1236
1240 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1237 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1241 from sys.argv, to be 100% consistent with how Python itself works
1238 from sys.argv, to be 100% consistent with how Python itself works
1242 (as seen for example with python -i file.py). After a bug report
1239 (as seen for example with python -i file.py). After a bug report
1243 by Jeffrey Collins.
1240 by Jeffrey Collins.
1244
1241
1245 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1242 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1246 nasty bug which was preventing custom namespaces with -pylab,
1243 nasty bug which was preventing custom namespaces with -pylab,
1247 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1244 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1248 compatibility (long gone from mpl).
1245 compatibility (long gone from mpl).
1249
1246
1250 * IPython/ipapi.py (make_session): name change: create->make. We
1247 * IPython/ipapi.py (make_session): name change: create->make. We
1251 use make in other places (ipmaker,...), it's shorter and easier to
1248 use make in other places (ipmaker,...), it's shorter and easier to
1252 type and say, etc. I'm trying to clean things before 0.7.2 so
1249 type and say, etc. I'm trying to clean things before 0.7.2 so
1253 that I can keep things stable wrt to ipapi in the chainsaw branch.
1250 that I can keep things stable wrt to ipapi in the chainsaw branch.
1254
1251
1255 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1252 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1256 python-mode recognizes our debugger mode. Add support for
1253 python-mode recognizes our debugger mode. Add support for
1257 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1254 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1258 <m.liu.jin-AT-gmail.com> originally written by
1255 <m.liu.jin-AT-gmail.com> originally written by
1259 doxgen-AT-newsmth.net (with minor modifications for xemacs
1256 doxgen-AT-newsmth.net (with minor modifications for xemacs
1260 compatibility)
1257 compatibility)
1261
1258
1262 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1259 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1263 tracebacks when walking the stack so that the stack tracking system
1260 tracebacks when walking the stack so that the stack tracking system
1264 in emacs' python-mode can identify the frames correctly.
1261 in emacs' python-mode can identify the frames correctly.
1265
1262
1266 * IPython/ipmaker.py (make_IPython): make the internal (and
1263 * IPython/ipmaker.py (make_IPython): make the internal (and
1267 default config) autoedit_syntax value false by default. Too many
1264 default config) autoedit_syntax value false by default. Too many
1268 users have complained to me (both on and off-list) about problems
1265 users have complained to me (both on and off-list) about problems
1269 with this option being on by default, so I'm making it default to
1266 with this option being on by default, so I'm making it default to
1270 off. It can still be enabled by anyone via the usual mechanisms.
1267 off. It can still be enabled by anyone via the usual mechanisms.
1271
1268
1272 * IPython/completer.py (Completer.attr_matches): add support for
1269 * IPython/completer.py (Completer.attr_matches): add support for
1273 PyCrust-style _getAttributeNames magic method. Patch contributed
1270 PyCrust-style _getAttributeNames magic method. Patch contributed
1274 by <mscott-AT-goldenspud.com>. Closes #50.
1271 by <mscott-AT-goldenspud.com>. Closes #50.
1275
1272
1276 * IPython/iplib.py (InteractiveShell.__init__): remove the
1273 * IPython/iplib.py (InteractiveShell.__init__): remove the
1277 deletion of exit/quit from __builtin__, which can break
1274 deletion of exit/quit from __builtin__, which can break
1278 third-party tools like the Zope debugging console. The
1275 third-party tools like the Zope debugging console. The
1279 %exit/%quit magics remain. In general, it's probably a good idea
1276 %exit/%quit magics remain. In general, it's probably a good idea
1280 not to delete anything from __builtin__, since we never know what
1277 not to delete anything from __builtin__, since we never know what
1281 that will break. In any case, python now (for 2.5) will support
1278 that will break. In any case, python now (for 2.5) will support
1282 'real' exit/quit, so this issue is moot. Closes #55.
1279 'real' exit/quit, so this issue is moot. Closes #55.
1283
1280
1284 * IPython/genutils.py (with_obj): rename the 'with' function to
1281 * IPython/genutils.py (with_obj): rename the 'with' function to
1285 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1282 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1286 becomes a language keyword. Closes #53.
1283 becomes a language keyword. Closes #53.
1287
1284
1288 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1285 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1289 __file__ attribute to this so it fools more things into thinking
1286 __file__ attribute to this so it fools more things into thinking
1290 it is a real module. Closes #59.
1287 it is a real module. Closes #59.
1291
1288
1292 * IPython/Magic.py (magic_edit): add -n option to open the editor
1289 * IPython/Magic.py (magic_edit): add -n option to open the editor
1293 at a specific line number. After a patch by Stefan van der Walt.
1290 at a specific line number. After a patch by Stefan van der Walt.
1294
1291
1295 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1292 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1296
1293
1297 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1294 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1298 reason the file could not be opened. After automatic crash
1295 reason the file could not be opened. After automatic crash
1299 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1296 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1300 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1297 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1301 (_should_recompile): Don't fire editor if using %bg, since there
1298 (_should_recompile): Don't fire editor if using %bg, since there
1302 is no file in the first place. From the same report as above.
1299 is no file in the first place. From the same report as above.
1303 (raw_input): protect against faulty third-party prefilters. After
1300 (raw_input): protect against faulty third-party prefilters. After
1304 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1301 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1305 while running under SAGE.
1302 while running under SAGE.
1306
1303
1307 2006-05-23 Ville Vainio <vivainio@gmail.com>
1304 2006-05-23 Ville Vainio <vivainio@gmail.com>
1308
1305
1309 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1306 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1310 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1307 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1311 now returns None (again), unless dummy is specifically allowed by
1308 now returns None (again), unless dummy is specifically allowed by
1312 ipapi.get(allow_dummy=True).
1309 ipapi.get(allow_dummy=True).
1313
1310
1314 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1311 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1315
1312
1316 * IPython: remove all 2.2-compatibility objects and hacks from
1313 * IPython: remove all 2.2-compatibility objects and hacks from
1317 everywhere, since we only support 2.3 at this point. Docs
1314 everywhere, since we only support 2.3 at this point. Docs
1318 updated.
1315 updated.
1319
1316
1320 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1317 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1321 Anything requiring extra validation can be turned into a Python
1318 Anything requiring extra validation can be turned into a Python
1322 property in the future. I used a property for the db one b/c
1319 property in the future. I used a property for the db one b/c
1323 there was a nasty circularity problem with the initialization
1320 there was a nasty circularity problem with the initialization
1324 order, which right now I don't have time to clean up.
1321 order, which right now I don't have time to clean up.
1325
1322
1326 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1323 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1327 another locking bug reported by Jorgen. I'm not 100% sure though,
1324 another locking bug reported by Jorgen. I'm not 100% sure though,
1328 so more testing is needed...
1325 so more testing is needed...
1329
1326
1330 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1327 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1331
1328
1332 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1329 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1333 local variables from any routine in user code (typically executed
1330 local variables from any routine in user code (typically executed
1334 with %run) directly into the interactive namespace. Very useful
1331 with %run) directly into the interactive namespace. Very useful
1335 when doing complex debugging.
1332 when doing complex debugging.
1336 (IPythonNotRunning): Changed the default None object to a dummy
1333 (IPythonNotRunning): Changed the default None object to a dummy
1337 whose attributes can be queried as well as called without
1334 whose attributes can be queried as well as called without
1338 exploding, to ease writing code which works transparently both in
1335 exploding, to ease writing code which works transparently both in
1339 and out of ipython and uses some of this API.
1336 and out of ipython and uses some of this API.
1340
1337
1341 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1338 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1342
1339
1343 * IPython/hooks.py (result_display): Fix the fact that our display
1340 * IPython/hooks.py (result_display): Fix the fact that our display
1344 hook was using str() instead of repr(), as the default python
1341 hook was using str() instead of repr(), as the default python
1345 console does. This had gone unnoticed b/c it only happened if
1342 console does. This had gone unnoticed b/c it only happened if
1346 %Pprint was off, but the inconsistency was there.
1343 %Pprint was off, but the inconsistency was there.
1347
1344
1348 2006-05-15 Ville Vainio <vivainio@gmail.com>
1345 2006-05-15 Ville Vainio <vivainio@gmail.com>
1349
1346
1350 * Oinspect.py: Only show docstring for nonexisting/binary files
1347 * Oinspect.py: Only show docstring for nonexisting/binary files
1351 when doing object??, closing ticket #62
1348 when doing object??, closing ticket #62
1352
1349
1353 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1350 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1354
1351
1355 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1352 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1356 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1353 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1357 was being released in a routine which hadn't checked if it had
1354 was being released in a routine which hadn't checked if it had
1358 been the one to acquire it.
1355 been the one to acquire it.
1359
1356
1360 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1357 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1361
1358
1362 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1359 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1363
1360
1364 2006-04-11 Ville Vainio <vivainio@gmail.com>
1361 2006-04-11 Ville Vainio <vivainio@gmail.com>
1365
1362
1366 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1363 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1367 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1364 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1368 prefilters, allowing stuff like magics and aliases in the file.
1365 prefilters, allowing stuff like magics and aliases in the file.
1369
1366
1370 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1367 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1371 added. Supported now are "%clear in" and "%clear out" (clear input and
1368 added. Supported now are "%clear in" and "%clear out" (clear input and
1372 output history, respectively). Also fixed CachedOutput.flush to
1369 output history, respectively). Also fixed CachedOutput.flush to
1373 properly flush the output cache.
1370 properly flush the output cache.
1374
1371
1375 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1372 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1376 half-success (and fail explicitly).
1373 half-success (and fail explicitly).
1377
1374
1378 2006-03-28 Ville Vainio <vivainio@gmail.com>
1375 2006-03-28 Ville Vainio <vivainio@gmail.com>
1379
1376
1380 * iplib.py: Fix quoting of aliases so that only argless ones
1377 * iplib.py: Fix quoting of aliases so that only argless ones
1381 are quoted
1378 are quoted
1382
1379
1383 2006-03-28 Ville Vainio <vivainio@gmail.com>
1380 2006-03-28 Ville Vainio <vivainio@gmail.com>
1384
1381
1385 * iplib.py: Quote aliases with spaces in the name.
1382 * iplib.py: Quote aliases with spaces in the name.
1386 "c:\program files\blah\bin" is now legal alias target.
1383 "c:\program files\blah\bin" is now legal alias target.
1387
1384
1388 * ext_rehashdir.py: Space no longer allowed as arg
1385 * ext_rehashdir.py: Space no longer allowed as arg
1389 separator, since space is legal in path names.
1386 separator, since space is legal in path names.
1390
1387
1391 2006-03-16 Ville Vainio <vivainio@gmail.com>
1388 2006-03-16 Ville Vainio <vivainio@gmail.com>
1392
1389
1393 * upgrade_dir.py: Take path.py from Extensions, correcting
1390 * upgrade_dir.py: Take path.py from Extensions, correcting
1394 %upgrade magic
1391 %upgrade magic
1395
1392
1396 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1393 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1397
1394
1398 * hooks.py: Only enclose editor binary in quotes if legal and
1395 * hooks.py: Only enclose editor binary in quotes if legal and
1399 necessary (space in the name, and is an existing file). Fixes a bug
1396 necessary (space in the name, and is an existing file). Fixes a bug
1400 reported by Zachary Pincus.
1397 reported by Zachary Pincus.
1401
1398
1402 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1399 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1403
1400
1404 * Manual: thanks to a tip on proper color handling for Emacs, by
1401 * Manual: thanks to a tip on proper color handling for Emacs, by
1405 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1402 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1406
1403
1407 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1404 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1408 by applying the provided patch. Thanks to Liu Jin
1405 by applying the provided patch. Thanks to Liu Jin
1409 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1406 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1410 XEmacs/Linux, I'm trusting the submitter that it actually helps
1407 XEmacs/Linux, I'm trusting the submitter that it actually helps
1411 under win32/GNU Emacs. Will revisit if any problems are reported.
1408 under win32/GNU Emacs. Will revisit if any problems are reported.
1412
1409
1413 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1410 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1414
1411
1415 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1412 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1416 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1413 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1417
1414
1418 2006-03-12 Ville Vainio <vivainio@gmail.com>
1415 2006-03-12 Ville Vainio <vivainio@gmail.com>
1419
1416
1420 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1417 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1421 Torsten Marek.
1418 Torsten Marek.
1422
1419
1423 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1420 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1424
1421
1425 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1422 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1426 line ranges works again.
1423 line ranges works again.
1427
1424
1428 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1425 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1429
1426
1430 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1427 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1431 and friends, after a discussion with Zach Pincus on ipython-user.
1428 and friends, after a discussion with Zach Pincus on ipython-user.
1432 I'm not 100% sure, but after thinking about it quite a bit, it may
1429 I'm not 100% sure, but after thinking about it quite a bit, it may
1433 be OK. Testing with the multithreaded shells didn't reveal any
1430 be OK. Testing with the multithreaded shells didn't reveal any
1434 problems, but let's keep an eye out.
1431 problems, but let's keep an eye out.
1435
1432
1436 In the process, I fixed a few things which were calling
1433 In the process, I fixed a few things which were calling
1437 self.InteractiveTB() directly (like safe_execfile), which is a
1434 self.InteractiveTB() directly (like safe_execfile), which is a
1438 mistake: ALL exception reporting should be done by calling
1435 mistake: ALL exception reporting should be done by calling
1439 self.showtraceback(), which handles state and tab-completion and
1436 self.showtraceback(), which handles state and tab-completion and
1440 more.
1437 more.
1441
1438
1442 2006-03-01 Ville Vainio <vivainio@gmail.com>
1439 2006-03-01 Ville Vainio <vivainio@gmail.com>
1443
1440
1444 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1441 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1445 To use, do "from ipipe import *".
1442 To use, do "from ipipe import *".
1446
1443
1447 2006-02-24 Ville Vainio <vivainio@gmail.com>
1444 2006-02-24 Ville Vainio <vivainio@gmail.com>
1448
1445
1449 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1446 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1450 "cleanly" and safely than the older upgrade mechanism.
1447 "cleanly" and safely than the older upgrade mechanism.
1451
1448
1452 2006-02-21 Ville Vainio <vivainio@gmail.com>
1449 2006-02-21 Ville Vainio <vivainio@gmail.com>
1453
1450
1454 * Magic.py: %save works again.
1451 * Magic.py: %save works again.
1455
1452
1456 2006-02-15 Ville Vainio <vivainio@gmail.com>
1453 2006-02-15 Ville Vainio <vivainio@gmail.com>
1457
1454
1458 * Magic.py: %Pprint works again
1455 * Magic.py: %Pprint works again
1459
1456
1460 * Extensions/ipy_sane_defaults.py: Provide everything provided
1457 * Extensions/ipy_sane_defaults.py: Provide everything provided
1461 in default ipythonrc, to make it possible to have a completely empty
1458 in default ipythonrc, to make it possible to have a completely empty
1462 ipythonrc (and thus completely rc-file free configuration)
1459 ipythonrc (and thus completely rc-file free configuration)
1463
1460
1464 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1461 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1465
1462
1466 * IPython/hooks.py (editor): quote the call to the editor command,
1463 * IPython/hooks.py (editor): quote the call to the editor command,
1467 to allow commands with spaces in them. Problem noted by watching
1464 to allow commands with spaces in them. Problem noted by watching
1468 Ian Oswald's video about textpad under win32 at
1465 Ian Oswald's video about textpad under win32 at
1469 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1466 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1470
1467
1471 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1468 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1472 describing magics (we haven't used @ for a loong time).
1469 describing magics (we haven't used @ for a loong time).
1473
1470
1474 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1471 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1475 contributed by marienz to close
1472 contributed by marienz to close
1476 http://www.scipy.net/roundup/ipython/issue53.
1473 http://www.scipy.net/roundup/ipython/issue53.
1477
1474
1478 2006-02-10 Ville Vainio <vivainio@gmail.com>
1475 2006-02-10 Ville Vainio <vivainio@gmail.com>
1479
1476
1480 * genutils.py: getoutput now works in win32 too
1477 * genutils.py: getoutput now works in win32 too
1481
1478
1482 * completer.py: alias and magic completion only invoked
1479 * completer.py: alias and magic completion only invoked
1483 at the first "item" in the line, to avoid "cd %store"
1480 at the first "item" in the line, to avoid "cd %store"
1484 nonsense.
1481 nonsense.
1485
1482
1486 2006-02-09 Ville Vainio <vivainio@gmail.com>
1483 2006-02-09 Ville Vainio <vivainio@gmail.com>
1487
1484
1488 * test/*: Added a unit testing framework (finally).
1485 * test/*: Added a unit testing framework (finally).
1489 '%run runtests.py' to run test_*.
1486 '%run runtests.py' to run test_*.
1490
1487
1491 * ipapi.py: Exposed runlines and set_custom_exc
1488 * ipapi.py: Exposed runlines and set_custom_exc
1492
1489
1493 2006-02-07 Ville Vainio <vivainio@gmail.com>
1490 2006-02-07 Ville Vainio <vivainio@gmail.com>
1494
1491
1495 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1492 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1496 instead use "f(1 2)" as before.
1493 instead use "f(1 2)" as before.
1497
1494
1498 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1495 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1499
1496
1500 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1497 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1501 facilities, for demos processed by the IPython input filter
1498 facilities, for demos processed by the IPython input filter
1502 (IPythonDemo), and for running a script one-line-at-a-time as a
1499 (IPythonDemo), and for running a script one-line-at-a-time as a
1503 demo, both for pure Python (LineDemo) and for IPython-processed
1500 demo, both for pure Python (LineDemo) and for IPython-processed
1504 input (IPythonLineDemo). After a request by Dave Kohel, from the
1501 input (IPythonLineDemo). After a request by Dave Kohel, from the
1505 SAGE team.
1502 SAGE team.
1506 (Demo.edit): added an edit() method to the demo objects, to edit
1503 (Demo.edit): added an edit() method to the demo objects, to edit
1507 the in-memory copy of the last executed block.
1504 the in-memory copy of the last executed block.
1508
1505
1509 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1506 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1510 processing to %edit, %macro and %save. These commands can now be
1507 processing to %edit, %macro and %save. These commands can now be
1511 invoked on the unprocessed input as it was typed by the user
1508 invoked on the unprocessed input as it was typed by the user
1512 (without any prefilters applied). After requests by the SAGE team
1509 (without any prefilters applied). After requests by the SAGE team
1513 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1510 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1514
1511
1515 2006-02-01 Ville Vainio <vivainio@gmail.com>
1512 2006-02-01 Ville Vainio <vivainio@gmail.com>
1516
1513
1517 * setup.py, eggsetup.py: easy_install ipython==dev works
1514 * setup.py, eggsetup.py: easy_install ipython==dev works
1518 correctly now (on Linux)
1515 correctly now (on Linux)
1519
1516
1520 * ipy_user_conf,ipmaker: user config changes, removed spurious
1517 * ipy_user_conf,ipmaker: user config changes, removed spurious
1521 warnings
1518 warnings
1522
1519
1523 * iplib: if rc.banner is string, use it as is.
1520 * iplib: if rc.banner is string, use it as is.
1524
1521
1525 * Magic: %pycat accepts a string argument and pages it's contents.
1522 * Magic: %pycat accepts a string argument and pages it's contents.
1526
1523
1527
1524
1528 2006-01-30 Ville Vainio <vivainio@gmail.com>
1525 2006-01-30 Ville Vainio <vivainio@gmail.com>
1529
1526
1530 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1527 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1531 Now %store and bookmarks work through PickleShare, meaning that
1528 Now %store and bookmarks work through PickleShare, meaning that
1532 concurrent access is possible and all ipython sessions see the
1529 concurrent access is possible and all ipython sessions see the
1533 same database situation all the time, instead of snapshot of
1530 same database situation all the time, instead of snapshot of
1534 the situation when the session was started. Hence, %bookmark
1531 the situation when the session was started. Hence, %bookmark
1535 results are immediately accessible from othes sessions. The database
1532 results are immediately accessible from othes sessions. The database
1536 is also available for use by user extensions. See:
1533 is also available for use by user extensions. See:
1537 http://www.python.org/pypi/pickleshare
1534 http://www.python.org/pypi/pickleshare
1538
1535
1539 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1536 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1540
1537
1541 * aliases can now be %store'd
1538 * aliases can now be %store'd
1542
1539
1543 * path.py moved to Extensions so that pickleshare does not need
1540 * path.py moved to Extensions so that pickleshare does not need
1544 IPython-specific import. Extensions added to pythonpath right
1541 IPython-specific import. Extensions added to pythonpath right
1545 at __init__.
1542 at __init__.
1546
1543
1547 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1544 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1548 called with _ip.system and the pre-transformed command string.
1545 called with _ip.system and the pre-transformed command string.
1549
1546
1550 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1547 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1551
1548
1552 * IPython/iplib.py (interact): Fix that we were not catching
1549 * IPython/iplib.py (interact): Fix that we were not catching
1553 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1550 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1554 logic here had to change, but it's fixed now.
1551 logic here had to change, but it's fixed now.
1555
1552
1556 2006-01-29 Ville Vainio <vivainio@gmail.com>
1553 2006-01-29 Ville Vainio <vivainio@gmail.com>
1557
1554
1558 * iplib.py: Try to import pyreadline on Windows.
1555 * iplib.py: Try to import pyreadline on Windows.
1559
1556
1560 2006-01-27 Ville Vainio <vivainio@gmail.com>
1557 2006-01-27 Ville Vainio <vivainio@gmail.com>
1561
1558
1562 * iplib.py: Expose ipapi as _ip in builtin namespace.
1559 * iplib.py: Expose ipapi as _ip in builtin namespace.
1563 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1560 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1564 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1561 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1565 syntax now produce _ip.* variant of the commands.
1562 syntax now produce _ip.* variant of the commands.
1566
1563
1567 * "_ip.options().autoedit_syntax = 2" automatically throws
1564 * "_ip.options().autoedit_syntax = 2" automatically throws
1568 user to editor for syntax error correction without prompting.
1565 user to editor for syntax error correction without prompting.
1569
1566
1570 2006-01-27 Ville Vainio <vivainio@gmail.com>
1567 2006-01-27 Ville Vainio <vivainio@gmail.com>
1571
1568
1572 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1569 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1573 'ipython' at argv[0]) executed through command line.
1570 'ipython' at argv[0]) executed through command line.
1574 NOTE: this DEPRECATES calling ipython with multiple scripts
1571 NOTE: this DEPRECATES calling ipython with multiple scripts
1575 ("ipython a.py b.py c.py")
1572 ("ipython a.py b.py c.py")
1576
1573
1577 * iplib.py, hooks.py: Added configurable input prefilter,
1574 * iplib.py, hooks.py: Added configurable input prefilter,
1578 named 'input_prefilter'. See ext_rescapture.py for example
1575 named 'input_prefilter'. See ext_rescapture.py for example
1579 usage.
1576 usage.
1580
1577
1581 * ext_rescapture.py, Magic.py: Better system command output capture
1578 * ext_rescapture.py, Magic.py: Better system command output capture
1582 through 'var = !ls' (deprecates user-visible %sc). Same notation
1579 through 'var = !ls' (deprecates user-visible %sc). Same notation
1583 applies for magics, 'var = %alias' assigns alias list to var.
1580 applies for magics, 'var = %alias' assigns alias list to var.
1584
1581
1585 * ipapi.py: added meta() for accessing extension-usable data store.
1582 * ipapi.py: added meta() for accessing extension-usable data store.
1586
1583
1587 * iplib.py: added InteractiveShell.getapi(). New magics should be
1584 * iplib.py: added InteractiveShell.getapi(). New magics should be
1588 written doing self.getapi() instead of using the shell directly.
1585 written doing self.getapi() instead of using the shell directly.
1589
1586
1590 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1587 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1591 %store foo >> ~/myfoo.txt to store variables to files (in clean
1588 %store foo >> ~/myfoo.txt to store variables to files (in clean
1592 textual form, not a restorable pickle).
1589 textual form, not a restorable pickle).
1593
1590
1594 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1591 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1595
1592
1596 * usage.py, Magic.py: added %quickref
1593 * usage.py, Magic.py: added %quickref
1597
1594
1598 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1595 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1599
1596
1600 * GetoptErrors when invoking magics etc. with wrong args
1597 * GetoptErrors when invoking magics etc. with wrong args
1601 are now more helpful:
1598 are now more helpful:
1602 GetoptError: option -l not recognized (allowed: "qb" )
1599 GetoptError: option -l not recognized (allowed: "qb" )
1603
1600
1604 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1601 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1605
1602
1606 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1603 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1607 computationally intensive blocks don't appear to stall the demo.
1604 computationally intensive blocks don't appear to stall the demo.
1608
1605
1609 2006-01-24 Ville Vainio <vivainio@gmail.com>
1606 2006-01-24 Ville Vainio <vivainio@gmail.com>
1610
1607
1611 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1608 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1612 value to manipulate resulting history entry.
1609 value to manipulate resulting history entry.
1613
1610
1614 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1611 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1615 to instance methods of IPApi class, to make extending an embedded
1612 to instance methods of IPApi class, to make extending an embedded
1616 IPython feasible. See ext_rehashdir.py for example usage.
1613 IPython feasible. See ext_rehashdir.py for example usage.
1617
1614
1618 * Merged 1071-1076 from branches/0.7.1
1615 * Merged 1071-1076 from branches/0.7.1
1619
1616
1620
1617
1621 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1618 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1622
1619
1623 * tools/release (daystamp): Fix build tools to use the new
1620 * tools/release (daystamp): Fix build tools to use the new
1624 eggsetup.py script to build lightweight eggs.
1621 eggsetup.py script to build lightweight eggs.
1625
1622
1626 * Applied changesets 1062 and 1064 before 0.7.1 release.
1623 * Applied changesets 1062 and 1064 before 0.7.1 release.
1627
1624
1628 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1625 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1629 see the raw input history (without conversions like %ls ->
1626 see the raw input history (without conversions like %ls ->
1630 ipmagic("ls")). After a request from W. Stein, SAGE
1627 ipmagic("ls")). After a request from W. Stein, SAGE
1631 (http://modular.ucsd.edu/sage) developer. This information is
1628 (http://modular.ucsd.edu/sage) developer. This information is
1632 stored in the input_hist_raw attribute of the IPython instance, so
1629 stored in the input_hist_raw attribute of the IPython instance, so
1633 developers can access it if needed (it's an InputList instance).
1630 developers can access it if needed (it's an InputList instance).
1634
1631
1635 * Versionstring = 0.7.2.svn
1632 * Versionstring = 0.7.2.svn
1636
1633
1637 * eggsetup.py: A separate script for constructing eggs, creates
1634 * eggsetup.py: A separate script for constructing eggs, creates
1638 proper launch scripts even on Windows (an .exe file in
1635 proper launch scripts even on Windows (an .exe file in
1639 \python24\scripts).
1636 \python24\scripts).
1640
1637
1641 * ipapi.py: launch_new_instance, launch entry point needed for the
1638 * ipapi.py: launch_new_instance, launch entry point needed for the
1642 egg.
1639 egg.
1643
1640
1644 2006-01-23 Ville Vainio <vivainio@gmail.com>
1641 2006-01-23 Ville Vainio <vivainio@gmail.com>
1645
1642
1646 * Added %cpaste magic for pasting python code
1643 * Added %cpaste magic for pasting python code
1647
1644
1648 2006-01-22 Ville Vainio <vivainio@gmail.com>
1645 2006-01-22 Ville Vainio <vivainio@gmail.com>
1649
1646
1650 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1647 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1651
1648
1652 * Versionstring = 0.7.2.svn
1649 * Versionstring = 0.7.2.svn
1653
1650
1654 * eggsetup.py: A separate script for constructing eggs, creates
1651 * eggsetup.py: A separate script for constructing eggs, creates
1655 proper launch scripts even on Windows (an .exe file in
1652 proper launch scripts even on Windows (an .exe file in
1656 \python24\scripts).
1653 \python24\scripts).
1657
1654
1658 * ipapi.py: launch_new_instance, launch entry point needed for the
1655 * ipapi.py: launch_new_instance, launch entry point needed for the
1659 egg.
1656 egg.
1660
1657
1661 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1658 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1662
1659
1663 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1660 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1664 %pfile foo would print the file for foo even if it was a binary.
1661 %pfile foo would print the file for foo even if it was a binary.
1665 Now, extensions '.so' and '.dll' are skipped.
1662 Now, extensions '.so' and '.dll' are skipped.
1666
1663
1667 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1664 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1668 bug, where macros would fail in all threaded modes. I'm not 100%
1665 bug, where macros would fail in all threaded modes. I'm not 100%
1669 sure, so I'm going to put out an rc instead of making a release
1666 sure, so I'm going to put out an rc instead of making a release
1670 today, and wait for feedback for at least a few days.
1667 today, and wait for feedback for at least a few days.
1671
1668
1672 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1669 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1673 it...) the handling of pasting external code with autoindent on.
1670 it...) the handling of pasting external code with autoindent on.
1674 To get out of a multiline input, the rule will appear for most
1671 To get out of a multiline input, the rule will appear for most
1675 users unchanged: two blank lines or change the indent level
1672 users unchanged: two blank lines or change the indent level
1676 proposed by IPython. But there is a twist now: you can
1673 proposed by IPython. But there is a twist now: you can
1677 add/subtract only *one or two spaces*. If you add/subtract three
1674 add/subtract only *one or two spaces*. If you add/subtract three
1678 or more (unless you completely delete the line), IPython will
1675 or more (unless you completely delete the line), IPython will
1679 accept that line, and you'll need to enter a second one of pure
1676 accept that line, and you'll need to enter a second one of pure
1680 whitespace. I know it sounds complicated, but I can't find a
1677 whitespace. I know it sounds complicated, but I can't find a
1681 different solution that covers all the cases, with the right
1678 different solution that covers all the cases, with the right
1682 heuristics. Hopefully in actual use, nobody will really notice
1679 heuristics. Hopefully in actual use, nobody will really notice
1683 all these strange rules and things will 'just work'.
1680 all these strange rules and things will 'just work'.
1684
1681
1685 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1682 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1686
1683
1687 * IPython/iplib.py (interact): catch exceptions which can be
1684 * IPython/iplib.py (interact): catch exceptions which can be
1688 triggered asynchronously by signal handlers. Thanks to an
1685 triggered asynchronously by signal handlers. Thanks to an
1689 automatic crash report, submitted by Colin Kingsley
1686 automatic crash report, submitted by Colin Kingsley
1690 <tercel-AT-gentoo.org>.
1687 <tercel-AT-gentoo.org>.
1691
1688
1692 2006-01-20 Ville Vainio <vivainio@gmail.com>
1689 2006-01-20 Ville Vainio <vivainio@gmail.com>
1693
1690
1694 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1691 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1695 (%rehashdir, very useful, try it out) of how to extend ipython
1692 (%rehashdir, very useful, try it out) of how to extend ipython
1696 with new magics. Also added Extensions dir to pythonpath to make
1693 with new magics. Also added Extensions dir to pythonpath to make
1697 importing extensions easy.
1694 importing extensions easy.
1698
1695
1699 * %store now complains when trying to store interactively declared
1696 * %store now complains when trying to store interactively declared
1700 classes / instances of those classes.
1697 classes / instances of those classes.
1701
1698
1702 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1699 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1703 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1700 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1704 if they exist, and ipy_user_conf.py with some defaults is created for
1701 if they exist, and ipy_user_conf.py with some defaults is created for
1705 the user.
1702 the user.
1706
1703
1707 * Startup rehashing done by the config file, not InterpreterExec.
1704 * Startup rehashing done by the config file, not InterpreterExec.
1708 This means system commands are available even without selecting the
1705 This means system commands are available even without selecting the
1709 pysh profile. It's the sensible default after all.
1706 pysh profile. It's the sensible default after all.
1710
1707
1711 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1708 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1712
1709
1713 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1710 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1714 multiline code with autoindent on working. But I am really not
1711 multiline code with autoindent on working. But I am really not
1715 sure, so this needs more testing. Will commit a debug-enabled
1712 sure, so this needs more testing. Will commit a debug-enabled
1716 version for now, while I test it some more, so that Ville and
1713 version for now, while I test it some more, so that Ville and
1717 others may also catch any problems. Also made
1714 others may also catch any problems. Also made
1718 self.indent_current_str() a method, to ensure that there's no
1715 self.indent_current_str() a method, to ensure that there's no
1719 chance of the indent space count and the corresponding string
1716 chance of the indent space count and the corresponding string
1720 falling out of sync. All code needing the string should just call
1717 falling out of sync. All code needing the string should just call
1721 the method.
1718 the method.
1722
1719
1723 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1720 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1724
1721
1725 * IPython/Magic.py (magic_edit): fix check for when users don't
1722 * IPython/Magic.py (magic_edit): fix check for when users don't
1726 save their output files, the try/except was in the wrong section.
1723 save their output files, the try/except was in the wrong section.
1727
1724
1728 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1725 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1729
1726
1730 * IPython/Magic.py (magic_run): fix __file__ global missing from
1727 * IPython/Magic.py (magic_run): fix __file__ global missing from
1731 script's namespace when executed via %run. After a report by
1728 script's namespace when executed via %run. After a report by
1732 Vivian.
1729 Vivian.
1733
1730
1734 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1731 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1735 when using python 2.4. The parent constructor changed in 2.4, and
1732 when using python 2.4. The parent constructor changed in 2.4, and
1736 we need to track it directly (we can't call it, as it messes up
1733 we need to track it directly (we can't call it, as it messes up
1737 readline and tab-completion inside our pdb would stop working).
1734 readline and tab-completion inside our pdb would stop working).
1738 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1735 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1739
1736
1740 2006-01-16 Ville Vainio <vivainio@gmail.com>
1737 2006-01-16 Ville Vainio <vivainio@gmail.com>
1741
1738
1742 * Ipython/magic.py: Reverted back to old %edit functionality
1739 * Ipython/magic.py: Reverted back to old %edit functionality
1743 that returns file contents on exit.
1740 that returns file contents on exit.
1744
1741
1745 * IPython/path.py: Added Jason Orendorff's "path" module to
1742 * IPython/path.py: Added Jason Orendorff's "path" module to
1746 IPython tree, http://www.jorendorff.com/articles/python/path/.
1743 IPython tree, http://www.jorendorff.com/articles/python/path/.
1747 You can get path objects conveniently through %sc, and !!, e.g.:
1744 You can get path objects conveniently through %sc, and !!, e.g.:
1748 sc files=ls
1745 sc files=ls
1749 for p in files.paths: # or files.p
1746 for p in files.paths: # or files.p
1750 print p,p.mtime
1747 print p,p.mtime
1751
1748
1752 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1749 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1753 now work again without considering the exclusion regexp -
1750 now work again without considering the exclusion regexp -
1754 hence, things like ',foo my/path' turn to 'foo("my/path")'
1751 hence, things like ',foo my/path' turn to 'foo("my/path")'
1755 instead of syntax error.
1752 instead of syntax error.
1756
1753
1757
1754
1758 2006-01-14 Ville Vainio <vivainio@gmail.com>
1755 2006-01-14 Ville Vainio <vivainio@gmail.com>
1759
1756
1760 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1757 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1761 ipapi decorators for python 2.4 users, options() provides access to rc
1758 ipapi decorators for python 2.4 users, options() provides access to rc
1762 data.
1759 data.
1763
1760
1764 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1761 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1765 as path separators (even on Linux ;-). Space character after
1762 as path separators (even on Linux ;-). Space character after
1766 backslash (as yielded by tab completer) is still space;
1763 backslash (as yielded by tab completer) is still space;
1767 "%cd long\ name" works as expected.
1764 "%cd long\ name" works as expected.
1768
1765
1769 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1766 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1770 as "chain of command", with priority. API stays the same,
1767 as "chain of command", with priority. API stays the same,
1771 TryNext exception raised by a hook function signals that
1768 TryNext exception raised by a hook function signals that
1772 current hook failed and next hook should try handling it, as
1769 current hook failed and next hook should try handling it, as
1773 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1770 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1774 requested configurable display hook, which is now implemented.
1771 requested configurable display hook, which is now implemented.
1775
1772
1776 2006-01-13 Ville Vainio <vivainio@gmail.com>
1773 2006-01-13 Ville Vainio <vivainio@gmail.com>
1777
1774
1778 * IPython/platutils*.py: platform specific utility functions,
1775 * IPython/platutils*.py: platform specific utility functions,
1779 so far only set_term_title is implemented (change terminal
1776 so far only set_term_title is implemented (change terminal
1780 label in windowing systems). %cd now changes the title to
1777 label in windowing systems). %cd now changes the title to
1781 current dir.
1778 current dir.
1782
1779
1783 * IPython/Release.py: Added myself to "authors" list,
1780 * IPython/Release.py: Added myself to "authors" list,
1784 had to create new files.
1781 had to create new files.
1785
1782
1786 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1783 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1787 shell escape; not a known bug but had potential to be one in the
1784 shell escape; not a known bug but had potential to be one in the
1788 future.
1785 future.
1789
1786
1790 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1787 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1791 extension API for IPython! See the module for usage example. Fix
1788 extension API for IPython! See the module for usage example. Fix
1792 OInspect for docstring-less magic functions.
1789 OInspect for docstring-less magic functions.
1793
1790
1794
1791
1795 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1792 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1796
1793
1797 * IPython/iplib.py (raw_input): temporarily deactivate all
1794 * IPython/iplib.py (raw_input): temporarily deactivate all
1798 attempts at allowing pasting of code with autoindent on. It
1795 attempts at allowing pasting of code with autoindent on. It
1799 introduced bugs (reported by Prabhu) and I can't seem to find a
1796 introduced bugs (reported by Prabhu) and I can't seem to find a
1800 robust combination which works in all cases. Will have to revisit
1797 robust combination which works in all cases. Will have to revisit
1801 later.
1798 later.
1802
1799
1803 * IPython/genutils.py: remove isspace() function. We've dropped
1800 * IPython/genutils.py: remove isspace() function. We've dropped
1804 2.2 compatibility, so it's OK to use the string method.
1801 2.2 compatibility, so it's OK to use the string method.
1805
1802
1806 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1803 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1807
1804
1808 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1805 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1809 matching what NOT to autocall on, to include all python binary
1806 matching what NOT to autocall on, to include all python binary
1810 operators (including things like 'and', 'or', 'is' and 'in').
1807 operators (including things like 'and', 'or', 'is' and 'in').
1811 Prompted by a bug report on 'foo & bar', but I realized we had
1808 Prompted by a bug report on 'foo & bar', but I realized we had
1812 many more potential bug cases with other operators. The regexp is
1809 many more potential bug cases with other operators. The regexp is
1813 self.re_exclude_auto, it's fairly commented.
1810 self.re_exclude_auto, it's fairly commented.
1814
1811
1815 2006-01-12 Ville Vainio <vivainio@gmail.com>
1812 2006-01-12 Ville Vainio <vivainio@gmail.com>
1816
1813
1817 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1814 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1818 Prettified and hardened string/backslash quoting with ipsystem(),
1815 Prettified and hardened string/backslash quoting with ipsystem(),
1819 ipalias() and ipmagic(). Now even \ characters are passed to
1816 ipalias() and ipmagic(). Now even \ characters are passed to
1820 %magics, !shell escapes and aliases exactly as they are in the
1817 %magics, !shell escapes and aliases exactly as they are in the
1821 ipython command line. Should improve backslash experience,
1818 ipython command line. Should improve backslash experience,
1822 particularly in Windows (path delimiter for some commands that
1819 particularly in Windows (path delimiter for some commands that
1823 won't understand '/'), but Unix benefits as well (regexps). %cd
1820 won't understand '/'), but Unix benefits as well (regexps). %cd
1824 magic still doesn't support backslash path delimiters, though. Also
1821 magic still doesn't support backslash path delimiters, though. Also
1825 deleted all pretense of supporting multiline command strings in
1822 deleted all pretense of supporting multiline command strings in
1826 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1823 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1827
1824
1828 * doc/build_doc_instructions.txt added. Documentation on how to
1825 * doc/build_doc_instructions.txt added. Documentation on how to
1829 use doc/update_manual.py, added yesterday. Both files contributed
1826 use doc/update_manual.py, added yesterday. Both files contributed
1830 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1827 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1831 doc/*.sh for deprecation at a later date.
1828 doc/*.sh for deprecation at a later date.
1832
1829
1833 * /ipython.py Added ipython.py to root directory for
1830 * /ipython.py Added ipython.py to root directory for
1834 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1831 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1835 ipython.py) and development convenience (no need to keep doing
1832 ipython.py) and development convenience (no need to keep doing
1836 "setup.py install" between changes).
1833 "setup.py install" between changes).
1837
1834
1838 * Made ! and !! shell escapes work (again) in multiline expressions:
1835 * Made ! and !! shell escapes work (again) in multiline expressions:
1839 if 1:
1836 if 1:
1840 !ls
1837 !ls
1841 !!ls
1838 !!ls
1842
1839
1843 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1840 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1844
1841
1845 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1842 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1846 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1843 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1847 module in case-insensitive installation. Was causing crashes
1844 module in case-insensitive installation. Was causing crashes
1848 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1845 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1849
1846
1850 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1847 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1851 <marienz-AT-gentoo.org>, closes
1848 <marienz-AT-gentoo.org>, closes
1852 http://www.scipy.net/roundup/ipython/issue51.
1849 http://www.scipy.net/roundup/ipython/issue51.
1853
1850
1854 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1851 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1855
1852
1856 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1853 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1857 problem of excessive CPU usage under *nix and keyboard lag under
1854 problem of excessive CPU usage under *nix and keyboard lag under
1858 win32.
1855 win32.
1859
1856
1860 2006-01-10 *** Released version 0.7.0
1857 2006-01-10 *** Released version 0.7.0
1861
1858
1862 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1859 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1863
1860
1864 * IPython/Release.py (revision): tag version number to 0.7.0,
1861 * IPython/Release.py (revision): tag version number to 0.7.0,
1865 ready for release.
1862 ready for release.
1866
1863
1867 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1864 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1868 it informs the user of the name of the temp. file used. This can
1865 it informs the user of the name of the temp. file used. This can
1869 help if you decide later to reuse that same file, so you know
1866 help if you decide later to reuse that same file, so you know
1870 where to copy the info from.
1867 where to copy the info from.
1871
1868
1872 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1869 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1873
1870
1874 * setup_bdist_egg.py: little script to build an egg. Added
1871 * setup_bdist_egg.py: little script to build an egg. Added
1875 support in the release tools as well.
1872 support in the release tools as well.
1876
1873
1877 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1874 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1878
1875
1879 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1876 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1880 version selection (new -wxversion command line and ipythonrc
1877 version selection (new -wxversion command line and ipythonrc
1881 parameter). Patch contributed by Arnd Baecker
1878 parameter). Patch contributed by Arnd Baecker
1882 <arnd.baecker-AT-web.de>.
1879 <arnd.baecker-AT-web.de>.
1883
1880
1884 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1881 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1885 embedded instances, for variables defined at the interactive
1882 embedded instances, for variables defined at the interactive
1886 prompt of the embedded ipython. Reported by Arnd.
1883 prompt of the embedded ipython. Reported by Arnd.
1887
1884
1888 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1885 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1889 it can be used as a (stateful) toggle, or with a direct parameter.
1886 it can be used as a (stateful) toggle, or with a direct parameter.
1890
1887
1891 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1888 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1892 could be triggered in certain cases and cause the traceback
1889 could be triggered in certain cases and cause the traceback
1893 printer not to work.
1890 printer not to work.
1894
1891
1895 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1892 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1896
1893
1897 * IPython/iplib.py (_should_recompile): Small fix, closes
1894 * IPython/iplib.py (_should_recompile): Small fix, closes
1898 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1895 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1899
1896
1900 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1897 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1901
1898
1902 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1899 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1903 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1900 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1904 Moad for help with tracking it down.
1901 Moad for help with tracking it down.
1905
1902
1906 * IPython/iplib.py (handle_auto): fix autocall handling for
1903 * IPython/iplib.py (handle_auto): fix autocall handling for
1907 objects which support BOTH __getitem__ and __call__ (so that f [x]
1904 objects which support BOTH __getitem__ and __call__ (so that f [x]
1908 is left alone, instead of becoming f([x]) automatically).
1905 is left alone, instead of becoming f([x]) automatically).
1909
1906
1910 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1907 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1911 Ville's patch.
1908 Ville's patch.
1912
1909
1913 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1910 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1914
1911
1915 * IPython/iplib.py (handle_auto): changed autocall semantics to
1912 * IPython/iplib.py (handle_auto): changed autocall semantics to
1916 include 'smart' mode, where the autocall transformation is NOT
1913 include 'smart' mode, where the autocall transformation is NOT
1917 applied if there are no arguments on the line. This allows you to
1914 applied if there are no arguments on the line. This allows you to
1918 just type 'foo' if foo is a callable to see its internal form,
1915 just type 'foo' if foo is a callable to see its internal form,
1919 instead of having it called with no arguments (typically a
1916 instead of having it called with no arguments (typically a
1920 mistake). The old 'full' autocall still exists: for that, you
1917 mistake). The old 'full' autocall still exists: for that, you
1921 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1918 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1922
1919
1923 * IPython/completer.py (Completer.attr_matches): add
1920 * IPython/completer.py (Completer.attr_matches): add
1924 tab-completion support for Enthoughts' traits. After a report by
1921 tab-completion support for Enthoughts' traits. After a report by
1925 Arnd and a patch by Prabhu.
1922 Arnd and a patch by Prabhu.
1926
1923
1927 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1924 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1928
1925
1929 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1926 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1930 Schmolck's patch to fix inspect.getinnerframes().
1927 Schmolck's patch to fix inspect.getinnerframes().
1931
1928
1932 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1929 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1933 for embedded instances, regarding handling of namespaces and items
1930 for embedded instances, regarding handling of namespaces and items
1934 added to the __builtin__ one. Multiple embedded instances and
1931 added to the __builtin__ one. Multiple embedded instances and
1935 recursive embeddings should work better now (though I'm not sure
1932 recursive embeddings should work better now (though I'm not sure
1936 I've got all the corner cases fixed, that code is a bit of a brain
1933 I've got all the corner cases fixed, that code is a bit of a brain
1937 twister).
1934 twister).
1938
1935
1939 * IPython/Magic.py (magic_edit): added support to edit in-memory
1936 * IPython/Magic.py (magic_edit): added support to edit in-memory
1940 macros (automatically creates the necessary temp files). %edit
1937 macros (automatically creates the necessary temp files). %edit
1941 also doesn't return the file contents anymore, it's just noise.
1938 also doesn't return the file contents anymore, it's just noise.
1942
1939
1943 * IPython/completer.py (Completer.attr_matches): revert change to
1940 * IPython/completer.py (Completer.attr_matches): revert change to
1944 complete only on attributes listed in __all__. I realized it
1941 complete only on attributes listed in __all__. I realized it
1945 cripples the tab-completion system as a tool for exploring the
1942 cripples the tab-completion system as a tool for exploring the
1946 internals of unknown libraries (it renders any non-__all__
1943 internals of unknown libraries (it renders any non-__all__
1947 attribute off-limits). I got bit by this when trying to see
1944 attribute off-limits). I got bit by this when trying to see
1948 something inside the dis module.
1945 something inside the dis module.
1949
1946
1950 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1947 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1951
1948
1952 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1949 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1953 namespace for users and extension writers to hold data in. This
1950 namespace for users and extension writers to hold data in. This
1954 follows the discussion in
1951 follows the discussion in
1955 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1952 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1956
1953
1957 * IPython/completer.py (IPCompleter.complete): small patch to help
1954 * IPython/completer.py (IPCompleter.complete): small patch to help
1958 tab-completion under Emacs, after a suggestion by John Barnard
1955 tab-completion under Emacs, after a suggestion by John Barnard
1959 <barnarj-AT-ccf.org>.
1956 <barnarj-AT-ccf.org>.
1960
1957
1961 * IPython/Magic.py (Magic.extract_input_slices): added support for
1958 * IPython/Magic.py (Magic.extract_input_slices): added support for
1962 the slice notation in magics to use N-M to represent numbers N...M
1959 the slice notation in magics to use N-M to represent numbers N...M
1963 (closed endpoints). This is used by %macro and %save.
1960 (closed endpoints). This is used by %macro and %save.
1964
1961
1965 * IPython/completer.py (Completer.attr_matches): for modules which
1962 * IPython/completer.py (Completer.attr_matches): for modules which
1966 define __all__, complete only on those. After a patch by Jeffrey
1963 define __all__, complete only on those. After a patch by Jeffrey
1967 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1964 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1968 speed up this routine.
1965 speed up this routine.
1969
1966
1970 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1967 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1971 don't know if this is the end of it, but the behavior now is
1968 don't know if this is the end of it, but the behavior now is
1972 certainly much more correct. Note that coupled with macros,
1969 certainly much more correct. Note that coupled with macros,
1973 slightly surprising (at first) behavior may occur: a macro will in
1970 slightly surprising (at first) behavior may occur: a macro will in
1974 general expand to multiple lines of input, so upon exiting, the
1971 general expand to multiple lines of input, so upon exiting, the
1975 in/out counters will both be bumped by the corresponding amount
1972 in/out counters will both be bumped by the corresponding amount
1976 (as if the macro's contents had been typed interactively). Typing
1973 (as if the macro's contents had been typed interactively). Typing
1977 %hist will reveal the intermediate (silently processed) lines.
1974 %hist will reveal the intermediate (silently processed) lines.
1978
1975
1979 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1976 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1980 pickle to fail (%run was overwriting __main__ and not restoring
1977 pickle to fail (%run was overwriting __main__ and not restoring
1981 it, but pickle relies on __main__ to operate).
1978 it, but pickle relies on __main__ to operate).
1982
1979
1983 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1980 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1984 using properties, but forgot to make the main InteractiveShell
1981 using properties, but forgot to make the main InteractiveShell
1985 class a new-style class. Properties fail silently, and
1982 class a new-style class. Properties fail silently, and
1986 mysteriously, with old-style class (getters work, but
1983 mysteriously, with old-style class (getters work, but
1987 setters don't do anything).
1984 setters don't do anything).
1988
1985
1989 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1986 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1990
1987
1991 * IPython/Magic.py (magic_history): fix history reporting bug (I
1988 * IPython/Magic.py (magic_history): fix history reporting bug (I
1992 know some nasties are still there, I just can't seem to find a
1989 know some nasties are still there, I just can't seem to find a
1993 reproducible test case to track them down; the input history is
1990 reproducible test case to track them down; the input history is
1994 falling out of sync...)
1991 falling out of sync...)
1995
1992
1996 * IPython/iplib.py (handle_shell_escape): fix bug where both
1993 * IPython/iplib.py (handle_shell_escape): fix bug where both
1997 aliases and system accesses where broken for indented code (such
1994 aliases and system accesses where broken for indented code (such
1998 as loops).
1995 as loops).
1999
1996
2000 * IPython/genutils.py (shell): fix small but critical bug for
1997 * IPython/genutils.py (shell): fix small but critical bug for
2001 win32 system access.
1998 win32 system access.
2002
1999
2003 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2000 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2004
2001
2005 * IPython/iplib.py (showtraceback): remove use of the
2002 * IPython/iplib.py (showtraceback): remove use of the
2006 sys.last_{type/value/traceback} structures, which are non
2003 sys.last_{type/value/traceback} structures, which are non
2007 thread-safe.
2004 thread-safe.
2008 (_prefilter): change control flow to ensure that we NEVER
2005 (_prefilter): change control flow to ensure that we NEVER
2009 introspect objects when autocall is off. This will guarantee that
2006 introspect objects when autocall is off. This will guarantee that
2010 having an input line of the form 'x.y', where access to attribute
2007 having an input line of the form 'x.y', where access to attribute
2011 'y' has side effects, doesn't trigger the side effect TWICE. It
2008 'y' has side effects, doesn't trigger the side effect TWICE. It
2012 is important to note that, with autocall on, these side effects
2009 is important to note that, with autocall on, these side effects
2013 can still happen.
2010 can still happen.
2014 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2011 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2015 trio. IPython offers these three kinds of special calls which are
2012 trio. IPython offers these three kinds of special calls which are
2016 not python code, and it's a good thing to have their call method
2013 not python code, and it's a good thing to have their call method
2017 be accessible as pure python functions (not just special syntax at
2014 be accessible as pure python functions (not just special syntax at
2018 the command line). It gives us a better internal implementation
2015 the command line). It gives us a better internal implementation
2019 structure, as well as exposing these for user scripting more
2016 structure, as well as exposing these for user scripting more
2020 cleanly.
2017 cleanly.
2021
2018
2022 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2019 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2023 file. Now that they'll be more likely to be used with the
2020 file. Now that they'll be more likely to be used with the
2024 persistance system (%store), I want to make sure their module path
2021 persistance system (%store), I want to make sure their module path
2025 doesn't change in the future, so that we don't break things for
2022 doesn't change in the future, so that we don't break things for
2026 users' persisted data.
2023 users' persisted data.
2027
2024
2028 * IPython/iplib.py (autoindent_update): move indentation
2025 * IPython/iplib.py (autoindent_update): move indentation
2029 management into the _text_ processing loop, not the keyboard
2026 management into the _text_ processing loop, not the keyboard
2030 interactive one. This is necessary to correctly process non-typed
2027 interactive one. This is necessary to correctly process non-typed
2031 multiline input (such as macros).
2028 multiline input (such as macros).
2032
2029
2033 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2030 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2034 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2031 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2035 which was producing problems in the resulting manual.
2032 which was producing problems in the resulting manual.
2036 (magic_whos): improve reporting of instances (show their class,
2033 (magic_whos): improve reporting of instances (show their class,
2037 instead of simply printing 'instance' which isn't terribly
2034 instead of simply printing 'instance' which isn't terribly
2038 informative).
2035 informative).
2039
2036
2040 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2037 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2041 (minor mods) to support network shares under win32.
2038 (minor mods) to support network shares under win32.
2042
2039
2043 * IPython/winconsole.py (get_console_size): add new winconsole
2040 * IPython/winconsole.py (get_console_size): add new winconsole
2044 module and fixes to page_dumb() to improve its behavior under
2041 module and fixes to page_dumb() to improve its behavior under
2045 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2042 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2046
2043
2047 * IPython/Magic.py (Macro): simplified Macro class to just
2044 * IPython/Magic.py (Macro): simplified Macro class to just
2048 subclass list. We've had only 2.2 compatibility for a very long
2045 subclass list. We've had only 2.2 compatibility for a very long
2049 time, yet I was still avoiding subclassing the builtin types. No
2046 time, yet I was still avoiding subclassing the builtin types. No
2050 more (I'm also starting to use properties, though I won't shift to
2047 more (I'm also starting to use properties, though I won't shift to
2051 2.3-specific features quite yet).
2048 2.3-specific features quite yet).
2052 (magic_store): added Ville's patch for lightweight variable
2049 (magic_store): added Ville's patch for lightweight variable
2053 persistence, after a request on the user list by Matt Wilkie
2050 persistence, after a request on the user list by Matt Wilkie
2054 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2051 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2055 details.
2052 details.
2056
2053
2057 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2054 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2058 changed the default logfile name from 'ipython.log' to
2055 changed the default logfile name from 'ipython.log' to
2059 'ipython_log.py'. These logs are real python files, and now that
2056 'ipython_log.py'. These logs are real python files, and now that
2060 we have much better multiline support, people are more likely to
2057 we have much better multiline support, people are more likely to
2061 want to use them as such. Might as well name them correctly.
2058 want to use them as such. Might as well name them correctly.
2062
2059
2063 * IPython/Magic.py: substantial cleanup. While we can't stop
2060 * IPython/Magic.py: substantial cleanup. While we can't stop
2064 using magics as mixins, due to the existing customizations 'out
2061 using magics as mixins, due to the existing customizations 'out
2065 there' which rely on the mixin naming conventions, at least I
2062 there' which rely on the mixin naming conventions, at least I
2066 cleaned out all cross-class name usage. So once we are OK with
2063 cleaned out all cross-class name usage. So once we are OK with
2067 breaking compatibility, the two systems can be separated.
2064 breaking compatibility, the two systems can be separated.
2068
2065
2069 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2066 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2070 anymore, and the class is a fair bit less hideous as well. New
2067 anymore, and the class is a fair bit less hideous as well. New
2071 features were also introduced: timestamping of input, and logging
2068 features were also introduced: timestamping of input, and logging
2072 of output results. These are user-visible with the -t and -o
2069 of output results. These are user-visible with the -t and -o
2073 options to %logstart. Closes
2070 options to %logstart. Closes
2074 http://www.scipy.net/roundup/ipython/issue11 and a request by
2071 http://www.scipy.net/roundup/ipython/issue11 and a request by
2075 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2072 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2076
2073
2077 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2074 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2078
2075
2079 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2076 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2080 better handle backslashes in paths. See the thread 'More Windows
2077 better handle backslashes in paths. See the thread 'More Windows
2081 questions part 2 - \/ characters revisited' on the iypthon user
2078 questions part 2 - \/ characters revisited' on the iypthon user
2082 list:
2079 list:
2083 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2080 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2084
2081
2085 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2082 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2086
2083
2087 (InteractiveShell.__init__): change threaded shells to not use the
2084 (InteractiveShell.__init__): change threaded shells to not use the
2088 ipython crash handler. This was causing more problems than not,
2085 ipython crash handler. This was causing more problems than not,
2089 as exceptions in the main thread (GUI code, typically) would
2086 as exceptions in the main thread (GUI code, typically) would
2090 always show up as a 'crash', when they really weren't.
2087 always show up as a 'crash', when they really weren't.
2091
2088
2092 The colors and exception mode commands (%colors/%xmode) have been
2089 The colors and exception mode commands (%colors/%xmode) have been
2093 synchronized to also take this into account, so users can get
2090 synchronized to also take this into account, so users can get
2094 verbose exceptions for their threaded code as well. I also added
2091 verbose exceptions for their threaded code as well. I also added
2095 support for activating pdb inside this exception handler as well,
2092 support for activating pdb inside this exception handler as well,
2096 so now GUI authors can use IPython's enhanced pdb at runtime.
2093 so now GUI authors can use IPython's enhanced pdb at runtime.
2097
2094
2098 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2095 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2099 true by default, and add it to the shipped ipythonrc file. Since
2096 true by default, and add it to the shipped ipythonrc file. Since
2100 this asks the user before proceeding, I think it's OK to make it
2097 this asks the user before proceeding, I think it's OK to make it
2101 true by default.
2098 true by default.
2102
2099
2103 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2100 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2104 of the previous special-casing of input in the eval loop. I think
2101 of the previous special-casing of input in the eval loop. I think
2105 this is cleaner, as they really are commands and shouldn't have
2102 this is cleaner, as they really are commands and shouldn't have
2106 a special role in the middle of the core code.
2103 a special role in the middle of the core code.
2107
2104
2108 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2105 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2109
2106
2110 * IPython/iplib.py (edit_syntax_error): added support for
2107 * IPython/iplib.py (edit_syntax_error): added support for
2111 automatically reopening the editor if the file had a syntax error
2108 automatically reopening the editor if the file had a syntax error
2112 in it. Thanks to scottt who provided the patch at:
2109 in it. Thanks to scottt who provided the patch at:
2113 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2110 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2114 version committed).
2111 version committed).
2115
2112
2116 * IPython/iplib.py (handle_normal): add suport for multi-line
2113 * IPython/iplib.py (handle_normal): add suport for multi-line
2117 input with emtpy lines. This fixes
2114 input with emtpy lines. This fixes
2118 http://www.scipy.net/roundup/ipython/issue43 and a similar
2115 http://www.scipy.net/roundup/ipython/issue43 and a similar
2119 discussion on the user list.
2116 discussion on the user list.
2120
2117
2121 WARNING: a behavior change is necessarily introduced to support
2118 WARNING: a behavior change is necessarily introduced to support
2122 blank lines: now a single blank line with whitespace does NOT
2119 blank lines: now a single blank line with whitespace does NOT
2123 break the input loop, which means that when autoindent is on, by
2120 break the input loop, which means that when autoindent is on, by
2124 default hitting return on the next (indented) line does NOT exit.
2121 default hitting return on the next (indented) line does NOT exit.
2125
2122
2126 Instead, to exit a multiline input you can either have:
2123 Instead, to exit a multiline input you can either have:
2127
2124
2128 - TWO whitespace lines (just hit return again), or
2125 - TWO whitespace lines (just hit return again), or
2129 - a single whitespace line of a different length than provided
2126 - a single whitespace line of a different length than provided
2130 by the autoindent (add or remove a space).
2127 by the autoindent (add or remove a space).
2131
2128
2132 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2129 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2133 module to better organize all readline-related functionality.
2130 module to better organize all readline-related functionality.
2134 I've deleted FlexCompleter and put all completion clases here.
2131 I've deleted FlexCompleter and put all completion clases here.
2135
2132
2136 * IPython/iplib.py (raw_input): improve indentation management.
2133 * IPython/iplib.py (raw_input): improve indentation management.
2137 It is now possible to paste indented code with autoindent on, and
2134 It is now possible to paste indented code with autoindent on, and
2138 the code is interpreted correctly (though it still looks bad on
2135 the code is interpreted correctly (though it still looks bad on
2139 screen, due to the line-oriented nature of ipython).
2136 screen, due to the line-oriented nature of ipython).
2140 (MagicCompleter.complete): change behavior so that a TAB key on an
2137 (MagicCompleter.complete): change behavior so that a TAB key on an
2141 otherwise empty line actually inserts a tab, instead of completing
2138 otherwise empty line actually inserts a tab, instead of completing
2142 on the entire global namespace. This makes it easier to use the
2139 on the entire global namespace. This makes it easier to use the
2143 TAB key for indentation. After a request by Hans Meine
2140 TAB key for indentation. After a request by Hans Meine
2144 <hans_meine-AT-gmx.net>
2141 <hans_meine-AT-gmx.net>
2145 (_prefilter): add support so that typing plain 'exit' or 'quit'
2142 (_prefilter): add support so that typing plain 'exit' or 'quit'
2146 does a sensible thing. Originally I tried to deviate as little as
2143 does a sensible thing. Originally I tried to deviate as little as
2147 possible from the default python behavior, but even that one may
2144 possible from the default python behavior, but even that one may
2148 change in this direction (thread on python-dev to that effect).
2145 change in this direction (thread on python-dev to that effect).
2149 Regardless, ipython should do the right thing even if CPython's
2146 Regardless, ipython should do the right thing even if CPython's
2150 '>>>' prompt doesn't.
2147 '>>>' prompt doesn't.
2151 (InteractiveShell): removed subclassing code.InteractiveConsole
2148 (InteractiveShell): removed subclassing code.InteractiveConsole
2152 class. By now we'd overridden just about all of its methods: I've
2149 class. By now we'd overridden just about all of its methods: I've
2153 copied the remaining two over, and now ipython is a standalone
2150 copied the remaining two over, and now ipython is a standalone
2154 class. This will provide a clearer picture for the chainsaw
2151 class. This will provide a clearer picture for the chainsaw
2155 branch refactoring.
2152 branch refactoring.
2156
2153
2157 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2154 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2158
2155
2159 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2156 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2160 failures for objects which break when dir() is called on them.
2157 failures for objects which break when dir() is called on them.
2161
2158
2162 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2159 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2163 distinct local and global namespaces in the completer API. This
2160 distinct local and global namespaces in the completer API. This
2164 change allows us to properly handle completion with distinct
2161 change allows us to properly handle completion with distinct
2165 scopes, including in embedded instances (this had never really
2162 scopes, including in embedded instances (this had never really
2166 worked correctly).
2163 worked correctly).
2167
2164
2168 Note: this introduces a change in the constructor for
2165 Note: this introduces a change in the constructor for
2169 MagicCompleter, as a new global_namespace parameter is now the
2166 MagicCompleter, as a new global_namespace parameter is now the
2170 second argument (the others were bumped one position).
2167 second argument (the others were bumped one position).
2171
2168
2172 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2169 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2173
2170
2174 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2171 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2175 embedded instances (which can be done now thanks to Vivian's
2172 embedded instances (which can be done now thanks to Vivian's
2176 frame-handling fixes for pdb).
2173 frame-handling fixes for pdb).
2177 (InteractiveShell.__init__): Fix namespace handling problem in
2174 (InteractiveShell.__init__): Fix namespace handling problem in
2178 embedded instances. We were overwriting __main__ unconditionally,
2175 embedded instances. We were overwriting __main__ unconditionally,
2179 and this should only be done for 'full' (non-embedded) IPython;
2176 and this should only be done for 'full' (non-embedded) IPython;
2180 embedded instances must respect the caller's __main__. Thanks to
2177 embedded instances must respect the caller's __main__. Thanks to
2181 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2178 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2182
2179
2183 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2180 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2184
2181
2185 * setup.py: added download_url to setup(). This registers the
2182 * setup.py: added download_url to setup(). This registers the
2186 download address at PyPI, which is not only useful to humans
2183 download address at PyPI, which is not only useful to humans
2187 browsing the site, but is also picked up by setuptools (the Eggs
2184 browsing the site, but is also picked up by setuptools (the Eggs
2188 machinery). Thanks to Ville and R. Kern for the info/discussion
2185 machinery). Thanks to Ville and R. Kern for the info/discussion
2189 on this.
2186 on this.
2190
2187
2191 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2188 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2192
2189
2193 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2190 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2194 This brings a lot of nice functionality to the pdb mode, which now
2191 This brings a lot of nice functionality to the pdb mode, which now
2195 has tab-completion, syntax highlighting, and better stack handling
2192 has tab-completion, syntax highlighting, and better stack handling
2196 than before. Many thanks to Vivian De Smedt
2193 than before. Many thanks to Vivian De Smedt
2197 <vivian-AT-vdesmedt.com> for the original patches.
2194 <vivian-AT-vdesmedt.com> for the original patches.
2198
2195
2199 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2196 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2200
2197
2201 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2198 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2202 sequence to consistently accept the banner argument. The
2199 sequence to consistently accept the banner argument. The
2203 inconsistency was tripping SAGE, thanks to Gary Zablackis
2200 inconsistency was tripping SAGE, thanks to Gary Zablackis
2204 <gzabl-AT-yahoo.com> for the report.
2201 <gzabl-AT-yahoo.com> for the report.
2205
2202
2206 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2203 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2207
2204
2208 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2205 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2209 Fix bug where a naked 'alias' call in the ipythonrc file would
2206 Fix bug where a naked 'alias' call in the ipythonrc file would
2210 cause a crash. Bug reported by Jorgen Stenarson.
2207 cause a crash. Bug reported by Jorgen Stenarson.
2211
2208
2212 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2209 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2213
2210
2214 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2211 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2215 startup time.
2212 startup time.
2216
2213
2217 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2214 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2218 instances had introduced a bug with globals in normal code. Now
2215 instances had introduced a bug with globals in normal code. Now
2219 it's working in all cases.
2216 it's working in all cases.
2220
2217
2221 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2218 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2222 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2219 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2223 has been introduced to set the default case sensitivity of the
2220 has been introduced to set the default case sensitivity of the
2224 searches. Users can still select either mode at runtime on a
2221 searches. Users can still select either mode at runtime on a
2225 per-search basis.
2222 per-search basis.
2226
2223
2227 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2224 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2228
2225
2229 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2226 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2230 attributes in wildcard searches for subclasses. Modified version
2227 attributes in wildcard searches for subclasses. Modified version
2231 of a patch by Jorgen.
2228 of a patch by Jorgen.
2232
2229
2233 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2230 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2234
2231
2235 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2232 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2236 embedded instances. I added a user_global_ns attribute to the
2233 embedded instances. I added a user_global_ns attribute to the
2237 InteractiveShell class to handle this.
2234 InteractiveShell class to handle this.
2238
2235
2239 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2236 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2240
2237
2241 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2238 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2242 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2239 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2243 (reported under win32, but may happen also in other platforms).
2240 (reported under win32, but may happen also in other platforms).
2244 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2241 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2245
2242
2246 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2243 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2247
2244
2248 * IPython/Magic.py (magic_psearch): new support for wildcard
2245 * IPython/Magic.py (magic_psearch): new support for wildcard
2249 patterns. Now, typing ?a*b will list all names which begin with a
2246 patterns. Now, typing ?a*b will list all names which begin with a
2250 and end in b, for example. The %psearch magic has full
2247 and end in b, for example. The %psearch magic has full
2251 docstrings. Many thanks to JΓΆrgen Stenarson
2248 docstrings. Many thanks to JΓΆrgen Stenarson
2252 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2249 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2253 implementing this functionality.
2250 implementing this functionality.
2254
2251
2255 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2252 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2256
2253
2257 * Manual: fixed long-standing annoyance of double-dashes (as in
2254 * Manual: fixed long-standing annoyance of double-dashes (as in
2258 --prefix=~, for example) being stripped in the HTML version. This
2255 --prefix=~, for example) being stripped in the HTML version. This
2259 is a latex2html bug, but a workaround was provided. Many thanks
2256 is a latex2html bug, but a workaround was provided. Many thanks
2260 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2257 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2261 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2258 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2262 rolling. This seemingly small issue had tripped a number of users
2259 rolling. This seemingly small issue had tripped a number of users
2263 when first installing, so I'm glad to see it gone.
2260 when first installing, so I'm glad to see it gone.
2264
2261
2265 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2262 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2266
2263
2267 * IPython/Extensions/numeric_formats.py: fix missing import,
2264 * IPython/Extensions/numeric_formats.py: fix missing import,
2268 reported by Stephen Walton.
2265 reported by Stephen Walton.
2269
2266
2270 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2267 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2271
2268
2272 * IPython/demo.py: finish demo module, fully documented now.
2269 * IPython/demo.py: finish demo module, fully documented now.
2273
2270
2274 * IPython/genutils.py (file_read): simple little utility to read a
2271 * IPython/genutils.py (file_read): simple little utility to read a
2275 file and ensure it's closed afterwards.
2272 file and ensure it's closed afterwards.
2276
2273
2277 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2274 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2278
2275
2279 * IPython/demo.py (Demo.__init__): added support for individually
2276 * IPython/demo.py (Demo.__init__): added support for individually
2280 tagging blocks for automatic execution.
2277 tagging blocks for automatic execution.
2281
2278
2282 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2279 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2283 syntax-highlighted python sources, requested by John.
2280 syntax-highlighted python sources, requested by John.
2284
2281
2285 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2282 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2286
2283
2287 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2284 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2288 finishing.
2285 finishing.
2289
2286
2290 * IPython/genutils.py (shlex_split): moved from Magic to here,
2287 * IPython/genutils.py (shlex_split): moved from Magic to here,
2291 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2288 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2292
2289
2293 * IPython/demo.py (Demo.__init__): added support for silent
2290 * IPython/demo.py (Demo.__init__): added support for silent
2294 blocks, improved marks as regexps, docstrings written.
2291 blocks, improved marks as regexps, docstrings written.
2295 (Demo.__init__): better docstring, added support for sys.argv.
2292 (Demo.__init__): better docstring, added support for sys.argv.
2296
2293
2297 * IPython/genutils.py (marquee): little utility used by the demo
2294 * IPython/genutils.py (marquee): little utility used by the demo
2298 code, handy in general.
2295 code, handy in general.
2299
2296
2300 * IPython/demo.py (Demo.__init__): new class for interactive
2297 * IPython/demo.py (Demo.__init__): new class for interactive
2301 demos. Not documented yet, I just wrote it in a hurry for
2298 demos. Not documented yet, I just wrote it in a hurry for
2302 scipy'05. Will docstring later.
2299 scipy'05. Will docstring later.
2303
2300
2304 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2301 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2305
2302
2306 * IPython/Shell.py (sigint_handler): Drastic simplification which
2303 * IPython/Shell.py (sigint_handler): Drastic simplification which
2307 also seems to make Ctrl-C work correctly across threads! This is
2304 also seems to make Ctrl-C work correctly across threads! This is
2308 so simple, that I can't beleive I'd missed it before. Needs more
2305 so simple, that I can't beleive I'd missed it before. Needs more
2309 testing, though.
2306 testing, though.
2310 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2307 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2311 like this before...
2308 like this before...
2312
2309
2313 * IPython/genutils.py (get_home_dir): add protection against
2310 * IPython/genutils.py (get_home_dir): add protection against
2314 non-dirs in win32 registry.
2311 non-dirs in win32 registry.
2315
2312
2316 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2313 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2317 bug where dict was mutated while iterating (pysh crash).
2314 bug where dict was mutated while iterating (pysh crash).
2318
2315
2319 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2316 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2320
2317
2321 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2318 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2322 spurious newlines added by this routine. After a report by
2319 spurious newlines added by this routine. After a report by
2323 F. Mantegazza.
2320 F. Mantegazza.
2324
2321
2325 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2322 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2326
2323
2327 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2324 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2328 calls. These were a leftover from the GTK 1.x days, and can cause
2325 calls. These were a leftover from the GTK 1.x days, and can cause
2329 problems in certain cases (after a report by John Hunter).
2326 problems in certain cases (after a report by John Hunter).
2330
2327
2331 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2328 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2332 os.getcwd() fails at init time. Thanks to patch from David Remahl
2329 os.getcwd() fails at init time. Thanks to patch from David Remahl
2333 <chmod007-AT-mac.com>.
2330 <chmod007-AT-mac.com>.
2334 (InteractiveShell.__init__): prevent certain special magics from
2331 (InteractiveShell.__init__): prevent certain special magics from
2335 being shadowed by aliases. Closes
2332 being shadowed by aliases. Closes
2336 http://www.scipy.net/roundup/ipython/issue41.
2333 http://www.scipy.net/roundup/ipython/issue41.
2337
2334
2338 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2335 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2339
2336
2340 * IPython/iplib.py (InteractiveShell.complete): Added new
2337 * IPython/iplib.py (InteractiveShell.complete): Added new
2341 top-level completion method to expose the completion mechanism
2338 top-level completion method to expose the completion mechanism
2342 beyond readline-based environments.
2339 beyond readline-based environments.
2343
2340
2344 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2341 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2345
2342
2346 * tools/ipsvnc (svnversion): fix svnversion capture.
2343 * tools/ipsvnc (svnversion): fix svnversion capture.
2347
2344
2348 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2345 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2349 attribute to self, which was missing. Before, it was set by a
2346 attribute to self, which was missing. Before, it was set by a
2350 routine which in certain cases wasn't being called, so the
2347 routine which in certain cases wasn't being called, so the
2351 instance could end up missing the attribute. This caused a crash.
2348 instance could end up missing the attribute. This caused a crash.
2352 Closes http://www.scipy.net/roundup/ipython/issue40.
2349 Closes http://www.scipy.net/roundup/ipython/issue40.
2353
2350
2354 2005-08-16 Fernando Perez <fperez@colorado.edu>
2351 2005-08-16 Fernando Perez <fperez@colorado.edu>
2355
2352
2356 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2353 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2357 contains non-string attribute. Closes
2354 contains non-string attribute. Closes
2358 http://www.scipy.net/roundup/ipython/issue38.
2355 http://www.scipy.net/roundup/ipython/issue38.
2359
2356
2360 2005-08-14 Fernando Perez <fperez@colorado.edu>
2357 2005-08-14 Fernando Perez <fperez@colorado.edu>
2361
2358
2362 * tools/ipsvnc: Minor improvements, to add changeset info.
2359 * tools/ipsvnc: Minor improvements, to add changeset info.
2363
2360
2364 2005-08-12 Fernando Perez <fperez@colorado.edu>
2361 2005-08-12 Fernando Perez <fperez@colorado.edu>
2365
2362
2366 * IPython/iplib.py (runsource): remove self.code_to_run_src
2363 * IPython/iplib.py (runsource): remove self.code_to_run_src
2367 attribute. I realized this is nothing more than
2364 attribute. I realized this is nothing more than
2368 '\n'.join(self.buffer), and having the same data in two different
2365 '\n'.join(self.buffer), and having the same data in two different
2369 places is just asking for synchronization bugs. This may impact
2366 places is just asking for synchronization bugs. This may impact
2370 people who have custom exception handlers, so I need to warn
2367 people who have custom exception handlers, so I need to warn
2371 ipython-dev about it (F. Mantegazza may use them).
2368 ipython-dev about it (F. Mantegazza may use them).
2372
2369
2373 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2370 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2374
2371
2375 * IPython/genutils.py: fix 2.2 compatibility (generators)
2372 * IPython/genutils.py: fix 2.2 compatibility (generators)
2376
2373
2377 2005-07-18 Fernando Perez <fperez@colorado.edu>
2374 2005-07-18 Fernando Perez <fperez@colorado.edu>
2378
2375
2379 * IPython/genutils.py (get_home_dir): fix to help users with
2376 * IPython/genutils.py (get_home_dir): fix to help users with
2380 invalid $HOME under win32.
2377 invalid $HOME under win32.
2381
2378
2382 2005-07-17 Fernando Perez <fperez@colorado.edu>
2379 2005-07-17 Fernando Perez <fperez@colorado.edu>
2383
2380
2384 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2381 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2385 some old hacks and clean up a bit other routines; code should be
2382 some old hacks and clean up a bit other routines; code should be
2386 simpler and a bit faster.
2383 simpler and a bit faster.
2387
2384
2388 * IPython/iplib.py (interact): removed some last-resort attempts
2385 * IPython/iplib.py (interact): removed some last-resort attempts
2389 to survive broken stdout/stderr. That code was only making it
2386 to survive broken stdout/stderr. That code was only making it
2390 harder to abstract out the i/o (necessary for gui integration),
2387 harder to abstract out the i/o (necessary for gui integration),
2391 and the crashes it could prevent were extremely rare in practice
2388 and the crashes it could prevent were extremely rare in practice
2392 (besides being fully user-induced in a pretty violent manner).
2389 (besides being fully user-induced in a pretty violent manner).
2393
2390
2394 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2391 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2395 Nothing major yet, but the code is simpler to read; this should
2392 Nothing major yet, but the code is simpler to read; this should
2396 make it easier to do more serious modifications in the future.
2393 make it easier to do more serious modifications in the future.
2397
2394
2398 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2395 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2399 which broke in .15 (thanks to a report by Ville).
2396 which broke in .15 (thanks to a report by Ville).
2400
2397
2401 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2398 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2402 be quite correct, I know next to nothing about unicode). This
2399 be quite correct, I know next to nothing about unicode). This
2403 will allow unicode strings to be used in prompts, amongst other
2400 will allow unicode strings to be used in prompts, amongst other
2404 cases. It also will prevent ipython from crashing when unicode
2401 cases. It also will prevent ipython from crashing when unicode
2405 shows up unexpectedly in many places. If ascii encoding fails, we
2402 shows up unexpectedly in many places. If ascii encoding fails, we
2406 assume utf_8. Currently the encoding is not a user-visible
2403 assume utf_8. Currently the encoding is not a user-visible
2407 setting, though it could be made so if there is demand for it.
2404 setting, though it could be made so if there is demand for it.
2408
2405
2409 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2406 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2410
2407
2411 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2408 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2412
2409
2413 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2410 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2414
2411
2415 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2412 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2416 code can work transparently for 2.2/2.3.
2413 code can work transparently for 2.2/2.3.
2417
2414
2418 2005-07-16 Fernando Perez <fperez@colorado.edu>
2415 2005-07-16 Fernando Perez <fperez@colorado.edu>
2419
2416
2420 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2417 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2421 out of the color scheme table used for coloring exception
2418 out of the color scheme table used for coloring exception
2422 tracebacks. This allows user code to add new schemes at runtime.
2419 tracebacks. This allows user code to add new schemes at runtime.
2423 This is a minimally modified version of the patch at
2420 This is a minimally modified version of the patch at
2424 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2421 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2425 for the contribution.
2422 for the contribution.
2426
2423
2427 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2424 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2428 slightly modified version of the patch in
2425 slightly modified version of the patch in
2429 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2426 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2430 to remove the previous try/except solution (which was costlier).
2427 to remove the previous try/except solution (which was costlier).
2431 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2428 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2432
2429
2433 2005-06-08 Fernando Perez <fperez@colorado.edu>
2430 2005-06-08 Fernando Perez <fperez@colorado.edu>
2434
2431
2435 * IPython/iplib.py (write/write_err): Add methods to abstract all
2432 * IPython/iplib.py (write/write_err): Add methods to abstract all
2436 I/O a bit more.
2433 I/O a bit more.
2437
2434
2438 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2435 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2439 warning, reported by Aric Hagberg, fix by JD Hunter.
2436 warning, reported by Aric Hagberg, fix by JD Hunter.
2440
2437
2441 2005-06-02 *** Released version 0.6.15
2438 2005-06-02 *** Released version 0.6.15
2442
2439
2443 2005-06-01 Fernando Perez <fperez@colorado.edu>
2440 2005-06-01 Fernando Perez <fperez@colorado.edu>
2444
2441
2445 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2442 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2446 tab-completion of filenames within open-quoted strings. Note that
2443 tab-completion of filenames within open-quoted strings. Note that
2447 this requires that in ~/.ipython/ipythonrc, users change the
2444 this requires that in ~/.ipython/ipythonrc, users change the
2448 readline delimiters configuration to read:
2445 readline delimiters configuration to read:
2449
2446
2450 readline_remove_delims -/~
2447 readline_remove_delims -/~
2451
2448
2452
2449
2453 2005-05-31 *** Released version 0.6.14
2450 2005-05-31 *** Released version 0.6.14
2454
2451
2455 2005-05-29 Fernando Perez <fperez@colorado.edu>
2452 2005-05-29 Fernando Perez <fperez@colorado.edu>
2456
2453
2457 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2454 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2458 with files not on the filesystem. Reported by Eliyahu Sandler
2455 with files not on the filesystem. Reported by Eliyahu Sandler
2459 <eli@gondolin.net>
2456 <eli@gondolin.net>
2460
2457
2461 2005-05-22 Fernando Perez <fperez@colorado.edu>
2458 2005-05-22 Fernando Perez <fperez@colorado.edu>
2462
2459
2463 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2460 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2464 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2461 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2465
2462
2466 2005-05-19 Fernando Perez <fperez@colorado.edu>
2463 2005-05-19 Fernando Perez <fperez@colorado.edu>
2467
2464
2468 * IPython/iplib.py (safe_execfile): close a file which could be
2465 * IPython/iplib.py (safe_execfile): close a file which could be
2469 left open (causing problems in win32, which locks open files).
2466 left open (causing problems in win32, which locks open files).
2470 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2467 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2471
2468
2472 2005-05-18 Fernando Perez <fperez@colorado.edu>
2469 2005-05-18 Fernando Perez <fperez@colorado.edu>
2473
2470
2474 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2471 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2475 keyword arguments correctly to safe_execfile().
2472 keyword arguments correctly to safe_execfile().
2476
2473
2477 2005-05-13 Fernando Perez <fperez@colorado.edu>
2474 2005-05-13 Fernando Perez <fperez@colorado.edu>
2478
2475
2479 * ipython.1: Added info about Qt to manpage, and threads warning
2476 * ipython.1: Added info about Qt to manpage, and threads warning
2480 to usage page (invoked with --help).
2477 to usage page (invoked with --help).
2481
2478
2482 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2479 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2483 new matcher (it goes at the end of the priority list) to do
2480 new matcher (it goes at the end of the priority list) to do
2484 tab-completion on named function arguments. Submitted by George
2481 tab-completion on named function arguments. Submitted by George
2485 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2482 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2486 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2483 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2487 for more details.
2484 for more details.
2488
2485
2489 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2486 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2490 SystemExit exceptions in the script being run. Thanks to a report
2487 SystemExit exceptions in the script being run. Thanks to a report
2491 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2488 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2492 producing very annoying behavior when running unit tests.
2489 producing very annoying behavior when running unit tests.
2493
2490
2494 2005-05-12 Fernando Perez <fperez@colorado.edu>
2491 2005-05-12 Fernando Perez <fperez@colorado.edu>
2495
2492
2496 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2493 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2497 which I'd broken (again) due to a changed regexp. In the process,
2494 which I'd broken (again) due to a changed regexp. In the process,
2498 added ';' as an escape to auto-quote the whole line without
2495 added ';' as an escape to auto-quote the whole line without
2499 splitting its arguments. Thanks to a report by Jerry McRae
2496 splitting its arguments. Thanks to a report by Jerry McRae
2500 <qrs0xyc02-AT-sneakemail.com>.
2497 <qrs0xyc02-AT-sneakemail.com>.
2501
2498
2502 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2499 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2503 possible crashes caused by a TokenError. Reported by Ed Schofield
2500 possible crashes caused by a TokenError. Reported by Ed Schofield
2504 <schofield-AT-ftw.at>.
2501 <schofield-AT-ftw.at>.
2505
2502
2506 2005-05-06 Fernando Perez <fperez@colorado.edu>
2503 2005-05-06 Fernando Perez <fperez@colorado.edu>
2507
2504
2508 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2505 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2509
2506
2510 2005-04-29 Fernando Perez <fperez@colorado.edu>
2507 2005-04-29 Fernando Perez <fperez@colorado.edu>
2511
2508
2512 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2509 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2513 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2510 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2514 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2511 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2515 which provides support for Qt interactive usage (similar to the
2512 which provides support for Qt interactive usage (similar to the
2516 existing one for WX and GTK). This had been often requested.
2513 existing one for WX and GTK). This had been often requested.
2517
2514
2518 2005-04-14 *** Released version 0.6.13
2515 2005-04-14 *** Released version 0.6.13
2519
2516
2520 2005-04-08 Fernando Perez <fperez@colorado.edu>
2517 2005-04-08 Fernando Perez <fperez@colorado.edu>
2521
2518
2522 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2519 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2523 from _ofind, which gets called on almost every input line. Now,
2520 from _ofind, which gets called on almost every input line. Now,
2524 we only try to get docstrings if they are actually going to be
2521 we only try to get docstrings if they are actually going to be
2525 used (the overhead of fetching unnecessary docstrings can be
2522 used (the overhead of fetching unnecessary docstrings can be
2526 noticeable for certain objects, such as Pyro proxies).
2523 noticeable for certain objects, such as Pyro proxies).
2527
2524
2528 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2525 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2529 for completers. For some reason I had been passing them the state
2526 for completers. For some reason I had been passing them the state
2530 variable, which completers never actually need, and was in
2527 variable, which completers never actually need, and was in
2531 conflict with the rlcompleter API. Custom completers ONLY need to
2528 conflict with the rlcompleter API. Custom completers ONLY need to
2532 take the text parameter.
2529 take the text parameter.
2533
2530
2534 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2531 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2535 work correctly in pysh. I've also moved all the logic which used
2532 work correctly in pysh. I've also moved all the logic which used
2536 to be in pysh.py here, which will prevent problems with future
2533 to be in pysh.py here, which will prevent problems with future
2537 upgrades. However, this time I must warn users to update their
2534 upgrades. However, this time I must warn users to update their
2538 pysh profile to include the line
2535 pysh profile to include the line
2539
2536
2540 import_all IPython.Extensions.InterpreterExec
2537 import_all IPython.Extensions.InterpreterExec
2541
2538
2542 because otherwise things won't work for them. They MUST also
2539 because otherwise things won't work for them. They MUST also
2543 delete pysh.py and the line
2540 delete pysh.py and the line
2544
2541
2545 execfile pysh.py
2542 execfile pysh.py
2546
2543
2547 from their ipythonrc-pysh.
2544 from their ipythonrc-pysh.
2548
2545
2549 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2546 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2550 robust in the face of objects whose dir() returns non-strings
2547 robust in the face of objects whose dir() returns non-strings
2551 (which it shouldn't, but some broken libs like ITK do). Thanks to
2548 (which it shouldn't, but some broken libs like ITK do). Thanks to
2552 a patch by John Hunter (implemented differently, though). Also
2549 a patch by John Hunter (implemented differently, though). Also
2553 minor improvements by using .extend instead of + on lists.
2550 minor improvements by using .extend instead of + on lists.
2554
2551
2555 * pysh.py:
2552 * pysh.py:
2556
2553
2557 2005-04-06 Fernando Perez <fperez@colorado.edu>
2554 2005-04-06 Fernando Perez <fperez@colorado.edu>
2558
2555
2559 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2556 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2560 by default, so that all users benefit from it. Those who don't
2557 by default, so that all users benefit from it. Those who don't
2561 want it can still turn it off.
2558 want it can still turn it off.
2562
2559
2563 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2560 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2564 config file, I'd forgotten about this, so users were getting it
2561 config file, I'd forgotten about this, so users were getting it
2565 off by default.
2562 off by default.
2566
2563
2567 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2564 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2568 consistency. Now magics can be called in multiline statements,
2565 consistency. Now magics can be called in multiline statements,
2569 and python variables can be expanded in magic calls via $var.
2566 and python variables can be expanded in magic calls via $var.
2570 This makes the magic system behave just like aliases or !system
2567 This makes the magic system behave just like aliases or !system
2571 calls.
2568 calls.
2572
2569
2573 2005-03-28 Fernando Perez <fperez@colorado.edu>
2570 2005-03-28 Fernando Perez <fperez@colorado.edu>
2574
2571
2575 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2572 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2576 expensive string additions for building command. Add support for
2573 expensive string additions for building command. Add support for
2577 trailing ';' when autocall is used.
2574 trailing ';' when autocall is used.
2578
2575
2579 2005-03-26 Fernando Perez <fperez@colorado.edu>
2576 2005-03-26 Fernando Perez <fperez@colorado.edu>
2580
2577
2581 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2578 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2582 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2579 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2583 ipython.el robust against prompts with any number of spaces
2580 ipython.el robust against prompts with any number of spaces
2584 (including 0) after the ':' character.
2581 (including 0) after the ':' character.
2585
2582
2586 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2583 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2587 continuation prompt, which misled users to think the line was
2584 continuation prompt, which misled users to think the line was
2588 already indented. Closes debian Bug#300847, reported to me by
2585 already indented. Closes debian Bug#300847, reported to me by
2589 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2586 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2590
2587
2591 2005-03-23 Fernando Perez <fperez@colorado.edu>
2588 2005-03-23 Fernando Perez <fperez@colorado.edu>
2592
2589
2593 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2590 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2594 properly aligned if they have embedded newlines.
2591 properly aligned if they have embedded newlines.
2595
2592
2596 * IPython/iplib.py (runlines): Add a public method to expose
2593 * IPython/iplib.py (runlines): Add a public method to expose
2597 IPython's code execution machinery, so that users can run strings
2594 IPython's code execution machinery, so that users can run strings
2598 as if they had been typed at the prompt interactively.
2595 as if they had been typed at the prompt interactively.
2599 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2596 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2600 methods which can call the system shell, but with python variable
2597 methods which can call the system shell, but with python variable
2601 expansion. The three such methods are: __IPYTHON__.system,
2598 expansion. The three such methods are: __IPYTHON__.system,
2602 .getoutput and .getoutputerror. These need to be documented in a
2599 .getoutput and .getoutputerror. These need to be documented in a
2603 'public API' section (to be written) of the manual.
2600 'public API' section (to be written) of the manual.
2604
2601
2605 2005-03-20 Fernando Perez <fperez@colorado.edu>
2602 2005-03-20 Fernando Perez <fperez@colorado.edu>
2606
2603
2607 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2604 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2608 for custom exception handling. This is quite powerful, and it
2605 for custom exception handling. This is quite powerful, and it
2609 allows for user-installable exception handlers which can trap
2606 allows for user-installable exception handlers which can trap
2610 custom exceptions at runtime and treat them separately from
2607 custom exceptions at runtime and treat them separately from
2611 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2608 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2612 Mantegazza <mantegazza-AT-ill.fr>.
2609 Mantegazza <mantegazza-AT-ill.fr>.
2613 (InteractiveShell.set_custom_completer): public API function to
2610 (InteractiveShell.set_custom_completer): public API function to
2614 add new completers at runtime.
2611 add new completers at runtime.
2615
2612
2616 2005-03-19 Fernando Perez <fperez@colorado.edu>
2613 2005-03-19 Fernando Perez <fperez@colorado.edu>
2617
2614
2618 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2615 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2619 allow objects which provide their docstrings via non-standard
2616 allow objects which provide their docstrings via non-standard
2620 mechanisms (like Pyro proxies) to still be inspected by ipython's
2617 mechanisms (like Pyro proxies) to still be inspected by ipython's
2621 ? system.
2618 ? system.
2622
2619
2623 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2620 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2624 automatic capture system. I tried quite hard to make it work
2621 automatic capture system. I tried quite hard to make it work
2625 reliably, and simply failed. I tried many combinations with the
2622 reliably, and simply failed. I tried many combinations with the
2626 subprocess module, but eventually nothing worked in all needed
2623 subprocess module, but eventually nothing worked in all needed
2627 cases (not blocking stdin for the child, duplicating stdout
2624 cases (not blocking stdin for the child, duplicating stdout
2628 without blocking, etc). The new %sc/%sx still do capture to these
2625 without blocking, etc). The new %sc/%sx still do capture to these
2629 magical list/string objects which make shell use much more
2626 magical list/string objects which make shell use much more
2630 conveninent, so not all is lost.
2627 conveninent, so not all is lost.
2631
2628
2632 XXX - FIX MANUAL for the change above!
2629 XXX - FIX MANUAL for the change above!
2633
2630
2634 (runsource): I copied code.py's runsource() into ipython to modify
2631 (runsource): I copied code.py's runsource() into ipython to modify
2635 it a bit. Now the code object and source to be executed are
2632 it a bit. Now the code object and source to be executed are
2636 stored in ipython. This makes this info accessible to third-party
2633 stored in ipython. This makes this info accessible to third-party
2637 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2634 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2638 Mantegazza <mantegazza-AT-ill.fr>.
2635 Mantegazza <mantegazza-AT-ill.fr>.
2639
2636
2640 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2637 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2641 history-search via readline (like C-p/C-n). I'd wanted this for a
2638 history-search via readline (like C-p/C-n). I'd wanted this for a
2642 long time, but only recently found out how to do it. For users
2639 long time, but only recently found out how to do it. For users
2643 who already have their ipythonrc files made and want this, just
2640 who already have their ipythonrc files made and want this, just
2644 add:
2641 add:
2645
2642
2646 readline_parse_and_bind "\e[A": history-search-backward
2643 readline_parse_and_bind "\e[A": history-search-backward
2647 readline_parse_and_bind "\e[B": history-search-forward
2644 readline_parse_and_bind "\e[B": history-search-forward
2648
2645
2649 2005-03-18 Fernando Perez <fperez@colorado.edu>
2646 2005-03-18 Fernando Perez <fperez@colorado.edu>
2650
2647
2651 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2648 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2652 LSString and SList classes which allow transparent conversions
2649 LSString and SList classes which allow transparent conversions
2653 between list mode and whitespace-separated string.
2650 between list mode and whitespace-separated string.
2654 (magic_r): Fix recursion problem in %r.
2651 (magic_r): Fix recursion problem in %r.
2655
2652
2656 * IPython/genutils.py (LSString): New class to be used for
2653 * IPython/genutils.py (LSString): New class to be used for
2657 automatic storage of the results of all alias/system calls in _o
2654 automatic storage of the results of all alias/system calls in _o
2658 and _e (stdout/err). These provide a .l/.list attribute which
2655 and _e (stdout/err). These provide a .l/.list attribute which
2659 does automatic splitting on newlines. This means that for most
2656 does automatic splitting on newlines. This means that for most
2660 uses, you'll never need to do capturing of output with %sc/%sx
2657 uses, you'll never need to do capturing of output with %sc/%sx
2661 anymore, since ipython keeps this always done for you. Note that
2658 anymore, since ipython keeps this always done for you. Note that
2662 only the LAST results are stored, the _o/e variables are
2659 only the LAST results are stored, the _o/e variables are
2663 overwritten on each call. If you need to save their contents
2660 overwritten on each call. If you need to save their contents
2664 further, simply bind them to any other name.
2661 further, simply bind them to any other name.
2665
2662
2666 2005-03-17 Fernando Perez <fperez@colorado.edu>
2663 2005-03-17 Fernando Perez <fperez@colorado.edu>
2667
2664
2668 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2665 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2669 prompt namespace handling.
2666 prompt namespace handling.
2670
2667
2671 2005-03-16 Fernando Perez <fperez@colorado.edu>
2668 2005-03-16 Fernando Perez <fperez@colorado.edu>
2672
2669
2673 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2670 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2674 classic prompts to be '>>> ' (final space was missing, and it
2671 classic prompts to be '>>> ' (final space was missing, and it
2675 trips the emacs python mode).
2672 trips the emacs python mode).
2676 (BasePrompt.__str__): Added safe support for dynamic prompt
2673 (BasePrompt.__str__): Added safe support for dynamic prompt
2677 strings. Now you can set your prompt string to be '$x', and the
2674 strings. Now you can set your prompt string to be '$x', and the
2678 value of x will be printed from your interactive namespace. The
2675 value of x will be printed from your interactive namespace. The
2679 interpolation syntax includes the full Itpl support, so
2676 interpolation syntax includes the full Itpl support, so
2680 ${foo()+x+bar()} is a valid prompt string now, and the function
2677 ${foo()+x+bar()} is a valid prompt string now, and the function
2681 calls will be made at runtime.
2678 calls will be made at runtime.
2682
2679
2683 2005-03-15 Fernando Perez <fperez@colorado.edu>
2680 2005-03-15 Fernando Perez <fperez@colorado.edu>
2684
2681
2685 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2682 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2686 avoid name clashes in pylab. %hist still works, it just forwards
2683 avoid name clashes in pylab. %hist still works, it just forwards
2687 the call to %history.
2684 the call to %history.
2688
2685
2689 2005-03-02 *** Released version 0.6.12
2686 2005-03-02 *** Released version 0.6.12
2690
2687
2691 2005-03-02 Fernando Perez <fperez@colorado.edu>
2688 2005-03-02 Fernando Perez <fperez@colorado.edu>
2692
2689
2693 * IPython/iplib.py (handle_magic): log magic calls properly as
2690 * IPython/iplib.py (handle_magic): log magic calls properly as
2694 ipmagic() function calls.
2691 ipmagic() function calls.
2695
2692
2696 * IPython/Magic.py (magic_time): Improved %time to support
2693 * IPython/Magic.py (magic_time): Improved %time to support
2697 statements and provide wall-clock as well as CPU time.
2694 statements and provide wall-clock as well as CPU time.
2698
2695
2699 2005-02-27 Fernando Perez <fperez@colorado.edu>
2696 2005-02-27 Fernando Perez <fperez@colorado.edu>
2700
2697
2701 * IPython/hooks.py: New hooks module, to expose user-modifiable
2698 * IPython/hooks.py: New hooks module, to expose user-modifiable
2702 IPython functionality in a clean manner. For now only the editor
2699 IPython functionality in a clean manner. For now only the editor
2703 hook is actually written, and other thigns which I intend to turn
2700 hook is actually written, and other thigns which I intend to turn
2704 into proper hooks aren't yet there. The display and prefilter
2701 into proper hooks aren't yet there. The display and prefilter
2705 stuff, for example, should be hooks. But at least now the
2702 stuff, for example, should be hooks. But at least now the
2706 framework is in place, and the rest can be moved here with more
2703 framework is in place, and the rest can be moved here with more
2707 time later. IPython had had a .hooks variable for a long time for
2704 time later. IPython had had a .hooks variable for a long time for
2708 this purpose, but I'd never actually used it for anything.
2705 this purpose, but I'd never actually used it for anything.
2709
2706
2710 2005-02-26 Fernando Perez <fperez@colorado.edu>
2707 2005-02-26 Fernando Perez <fperez@colorado.edu>
2711
2708
2712 * IPython/ipmaker.py (make_IPython): make the default ipython
2709 * IPython/ipmaker.py (make_IPython): make the default ipython
2713 directory be called _ipython under win32, to follow more the
2710 directory be called _ipython under win32, to follow more the
2714 naming peculiarities of that platform (where buggy software like
2711 naming peculiarities of that platform (where buggy software like
2715 Visual Sourcesafe breaks with .named directories). Reported by
2712 Visual Sourcesafe breaks with .named directories). Reported by
2716 Ville Vainio.
2713 Ville Vainio.
2717
2714
2718 2005-02-23 Fernando Perez <fperez@colorado.edu>
2715 2005-02-23 Fernando Perez <fperez@colorado.edu>
2719
2716
2720 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2717 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2721 auto_aliases for win32 which were causing problems. Users can
2718 auto_aliases for win32 which were causing problems. Users can
2722 define the ones they personally like.
2719 define the ones they personally like.
2723
2720
2724 2005-02-21 Fernando Perez <fperez@colorado.edu>
2721 2005-02-21 Fernando Perez <fperez@colorado.edu>
2725
2722
2726 * IPython/Magic.py (magic_time): new magic to time execution of
2723 * IPython/Magic.py (magic_time): new magic to time execution of
2727 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2724 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2728
2725
2729 2005-02-19 Fernando Perez <fperez@colorado.edu>
2726 2005-02-19 Fernando Perez <fperez@colorado.edu>
2730
2727
2731 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2728 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2732 into keys (for prompts, for example).
2729 into keys (for prompts, for example).
2733
2730
2734 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2731 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2735 prompts in case users want them. This introduces a small behavior
2732 prompts in case users want them. This introduces a small behavior
2736 change: ipython does not automatically add a space to all prompts
2733 change: ipython does not automatically add a space to all prompts
2737 anymore. To get the old prompts with a space, users should add it
2734 anymore. To get the old prompts with a space, users should add it
2738 manually to their ipythonrc file, so for example prompt_in1 should
2735 manually to their ipythonrc file, so for example prompt_in1 should
2739 now read 'In [\#]: ' instead of 'In [\#]:'.
2736 now read 'In [\#]: ' instead of 'In [\#]:'.
2740 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2737 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2741 file) to control left-padding of secondary prompts.
2738 file) to control left-padding of secondary prompts.
2742
2739
2743 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2740 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2744 the profiler can't be imported. Fix for Debian, which removed
2741 the profiler can't be imported. Fix for Debian, which removed
2745 profile.py because of License issues. I applied a slightly
2742 profile.py because of License issues. I applied a slightly
2746 modified version of the original Debian patch at
2743 modified version of the original Debian patch at
2747 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2744 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2748
2745
2749 2005-02-17 Fernando Perez <fperez@colorado.edu>
2746 2005-02-17 Fernando Perez <fperez@colorado.edu>
2750
2747
2751 * IPython/genutils.py (native_line_ends): Fix bug which would
2748 * IPython/genutils.py (native_line_ends): Fix bug which would
2752 cause improper line-ends under win32 b/c I was not opening files
2749 cause improper line-ends under win32 b/c I was not opening files
2753 in binary mode. Bug report and fix thanks to Ville.
2750 in binary mode. Bug report and fix thanks to Ville.
2754
2751
2755 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2752 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2756 trying to catch spurious foo[1] autocalls. My fix actually broke
2753 trying to catch spurious foo[1] autocalls. My fix actually broke
2757 ',/' autoquote/call with explicit escape (bad regexp).
2754 ',/' autoquote/call with explicit escape (bad regexp).
2758
2755
2759 2005-02-15 *** Released version 0.6.11
2756 2005-02-15 *** Released version 0.6.11
2760
2757
2761 2005-02-14 Fernando Perez <fperez@colorado.edu>
2758 2005-02-14 Fernando Perez <fperez@colorado.edu>
2762
2759
2763 * IPython/background_jobs.py: New background job management
2760 * IPython/background_jobs.py: New background job management
2764 subsystem. This is implemented via a new set of classes, and
2761 subsystem. This is implemented via a new set of classes, and
2765 IPython now provides a builtin 'jobs' object for background job
2762 IPython now provides a builtin 'jobs' object for background job
2766 execution. A convenience %bg magic serves as a lightweight
2763 execution. A convenience %bg magic serves as a lightweight
2767 frontend for starting the more common type of calls. This was
2764 frontend for starting the more common type of calls. This was
2768 inspired by discussions with B. Granger and the BackgroundCommand
2765 inspired by discussions with B. Granger and the BackgroundCommand
2769 class described in the book Python Scripting for Computational
2766 class described in the book Python Scripting for Computational
2770 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2767 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2771 (although ultimately no code from this text was used, as IPython's
2768 (although ultimately no code from this text was used, as IPython's
2772 system is a separate implementation).
2769 system is a separate implementation).
2773
2770
2774 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2771 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2775 to control the completion of single/double underscore names
2772 to control the completion of single/double underscore names
2776 separately. As documented in the example ipytonrc file, the
2773 separately. As documented in the example ipytonrc file, the
2777 readline_omit__names variable can now be set to 2, to omit even
2774 readline_omit__names variable can now be set to 2, to omit even
2778 single underscore names. Thanks to a patch by Brian Wong
2775 single underscore names. Thanks to a patch by Brian Wong
2779 <BrianWong-AT-AirgoNetworks.Com>.
2776 <BrianWong-AT-AirgoNetworks.Com>.
2780 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2777 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2781 be autocalled as foo([1]) if foo were callable. A problem for
2778 be autocalled as foo([1]) if foo were callable. A problem for
2782 things which are both callable and implement __getitem__.
2779 things which are both callable and implement __getitem__.
2783 (init_readline): Fix autoindentation for win32. Thanks to a patch
2780 (init_readline): Fix autoindentation for win32. Thanks to a patch
2784 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2781 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2785
2782
2786 2005-02-12 Fernando Perez <fperez@colorado.edu>
2783 2005-02-12 Fernando Perez <fperez@colorado.edu>
2787
2784
2788 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2785 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2789 which I had written long ago to sort out user error messages which
2786 which I had written long ago to sort out user error messages which
2790 may occur during startup. This seemed like a good idea initially,
2787 may occur during startup. This seemed like a good idea initially,
2791 but it has proven a disaster in retrospect. I don't want to
2788 but it has proven a disaster in retrospect. I don't want to
2792 change much code for now, so my fix is to set the internal 'debug'
2789 change much code for now, so my fix is to set the internal 'debug'
2793 flag to true everywhere, whose only job was precisely to control
2790 flag to true everywhere, whose only job was precisely to control
2794 this subsystem. This closes issue 28 (as well as avoiding all
2791 this subsystem. This closes issue 28 (as well as avoiding all
2795 sorts of strange hangups which occur from time to time).
2792 sorts of strange hangups which occur from time to time).
2796
2793
2797 2005-02-07 Fernando Perez <fperez@colorado.edu>
2794 2005-02-07 Fernando Perez <fperez@colorado.edu>
2798
2795
2799 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2796 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2800 previous call produced a syntax error.
2797 previous call produced a syntax error.
2801
2798
2802 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2799 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2803 classes without constructor.
2800 classes without constructor.
2804
2801
2805 2005-02-06 Fernando Perez <fperez@colorado.edu>
2802 2005-02-06 Fernando Perez <fperez@colorado.edu>
2806
2803
2807 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2804 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2808 completions with the results of each matcher, so we return results
2805 completions with the results of each matcher, so we return results
2809 to the user from all namespaces. This breaks with ipython
2806 to the user from all namespaces. This breaks with ipython
2810 tradition, but I think it's a nicer behavior. Now you get all
2807 tradition, but I think it's a nicer behavior. Now you get all
2811 possible completions listed, from all possible namespaces (python,
2808 possible completions listed, from all possible namespaces (python,
2812 filesystem, magics...) After a request by John Hunter
2809 filesystem, magics...) After a request by John Hunter
2813 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2810 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2814
2811
2815 2005-02-05 Fernando Perez <fperez@colorado.edu>
2812 2005-02-05 Fernando Perez <fperez@colorado.edu>
2816
2813
2817 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2814 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2818 the call had quote characters in it (the quotes were stripped).
2815 the call had quote characters in it (the quotes were stripped).
2819
2816
2820 2005-01-31 Fernando Perez <fperez@colorado.edu>
2817 2005-01-31 Fernando Perez <fperez@colorado.edu>
2821
2818
2822 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2819 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2823 Itpl.itpl() to make the code more robust against psyco
2820 Itpl.itpl() to make the code more robust against psyco
2824 optimizations.
2821 optimizations.
2825
2822
2826 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2823 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2827 of causing an exception. Quicker, cleaner.
2824 of causing an exception. Quicker, cleaner.
2828
2825
2829 2005-01-28 Fernando Perez <fperez@colorado.edu>
2826 2005-01-28 Fernando Perez <fperez@colorado.edu>
2830
2827
2831 * scripts/ipython_win_post_install.py (install): hardcode
2828 * scripts/ipython_win_post_install.py (install): hardcode
2832 sys.prefix+'python.exe' as the executable path. It turns out that
2829 sys.prefix+'python.exe' as the executable path. It turns out that
2833 during the post-installation run, sys.executable resolves to the
2830 during the post-installation run, sys.executable resolves to the
2834 name of the binary installer! I should report this as a distutils
2831 name of the binary installer! I should report this as a distutils
2835 bug, I think. I updated the .10 release with this tiny fix, to
2832 bug, I think. I updated the .10 release with this tiny fix, to
2836 avoid annoying the lists further.
2833 avoid annoying the lists further.
2837
2834
2838 2005-01-27 *** Released version 0.6.10
2835 2005-01-27 *** Released version 0.6.10
2839
2836
2840 2005-01-27 Fernando Perez <fperez@colorado.edu>
2837 2005-01-27 Fernando Perez <fperez@colorado.edu>
2841
2838
2842 * IPython/numutils.py (norm): Added 'inf' as optional name for
2839 * IPython/numutils.py (norm): Added 'inf' as optional name for
2843 L-infinity norm, included references to mathworld.com for vector
2840 L-infinity norm, included references to mathworld.com for vector
2844 norm definitions.
2841 norm definitions.
2845 (amin/amax): added amin/amax for array min/max. Similar to what
2842 (amin/amax): added amin/amax for array min/max. Similar to what
2846 pylab ships with after the recent reorganization of names.
2843 pylab ships with after the recent reorganization of names.
2847 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2844 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2848
2845
2849 * ipython.el: committed Alex's recent fixes and improvements.
2846 * ipython.el: committed Alex's recent fixes and improvements.
2850 Tested with python-mode from CVS, and it looks excellent. Since
2847 Tested with python-mode from CVS, and it looks excellent. Since
2851 python-mode hasn't released anything in a while, I'm temporarily
2848 python-mode hasn't released anything in a while, I'm temporarily
2852 putting a copy of today's CVS (v 4.70) of python-mode in:
2849 putting a copy of today's CVS (v 4.70) of python-mode in:
2853 http://ipython.scipy.org/tmp/python-mode.el
2850 http://ipython.scipy.org/tmp/python-mode.el
2854
2851
2855 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2852 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2856 sys.executable for the executable name, instead of assuming it's
2853 sys.executable for the executable name, instead of assuming it's
2857 called 'python.exe' (the post-installer would have produced broken
2854 called 'python.exe' (the post-installer would have produced broken
2858 setups on systems with a differently named python binary).
2855 setups on systems with a differently named python binary).
2859
2856
2860 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2857 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2861 references to os.linesep, to make the code more
2858 references to os.linesep, to make the code more
2862 platform-independent. This is also part of the win32 coloring
2859 platform-independent. This is also part of the win32 coloring
2863 fixes.
2860 fixes.
2864
2861
2865 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2862 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2866 lines, which actually cause coloring bugs because the length of
2863 lines, which actually cause coloring bugs because the length of
2867 the line is very difficult to correctly compute with embedded
2864 the line is very difficult to correctly compute with embedded
2868 escapes. This was the source of all the coloring problems under
2865 escapes. This was the source of all the coloring problems under
2869 Win32. I think that _finally_, Win32 users have a properly
2866 Win32. I think that _finally_, Win32 users have a properly
2870 working ipython in all respects. This would never have happened
2867 working ipython in all respects. This would never have happened
2871 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2868 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2872
2869
2873 2005-01-26 *** Released version 0.6.9
2870 2005-01-26 *** Released version 0.6.9
2874
2871
2875 2005-01-25 Fernando Perez <fperez@colorado.edu>
2872 2005-01-25 Fernando Perez <fperez@colorado.edu>
2876
2873
2877 * setup.py: finally, we have a true Windows installer, thanks to
2874 * setup.py: finally, we have a true Windows installer, thanks to
2878 the excellent work of Viktor Ransmayr
2875 the excellent work of Viktor Ransmayr
2879 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2876 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2880 Windows users. The setup routine is quite a bit cleaner thanks to
2877 Windows users. The setup routine is quite a bit cleaner thanks to
2881 this, and the post-install script uses the proper functions to
2878 this, and the post-install script uses the proper functions to
2882 allow a clean de-installation using the standard Windows Control
2879 allow a clean de-installation using the standard Windows Control
2883 Panel.
2880 Panel.
2884
2881
2885 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2882 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2886 environment variable under all OSes (including win32) if
2883 environment variable under all OSes (including win32) if
2887 available. This will give consistency to win32 users who have set
2884 available. This will give consistency to win32 users who have set
2888 this variable for any reason. If os.environ['HOME'] fails, the
2885 this variable for any reason. If os.environ['HOME'] fails, the
2889 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2886 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2890
2887
2891 2005-01-24 Fernando Perez <fperez@colorado.edu>
2888 2005-01-24 Fernando Perez <fperez@colorado.edu>
2892
2889
2893 * IPython/numutils.py (empty_like): add empty_like(), similar to
2890 * IPython/numutils.py (empty_like): add empty_like(), similar to
2894 zeros_like() but taking advantage of the new empty() Numeric routine.
2891 zeros_like() but taking advantage of the new empty() Numeric routine.
2895
2892
2896 2005-01-23 *** Released version 0.6.8
2893 2005-01-23 *** Released version 0.6.8
2897
2894
2898 2005-01-22 Fernando Perez <fperez@colorado.edu>
2895 2005-01-22 Fernando Perez <fperez@colorado.edu>
2899
2896
2900 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2897 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2901 automatic show() calls. After discussing things with JDH, it
2898 automatic show() calls. After discussing things with JDH, it
2902 turns out there are too many corner cases where this can go wrong.
2899 turns out there are too many corner cases where this can go wrong.
2903 It's best not to try to be 'too smart', and simply have ipython
2900 It's best not to try to be 'too smart', and simply have ipython
2904 reproduce as much as possible the default behavior of a normal
2901 reproduce as much as possible the default behavior of a normal
2905 python shell.
2902 python shell.
2906
2903
2907 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2904 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2908 line-splitting regexp and _prefilter() to avoid calling getattr()
2905 line-splitting regexp and _prefilter() to avoid calling getattr()
2909 on assignments. This closes
2906 on assignments. This closes
2910 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2907 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2911 readline uses getattr(), so a simple <TAB> keypress is still
2908 readline uses getattr(), so a simple <TAB> keypress is still
2912 enough to trigger getattr() calls on an object.
2909 enough to trigger getattr() calls on an object.
2913
2910
2914 2005-01-21 Fernando Perez <fperez@colorado.edu>
2911 2005-01-21 Fernando Perez <fperez@colorado.edu>
2915
2912
2916 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2913 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2917 docstring under pylab so it doesn't mask the original.
2914 docstring under pylab so it doesn't mask the original.
2918
2915
2919 2005-01-21 *** Released version 0.6.7
2916 2005-01-21 *** Released version 0.6.7
2920
2917
2921 2005-01-21 Fernando Perez <fperez@colorado.edu>
2918 2005-01-21 Fernando Perez <fperez@colorado.edu>
2922
2919
2923 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2920 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2924 signal handling for win32 users in multithreaded mode.
2921 signal handling for win32 users in multithreaded mode.
2925
2922
2926 2005-01-17 Fernando Perez <fperez@colorado.edu>
2923 2005-01-17 Fernando Perez <fperez@colorado.edu>
2927
2924
2928 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2925 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2929 instances with no __init__. After a crash report by Norbert Nemec
2926 instances with no __init__. After a crash report by Norbert Nemec
2930 <Norbert-AT-nemec-online.de>.
2927 <Norbert-AT-nemec-online.de>.
2931
2928
2932 2005-01-14 Fernando Perez <fperez@colorado.edu>
2929 2005-01-14 Fernando Perez <fperez@colorado.edu>
2933
2930
2934 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2931 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2935 names for verbose exceptions, when multiple dotted names and the
2932 names for verbose exceptions, when multiple dotted names and the
2936 'parent' object were present on the same line.
2933 'parent' object were present on the same line.
2937
2934
2938 2005-01-11 Fernando Perez <fperez@colorado.edu>
2935 2005-01-11 Fernando Perez <fperez@colorado.edu>
2939
2936
2940 * IPython/genutils.py (flag_calls): new utility to trap and flag
2937 * IPython/genutils.py (flag_calls): new utility to trap and flag
2941 calls in functions. I need it to clean up matplotlib support.
2938 calls in functions. I need it to clean up matplotlib support.
2942 Also removed some deprecated code in genutils.
2939 Also removed some deprecated code in genutils.
2943
2940
2944 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2941 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2945 that matplotlib scripts called with %run, which don't call show()
2942 that matplotlib scripts called with %run, which don't call show()
2946 themselves, still have their plotting windows open.
2943 themselves, still have their plotting windows open.
2947
2944
2948 2005-01-05 Fernando Perez <fperez@colorado.edu>
2945 2005-01-05 Fernando Perez <fperez@colorado.edu>
2949
2946
2950 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2947 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2951 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2948 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2952
2949
2953 2004-12-19 Fernando Perez <fperez@colorado.edu>
2950 2004-12-19 Fernando Perez <fperez@colorado.edu>
2954
2951
2955 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2952 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2956 parent_runcode, which was an eyesore. The same result can be
2953 parent_runcode, which was an eyesore. The same result can be
2957 obtained with Python's regular superclass mechanisms.
2954 obtained with Python's regular superclass mechanisms.
2958
2955
2959 2004-12-17 Fernando Perez <fperez@colorado.edu>
2956 2004-12-17 Fernando Perez <fperez@colorado.edu>
2960
2957
2961 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2958 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2962 reported by Prabhu.
2959 reported by Prabhu.
2963 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2960 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2964 sys.stderr) instead of explicitly calling sys.stderr. This helps
2961 sys.stderr) instead of explicitly calling sys.stderr. This helps
2965 maintain our I/O abstractions clean, for future GUI embeddings.
2962 maintain our I/O abstractions clean, for future GUI embeddings.
2966
2963
2967 * IPython/genutils.py (info): added new utility for sys.stderr
2964 * IPython/genutils.py (info): added new utility for sys.stderr
2968 unified info message handling (thin wrapper around warn()).
2965 unified info message handling (thin wrapper around warn()).
2969
2966
2970 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2967 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2971 composite (dotted) names on verbose exceptions.
2968 composite (dotted) names on verbose exceptions.
2972 (VerboseTB.nullrepr): harden against another kind of errors which
2969 (VerboseTB.nullrepr): harden against another kind of errors which
2973 Python's inspect module can trigger, and which were crashing
2970 Python's inspect module can trigger, and which were crashing
2974 IPython. Thanks to a report by Marco Lombardi
2971 IPython. Thanks to a report by Marco Lombardi
2975 <mlombard-AT-ma010192.hq.eso.org>.
2972 <mlombard-AT-ma010192.hq.eso.org>.
2976
2973
2977 2004-12-13 *** Released version 0.6.6
2974 2004-12-13 *** Released version 0.6.6
2978
2975
2979 2004-12-12 Fernando Perez <fperez@colorado.edu>
2976 2004-12-12 Fernando Perez <fperez@colorado.edu>
2980
2977
2981 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2978 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2982 generated by pygtk upon initialization if it was built without
2979 generated by pygtk upon initialization if it was built without
2983 threads (for matplotlib users). After a crash reported by
2980 threads (for matplotlib users). After a crash reported by
2984 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2981 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2985
2982
2986 * IPython/ipmaker.py (make_IPython): fix small bug in the
2983 * IPython/ipmaker.py (make_IPython): fix small bug in the
2987 import_some parameter for multiple imports.
2984 import_some parameter for multiple imports.
2988
2985
2989 * IPython/iplib.py (ipmagic): simplified the interface of
2986 * IPython/iplib.py (ipmagic): simplified the interface of
2990 ipmagic() to take a single string argument, just as it would be
2987 ipmagic() to take a single string argument, just as it would be
2991 typed at the IPython cmd line.
2988 typed at the IPython cmd line.
2992 (ipalias): Added new ipalias() with an interface identical to
2989 (ipalias): Added new ipalias() with an interface identical to
2993 ipmagic(). This completes exposing a pure python interface to the
2990 ipmagic(). This completes exposing a pure python interface to the
2994 alias and magic system, which can be used in loops or more complex
2991 alias and magic system, which can be used in loops or more complex
2995 code where IPython's automatic line mangling is not active.
2992 code where IPython's automatic line mangling is not active.
2996
2993
2997 * IPython/genutils.py (timing): changed interface of timing to
2994 * IPython/genutils.py (timing): changed interface of timing to
2998 simply run code once, which is the most common case. timings()
2995 simply run code once, which is the most common case. timings()
2999 remains unchanged, for the cases where you want multiple runs.
2996 remains unchanged, for the cases where you want multiple runs.
3000
2997
3001 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2998 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
3002 bug where Python2.2 crashes with exec'ing code which does not end
2999 bug where Python2.2 crashes with exec'ing code which does not end
3003 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3000 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3004 before.
3001 before.
3005
3002
3006 2004-12-10 Fernando Perez <fperez@colorado.edu>
3003 2004-12-10 Fernando Perez <fperez@colorado.edu>
3007
3004
3008 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3005 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3009 -t to -T, to accomodate the new -t flag in %run (the %run and
3006 -t to -T, to accomodate the new -t flag in %run (the %run and
3010 %prun options are kind of intermixed, and it's not easy to change
3007 %prun options are kind of intermixed, and it's not easy to change
3011 this with the limitations of python's getopt).
3008 this with the limitations of python's getopt).
3012
3009
3013 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3010 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3014 the execution of scripts. It's not as fine-tuned as timeit.py,
3011 the execution of scripts. It's not as fine-tuned as timeit.py,
3015 but it works from inside ipython (and under 2.2, which lacks
3012 but it works from inside ipython (and under 2.2, which lacks
3016 timeit.py). Optionally a number of runs > 1 can be given for
3013 timeit.py). Optionally a number of runs > 1 can be given for
3017 timing very short-running code.
3014 timing very short-running code.
3018
3015
3019 * IPython/genutils.py (uniq_stable): new routine which returns a
3016 * IPython/genutils.py (uniq_stable): new routine which returns a
3020 list of unique elements in any iterable, but in stable order of
3017 list of unique elements in any iterable, but in stable order of
3021 appearance. I needed this for the ultraTB fixes, and it's a handy
3018 appearance. I needed this for the ultraTB fixes, and it's a handy
3022 utility.
3019 utility.
3023
3020
3024 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3021 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3025 dotted names in Verbose exceptions. This had been broken since
3022 dotted names in Verbose exceptions. This had been broken since
3026 the very start, now x.y will properly be printed in a Verbose
3023 the very start, now x.y will properly be printed in a Verbose
3027 traceback, instead of x being shown and y appearing always as an
3024 traceback, instead of x being shown and y appearing always as an
3028 'undefined global'. Getting this to work was a bit tricky,
3025 'undefined global'. Getting this to work was a bit tricky,
3029 because by default python tokenizers are stateless. Saved by
3026 because by default python tokenizers are stateless. Saved by
3030 python's ability to easily add a bit of state to an arbitrary
3027 python's ability to easily add a bit of state to an arbitrary
3031 function (without needing to build a full-blown callable object).
3028 function (without needing to build a full-blown callable object).
3032
3029
3033 Also big cleanup of this code, which had horrendous runtime
3030 Also big cleanup of this code, which had horrendous runtime
3034 lookups of zillions of attributes for colorization. Moved all
3031 lookups of zillions of attributes for colorization. Moved all
3035 this code into a few templates, which make it cleaner and quicker.
3032 this code into a few templates, which make it cleaner and quicker.
3036
3033
3037 Printout quality was also improved for Verbose exceptions: one
3034 Printout quality was also improved for Verbose exceptions: one
3038 variable per line, and memory addresses are printed (this can be
3035 variable per line, and memory addresses are printed (this can be
3039 quite handy in nasty debugging situations, which is what Verbose
3036 quite handy in nasty debugging situations, which is what Verbose
3040 is for).
3037 is for).
3041
3038
3042 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3039 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3043 the command line as scripts to be loaded by embedded instances.
3040 the command line as scripts to be loaded by embedded instances.
3044 Doing so has the potential for an infinite recursion if there are
3041 Doing so has the potential for an infinite recursion if there are
3045 exceptions thrown in the process. This fixes a strange crash
3042 exceptions thrown in the process. This fixes a strange crash
3046 reported by Philippe MULLER <muller-AT-irit.fr>.
3043 reported by Philippe MULLER <muller-AT-irit.fr>.
3047
3044
3048 2004-12-09 Fernando Perez <fperez@colorado.edu>
3045 2004-12-09 Fernando Perez <fperez@colorado.edu>
3049
3046
3050 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3047 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3051 to reflect new names in matplotlib, which now expose the
3048 to reflect new names in matplotlib, which now expose the
3052 matlab-compatible interface via a pylab module instead of the
3049 matlab-compatible interface via a pylab module instead of the
3053 'matlab' name. The new code is backwards compatible, so users of
3050 'matlab' name. The new code is backwards compatible, so users of
3054 all matplotlib versions are OK. Patch by J. Hunter.
3051 all matplotlib versions are OK. Patch by J. Hunter.
3055
3052
3056 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3053 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3057 of __init__ docstrings for instances (class docstrings are already
3054 of __init__ docstrings for instances (class docstrings are already
3058 automatically printed). Instances with customized docstrings
3055 automatically printed). Instances with customized docstrings
3059 (indep. of the class) are also recognized and all 3 separate
3056 (indep. of the class) are also recognized and all 3 separate
3060 docstrings are printed (instance, class, constructor). After some
3057 docstrings are printed (instance, class, constructor). After some
3061 comments/suggestions by J. Hunter.
3058 comments/suggestions by J. Hunter.
3062
3059
3063 2004-12-05 Fernando Perez <fperez@colorado.edu>
3060 2004-12-05 Fernando Perez <fperez@colorado.edu>
3064
3061
3065 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3062 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3066 warnings when tab-completion fails and triggers an exception.
3063 warnings when tab-completion fails and triggers an exception.
3067
3064
3068 2004-12-03 Fernando Perez <fperez@colorado.edu>
3065 2004-12-03 Fernando Perez <fperez@colorado.edu>
3069
3066
3070 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3067 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3071 be triggered when using 'run -p'. An incorrect option flag was
3068 be triggered when using 'run -p'. An incorrect option flag was
3072 being set ('d' instead of 'D').
3069 being set ('d' instead of 'D').
3073 (manpage): fix missing escaped \- sign.
3070 (manpage): fix missing escaped \- sign.
3074
3071
3075 2004-11-30 *** Released version 0.6.5
3072 2004-11-30 *** Released version 0.6.5
3076
3073
3077 2004-11-30 Fernando Perez <fperez@colorado.edu>
3074 2004-11-30 Fernando Perez <fperez@colorado.edu>
3078
3075
3079 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3076 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3080 setting with -d option.
3077 setting with -d option.
3081
3078
3082 * setup.py (docfiles): Fix problem where the doc glob I was using
3079 * setup.py (docfiles): Fix problem where the doc glob I was using
3083 was COMPLETELY BROKEN. It was giving the right files by pure
3080 was COMPLETELY BROKEN. It was giving the right files by pure
3084 accident, but failed once I tried to include ipython.el. Note:
3081 accident, but failed once I tried to include ipython.el. Note:
3085 glob() does NOT allow you to do exclusion on multiple endings!
3082 glob() does NOT allow you to do exclusion on multiple endings!
3086
3083
3087 2004-11-29 Fernando Perez <fperez@colorado.edu>
3084 2004-11-29 Fernando Perez <fperez@colorado.edu>
3088
3085
3089 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3086 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3090 the manpage as the source. Better formatting & consistency.
3087 the manpage as the source. Better formatting & consistency.
3091
3088
3092 * IPython/Magic.py (magic_run): Added new -d option, to run
3089 * IPython/Magic.py (magic_run): Added new -d option, to run
3093 scripts under the control of the python pdb debugger. Note that
3090 scripts under the control of the python pdb debugger. Note that
3094 this required changing the %prun option -d to -D, to avoid a clash
3091 this required changing the %prun option -d to -D, to avoid a clash
3095 (since %run must pass options to %prun, and getopt is too dumb to
3092 (since %run must pass options to %prun, and getopt is too dumb to
3096 handle options with string values with embedded spaces). Thanks
3093 handle options with string values with embedded spaces). Thanks
3097 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3094 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3098 (magic_who_ls): added type matching to %who and %whos, so that one
3095 (magic_who_ls): added type matching to %who and %whos, so that one
3099 can filter their output to only include variables of certain
3096 can filter their output to only include variables of certain
3100 types. Another suggestion by Matthew.
3097 types. Another suggestion by Matthew.
3101 (magic_whos): Added memory summaries in kb and Mb for arrays.
3098 (magic_whos): Added memory summaries in kb and Mb for arrays.
3102 (magic_who): Improve formatting (break lines every 9 vars).
3099 (magic_who): Improve formatting (break lines every 9 vars).
3103
3100
3104 2004-11-28 Fernando Perez <fperez@colorado.edu>
3101 2004-11-28 Fernando Perez <fperez@colorado.edu>
3105
3102
3106 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3103 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3107 cache when empty lines were present.
3104 cache when empty lines were present.
3108
3105
3109 2004-11-24 Fernando Perez <fperez@colorado.edu>
3106 2004-11-24 Fernando Perez <fperez@colorado.edu>
3110
3107
3111 * IPython/usage.py (__doc__): document the re-activated threading
3108 * IPython/usage.py (__doc__): document the re-activated threading
3112 options for WX and GTK.
3109 options for WX and GTK.
3113
3110
3114 2004-11-23 Fernando Perez <fperez@colorado.edu>
3111 2004-11-23 Fernando Perez <fperez@colorado.edu>
3115
3112
3116 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3113 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3117 the -wthread and -gthread options, along with a new -tk one to try
3114 the -wthread and -gthread options, along with a new -tk one to try
3118 and coordinate Tk threading with wx/gtk. The tk support is very
3115 and coordinate Tk threading with wx/gtk. The tk support is very
3119 platform dependent, since it seems to require Tcl and Tk to be
3116 platform dependent, since it seems to require Tcl and Tk to be
3120 built with threads (Fedora1/2 appears NOT to have it, but in
3117 built with threads (Fedora1/2 appears NOT to have it, but in
3121 Prabhu's Debian boxes it works OK). But even with some Tk
3118 Prabhu's Debian boxes it works OK). But even with some Tk
3122 limitations, this is a great improvement.
3119 limitations, this is a great improvement.
3123
3120
3124 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3121 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3125 info in user prompts. Patch by Prabhu.
3122 info in user prompts. Patch by Prabhu.
3126
3123
3127 2004-11-18 Fernando Perez <fperez@colorado.edu>
3124 2004-11-18 Fernando Perez <fperez@colorado.edu>
3128
3125
3129 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3126 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3130 EOFErrors and bail, to avoid infinite loops if a non-terminating
3127 EOFErrors and bail, to avoid infinite loops if a non-terminating
3131 file is fed into ipython. Patch submitted in issue 19 by user,
3128 file is fed into ipython. Patch submitted in issue 19 by user,
3132 many thanks.
3129 many thanks.
3133
3130
3134 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3131 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3135 autoquote/parens in continuation prompts, which can cause lots of
3132 autoquote/parens in continuation prompts, which can cause lots of
3136 problems. Closes roundup issue 20.
3133 problems. Closes roundup issue 20.
3137
3134
3138 2004-11-17 Fernando Perez <fperez@colorado.edu>
3135 2004-11-17 Fernando Perez <fperez@colorado.edu>
3139
3136
3140 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3137 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3141 reported as debian bug #280505. I'm not sure my local changelog
3138 reported as debian bug #280505. I'm not sure my local changelog
3142 entry has the proper debian format (Jack?).
3139 entry has the proper debian format (Jack?).
3143
3140
3144 2004-11-08 *** Released version 0.6.4
3141 2004-11-08 *** Released version 0.6.4
3145
3142
3146 2004-11-08 Fernando Perez <fperez@colorado.edu>
3143 2004-11-08 Fernando Perez <fperez@colorado.edu>
3147
3144
3148 * IPython/iplib.py (init_readline): Fix exit message for Windows
3145 * IPython/iplib.py (init_readline): Fix exit message for Windows
3149 when readline is active. Thanks to a report by Eric Jones
3146 when readline is active. Thanks to a report by Eric Jones
3150 <eric-AT-enthought.com>.
3147 <eric-AT-enthought.com>.
3151
3148
3152 2004-11-07 Fernando Perez <fperez@colorado.edu>
3149 2004-11-07 Fernando Perez <fperez@colorado.edu>
3153
3150
3154 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3151 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3155 sometimes seen by win2k/cygwin users.
3152 sometimes seen by win2k/cygwin users.
3156
3153
3157 2004-11-06 Fernando Perez <fperez@colorado.edu>
3154 2004-11-06 Fernando Perez <fperez@colorado.edu>
3158
3155
3159 * IPython/iplib.py (interact): Change the handling of %Exit from
3156 * IPython/iplib.py (interact): Change the handling of %Exit from
3160 trying to propagate a SystemExit to an internal ipython flag.
3157 trying to propagate a SystemExit to an internal ipython flag.
3161 This is less elegant than using Python's exception mechanism, but
3158 This is less elegant than using Python's exception mechanism, but
3162 I can't get that to work reliably with threads, so under -pylab
3159 I can't get that to work reliably with threads, so under -pylab
3163 %Exit was hanging IPython. Cross-thread exception handling is
3160 %Exit was hanging IPython. Cross-thread exception handling is
3164 really a bitch. Thaks to a bug report by Stephen Walton
3161 really a bitch. Thaks to a bug report by Stephen Walton
3165 <stephen.walton-AT-csun.edu>.
3162 <stephen.walton-AT-csun.edu>.
3166
3163
3167 2004-11-04 Fernando Perez <fperez@colorado.edu>
3164 2004-11-04 Fernando Perez <fperez@colorado.edu>
3168
3165
3169 * IPython/iplib.py (raw_input_original): store a pointer to the
3166 * IPython/iplib.py (raw_input_original): store a pointer to the
3170 true raw_input to harden against code which can modify it
3167 true raw_input to harden against code which can modify it
3171 (wx.py.PyShell does this and would otherwise crash ipython).
3168 (wx.py.PyShell does this and would otherwise crash ipython).
3172 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3169 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3173
3170
3174 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3171 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3175 Ctrl-C problem, which does not mess up the input line.
3172 Ctrl-C problem, which does not mess up the input line.
3176
3173
3177 2004-11-03 Fernando Perez <fperez@colorado.edu>
3174 2004-11-03 Fernando Perez <fperez@colorado.edu>
3178
3175
3179 * IPython/Release.py: Changed licensing to BSD, in all files.
3176 * IPython/Release.py: Changed licensing to BSD, in all files.
3180 (name): lowercase name for tarball/RPM release.
3177 (name): lowercase name for tarball/RPM release.
3181
3178
3182 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3179 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3183 use throughout ipython.
3180 use throughout ipython.
3184
3181
3185 * IPython/Magic.py (Magic._ofind): Switch to using the new
3182 * IPython/Magic.py (Magic._ofind): Switch to using the new
3186 OInspect.getdoc() function.
3183 OInspect.getdoc() function.
3187
3184
3188 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3185 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3189 of the line currently being canceled via Ctrl-C. It's extremely
3186 of the line currently being canceled via Ctrl-C. It's extremely
3190 ugly, but I don't know how to do it better (the problem is one of
3187 ugly, but I don't know how to do it better (the problem is one of
3191 handling cross-thread exceptions).
3188 handling cross-thread exceptions).
3192
3189
3193 2004-10-28 Fernando Perez <fperez@colorado.edu>
3190 2004-10-28 Fernando Perez <fperez@colorado.edu>
3194
3191
3195 * IPython/Shell.py (signal_handler): add signal handlers to trap
3192 * IPython/Shell.py (signal_handler): add signal handlers to trap
3196 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3193 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3197 report by Francesc Alted.
3194 report by Francesc Alted.
3198
3195
3199 2004-10-21 Fernando Perez <fperez@colorado.edu>
3196 2004-10-21 Fernando Perez <fperez@colorado.edu>
3200
3197
3201 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3198 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3202 to % for pysh syntax extensions.
3199 to % for pysh syntax extensions.
3203
3200
3204 2004-10-09 Fernando Perez <fperez@colorado.edu>
3201 2004-10-09 Fernando Perez <fperez@colorado.edu>
3205
3202
3206 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3203 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3207 arrays to print a more useful summary, without calling str(arr).
3204 arrays to print a more useful summary, without calling str(arr).
3208 This avoids the problem of extremely lengthy computations which
3205 This avoids the problem of extremely lengthy computations which
3209 occur if arr is large, and appear to the user as a system lockup
3206 occur if arr is large, and appear to the user as a system lockup
3210 with 100% cpu activity. After a suggestion by Kristian Sandberg
3207 with 100% cpu activity. After a suggestion by Kristian Sandberg
3211 <Kristian.Sandberg@colorado.edu>.
3208 <Kristian.Sandberg@colorado.edu>.
3212 (Magic.__init__): fix bug in global magic escapes not being
3209 (Magic.__init__): fix bug in global magic escapes not being
3213 correctly set.
3210 correctly set.
3214
3211
3215 2004-10-08 Fernando Perez <fperez@colorado.edu>
3212 2004-10-08 Fernando Perez <fperez@colorado.edu>
3216
3213
3217 * IPython/Magic.py (__license__): change to absolute imports of
3214 * IPython/Magic.py (__license__): change to absolute imports of
3218 ipython's own internal packages, to start adapting to the absolute
3215 ipython's own internal packages, to start adapting to the absolute
3219 import requirement of PEP-328.
3216 import requirement of PEP-328.
3220
3217
3221 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3218 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3222 files, and standardize author/license marks through the Release
3219 files, and standardize author/license marks through the Release
3223 module instead of having per/file stuff (except for files with
3220 module instead of having per/file stuff (except for files with
3224 particular licenses, like the MIT/PSF-licensed codes).
3221 particular licenses, like the MIT/PSF-licensed codes).
3225
3222
3226 * IPython/Debugger.py: remove dead code for python 2.1
3223 * IPython/Debugger.py: remove dead code for python 2.1
3227
3224
3228 2004-10-04 Fernando Perez <fperez@colorado.edu>
3225 2004-10-04 Fernando Perez <fperez@colorado.edu>
3229
3226
3230 * IPython/iplib.py (ipmagic): New function for accessing magics
3227 * IPython/iplib.py (ipmagic): New function for accessing magics
3231 via a normal python function call.
3228 via a normal python function call.
3232
3229
3233 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3230 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3234 from '@' to '%', to accomodate the new @decorator syntax of python
3231 from '@' to '%', to accomodate the new @decorator syntax of python
3235 2.4.
3232 2.4.
3236
3233
3237 2004-09-29 Fernando Perez <fperez@colorado.edu>
3234 2004-09-29 Fernando Perez <fperez@colorado.edu>
3238
3235
3239 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3236 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3240 matplotlib.use to prevent running scripts which try to switch
3237 matplotlib.use to prevent running scripts which try to switch
3241 interactive backends from within ipython. This will just crash
3238 interactive backends from within ipython. This will just crash
3242 the python interpreter, so we can't allow it (but a detailed error
3239 the python interpreter, so we can't allow it (but a detailed error
3243 is given to the user).
3240 is given to the user).
3244
3241
3245 2004-09-28 Fernando Perez <fperez@colorado.edu>
3242 2004-09-28 Fernando Perez <fperez@colorado.edu>
3246
3243
3247 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3244 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3248 matplotlib-related fixes so that using @run with non-matplotlib
3245 matplotlib-related fixes so that using @run with non-matplotlib
3249 scripts doesn't pop up spurious plot windows. This requires
3246 scripts doesn't pop up spurious plot windows. This requires
3250 matplotlib >= 0.63, where I had to make some changes as well.
3247 matplotlib >= 0.63, where I had to make some changes as well.
3251
3248
3252 * IPython/ipmaker.py (make_IPython): update version requirement to
3249 * IPython/ipmaker.py (make_IPython): update version requirement to
3253 python 2.2.
3250 python 2.2.
3254
3251
3255 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3252 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3256 banner arg for embedded customization.
3253 banner arg for embedded customization.
3257
3254
3258 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3255 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3259 explicit uses of __IP as the IPython's instance name. Now things
3256 explicit uses of __IP as the IPython's instance name. Now things
3260 are properly handled via the shell.name value. The actual code
3257 are properly handled via the shell.name value. The actual code
3261 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3258 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3262 is much better than before. I'll clean things completely when the
3259 is much better than before. I'll clean things completely when the
3263 magic stuff gets a real overhaul.
3260 magic stuff gets a real overhaul.
3264
3261
3265 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3262 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3266 minor changes to debian dir.
3263 minor changes to debian dir.
3267
3264
3268 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3265 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3269 pointer to the shell itself in the interactive namespace even when
3266 pointer to the shell itself in the interactive namespace even when
3270 a user-supplied dict is provided. This is needed for embedding
3267 a user-supplied dict is provided. This is needed for embedding
3271 purposes (found by tests with Michel Sanner).
3268 purposes (found by tests with Michel Sanner).
3272
3269
3273 2004-09-27 Fernando Perez <fperez@colorado.edu>
3270 2004-09-27 Fernando Perez <fperez@colorado.edu>
3274
3271
3275 * IPython/UserConfig/ipythonrc: remove []{} from
3272 * IPython/UserConfig/ipythonrc: remove []{} from
3276 readline_remove_delims, so that things like [modname.<TAB> do
3273 readline_remove_delims, so that things like [modname.<TAB> do
3277 proper completion. This disables [].TAB, but that's a less common
3274 proper completion. This disables [].TAB, but that's a less common
3278 case than module names in list comprehensions, for example.
3275 case than module names in list comprehensions, for example.
3279 Thanks to a report by Andrea Riciputi.
3276 Thanks to a report by Andrea Riciputi.
3280
3277
3281 2004-09-09 Fernando Perez <fperez@colorado.edu>
3278 2004-09-09 Fernando Perez <fperez@colorado.edu>
3282
3279
3283 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3280 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3284 blocking problems in win32 and osx. Fix by John.
3281 blocking problems in win32 and osx. Fix by John.
3285
3282
3286 2004-09-08 Fernando Perez <fperez@colorado.edu>
3283 2004-09-08 Fernando Perez <fperez@colorado.edu>
3287
3284
3288 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3285 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3289 for Win32 and OSX. Fix by John Hunter.
3286 for Win32 and OSX. Fix by John Hunter.
3290
3287
3291 2004-08-30 *** Released version 0.6.3
3288 2004-08-30 *** Released version 0.6.3
3292
3289
3293 2004-08-30 Fernando Perez <fperez@colorado.edu>
3290 2004-08-30 Fernando Perez <fperez@colorado.edu>
3294
3291
3295 * setup.py (isfile): Add manpages to list of dependent files to be
3292 * setup.py (isfile): Add manpages to list of dependent files to be
3296 updated.
3293 updated.
3297
3294
3298 2004-08-27 Fernando Perez <fperez@colorado.edu>
3295 2004-08-27 Fernando Perez <fperez@colorado.edu>
3299
3296
3300 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3297 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3301 for now. They don't really work with standalone WX/GTK code
3298 for now. They don't really work with standalone WX/GTK code
3302 (though matplotlib IS working fine with both of those backends).
3299 (though matplotlib IS working fine with both of those backends).
3303 This will neeed much more testing. I disabled most things with
3300 This will neeed much more testing. I disabled most things with
3304 comments, so turning it back on later should be pretty easy.
3301 comments, so turning it back on later should be pretty easy.
3305
3302
3306 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3303 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3307 autocalling of expressions like r'foo', by modifying the line
3304 autocalling of expressions like r'foo', by modifying the line
3308 split regexp. Closes
3305 split regexp. Closes
3309 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3306 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3310 Riley <ipythonbugs-AT-sabi.net>.
3307 Riley <ipythonbugs-AT-sabi.net>.
3311 (InteractiveShell.mainloop): honor --nobanner with banner
3308 (InteractiveShell.mainloop): honor --nobanner with banner
3312 extensions.
3309 extensions.
3313
3310
3314 * IPython/Shell.py: Significant refactoring of all classes, so
3311 * IPython/Shell.py: Significant refactoring of all classes, so
3315 that we can really support ALL matplotlib backends and threading
3312 that we can really support ALL matplotlib backends and threading
3316 models (John spotted a bug with Tk which required this). Now we
3313 models (John spotted a bug with Tk which required this). Now we
3317 should support single-threaded, WX-threads and GTK-threads, both
3314 should support single-threaded, WX-threads and GTK-threads, both
3318 for generic code and for matplotlib.
3315 for generic code and for matplotlib.
3319
3316
3320 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3317 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3321 -pylab, to simplify things for users. Will also remove the pylab
3318 -pylab, to simplify things for users. Will also remove the pylab
3322 profile, since now all of matplotlib configuration is directly
3319 profile, since now all of matplotlib configuration is directly
3323 handled here. This also reduces startup time.
3320 handled here. This also reduces startup time.
3324
3321
3325 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3322 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3326 shell wasn't being correctly called. Also in IPShellWX.
3323 shell wasn't being correctly called. Also in IPShellWX.
3327
3324
3328 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3325 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3329 fine-tune banner.
3326 fine-tune banner.
3330
3327
3331 * IPython/numutils.py (spike): Deprecate these spike functions,
3328 * IPython/numutils.py (spike): Deprecate these spike functions,
3332 delete (long deprecated) gnuplot_exec handler.
3329 delete (long deprecated) gnuplot_exec handler.
3333
3330
3334 2004-08-26 Fernando Perez <fperez@colorado.edu>
3331 2004-08-26 Fernando Perez <fperez@colorado.edu>
3335
3332
3336 * ipython.1: Update for threading options, plus some others which
3333 * ipython.1: Update for threading options, plus some others which
3337 were missing.
3334 were missing.
3338
3335
3339 * IPython/ipmaker.py (__call__): Added -wthread option for
3336 * IPython/ipmaker.py (__call__): Added -wthread option for
3340 wxpython thread handling. Make sure threading options are only
3337 wxpython thread handling. Make sure threading options are only
3341 valid at the command line.
3338 valid at the command line.
3342
3339
3343 * scripts/ipython: moved shell selection into a factory function
3340 * scripts/ipython: moved shell selection into a factory function
3344 in Shell.py, to keep the starter script to a minimum.
3341 in Shell.py, to keep the starter script to a minimum.
3345
3342
3346 2004-08-25 Fernando Perez <fperez@colorado.edu>
3343 2004-08-25 Fernando Perez <fperez@colorado.edu>
3347
3344
3348 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3345 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3349 John. Along with some recent changes he made to matplotlib, the
3346 John. Along with some recent changes he made to matplotlib, the
3350 next versions of both systems should work very well together.
3347 next versions of both systems should work very well together.
3351
3348
3352 2004-08-24 Fernando Perez <fperez@colorado.edu>
3349 2004-08-24 Fernando Perez <fperez@colorado.edu>
3353
3350
3354 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3351 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3355 tried to switch the profiling to using hotshot, but I'm getting
3352 tried to switch the profiling to using hotshot, but I'm getting
3356 strange errors from prof.runctx() there. I may be misreading the
3353 strange errors from prof.runctx() there. I may be misreading the
3357 docs, but it looks weird. For now the profiling code will
3354 docs, but it looks weird. For now the profiling code will
3358 continue to use the standard profiler.
3355 continue to use the standard profiler.
3359
3356
3360 2004-08-23 Fernando Perez <fperez@colorado.edu>
3357 2004-08-23 Fernando Perez <fperez@colorado.edu>
3361
3358
3362 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3359 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3363 threaded shell, by John Hunter. It's not quite ready yet, but
3360 threaded shell, by John Hunter. It's not quite ready yet, but
3364 close.
3361 close.
3365
3362
3366 2004-08-22 Fernando Perez <fperez@colorado.edu>
3363 2004-08-22 Fernando Perez <fperez@colorado.edu>
3367
3364
3368 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3365 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3369 in Magic and ultraTB.
3366 in Magic and ultraTB.
3370
3367
3371 * ipython.1: document threading options in manpage.
3368 * ipython.1: document threading options in manpage.
3372
3369
3373 * scripts/ipython: Changed name of -thread option to -gthread,
3370 * scripts/ipython: Changed name of -thread option to -gthread,
3374 since this is GTK specific. I want to leave the door open for a
3371 since this is GTK specific. I want to leave the door open for a
3375 -wthread option for WX, which will most likely be necessary. This
3372 -wthread option for WX, which will most likely be necessary. This
3376 change affects usage and ipmaker as well.
3373 change affects usage and ipmaker as well.
3377
3374
3378 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3375 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3379 handle the matplotlib shell issues. Code by John Hunter
3376 handle the matplotlib shell issues. Code by John Hunter
3380 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3377 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3381 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3378 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3382 broken (and disabled for end users) for now, but it puts the
3379 broken (and disabled for end users) for now, but it puts the
3383 infrastructure in place.
3380 infrastructure in place.
3384
3381
3385 2004-08-21 Fernando Perez <fperez@colorado.edu>
3382 2004-08-21 Fernando Perez <fperez@colorado.edu>
3386
3383
3387 * ipythonrc-pylab: Add matplotlib support.
3384 * ipythonrc-pylab: Add matplotlib support.
3388
3385
3389 * matplotlib_config.py: new files for matplotlib support, part of
3386 * matplotlib_config.py: new files for matplotlib support, part of
3390 the pylab profile.
3387 the pylab profile.
3391
3388
3392 * IPython/usage.py (__doc__): documented the threading options.
3389 * IPython/usage.py (__doc__): documented the threading options.
3393
3390
3394 2004-08-20 Fernando Perez <fperez@colorado.edu>
3391 2004-08-20 Fernando Perez <fperez@colorado.edu>
3395
3392
3396 * ipython: Modified the main calling routine to handle the -thread
3393 * ipython: Modified the main calling routine to handle the -thread
3397 and -mpthread options. This needs to be done as a top-level hack,
3394 and -mpthread options. This needs to be done as a top-level hack,
3398 because it determines which class to instantiate for IPython
3395 because it determines which class to instantiate for IPython
3399 itself.
3396 itself.
3400
3397
3401 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3398 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3402 classes to support multithreaded GTK operation without blocking,
3399 classes to support multithreaded GTK operation without blocking,
3403 and matplotlib with all backends. This is a lot of still very
3400 and matplotlib with all backends. This is a lot of still very
3404 experimental code, and threads are tricky. So it may still have a
3401 experimental code, and threads are tricky. So it may still have a
3405 few rough edges... This code owes a lot to
3402 few rough edges... This code owes a lot to
3406 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3403 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3407 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3404 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3408 to John Hunter for all the matplotlib work.
3405 to John Hunter for all the matplotlib work.
3409
3406
3410 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3407 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3411 options for gtk thread and matplotlib support.
3408 options for gtk thread and matplotlib support.
3412
3409
3413 2004-08-16 Fernando Perez <fperez@colorado.edu>
3410 2004-08-16 Fernando Perez <fperez@colorado.edu>
3414
3411
3415 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3412 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3416 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3413 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3417 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3414 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3418
3415
3419 2004-08-11 Fernando Perez <fperez@colorado.edu>
3416 2004-08-11 Fernando Perez <fperez@colorado.edu>
3420
3417
3421 * setup.py (isfile): Fix build so documentation gets updated for
3418 * setup.py (isfile): Fix build so documentation gets updated for
3422 rpms (it was only done for .tgz builds).
3419 rpms (it was only done for .tgz builds).
3423
3420
3424 2004-08-10 Fernando Perez <fperez@colorado.edu>
3421 2004-08-10 Fernando Perez <fperez@colorado.edu>
3425
3422
3426 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3423 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3427
3424
3428 * iplib.py : Silence syntax error exceptions in tab-completion.
3425 * iplib.py : Silence syntax error exceptions in tab-completion.
3429
3426
3430 2004-08-05 Fernando Perez <fperez@colorado.edu>
3427 2004-08-05 Fernando Perez <fperez@colorado.edu>
3431
3428
3432 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3429 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3433 'color off' mark for continuation prompts. This was causing long
3430 'color off' mark for continuation prompts. This was causing long
3434 continuation lines to mis-wrap.
3431 continuation lines to mis-wrap.
3435
3432
3436 2004-08-01 Fernando Perez <fperez@colorado.edu>
3433 2004-08-01 Fernando Perez <fperez@colorado.edu>
3437
3434
3438 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3435 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3439 for building ipython to be a parameter. All this is necessary
3436 for building ipython to be a parameter. All this is necessary
3440 right now to have a multithreaded version, but this insane
3437 right now to have a multithreaded version, but this insane
3441 non-design will be cleaned up soon. For now, it's a hack that
3438 non-design will be cleaned up soon. For now, it's a hack that
3442 works.
3439 works.
3443
3440
3444 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3441 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3445 args in various places. No bugs so far, but it's a dangerous
3442 args in various places. No bugs so far, but it's a dangerous
3446 practice.
3443 practice.
3447
3444
3448 2004-07-31 Fernando Perez <fperez@colorado.edu>
3445 2004-07-31 Fernando Perez <fperez@colorado.edu>
3449
3446
3450 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3447 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3451 fix completion of files with dots in their names under most
3448 fix completion of files with dots in their names under most
3452 profiles (pysh was OK because the completion order is different).
3449 profiles (pysh was OK because the completion order is different).
3453
3450
3454 2004-07-27 Fernando Perez <fperez@colorado.edu>
3451 2004-07-27 Fernando Perez <fperez@colorado.edu>
3455
3452
3456 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3453 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3457 keywords manually, b/c the one in keyword.py was removed in python
3454 keywords manually, b/c the one in keyword.py was removed in python
3458 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3455 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3459 This is NOT a bug under python 2.3 and earlier.
3456 This is NOT a bug under python 2.3 and earlier.
3460
3457
3461 2004-07-26 Fernando Perez <fperez@colorado.edu>
3458 2004-07-26 Fernando Perez <fperez@colorado.edu>
3462
3459
3463 * IPython/ultraTB.py (VerboseTB.text): Add another
3460 * IPython/ultraTB.py (VerboseTB.text): Add another
3464 linecache.checkcache() call to try to prevent inspect.py from
3461 linecache.checkcache() call to try to prevent inspect.py from
3465 crashing under python 2.3. I think this fixes
3462 crashing under python 2.3. I think this fixes
3466 http://www.scipy.net/roundup/ipython/issue17.
3463 http://www.scipy.net/roundup/ipython/issue17.
3467
3464
3468 2004-07-26 *** Released version 0.6.2
3465 2004-07-26 *** Released version 0.6.2
3469
3466
3470 2004-07-26 Fernando Perez <fperez@colorado.edu>
3467 2004-07-26 Fernando Perez <fperez@colorado.edu>
3471
3468
3472 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3469 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3473 fail for any number.
3470 fail for any number.
3474 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3471 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3475 empty bookmarks.
3472 empty bookmarks.
3476
3473
3477 2004-07-26 *** Released version 0.6.1
3474 2004-07-26 *** Released version 0.6.1
3478
3475
3479 2004-07-26 Fernando Perez <fperez@colorado.edu>
3476 2004-07-26 Fernando Perez <fperez@colorado.edu>
3480
3477
3481 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3478 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3482
3479
3483 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3480 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3484 escaping '()[]{}' in filenames.
3481 escaping '()[]{}' in filenames.
3485
3482
3486 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3483 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3487 Python 2.2 users who lack a proper shlex.split.
3484 Python 2.2 users who lack a proper shlex.split.
3488
3485
3489 2004-07-19 Fernando Perez <fperez@colorado.edu>
3486 2004-07-19 Fernando Perez <fperez@colorado.edu>
3490
3487
3491 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3488 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3492 for reading readline's init file. I follow the normal chain:
3489 for reading readline's init file. I follow the normal chain:
3493 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3490 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3494 report by Mike Heeter. This closes
3491 report by Mike Heeter. This closes
3495 http://www.scipy.net/roundup/ipython/issue16.
3492 http://www.scipy.net/roundup/ipython/issue16.
3496
3493
3497 2004-07-18 Fernando Perez <fperez@colorado.edu>
3494 2004-07-18 Fernando Perez <fperez@colorado.edu>
3498
3495
3499 * IPython/iplib.py (__init__): Add better handling of '\' under
3496 * IPython/iplib.py (__init__): Add better handling of '\' under
3500 Win32 for filenames. After a patch by Ville.
3497 Win32 for filenames. After a patch by Ville.
3501
3498
3502 2004-07-17 Fernando Perez <fperez@colorado.edu>
3499 2004-07-17 Fernando Perez <fperez@colorado.edu>
3503
3500
3504 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3501 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3505 autocalling would be triggered for 'foo is bar' if foo is
3502 autocalling would be triggered for 'foo is bar' if foo is
3506 callable. I also cleaned up the autocall detection code to use a
3503 callable. I also cleaned up the autocall detection code to use a
3507 regexp, which is faster. Bug reported by Alexander Schmolck.
3504 regexp, which is faster. Bug reported by Alexander Schmolck.
3508
3505
3509 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3506 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3510 '?' in them would confuse the help system. Reported by Alex
3507 '?' in them would confuse the help system. Reported by Alex
3511 Schmolck.
3508 Schmolck.
3512
3509
3513 2004-07-16 Fernando Perez <fperez@colorado.edu>
3510 2004-07-16 Fernando Perez <fperez@colorado.edu>
3514
3511
3515 * IPython/GnuplotInteractive.py (__all__): added plot2.
3512 * IPython/GnuplotInteractive.py (__all__): added plot2.
3516
3513
3517 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3514 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3518 plotting dictionaries, lists or tuples of 1d arrays.
3515 plotting dictionaries, lists or tuples of 1d arrays.
3519
3516
3520 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3517 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3521 optimizations.
3518 optimizations.
3522
3519
3523 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3520 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3524 the information which was there from Janko's original IPP code:
3521 the information which was there from Janko's original IPP code:
3525
3522
3526 03.05.99 20:53 porto.ifm.uni-kiel.de
3523 03.05.99 20:53 porto.ifm.uni-kiel.de
3527 --Started changelog.
3524 --Started changelog.
3528 --make clear do what it say it does
3525 --make clear do what it say it does
3529 --added pretty output of lines from inputcache
3526 --added pretty output of lines from inputcache
3530 --Made Logger a mixin class, simplifies handling of switches
3527 --Made Logger a mixin class, simplifies handling of switches
3531 --Added own completer class. .string<TAB> expands to last history
3528 --Added own completer class. .string<TAB> expands to last history
3532 line which starts with string. The new expansion is also present
3529 line which starts with string. The new expansion is also present
3533 with Ctrl-r from the readline library. But this shows, who this
3530 with Ctrl-r from the readline library. But this shows, who this
3534 can be done for other cases.
3531 can be done for other cases.
3535 --Added convention that all shell functions should accept a
3532 --Added convention that all shell functions should accept a
3536 parameter_string This opens the door for different behaviour for
3533 parameter_string This opens the door for different behaviour for
3537 each function. @cd is a good example of this.
3534 each function. @cd is a good example of this.
3538
3535
3539 04.05.99 12:12 porto.ifm.uni-kiel.de
3536 04.05.99 12:12 porto.ifm.uni-kiel.de
3540 --added logfile rotation
3537 --added logfile rotation
3541 --added new mainloop method which freezes first the namespace
3538 --added new mainloop method which freezes first the namespace
3542
3539
3543 07.05.99 21:24 porto.ifm.uni-kiel.de
3540 07.05.99 21:24 porto.ifm.uni-kiel.de
3544 --added the docreader classes. Now there is a help system.
3541 --added the docreader classes. Now there is a help system.
3545 -This is only a first try. Currently it's not easy to put new
3542 -This is only a first try. Currently it's not easy to put new
3546 stuff in the indices. But this is the way to go. Info would be
3543 stuff in the indices. But this is the way to go. Info would be
3547 better, but HTML is every where and not everybody has an info
3544 better, but HTML is every where and not everybody has an info
3548 system installed and it's not so easy to change html-docs to info.
3545 system installed and it's not so easy to change html-docs to info.
3549 --added global logfile option
3546 --added global logfile option
3550 --there is now a hook for object inspection method pinfo needs to
3547 --there is now a hook for object inspection method pinfo needs to
3551 be provided for this. Can be reached by two '??'.
3548 be provided for this. Can be reached by two '??'.
3552
3549
3553 08.05.99 20:51 porto.ifm.uni-kiel.de
3550 08.05.99 20:51 porto.ifm.uni-kiel.de
3554 --added a README
3551 --added a README
3555 --bug in rc file. Something has changed so functions in the rc
3552 --bug in rc file. Something has changed so functions in the rc
3556 file need to reference the shell and not self. Not clear if it's a
3553 file need to reference the shell and not self. Not clear if it's a
3557 bug or feature.
3554 bug or feature.
3558 --changed rc file for new behavior
3555 --changed rc file for new behavior
3559
3556
3560 2004-07-15 Fernando Perez <fperez@colorado.edu>
3557 2004-07-15 Fernando Perez <fperez@colorado.edu>
3561
3558
3562 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3559 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3563 cache was falling out of sync in bizarre manners when multi-line
3560 cache was falling out of sync in bizarre manners when multi-line
3564 input was present. Minor optimizations and cleanup.
3561 input was present. Minor optimizations and cleanup.
3565
3562
3566 (Logger): Remove old Changelog info for cleanup. This is the
3563 (Logger): Remove old Changelog info for cleanup. This is the
3567 information which was there from Janko's original code:
3564 information which was there from Janko's original code:
3568
3565
3569 Changes to Logger: - made the default log filename a parameter
3566 Changes to Logger: - made the default log filename a parameter
3570
3567
3571 - put a check for lines beginning with !@? in log(). Needed
3568 - put a check for lines beginning with !@? in log(). Needed
3572 (even if the handlers properly log their lines) for mid-session
3569 (even if the handlers properly log their lines) for mid-session
3573 logging activation to work properly. Without this, lines logged
3570 logging activation to work properly. Without this, lines logged
3574 in mid session, which get read from the cache, would end up
3571 in mid session, which get read from the cache, would end up
3575 'bare' (with !@? in the open) in the log. Now they are caught
3572 'bare' (with !@? in the open) in the log. Now they are caught
3576 and prepended with a #.
3573 and prepended with a #.
3577
3574
3578 * IPython/iplib.py (InteractiveShell.init_readline): added check
3575 * IPython/iplib.py (InteractiveShell.init_readline): added check
3579 in case MagicCompleter fails to be defined, so we don't crash.
3576 in case MagicCompleter fails to be defined, so we don't crash.
3580
3577
3581 2004-07-13 Fernando Perez <fperez@colorado.edu>
3578 2004-07-13 Fernando Perez <fperez@colorado.edu>
3582
3579
3583 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3580 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3584 of EPS if the requested filename ends in '.eps'.
3581 of EPS if the requested filename ends in '.eps'.
3585
3582
3586 2004-07-04 Fernando Perez <fperez@colorado.edu>
3583 2004-07-04 Fernando Perez <fperez@colorado.edu>
3587
3584
3588 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3585 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3589 escaping of quotes when calling the shell.
3586 escaping of quotes when calling the shell.
3590
3587
3591 2004-07-02 Fernando Perez <fperez@colorado.edu>
3588 2004-07-02 Fernando Perez <fperez@colorado.edu>
3592
3589
3593 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3590 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3594 gettext not working because we were clobbering '_'. Fixes
3591 gettext not working because we were clobbering '_'. Fixes
3595 http://www.scipy.net/roundup/ipython/issue6.
3592 http://www.scipy.net/roundup/ipython/issue6.
3596
3593
3597 2004-07-01 Fernando Perez <fperez@colorado.edu>
3594 2004-07-01 Fernando Perez <fperez@colorado.edu>
3598
3595
3599 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3596 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3600 into @cd. Patch by Ville.
3597 into @cd. Patch by Ville.
3601
3598
3602 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3599 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3603 new function to store things after ipmaker runs. Patch by Ville.
3600 new function to store things after ipmaker runs. Patch by Ville.
3604 Eventually this will go away once ipmaker is removed and the class
3601 Eventually this will go away once ipmaker is removed and the class
3605 gets cleaned up, but for now it's ok. Key functionality here is
3602 gets cleaned up, but for now it's ok. Key functionality here is
3606 the addition of the persistent storage mechanism, a dict for
3603 the addition of the persistent storage mechanism, a dict for
3607 keeping data across sessions (for now just bookmarks, but more can
3604 keeping data across sessions (for now just bookmarks, but more can
3608 be implemented later).
3605 be implemented later).
3609
3606
3610 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3607 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3611 persistent across sections. Patch by Ville, I modified it
3608 persistent across sections. Patch by Ville, I modified it
3612 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3609 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3613 added a '-l' option to list all bookmarks.
3610 added a '-l' option to list all bookmarks.
3614
3611
3615 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3612 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3616 center for cleanup. Registered with atexit.register(). I moved
3613 center for cleanup. Registered with atexit.register(). I moved
3617 here the old exit_cleanup(). After a patch by Ville.
3614 here the old exit_cleanup(). After a patch by Ville.
3618
3615
3619 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3616 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3620 characters in the hacked shlex_split for python 2.2.
3617 characters in the hacked shlex_split for python 2.2.
3621
3618
3622 * IPython/iplib.py (file_matches): more fixes to filenames with
3619 * IPython/iplib.py (file_matches): more fixes to filenames with
3623 whitespace in them. It's not perfect, but limitations in python's
3620 whitespace in them. It's not perfect, but limitations in python's
3624 readline make it impossible to go further.
3621 readline make it impossible to go further.
3625
3622
3626 2004-06-29 Fernando Perez <fperez@colorado.edu>
3623 2004-06-29 Fernando Perez <fperez@colorado.edu>
3627
3624
3628 * IPython/iplib.py (file_matches): escape whitespace correctly in
3625 * IPython/iplib.py (file_matches): escape whitespace correctly in
3629 filename completions. Bug reported by Ville.
3626 filename completions. Bug reported by Ville.
3630
3627
3631 2004-06-28 Fernando Perez <fperez@colorado.edu>
3628 2004-06-28 Fernando Perez <fperez@colorado.edu>
3632
3629
3633 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3630 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3634 the history file will be called 'history-PROFNAME' (or just
3631 the history file will be called 'history-PROFNAME' (or just
3635 'history' if no profile is loaded). I was getting annoyed at
3632 'history' if no profile is loaded). I was getting annoyed at
3636 getting my Numerical work history clobbered by pysh sessions.
3633 getting my Numerical work history clobbered by pysh sessions.
3637
3634
3638 * IPython/iplib.py (InteractiveShell.__init__): Internal
3635 * IPython/iplib.py (InteractiveShell.__init__): Internal
3639 getoutputerror() function so that we can honor the system_verbose
3636 getoutputerror() function so that we can honor the system_verbose
3640 flag for _all_ system calls. I also added escaping of #
3637 flag for _all_ system calls. I also added escaping of #
3641 characters here to avoid confusing Itpl.
3638 characters here to avoid confusing Itpl.
3642
3639
3643 * IPython/Magic.py (shlex_split): removed call to shell in
3640 * IPython/Magic.py (shlex_split): removed call to shell in
3644 parse_options and replaced it with shlex.split(). The annoying
3641 parse_options and replaced it with shlex.split(). The annoying
3645 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3642 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3646 to backport it from 2.3, with several frail hacks (the shlex
3643 to backport it from 2.3, with several frail hacks (the shlex
3647 module is rather limited in 2.2). Thanks to a suggestion by Ville
3644 module is rather limited in 2.2). Thanks to a suggestion by Ville
3648 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3645 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3649 problem.
3646 problem.
3650
3647
3651 (Magic.magic_system_verbose): new toggle to print the actual
3648 (Magic.magic_system_verbose): new toggle to print the actual
3652 system calls made by ipython. Mainly for debugging purposes.
3649 system calls made by ipython. Mainly for debugging purposes.
3653
3650
3654 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3651 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3655 doesn't support persistence. Reported (and fix suggested) by
3652 doesn't support persistence. Reported (and fix suggested) by
3656 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3653 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3657
3654
3658 2004-06-26 Fernando Perez <fperez@colorado.edu>
3655 2004-06-26 Fernando Perez <fperez@colorado.edu>
3659
3656
3660 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3657 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3661 continue prompts.
3658 continue prompts.
3662
3659
3663 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3660 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3664 function (basically a big docstring) and a few more things here to
3661 function (basically a big docstring) and a few more things here to
3665 speedup startup. pysh.py is now very lightweight. We want because
3662 speedup startup. pysh.py is now very lightweight. We want because
3666 it gets execfile'd, while InterpreterExec gets imported, so
3663 it gets execfile'd, while InterpreterExec gets imported, so
3667 byte-compilation saves time.
3664 byte-compilation saves time.
3668
3665
3669 2004-06-25 Fernando Perez <fperez@colorado.edu>
3666 2004-06-25 Fernando Perez <fperez@colorado.edu>
3670
3667
3671 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3668 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3672 -NUM', which was recently broken.
3669 -NUM', which was recently broken.
3673
3670
3674 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3671 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3675 in multi-line input (but not !!, which doesn't make sense there).
3672 in multi-line input (but not !!, which doesn't make sense there).
3676
3673
3677 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3674 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3678 It's just too useful, and people can turn it off in the less
3675 It's just too useful, and people can turn it off in the less
3679 common cases where it's a problem.
3676 common cases where it's a problem.
3680
3677
3681 2004-06-24 Fernando Perez <fperez@colorado.edu>
3678 2004-06-24 Fernando Perez <fperez@colorado.edu>
3682
3679
3683 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3680 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3684 special syntaxes (like alias calling) is now allied in multi-line
3681 special syntaxes (like alias calling) is now allied in multi-line
3685 input. This is still _very_ experimental, but it's necessary for
3682 input. This is still _very_ experimental, but it's necessary for
3686 efficient shell usage combining python looping syntax with system
3683 efficient shell usage combining python looping syntax with system
3687 calls. For now it's restricted to aliases, I don't think it
3684 calls. For now it's restricted to aliases, I don't think it
3688 really even makes sense to have this for magics.
3685 really even makes sense to have this for magics.
3689
3686
3690 2004-06-23 Fernando Perez <fperez@colorado.edu>
3687 2004-06-23 Fernando Perez <fperez@colorado.edu>
3691
3688
3692 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3689 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3693 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3690 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3694
3691
3695 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3692 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3696 extensions under Windows (after code sent by Gary Bishop). The
3693 extensions under Windows (after code sent by Gary Bishop). The
3697 extensions considered 'executable' are stored in IPython's rc
3694 extensions considered 'executable' are stored in IPython's rc
3698 structure as win_exec_ext.
3695 structure as win_exec_ext.
3699
3696
3700 * IPython/genutils.py (shell): new function, like system() but
3697 * IPython/genutils.py (shell): new function, like system() but
3701 without return value. Very useful for interactive shell work.
3698 without return value. Very useful for interactive shell work.
3702
3699
3703 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3700 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3704 delete aliases.
3701 delete aliases.
3705
3702
3706 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3703 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3707 sure that the alias table doesn't contain python keywords.
3704 sure that the alias table doesn't contain python keywords.
3708
3705
3709 2004-06-21 Fernando Perez <fperez@colorado.edu>
3706 2004-06-21 Fernando Perez <fperez@colorado.edu>
3710
3707
3711 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3708 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3712 non-existent items are found in $PATH. Reported by Thorsten.
3709 non-existent items are found in $PATH. Reported by Thorsten.
3713
3710
3714 2004-06-20 Fernando Perez <fperez@colorado.edu>
3711 2004-06-20 Fernando Perez <fperez@colorado.edu>
3715
3712
3716 * IPython/iplib.py (complete): modified the completer so that the
3713 * IPython/iplib.py (complete): modified the completer so that the
3717 order of priorities can be easily changed at runtime.
3714 order of priorities can be easily changed at runtime.
3718
3715
3719 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3716 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3720 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3717 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3721
3718
3722 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3719 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3723 expand Python variables prepended with $ in all system calls. The
3720 expand Python variables prepended with $ in all system calls. The
3724 same was done to InteractiveShell.handle_shell_escape. Now all
3721 same was done to InteractiveShell.handle_shell_escape. Now all
3725 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3722 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3726 expansion of python variables and expressions according to the
3723 expansion of python variables and expressions according to the
3727 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3724 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3728
3725
3729 Though PEP-215 has been rejected, a similar (but simpler) one
3726 Though PEP-215 has been rejected, a similar (but simpler) one
3730 seems like it will go into Python 2.4, PEP-292 -
3727 seems like it will go into Python 2.4, PEP-292 -
3731 http://www.python.org/peps/pep-0292.html.
3728 http://www.python.org/peps/pep-0292.html.
3732
3729
3733 I'll keep the full syntax of PEP-215, since IPython has since the
3730 I'll keep the full syntax of PEP-215, since IPython has since the
3734 start used Ka-Ping Yee's reference implementation discussed there
3731 start used Ka-Ping Yee's reference implementation discussed there
3735 (Itpl), and I actually like the powerful semantics it offers.
3732 (Itpl), and I actually like the powerful semantics it offers.
3736
3733
3737 In order to access normal shell variables, the $ has to be escaped
3734 In order to access normal shell variables, the $ has to be escaped
3738 via an extra $. For example:
3735 via an extra $. For example:
3739
3736
3740 In [7]: PATH='a python variable'
3737 In [7]: PATH='a python variable'
3741
3738
3742 In [8]: !echo $PATH
3739 In [8]: !echo $PATH
3743 a python variable
3740 a python variable
3744
3741
3745 In [9]: !echo $$PATH
3742 In [9]: !echo $$PATH
3746 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3743 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3747
3744
3748 (Magic.parse_options): escape $ so the shell doesn't evaluate
3745 (Magic.parse_options): escape $ so the shell doesn't evaluate
3749 things prematurely.
3746 things prematurely.
3750
3747
3751 * IPython/iplib.py (InteractiveShell.call_alias): added the
3748 * IPython/iplib.py (InteractiveShell.call_alias): added the
3752 ability for aliases to expand python variables via $.
3749 ability for aliases to expand python variables via $.
3753
3750
3754 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3751 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3755 system, now there's a @rehash/@rehashx pair of magics. These work
3752 system, now there's a @rehash/@rehashx pair of magics. These work
3756 like the csh rehash command, and can be invoked at any time. They
3753 like the csh rehash command, and can be invoked at any time. They
3757 build a table of aliases to everything in the user's $PATH
3754 build a table of aliases to everything in the user's $PATH
3758 (@rehash uses everything, @rehashx is slower but only adds
3755 (@rehash uses everything, @rehashx is slower but only adds
3759 executable files). With this, the pysh.py-based shell profile can
3756 executable files). With this, the pysh.py-based shell profile can
3760 now simply call rehash upon startup, and full access to all
3757 now simply call rehash upon startup, and full access to all
3761 programs in the user's path is obtained.
3758 programs in the user's path is obtained.
3762
3759
3763 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3760 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3764 functionality is now fully in place. I removed the old dynamic
3761 functionality is now fully in place. I removed the old dynamic
3765 code generation based approach, in favor of a much lighter one
3762 code generation based approach, in favor of a much lighter one
3766 based on a simple dict. The advantage is that this allows me to
3763 based on a simple dict. The advantage is that this allows me to
3767 now have thousands of aliases with negligible cost (unthinkable
3764 now have thousands of aliases with negligible cost (unthinkable
3768 with the old system).
3765 with the old system).
3769
3766
3770 2004-06-19 Fernando Perez <fperez@colorado.edu>
3767 2004-06-19 Fernando Perez <fperez@colorado.edu>
3771
3768
3772 * IPython/iplib.py (__init__): extended MagicCompleter class to
3769 * IPython/iplib.py (__init__): extended MagicCompleter class to
3773 also complete (last in priority) on user aliases.
3770 also complete (last in priority) on user aliases.
3774
3771
3775 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3772 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3776 call to eval.
3773 call to eval.
3777 (ItplNS.__init__): Added a new class which functions like Itpl,
3774 (ItplNS.__init__): Added a new class which functions like Itpl,
3778 but allows configuring the namespace for the evaluation to occur
3775 but allows configuring the namespace for the evaluation to occur
3779 in.
3776 in.
3780
3777
3781 2004-06-18 Fernando Perez <fperez@colorado.edu>
3778 2004-06-18 Fernando Perez <fperez@colorado.edu>
3782
3779
3783 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3780 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3784 better message when 'exit' or 'quit' are typed (a common newbie
3781 better message when 'exit' or 'quit' are typed (a common newbie
3785 confusion).
3782 confusion).
3786
3783
3787 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3784 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3788 check for Windows users.
3785 check for Windows users.
3789
3786
3790 * IPython/iplib.py (InteractiveShell.user_setup): removed
3787 * IPython/iplib.py (InteractiveShell.user_setup): removed
3791 disabling of colors for Windows. I'll test at runtime and issue a
3788 disabling of colors for Windows. I'll test at runtime and issue a
3792 warning if Gary's readline isn't found, as to nudge users to
3789 warning if Gary's readline isn't found, as to nudge users to
3793 download it.
3790 download it.
3794
3791
3795 2004-06-16 Fernando Perez <fperez@colorado.edu>
3792 2004-06-16 Fernando Perez <fperez@colorado.edu>
3796
3793
3797 * IPython/genutils.py (Stream.__init__): changed to print errors
3794 * IPython/genutils.py (Stream.__init__): changed to print errors
3798 to sys.stderr. I had a circular dependency here. Now it's
3795 to sys.stderr. I had a circular dependency here. Now it's
3799 possible to run ipython as IDLE's shell (consider this pre-alpha,
3796 possible to run ipython as IDLE's shell (consider this pre-alpha,
3800 since true stdout things end up in the starting terminal instead
3797 since true stdout things end up in the starting terminal instead
3801 of IDLE's out).
3798 of IDLE's out).
3802
3799
3803 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3800 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3804 users who haven't # updated their prompt_in2 definitions. Remove
3801 users who haven't # updated their prompt_in2 definitions. Remove
3805 eventually.
3802 eventually.
3806 (multiple_replace): added credit to original ASPN recipe.
3803 (multiple_replace): added credit to original ASPN recipe.
3807
3804
3808 2004-06-15 Fernando Perez <fperez@colorado.edu>
3805 2004-06-15 Fernando Perez <fperez@colorado.edu>
3809
3806
3810 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3807 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3811 list of auto-defined aliases.
3808 list of auto-defined aliases.
3812
3809
3813 2004-06-13 Fernando Perez <fperez@colorado.edu>
3810 2004-06-13 Fernando Perez <fperez@colorado.edu>
3814
3811
3815 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3812 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3816 install was really requested (so setup.py can be used for other
3813 install was really requested (so setup.py can be used for other
3817 things under Windows).
3814 things under Windows).
3818
3815
3819 2004-06-10 Fernando Perez <fperez@colorado.edu>
3816 2004-06-10 Fernando Perez <fperez@colorado.edu>
3820
3817
3821 * IPython/Logger.py (Logger.create_log): Manually remove any old
3818 * IPython/Logger.py (Logger.create_log): Manually remove any old
3822 backup, since os.remove may fail under Windows. Fixes bug
3819 backup, since os.remove may fail under Windows. Fixes bug
3823 reported by Thorsten.
3820 reported by Thorsten.
3824
3821
3825 2004-06-09 Fernando Perez <fperez@colorado.edu>
3822 2004-06-09 Fernando Perez <fperez@colorado.edu>
3826
3823
3827 * examples/example-embed.py: fixed all references to %n (replaced
3824 * examples/example-embed.py: fixed all references to %n (replaced
3828 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3825 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3829 for all examples and the manual as well.
3826 for all examples and the manual as well.
3830
3827
3831 2004-06-08 Fernando Perez <fperez@colorado.edu>
3828 2004-06-08 Fernando Perez <fperez@colorado.edu>
3832
3829
3833 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3830 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3834 alignment and color management. All 3 prompt subsystems now
3831 alignment and color management. All 3 prompt subsystems now
3835 inherit from BasePrompt.
3832 inherit from BasePrompt.
3836
3833
3837 * tools/release: updates for windows installer build and tag rpms
3834 * tools/release: updates for windows installer build and tag rpms
3838 with python version (since paths are fixed).
3835 with python version (since paths are fixed).
3839
3836
3840 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3837 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3841 which will become eventually obsolete. Also fixed the default
3838 which will become eventually obsolete. Also fixed the default
3842 prompt_in2 to use \D, so at least new users start with the correct
3839 prompt_in2 to use \D, so at least new users start with the correct
3843 defaults.
3840 defaults.
3844 WARNING: Users with existing ipythonrc files will need to apply
3841 WARNING: Users with existing ipythonrc files will need to apply
3845 this fix manually!
3842 this fix manually!
3846
3843
3847 * setup.py: make windows installer (.exe). This is finally the
3844 * setup.py: make windows installer (.exe). This is finally the
3848 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3845 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3849 which I hadn't included because it required Python 2.3 (or recent
3846 which I hadn't included because it required Python 2.3 (or recent
3850 distutils).
3847 distutils).
3851
3848
3852 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3849 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3853 usage of new '\D' escape.
3850 usage of new '\D' escape.
3854
3851
3855 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3852 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3856 lacks os.getuid())
3853 lacks os.getuid())
3857 (CachedOutput.set_colors): Added the ability to turn coloring
3854 (CachedOutput.set_colors): Added the ability to turn coloring
3858 on/off with @colors even for manually defined prompt colors. It
3855 on/off with @colors even for manually defined prompt colors. It
3859 uses a nasty global, but it works safely and via the generic color
3856 uses a nasty global, but it works safely and via the generic color
3860 handling mechanism.
3857 handling mechanism.
3861 (Prompt2.__init__): Introduced new escape '\D' for continuation
3858 (Prompt2.__init__): Introduced new escape '\D' for continuation
3862 prompts. It represents the counter ('\#') as dots.
3859 prompts. It represents the counter ('\#') as dots.
3863 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3860 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3864 need to update their ipythonrc files and replace '%n' with '\D' in
3861 need to update their ipythonrc files and replace '%n' with '\D' in
3865 their prompt_in2 settings everywhere. Sorry, but there's
3862 their prompt_in2 settings everywhere. Sorry, but there's
3866 otherwise no clean way to get all prompts to properly align. The
3863 otherwise no clean way to get all prompts to properly align. The
3867 ipythonrc shipped with IPython has been updated.
3864 ipythonrc shipped with IPython has been updated.
3868
3865
3869 2004-06-07 Fernando Perez <fperez@colorado.edu>
3866 2004-06-07 Fernando Perez <fperez@colorado.edu>
3870
3867
3871 * setup.py (isfile): Pass local_icons option to latex2html, so the
3868 * setup.py (isfile): Pass local_icons option to latex2html, so the
3872 resulting HTML file is self-contained. Thanks to
3869 resulting HTML file is self-contained. Thanks to
3873 dryice-AT-liu.com.cn for the tip.
3870 dryice-AT-liu.com.cn for the tip.
3874
3871
3875 * pysh.py: I created a new profile 'shell', which implements a
3872 * pysh.py: I created a new profile 'shell', which implements a
3876 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3873 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3877 system shell, nor will it become one anytime soon. It's mainly
3874 system shell, nor will it become one anytime soon. It's mainly
3878 meant to illustrate the use of the new flexible bash-like prompts.
3875 meant to illustrate the use of the new flexible bash-like prompts.
3879 I guess it could be used by hardy souls for true shell management,
3876 I guess it could be used by hardy souls for true shell management,
3880 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3877 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3881 profile. This uses the InterpreterExec extension provided by
3878 profile. This uses the InterpreterExec extension provided by
3882 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3879 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3883
3880
3884 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3881 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3885 auto-align itself with the length of the previous input prompt
3882 auto-align itself with the length of the previous input prompt
3886 (taking into account the invisible color escapes).
3883 (taking into account the invisible color escapes).
3887 (CachedOutput.__init__): Large restructuring of this class. Now
3884 (CachedOutput.__init__): Large restructuring of this class. Now
3888 all three prompts (primary1, primary2, output) are proper objects,
3885 all three prompts (primary1, primary2, output) are proper objects,
3889 managed by the 'parent' CachedOutput class. The code is still a
3886 managed by the 'parent' CachedOutput class. The code is still a
3890 bit hackish (all prompts share state via a pointer to the cache),
3887 bit hackish (all prompts share state via a pointer to the cache),
3891 but it's overall far cleaner than before.
3888 but it's overall far cleaner than before.
3892
3889
3893 * IPython/genutils.py (getoutputerror): modified to add verbose,
3890 * IPython/genutils.py (getoutputerror): modified to add verbose,
3894 debug and header options. This makes the interface of all getout*
3891 debug and header options. This makes the interface of all getout*
3895 functions uniform.
3892 functions uniform.
3896 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3893 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3897
3894
3898 * IPython/Magic.py (Magic.default_option): added a function to
3895 * IPython/Magic.py (Magic.default_option): added a function to
3899 allow registering default options for any magic command. This
3896 allow registering default options for any magic command. This
3900 makes it easy to have profiles which customize the magics globally
3897 makes it easy to have profiles which customize the magics globally
3901 for a certain use. The values set through this function are
3898 for a certain use. The values set through this function are
3902 picked up by the parse_options() method, which all magics should
3899 picked up by the parse_options() method, which all magics should
3903 use to parse their options.
3900 use to parse their options.
3904
3901
3905 * IPython/genutils.py (warn): modified the warnings framework to
3902 * IPython/genutils.py (warn): modified the warnings framework to
3906 use the Term I/O class. I'm trying to slowly unify all of
3903 use the Term I/O class. I'm trying to slowly unify all of
3907 IPython's I/O operations to pass through Term.
3904 IPython's I/O operations to pass through Term.
3908
3905
3909 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3906 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3910 the secondary prompt to correctly match the length of the primary
3907 the secondary prompt to correctly match the length of the primary
3911 one for any prompt. Now multi-line code will properly line up
3908 one for any prompt. Now multi-line code will properly line up
3912 even for path dependent prompts, such as the new ones available
3909 even for path dependent prompts, such as the new ones available
3913 via the prompt_specials.
3910 via the prompt_specials.
3914
3911
3915 2004-06-06 Fernando Perez <fperez@colorado.edu>
3912 2004-06-06 Fernando Perez <fperez@colorado.edu>
3916
3913
3917 * IPython/Prompts.py (prompt_specials): Added the ability to have
3914 * IPython/Prompts.py (prompt_specials): Added the ability to have
3918 bash-like special sequences in the prompts, which get
3915 bash-like special sequences in the prompts, which get
3919 automatically expanded. Things like hostname, current working
3916 automatically expanded. Things like hostname, current working
3920 directory and username are implemented already, but it's easy to
3917 directory and username are implemented already, but it's easy to
3921 add more in the future. Thanks to a patch by W.J. van der Laan
3918 add more in the future. Thanks to a patch by W.J. van der Laan
3922 <gnufnork-AT-hetdigitalegat.nl>
3919 <gnufnork-AT-hetdigitalegat.nl>
3923 (prompt_specials): Added color support for prompt strings, so
3920 (prompt_specials): Added color support for prompt strings, so
3924 users can define arbitrary color setups for their prompts.
3921 users can define arbitrary color setups for their prompts.
3925
3922
3926 2004-06-05 Fernando Perez <fperez@colorado.edu>
3923 2004-06-05 Fernando Perez <fperez@colorado.edu>
3927
3924
3928 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3925 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3929 code to load Gary Bishop's readline and configure it
3926 code to load Gary Bishop's readline and configure it
3930 automatically. Thanks to Gary for help on this.
3927 automatically. Thanks to Gary for help on this.
3931
3928
3932 2004-06-01 Fernando Perez <fperez@colorado.edu>
3929 2004-06-01 Fernando Perez <fperez@colorado.edu>
3933
3930
3934 * IPython/Logger.py (Logger.create_log): fix bug for logging
3931 * IPython/Logger.py (Logger.create_log): fix bug for logging
3935 with no filename (previous fix was incomplete).
3932 with no filename (previous fix was incomplete).
3936
3933
3937 2004-05-25 Fernando Perez <fperez@colorado.edu>
3934 2004-05-25 Fernando Perez <fperez@colorado.edu>
3938
3935
3939 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3936 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3940 parens would get passed to the shell.
3937 parens would get passed to the shell.
3941
3938
3942 2004-05-20 Fernando Perez <fperez@colorado.edu>
3939 2004-05-20 Fernando Perez <fperez@colorado.edu>
3943
3940
3944 * IPython/Magic.py (Magic.magic_prun): changed default profile
3941 * IPython/Magic.py (Magic.magic_prun): changed default profile
3945 sort order to 'time' (the more common profiling need).
3942 sort order to 'time' (the more common profiling need).
3946
3943
3947 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3944 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3948 so that source code shown is guaranteed in sync with the file on
3945 so that source code shown is guaranteed in sync with the file on
3949 disk (also changed in psource). Similar fix to the one for
3946 disk (also changed in psource). Similar fix to the one for
3950 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3947 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3951 <yann.ledu-AT-noos.fr>.
3948 <yann.ledu-AT-noos.fr>.
3952
3949
3953 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3950 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3954 with a single option would not be correctly parsed. Closes
3951 with a single option would not be correctly parsed. Closes
3955 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3952 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3956 introduced in 0.6.0 (on 2004-05-06).
3953 introduced in 0.6.0 (on 2004-05-06).
3957
3954
3958 2004-05-13 *** Released version 0.6.0
3955 2004-05-13 *** Released version 0.6.0
3959
3956
3960 2004-05-13 Fernando Perez <fperez@colorado.edu>
3957 2004-05-13 Fernando Perez <fperez@colorado.edu>
3961
3958
3962 * debian/: Added debian/ directory to CVS, so that debian support
3959 * debian/: Added debian/ directory to CVS, so that debian support
3963 is publicly accessible. The debian package is maintained by Jack
3960 is publicly accessible. The debian package is maintained by Jack
3964 Moffit <jack-AT-xiph.org>.
3961 Moffit <jack-AT-xiph.org>.
3965
3962
3966 * Documentation: included the notes about an ipython-based system
3963 * Documentation: included the notes about an ipython-based system
3967 shell (the hypothetical 'pysh') into the new_design.pdf document,
3964 shell (the hypothetical 'pysh') into the new_design.pdf document,
3968 so that these ideas get distributed to users along with the
3965 so that these ideas get distributed to users along with the
3969 official documentation.
3966 official documentation.
3970
3967
3971 2004-05-10 Fernando Perez <fperez@colorado.edu>
3968 2004-05-10 Fernando Perez <fperez@colorado.edu>
3972
3969
3973 * IPython/Logger.py (Logger.create_log): fix recently introduced
3970 * IPython/Logger.py (Logger.create_log): fix recently introduced
3974 bug (misindented line) where logstart would fail when not given an
3971 bug (misindented line) where logstart would fail when not given an
3975 explicit filename.
3972 explicit filename.
3976
3973
3977 2004-05-09 Fernando Perez <fperez@colorado.edu>
3974 2004-05-09 Fernando Perez <fperez@colorado.edu>
3978
3975
3979 * IPython/Magic.py (Magic.parse_options): skip system call when
3976 * IPython/Magic.py (Magic.parse_options): skip system call when
3980 there are no options to look for. Faster, cleaner for the common
3977 there are no options to look for. Faster, cleaner for the common
3981 case.
3978 case.
3982
3979
3983 * Documentation: many updates to the manual: describing Windows
3980 * Documentation: many updates to the manual: describing Windows
3984 support better, Gnuplot updates, credits, misc small stuff. Also
3981 support better, Gnuplot updates, credits, misc small stuff. Also
3985 updated the new_design doc a bit.
3982 updated the new_design doc a bit.
3986
3983
3987 2004-05-06 *** Released version 0.6.0.rc1
3984 2004-05-06 *** Released version 0.6.0.rc1
3988
3985
3989 2004-05-06 Fernando Perez <fperez@colorado.edu>
3986 2004-05-06 Fernando Perez <fperez@colorado.edu>
3990
3987
3991 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3988 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3992 operations to use the vastly more efficient list/''.join() method.
3989 operations to use the vastly more efficient list/''.join() method.
3993 (FormattedTB.text): Fix
3990 (FormattedTB.text): Fix
3994 http://www.scipy.net/roundup/ipython/issue12 - exception source
3991 http://www.scipy.net/roundup/ipython/issue12 - exception source
3995 extract not updated after reload. Thanks to Mike Salib
3992 extract not updated after reload. Thanks to Mike Salib
3996 <msalib-AT-mit.edu> for pinning the source of the problem.
3993 <msalib-AT-mit.edu> for pinning the source of the problem.
3997 Fortunately, the solution works inside ipython and doesn't require
3994 Fortunately, the solution works inside ipython and doesn't require
3998 any changes to python proper.
3995 any changes to python proper.
3999
3996
4000 * IPython/Magic.py (Magic.parse_options): Improved to process the
3997 * IPython/Magic.py (Magic.parse_options): Improved to process the
4001 argument list as a true shell would (by actually using the
3998 argument list as a true shell would (by actually using the
4002 underlying system shell). This way, all @magics automatically get
3999 underlying system shell). This way, all @magics automatically get
4003 shell expansion for variables. Thanks to a comment by Alex
4000 shell expansion for variables. Thanks to a comment by Alex
4004 Schmolck.
4001 Schmolck.
4005
4002
4006 2004-04-04 Fernando Perez <fperez@colorado.edu>
4003 2004-04-04 Fernando Perez <fperez@colorado.edu>
4007
4004
4008 * IPython/iplib.py (InteractiveShell.interact): Added a special
4005 * IPython/iplib.py (InteractiveShell.interact): Added a special
4009 trap for a debugger quit exception, which is basically impossible
4006 trap for a debugger quit exception, which is basically impossible
4010 to handle by normal mechanisms, given what pdb does to the stack.
4007 to handle by normal mechanisms, given what pdb does to the stack.
4011 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4008 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4012
4009
4013 2004-04-03 Fernando Perez <fperez@colorado.edu>
4010 2004-04-03 Fernando Perez <fperez@colorado.edu>
4014
4011
4015 * IPython/genutils.py (Term): Standardized the names of the Term
4012 * IPython/genutils.py (Term): Standardized the names of the Term
4016 class streams to cin/cout/cerr, following C++ naming conventions
4013 class streams to cin/cout/cerr, following C++ naming conventions
4017 (I can't use in/out/err because 'in' is not a valid attribute
4014 (I can't use in/out/err because 'in' is not a valid attribute
4018 name).
4015 name).
4019
4016
4020 * IPython/iplib.py (InteractiveShell.interact): don't increment
4017 * IPython/iplib.py (InteractiveShell.interact): don't increment
4021 the prompt if there's no user input. By Daniel 'Dang' Griffith
4018 the prompt if there's no user input. By Daniel 'Dang' Griffith
4022 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4019 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4023 Francois Pinard.
4020 Francois Pinard.
4024
4021
4025 2004-04-02 Fernando Perez <fperez@colorado.edu>
4022 2004-04-02 Fernando Perez <fperez@colorado.edu>
4026
4023
4027 * IPython/genutils.py (Stream.__init__): Modified to survive at
4024 * IPython/genutils.py (Stream.__init__): Modified to survive at
4028 least importing in contexts where stdin/out/err aren't true file
4025 least importing in contexts where stdin/out/err aren't true file
4029 objects, such as PyCrust (they lack fileno() and mode). However,
4026 objects, such as PyCrust (they lack fileno() and mode). However,
4030 the recovery facilities which rely on these things existing will
4027 the recovery facilities which rely on these things existing will
4031 not work.
4028 not work.
4032
4029
4033 2004-04-01 Fernando Perez <fperez@colorado.edu>
4030 2004-04-01 Fernando Perez <fperez@colorado.edu>
4034
4031
4035 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4032 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4036 use the new getoutputerror() function, so it properly
4033 use the new getoutputerror() function, so it properly
4037 distinguishes stdout/err.
4034 distinguishes stdout/err.
4038
4035
4039 * IPython/genutils.py (getoutputerror): added a function to
4036 * IPython/genutils.py (getoutputerror): added a function to
4040 capture separately the standard output and error of a command.
4037 capture separately the standard output and error of a command.
4041 After a comment from dang on the mailing lists. This code is
4038 After a comment from dang on the mailing lists. This code is
4042 basically a modified version of commands.getstatusoutput(), from
4039 basically a modified version of commands.getstatusoutput(), from
4043 the standard library.
4040 the standard library.
4044
4041
4045 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4042 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4046 '!!' as a special syntax (shorthand) to access @sx.
4043 '!!' as a special syntax (shorthand) to access @sx.
4047
4044
4048 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4045 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4049 command and return its output as a list split on '\n'.
4046 command and return its output as a list split on '\n'.
4050
4047
4051 2004-03-31 Fernando Perez <fperez@colorado.edu>
4048 2004-03-31 Fernando Perez <fperez@colorado.edu>
4052
4049
4053 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4050 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4054 method to dictionaries used as FakeModule instances if they lack
4051 method to dictionaries used as FakeModule instances if they lack
4055 it. At least pydoc in python2.3 breaks for runtime-defined
4052 it. At least pydoc in python2.3 breaks for runtime-defined
4056 functions without this hack. At some point I need to _really_
4053 functions without this hack. At some point I need to _really_
4057 understand what FakeModule is doing, because it's a gross hack.
4054 understand what FakeModule is doing, because it's a gross hack.
4058 But it solves Arnd's problem for now...
4055 But it solves Arnd's problem for now...
4059
4056
4060 2004-02-27 Fernando Perez <fperez@colorado.edu>
4057 2004-02-27 Fernando Perez <fperez@colorado.edu>
4061
4058
4062 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4059 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4063 mode would behave erratically. Also increased the number of
4060 mode would behave erratically. Also increased the number of
4064 possible logs in rotate mod to 999. Thanks to Rod Holland
4061 possible logs in rotate mod to 999. Thanks to Rod Holland
4065 <rhh@StructureLABS.com> for the report and fixes.
4062 <rhh@StructureLABS.com> for the report and fixes.
4066
4063
4067 2004-02-26 Fernando Perez <fperez@colorado.edu>
4064 2004-02-26 Fernando Perez <fperez@colorado.edu>
4068
4065
4069 * IPython/genutils.py (page): Check that the curses module really
4066 * IPython/genutils.py (page): Check that the curses module really
4070 has the initscr attribute before trying to use it. For some
4067 has the initscr attribute before trying to use it. For some
4071 reason, the Solaris curses module is missing this. I think this
4068 reason, the Solaris curses module is missing this. I think this
4072 should be considered a Solaris python bug, but I'm not sure.
4069 should be considered a Solaris python bug, but I'm not sure.
4073
4070
4074 2004-01-17 Fernando Perez <fperez@colorado.edu>
4071 2004-01-17 Fernando Perez <fperez@colorado.edu>
4075
4072
4076 * IPython/genutils.py (Stream.__init__): Changes to try to make
4073 * IPython/genutils.py (Stream.__init__): Changes to try to make
4077 ipython robust against stdin/out/err being closed by the user.
4074 ipython robust against stdin/out/err being closed by the user.
4078 This is 'user error' (and blocks a normal python session, at least
4075 This is 'user error' (and blocks a normal python session, at least
4079 the stdout case). However, Ipython should be able to survive such
4076 the stdout case). However, Ipython should be able to survive such
4080 instances of abuse as gracefully as possible. To simplify the
4077 instances of abuse as gracefully as possible. To simplify the
4081 coding and maintain compatibility with Gary Bishop's Term
4078 coding and maintain compatibility with Gary Bishop's Term
4082 contributions, I've made use of classmethods for this. I think
4079 contributions, I've made use of classmethods for this. I think
4083 this introduces a dependency on python 2.2.
4080 this introduces a dependency on python 2.2.
4084
4081
4085 2004-01-13 Fernando Perez <fperez@colorado.edu>
4082 2004-01-13 Fernando Perez <fperez@colorado.edu>
4086
4083
4087 * IPython/numutils.py (exp_safe): simplified the code a bit and
4084 * IPython/numutils.py (exp_safe): simplified the code a bit and
4088 removed the need for importing the kinds module altogether.
4085 removed the need for importing the kinds module altogether.
4089
4086
4090 2004-01-06 Fernando Perez <fperez@colorado.edu>
4087 2004-01-06 Fernando Perez <fperez@colorado.edu>
4091
4088
4092 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4089 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4093 a magic function instead, after some community feedback. No
4090 a magic function instead, after some community feedback. No
4094 special syntax will exist for it, but its name is deliberately
4091 special syntax will exist for it, but its name is deliberately
4095 very short.
4092 very short.
4096
4093
4097 2003-12-20 Fernando Perez <fperez@colorado.edu>
4094 2003-12-20 Fernando Perez <fperez@colorado.edu>
4098
4095
4099 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4096 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4100 new functionality, to automagically assign the result of a shell
4097 new functionality, to automagically assign the result of a shell
4101 command to a variable. I'll solicit some community feedback on
4098 command to a variable. I'll solicit some community feedback on
4102 this before making it permanent.
4099 this before making it permanent.
4103
4100
4104 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4101 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4105 requested about callables for which inspect couldn't obtain a
4102 requested about callables for which inspect couldn't obtain a
4106 proper argspec. Thanks to a crash report sent by Etienne
4103 proper argspec. Thanks to a crash report sent by Etienne
4107 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4104 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4108
4105
4109 2003-12-09 Fernando Perez <fperez@colorado.edu>
4106 2003-12-09 Fernando Perez <fperez@colorado.edu>
4110
4107
4111 * IPython/genutils.py (page): patch for the pager to work across
4108 * IPython/genutils.py (page): patch for the pager to work across
4112 various versions of Windows. By Gary Bishop.
4109 various versions of Windows. By Gary Bishop.
4113
4110
4114 2003-12-04 Fernando Perez <fperez@colorado.edu>
4111 2003-12-04 Fernando Perez <fperez@colorado.edu>
4115
4112
4116 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4113 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4117 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4114 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4118 While I tested this and it looks ok, there may still be corner
4115 While I tested this and it looks ok, there may still be corner
4119 cases I've missed.
4116 cases I've missed.
4120
4117
4121 2003-12-01 Fernando Perez <fperez@colorado.edu>
4118 2003-12-01 Fernando Perez <fperez@colorado.edu>
4122
4119
4123 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4120 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4124 where a line like 'p,q=1,2' would fail because the automagic
4121 where a line like 'p,q=1,2' would fail because the automagic
4125 system would be triggered for @p.
4122 system would be triggered for @p.
4126
4123
4127 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4124 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4128 cleanups, code unmodified.
4125 cleanups, code unmodified.
4129
4126
4130 * IPython/genutils.py (Term): added a class for IPython to handle
4127 * IPython/genutils.py (Term): added a class for IPython to handle
4131 output. In most cases it will just be a proxy for stdout/err, but
4128 output. In most cases it will just be a proxy for stdout/err, but
4132 having this allows modifications to be made for some platforms,
4129 having this allows modifications to be made for some platforms,
4133 such as handling color escapes under Windows. All of this code
4130 such as handling color escapes under Windows. All of this code
4134 was contributed by Gary Bishop, with minor modifications by me.
4131 was contributed by Gary Bishop, with minor modifications by me.
4135 The actual changes affect many files.
4132 The actual changes affect many files.
4136
4133
4137 2003-11-30 Fernando Perez <fperez@colorado.edu>
4134 2003-11-30 Fernando Perez <fperez@colorado.edu>
4138
4135
4139 * IPython/iplib.py (file_matches): new completion code, courtesy
4136 * IPython/iplib.py (file_matches): new completion code, courtesy
4140 of Jeff Collins. This enables filename completion again under
4137 of Jeff Collins. This enables filename completion again under
4141 python 2.3, which disabled it at the C level.
4138 python 2.3, which disabled it at the C level.
4142
4139
4143 2003-11-11 Fernando Perez <fperez@colorado.edu>
4140 2003-11-11 Fernando Perez <fperez@colorado.edu>
4144
4141
4145 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4142 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4146 for Numeric.array(map(...)), but often convenient.
4143 for Numeric.array(map(...)), but often convenient.
4147
4144
4148 2003-11-05 Fernando Perez <fperez@colorado.edu>
4145 2003-11-05 Fernando Perez <fperez@colorado.edu>
4149
4146
4150 * IPython/numutils.py (frange): Changed a call from int() to
4147 * IPython/numutils.py (frange): Changed a call from int() to
4151 int(round()) to prevent a problem reported with arange() in the
4148 int(round()) to prevent a problem reported with arange() in the
4152 numpy list.
4149 numpy list.
4153
4150
4154 2003-10-06 Fernando Perez <fperez@colorado.edu>
4151 2003-10-06 Fernando Perez <fperez@colorado.edu>
4155
4152
4156 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4153 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4157 prevent crashes if sys lacks an argv attribute (it happens with
4154 prevent crashes if sys lacks an argv attribute (it happens with
4158 embedded interpreters which build a bare-bones sys module).
4155 embedded interpreters which build a bare-bones sys module).
4159 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4156 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4160
4157
4161 2003-09-24 Fernando Perez <fperez@colorado.edu>
4158 2003-09-24 Fernando Perez <fperez@colorado.edu>
4162
4159
4163 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4160 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4164 to protect against poorly written user objects where __getattr__
4161 to protect against poorly written user objects where __getattr__
4165 raises exceptions other than AttributeError. Thanks to a bug
4162 raises exceptions other than AttributeError. Thanks to a bug
4166 report by Oliver Sander <osander-AT-gmx.de>.
4163 report by Oliver Sander <osander-AT-gmx.de>.
4167
4164
4168 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4165 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4169 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4166 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4170
4167
4171 2003-09-09 Fernando Perez <fperez@colorado.edu>
4168 2003-09-09 Fernando Perez <fperez@colorado.edu>
4172
4169
4173 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4170 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4174 unpacking a list whith a callable as first element would
4171 unpacking a list whith a callable as first element would
4175 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4172 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4176 Collins.
4173 Collins.
4177
4174
4178 2003-08-25 *** Released version 0.5.0
4175 2003-08-25 *** Released version 0.5.0
4179
4176
4180 2003-08-22 Fernando Perez <fperez@colorado.edu>
4177 2003-08-22 Fernando Perez <fperez@colorado.edu>
4181
4178
4182 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4179 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4183 improperly defined user exceptions. Thanks to feedback from Mark
4180 improperly defined user exceptions. Thanks to feedback from Mark
4184 Russell <mrussell-AT-verio.net>.
4181 Russell <mrussell-AT-verio.net>.
4185
4182
4186 2003-08-20 Fernando Perez <fperez@colorado.edu>
4183 2003-08-20 Fernando Perez <fperez@colorado.edu>
4187
4184
4188 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4185 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4189 printing so that it would print multi-line string forms starting
4186 printing so that it would print multi-line string forms starting
4190 with a new line. This way the formatting is better respected for
4187 with a new line. This way the formatting is better respected for
4191 objects which work hard to make nice string forms.
4188 objects which work hard to make nice string forms.
4192
4189
4193 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4190 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4194 autocall would overtake data access for objects with both
4191 autocall would overtake data access for objects with both
4195 __getitem__ and __call__.
4192 __getitem__ and __call__.
4196
4193
4197 2003-08-19 *** Released version 0.5.0-rc1
4194 2003-08-19 *** Released version 0.5.0-rc1
4198
4195
4199 2003-08-19 Fernando Perez <fperez@colorado.edu>
4196 2003-08-19 Fernando Perez <fperez@colorado.edu>
4200
4197
4201 * IPython/deep_reload.py (load_tail): single tiny change here
4198 * IPython/deep_reload.py (load_tail): single tiny change here
4202 seems to fix the long-standing bug of dreload() failing to work
4199 seems to fix the long-standing bug of dreload() failing to work
4203 for dotted names. But this module is pretty tricky, so I may have
4200 for dotted names. But this module is pretty tricky, so I may have
4204 missed some subtlety. Needs more testing!.
4201 missed some subtlety. Needs more testing!.
4205
4202
4206 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4203 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4207 exceptions which have badly implemented __str__ methods.
4204 exceptions which have badly implemented __str__ methods.
4208 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4205 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4209 which I've been getting reports about from Python 2.3 users. I
4206 which I've been getting reports about from Python 2.3 users. I
4210 wish I had a simple test case to reproduce the problem, so I could
4207 wish I had a simple test case to reproduce the problem, so I could
4211 either write a cleaner workaround or file a bug report if
4208 either write a cleaner workaround or file a bug report if
4212 necessary.
4209 necessary.
4213
4210
4214 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4211 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4215 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4212 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4216 a bug report by Tjabo Kloppenburg.
4213 a bug report by Tjabo Kloppenburg.
4217
4214
4218 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4215 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4219 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4216 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4220 seems rather unstable. Thanks to a bug report by Tjabo
4217 seems rather unstable. Thanks to a bug report by Tjabo
4221 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4218 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4222
4219
4223 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4220 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4224 this out soon because of the critical fixes in the inner loop for
4221 this out soon because of the critical fixes in the inner loop for
4225 generators.
4222 generators.
4226
4223
4227 * IPython/Magic.py (Magic.getargspec): removed. This (and
4224 * IPython/Magic.py (Magic.getargspec): removed. This (and
4228 _get_def) have been obsoleted by OInspect for a long time, I
4225 _get_def) have been obsoleted by OInspect for a long time, I
4229 hadn't noticed that they were dead code.
4226 hadn't noticed that they were dead code.
4230 (Magic._ofind): restored _ofind functionality for a few literals
4227 (Magic._ofind): restored _ofind functionality for a few literals
4231 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4228 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4232 for things like "hello".capitalize?, since that would require a
4229 for things like "hello".capitalize?, since that would require a
4233 potentially dangerous eval() again.
4230 potentially dangerous eval() again.
4234
4231
4235 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4232 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4236 logic a bit more to clean up the escapes handling and minimize the
4233 logic a bit more to clean up the escapes handling and minimize the
4237 use of _ofind to only necessary cases. The interactive 'feel' of
4234 use of _ofind to only necessary cases. The interactive 'feel' of
4238 IPython should have improved quite a bit with the changes in
4235 IPython should have improved quite a bit with the changes in
4239 _prefilter and _ofind (besides being far safer than before).
4236 _prefilter and _ofind (besides being far safer than before).
4240
4237
4241 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4238 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4242 obscure, never reported). Edit would fail to find the object to
4239 obscure, never reported). Edit would fail to find the object to
4243 edit under some circumstances.
4240 edit under some circumstances.
4244 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4241 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4245 which were causing double-calling of generators. Those eval calls
4242 which were causing double-calling of generators. Those eval calls
4246 were _very_ dangerous, since code with side effects could be
4243 were _very_ dangerous, since code with side effects could be
4247 triggered. As they say, 'eval is evil'... These were the
4244 triggered. As they say, 'eval is evil'... These were the
4248 nastiest evals in IPython. Besides, _ofind is now far simpler,
4245 nastiest evals in IPython. Besides, _ofind is now far simpler,
4249 and it should also be quite a bit faster. Its use of inspect is
4246 and it should also be quite a bit faster. Its use of inspect is
4250 also safer, so perhaps some of the inspect-related crashes I've
4247 also safer, so perhaps some of the inspect-related crashes I've
4251 seen lately with Python 2.3 might be taken care of. That will
4248 seen lately with Python 2.3 might be taken care of. That will
4252 need more testing.
4249 need more testing.
4253
4250
4254 2003-08-17 Fernando Perez <fperez@colorado.edu>
4251 2003-08-17 Fernando Perez <fperez@colorado.edu>
4255
4252
4256 * IPython/iplib.py (InteractiveShell._prefilter): significant
4253 * IPython/iplib.py (InteractiveShell._prefilter): significant
4257 simplifications to the logic for handling user escapes. Faster
4254 simplifications to the logic for handling user escapes. Faster
4258 and simpler code.
4255 and simpler code.
4259
4256
4260 2003-08-14 Fernando Perez <fperez@colorado.edu>
4257 2003-08-14 Fernando Perez <fperez@colorado.edu>
4261
4258
4262 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4259 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4263 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4260 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4264 but it should be quite a bit faster. And the recursive version
4261 but it should be quite a bit faster. And the recursive version
4265 generated O(log N) intermediate storage for all rank>1 arrays,
4262 generated O(log N) intermediate storage for all rank>1 arrays,
4266 even if they were contiguous.
4263 even if they were contiguous.
4267 (l1norm): Added this function.
4264 (l1norm): Added this function.
4268 (norm): Added this function for arbitrary norms (including
4265 (norm): Added this function for arbitrary norms (including
4269 l-infinity). l1 and l2 are still special cases for convenience
4266 l-infinity). l1 and l2 are still special cases for convenience
4270 and speed.
4267 and speed.
4271
4268
4272 2003-08-03 Fernando Perez <fperez@colorado.edu>
4269 2003-08-03 Fernando Perez <fperez@colorado.edu>
4273
4270
4274 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4271 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4275 exceptions, which now raise PendingDeprecationWarnings in Python
4272 exceptions, which now raise PendingDeprecationWarnings in Python
4276 2.3. There were some in Magic and some in Gnuplot2.
4273 2.3. There were some in Magic and some in Gnuplot2.
4277
4274
4278 2003-06-30 Fernando Perez <fperez@colorado.edu>
4275 2003-06-30 Fernando Perez <fperez@colorado.edu>
4279
4276
4280 * IPython/genutils.py (page): modified to call curses only for
4277 * IPython/genutils.py (page): modified to call curses only for
4281 terminals where TERM=='xterm'. After problems under many other
4278 terminals where TERM=='xterm'. After problems under many other
4282 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4279 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4283
4280
4284 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4281 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4285 would be triggered when readline was absent. This was just an old
4282 would be triggered when readline was absent. This was just an old
4286 debugging statement I'd forgotten to take out.
4283 debugging statement I'd forgotten to take out.
4287
4284
4288 2003-06-20 Fernando Perez <fperez@colorado.edu>
4285 2003-06-20 Fernando Perez <fperez@colorado.edu>
4289
4286
4290 * IPython/genutils.py (clock): modified to return only user time
4287 * IPython/genutils.py (clock): modified to return only user time
4291 (not counting system time), after a discussion on scipy. While
4288 (not counting system time), after a discussion on scipy. While
4292 system time may be a useful quantity occasionally, it may much
4289 system time may be a useful quantity occasionally, it may much
4293 more easily be skewed by occasional swapping or other similar
4290 more easily be skewed by occasional swapping or other similar
4294 activity.
4291 activity.
4295
4292
4296 2003-06-05 Fernando Perez <fperez@colorado.edu>
4293 2003-06-05 Fernando Perez <fperez@colorado.edu>
4297
4294
4298 * IPython/numutils.py (identity): new function, for building
4295 * IPython/numutils.py (identity): new function, for building
4299 arbitrary rank Kronecker deltas (mostly backwards compatible with
4296 arbitrary rank Kronecker deltas (mostly backwards compatible with
4300 Numeric.identity)
4297 Numeric.identity)
4301
4298
4302 2003-06-03 Fernando Perez <fperez@colorado.edu>
4299 2003-06-03 Fernando Perez <fperez@colorado.edu>
4303
4300
4304 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4301 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4305 arguments passed to magics with spaces, to allow trailing '\' to
4302 arguments passed to magics with spaces, to allow trailing '\' to
4306 work normally (mainly for Windows users).
4303 work normally (mainly for Windows users).
4307
4304
4308 2003-05-29 Fernando Perez <fperez@colorado.edu>
4305 2003-05-29 Fernando Perez <fperez@colorado.edu>
4309
4306
4310 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4307 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4311 instead of pydoc.help. This fixes a bizarre behavior where
4308 instead of pydoc.help. This fixes a bizarre behavior where
4312 printing '%s' % locals() would trigger the help system. Now
4309 printing '%s' % locals() would trigger the help system. Now
4313 ipython behaves like normal python does.
4310 ipython behaves like normal python does.
4314
4311
4315 Note that if one does 'from pydoc import help', the bizarre
4312 Note that if one does 'from pydoc import help', the bizarre
4316 behavior returns, but this will also happen in normal python, so
4313 behavior returns, but this will also happen in normal python, so
4317 it's not an ipython bug anymore (it has to do with how pydoc.help
4314 it's not an ipython bug anymore (it has to do with how pydoc.help
4318 is implemented).
4315 is implemented).
4319
4316
4320 2003-05-22 Fernando Perez <fperez@colorado.edu>
4317 2003-05-22 Fernando Perez <fperez@colorado.edu>
4321
4318
4322 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4319 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4323 return [] instead of None when nothing matches, also match to end
4320 return [] instead of None when nothing matches, also match to end
4324 of line. Patch by Gary Bishop.
4321 of line. Patch by Gary Bishop.
4325
4322
4326 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4323 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4327 protection as before, for files passed on the command line. This
4324 protection as before, for files passed on the command line. This
4328 prevents the CrashHandler from kicking in if user files call into
4325 prevents the CrashHandler from kicking in if user files call into
4329 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4326 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4330 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4327 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4331
4328
4332 2003-05-20 *** Released version 0.4.0
4329 2003-05-20 *** Released version 0.4.0
4333
4330
4334 2003-05-20 Fernando Perez <fperez@colorado.edu>
4331 2003-05-20 Fernando Perez <fperez@colorado.edu>
4335
4332
4336 * setup.py: added support for manpages. It's a bit hackish b/c of
4333 * setup.py: added support for manpages. It's a bit hackish b/c of
4337 a bug in the way the bdist_rpm distutils target handles gzipped
4334 a bug in the way the bdist_rpm distutils target handles gzipped
4338 manpages, but it works. After a patch by Jack.
4335 manpages, but it works. After a patch by Jack.
4339
4336
4340 2003-05-19 Fernando Perez <fperez@colorado.edu>
4337 2003-05-19 Fernando Perez <fperez@colorado.edu>
4341
4338
4342 * IPython/numutils.py: added a mockup of the kinds module, since
4339 * IPython/numutils.py: added a mockup of the kinds module, since
4343 it was recently removed from Numeric. This way, numutils will
4340 it was recently removed from Numeric. This way, numutils will
4344 work for all users even if they are missing kinds.
4341 work for all users even if they are missing kinds.
4345
4342
4346 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4343 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4347 failure, which can occur with SWIG-wrapped extensions. After a
4344 failure, which can occur with SWIG-wrapped extensions. After a
4348 crash report from Prabhu.
4345 crash report from Prabhu.
4349
4346
4350 2003-05-16 Fernando Perez <fperez@colorado.edu>
4347 2003-05-16 Fernando Perez <fperez@colorado.edu>
4351
4348
4352 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4349 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4353 protect ipython from user code which may call directly
4350 protect ipython from user code which may call directly
4354 sys.excepthook (this looks like an ipython crash to the user, even
4351 sys.excepthook (this looks like an ipython crash to the user, even
4355 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4352 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4356 This is especially important to help users of WxWindows, but may
4353 This is especially important to help users of WxWindows, but may
4357 also be useful in other cases.
4354 also be useful in other cases.
4358
4355
4359 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4356 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4360 an optional tb_offset to be specified, and to preserve exception
4357 an optional tb_offset to be specified, and to preserve exception
4361 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4358 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4362
4359
4363 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4360 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4364
4361
4365 2003-05-15 Fernando Perez <fperez@colorado.edu>
4362 2003-05-15 Fernando Perez <fperez@colorado.edu>
4366
4363
4367 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4364 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4368 installing for a new user under Windows.
4365 installing for a new user under Windows.
4369
4366
4370 2003-05-12 Fernando Perez <fperez@colorado.edu>
4367 2003-05-12 Fernando Perez <fperez@colorado.edu>
4371
4368
4372 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4369 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4373 handler for Emacs comint-based lines. Currently it doesn't do
4370 handler for Emacs comint-based lines. Currently it doesn't do
4374 much (but importantly, it doesn't update the history cache). In
4371 much (but importantly, it doesn't update the history cache). In
4375 the future it may be expanded if Alex needs more functionality
4372 the future it may be expanded if Alex needs more functionality
4376 there.
4373 there.
4377
4374
4378 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4375 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4379 info to crash reports.
4376 info to crash reports.
4380
4377
4381 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4378 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4382 just like Python's -c. Also fixed crash with invalid -color
4379 just like Python's -c. Also fixed crash with invalid -color
4383 option value at startup. Thanks to Will French
4380 option value at startup. Thanks to Will French
4384 <wfrench-AT-bestweb.net> for the bug report.
4381 <wfrench-AT-bestweb.net> for the bug report.
4385
4382
4386 2003-05-09 Fernando Perez <fperez@colorado.edu>
4383 2003-05-09 Fernando Perez <fperez@colorado.edu>
4387
4384
4388 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4385 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4389 to EvalDict (it's a mapping, after all) and simplified its code
4386 to EvalDict (it's a mapping, after all) and simplified its code
4390 quite a bit, after a nice discussion on c.l.py where Gustavo
4387 quite a bit, after a nice discussion on c.l.py where Gustavo
4391 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4388 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4392
4389
4393 2003-04-30 Fernando Perez <fperez@colorado.edu>
4390 2003-04-30 Fernando Perez <fperez@colorado.edu>
4394
4391
4395 * IPython/genutils.py (timings_out): modified it to reduce its
4392 * IPython/genutils.py (timings_out): modified it to reduce its
4396 overhead in the common reps==1 case.
4393 overhead in the common reps==1 case.
4397
4394
4398 2003-04-29 Fernando Perez <fperez@colorado.edu>
4395 2003-04-29 Fernando Perez <fperez@colorado.edu>
4399
4396
4400 * IPython/genutils.py (timings_out): Modified to use the resource
4397 * IPython/genutils.py (timings_out): Modified to use the resource
4401 module, which avoids the wraparound problems of time.clock().
4398 module, which avoids the wraparound problems of time.clock().
4402
4399
4403 2003-04-17 *** Released version 0.2.15pre4
4400 2003-04-17 *** Released version 0.2.15pre4
4404
4401
4405 2003-04-17 Fernando Perez <fperez@colorado.edu>
4402 2003-04-17 Fernando Perez <fperez@colorado.edu>
4406
4403
4407 * setup.py (scriptfiles): Split windows-specific stuff over to a
4404 * setup.py (scriptfiles): Split windows-specific stuff over to a
4408 separate file, in an attempt to have a Windows GUI installer.
4405 separate file, in an attempt to have a Windows GUI installer.
4409 That didn't work, but part of the groundwork is done.
4406 That didn't work, but part of the groundwork is done.
4410
4407
4411 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4408 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4412 indent/unindent with 4 spaces. Particularly useful in combination
4409 indent/unindent with 4 spaces. Particularly useful in combination
4413 with the new auto-indent option.
4410 with the new auto-indent option.
4414
4411
4415 2003-04-16 Fernando Perez <fperez@colorado.edu>
4412 2003-04-16 Fernando Perez <fperez@colorado.edu>
4416
4413
4417 * IPython/Magic.py: various replacements of self.rc for
4414 * IPython/Magic.py: various replacements of self.rc for
4418 self.shell.rc. A lot more remains to be done to fully disentangle
4415 self.shell.rc. A lot more remains to be done to fully disentangle
4419 this class from the main Shell class.
4416 this class from the main Shell class.
4420
4417
4421 * IPython/GnuplotRuntime.py: added checks for mouse support so
4418 * IPython/GnuplotRuntime.py: added checks for mouse support so
4422 that we don't try to enable it if the current gnuplot doesn't
4419 that we don't try to enable it if the current gnuplot doesn't
4423 really support it. Also added checks so that we don't try to
4420 really support it. Also added checks so that we don't try to
4424 enable persist under Windows (where Gnuplot doesn't recognize the
4421 enable persist under Windows (where Gnuplot doesn't recognize the
4425 option).
4422 option).
4426
4423
4427 * IPython/iplib.py (InteractiveShell.interact): Added optional
4424 * IPython/iplib.py (InteractiveShell.interact): Added optional
4428 auto-indenting code, after a patch by King C. Shu
4425 auto-indenting code, after a patch by King C. Shu
4429 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4426 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4430 get along well with pasting indented code. If I ever figure out
4427 get along well with pasting indented code. If I ever figure out
4431 how to make that part go well, it will become on by default.
4428 how to make that part go well, it will become on by default.
4432
4429
4433 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4430 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4434 crash ipython if there was an unmatched '%' in the user's prompt
4431 crash ipython if there was an unmatched '%' in the user's prompt
4435 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4432 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4436
4433
4437 * IPython/iplib.py (InteractiveShell.interact): removed the
4434 * IPython/iplib.py (InteractiveShell.interact): removed the
4438 ability to ask the user whether he wants to crash or not at the
4435 ability to ask the user whether he wants to crash or not at the
4439 'last line' exception handler. Calling functions at that point
4436 'last line' exception handler. Calling functions at that point
4440 changes the stack, and the error reports would have incorrect
4437 changes the stack, and the error reports would have incorrect
4441 tracebacks.
4438 tracebacks.
4442
4439
4443 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4440 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4444 pass through a peger a pretty-printed form of any object. After a
4441 pass through a peger a pretty-printed form of any object. After a
4445 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4442 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4446
4443
4447 2003-04-14 Fernando Perez <fperez@colorado.edu>
4444 2003-04-14 Fernando Perez <fperez@colorado.edu>
4448
4445
4449 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4446 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4450 all files in ~ would be modified at first install (instead of
4447 all files in ~ would be modified at first install (instead of
4451 ~/.ipython). This could be potentially disastrous, as the
4448 ~/.ipython). This could be potentially disastrous, as the
4452 modification (make line-endings native) could damage binary files.
4449 modification (make line-endings native) could damage binary files.
4453
4450
4454 2003-04-10 Fernando Perez <fperez@colorado.edu>
4451 2003-04-10 Fernando Perez <fperez@colorado.edu>
4455
4452
4456 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4453 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4457 handle only lines which are invalid python. This now means that
4454 handle only lines which are invalid python. This now means that
4458 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4455 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4459 for the bug report.
4456 for the bug report.
4460
4457
4461 2003-04-01 Fernando Perez <fperez@colorado.edu>
4458 2003-04-01 Fernando Perez <fperez@colorado.edu>
4462
4459
4463 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4460 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4464 where failing to set sys.last_traceback would crash pdb.pm().
4461 where failing to set sys.last_traceback would crash pdb.pm().
4465 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4462 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4466 report.
4463 report.
4467
4464
4468 2003-03-25 Fernando Perez <fperez@colorado.edu>
4465 2003-03-25 Fernando Perez <fperez@colorado.edu>
4469
4466
4470 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4467 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4471 before printing it (it had a lot of spurious blank lines at the
4468 before printing it (it had a lot of spurious blank lines at the
4472 end).
4469 end).
4473
4470
4474 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4471 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4475 output would be sent 21 times! Obviously people don't use this
4472 output would be sent 21 times! Obviously people don't use this
4476 too often, or I would have heard about it.
4473 too often, or I would have heard about it.
4477
4474
4478 2003-03-24 Fernando Perez <fperez@colorado.edu>
4475 2003-03-24 Fernando Perez <fperez@colorado.edu>
4479
4476
4480 * setup.py (scriptfiles): renamed the data_files parameter from
4477 * setup.py (scriptfiles): renamed the data_files parameter from
4481 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4478 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4482 for the patch.
4479 for the patch.
4483
4480
4484 2003-03-20 Fernando Perez <fperez@colorado.edu>
4481 2003-03-20 Fernando Perez <fperez@colorado.edu>
4485
4482
4486 * IPython/genutils.py (error): added error() and fatal()
4483 * IPython/genutils.py (error): added error() and fatal()
4487 functions.
4484 functions.
4488
4485
4489 2003-03-18 *** Released version 0.2.15pre3
4486 2003-03-18 *** Released version 0.2.15pre3
4490
4487
4491 2003-03-18 Fernando Perez <fperez@colorado.edu>
4488 2003-03-18 Fernando Perez <fperez@colorado.edu>
4492
4489
4493 * setupext/install_data_ext.py
4490 * setupext/install_data_ext.py
4494 (install_data_ext.initialize_options): Class contributed by Jack
4491 (install_data_ext.initialize_options): Class contributed by Jack
4495 Moffit for fixing the old distutils hack. He is sending this to
4492 Moffit for fixing the old distutils hack. He is sending this to
4496 the distutils folks so in the future we may not need it as a
4493 the distutils folks so in the future we may not need it as a
4497 private fix.
4494 private fix.
4498
4495
4499 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4496 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4500 changes for Debian packaging. See his patch for full details.
4497 changes for Debian packaging. See his patch for full details.
4501 The old distutils hack of making the ipythonrc* files carry a
4498 The old distutils hack of making the ipythonrc* files carry a
4502 bogus .py extension is gone, at last. Examples were moved to a
4499 bogus .py extension is gone, at last. Examples were moved to a
4503 separate subdir under doc/, and the separate executable scripts
4500 separate subdir under doc/, and the separate executable scripts
4504 now live in their own directory. Overall a great cleanup. The
4501 now live in their own directory. Overall a great cleanup. The
4505 manual was updated to use the new files, and setup.py has been
4502 manual was updated to use the new files, and setup.py has been
4506 fixed for this setup.
4503 fixed for this setup.
4507
4504
4508 * IPython/PyColorize.py (Parser.usage): made non-executable and
4505 * IPython/PyColorize.py (Parser.usage): made non-executable and
4509 created a pycolor wrapper around it to be included as a script.
4506 created a pycolor wrapper around it to be included as a script.
4510
4507
4511 2003-03-12 *** Released version 0.2.15pre2
4508 2003-03-12 *** Released version 0.2.15pre2
4512
4509
4513 2003-03-12 Fernando Perez <fperez@colorado.edu>
4510 2003-03-12 Fernando Perez <fperez@colorado.edu>
4514
4511
4515 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4512 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4516 long-standing problem with garbage characters in some terminals.
4513 long-standing problem with garbage characters in some terminals.
4517 The issue was really that the \001 and \002 escapes must _only_ be
4514 The issue was really that the \001 and \002 escapes must _only_ be
4518 passed to input prompts (which call readline), but _never_ to
4515 passed to input prompts (which call readline), but _never_ to
4519 normal text to be printed on screen. I changed ColorANSI to have
4516 normal text to be printed on screen. I changed ColorANSI to have
4520 two classes: TermColors and InputTermColors, each with the
4517 two classes: TermColors and InputTermColors, each with the
4521 appropriate escapes for input prompts or normal text. The code in
4518 appropriate escapes for input prompts or normal text. The code in
4522 Prompts.py got slightly more complicated, but this very old and
4519 Prompts.py got slightly more complicated, but this very old and
4523 annoying bug is finally fixed.
4520 annoying bug is finally fixed.
4524
4521
4525 All the credit for nailing down the real origin of this problem
4522 All the credit for nailing down the real origin of this problem
4526 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4523 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4527 *Many* thanks to him for spending quite a bit of effort on this.
4524 *Many* thanks to him for spending quite a bit of effort on this.
4528
4525
4529 2003-03-05 *** Released version 0.2.15pre1
4526 2003-03-05 *** Released version 0.2.15pre1
4530
4527
4531 2003-03-03 Fernando Perez <fperez@colorado.edu>
4528 2003-03-03 Fernando Perez <fperez@colorado.edu>
4532
4529
4533 * IPython/FakeModule.py: Moved the former _FakeModule to a
4530 * IPython/FakeModule.py: Moved the former _FakeModule to a
4534 separate file, because it's also needed by Magic (to fix a similar
4531 separate file, because it's also needed by Magic (to fix a similar
4535 pickle-related issue in @run).
4532 pickle-related issue in @run).
4536
4533
4537 2003-03-02 Fernando Perez <fperez@colorado.edu>
4534 2003-03-02 Fernando Perez <fperez@colorado.edu>
4538
4535
4539 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4536 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4540 the autocall option at runtime.
4537 the autocall option at runtime.
4541 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4538 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4542 across Magic.py to start separating Magic from InteractiveShell.
4539 across Magic.py to start separating Magic from InteractiveShell.
4543 (Magic._ofind): Fixed to return proper namespace for dotted
4540 (Magic._ofind): Fixed to return proper namespace for dotted
4544 names. Before, a dotted name would always return 'not currently
4541 names. Before, a dotted name would always return 'not currently
4545 defined', because it would find the 'parent'. s.x would be found,
4542 defined', because it would find the 'parent'. s.x would be found,
4546 but since 'x' isn't defined by itself, it would get confused.
4543 but since 'x' isn't defined by itself, it would get confused.
4547 (Magic.magic_run): Fixed pickling problems reported by Ralf
4544 (Magic.magic_run): Fixed pickling problems reported by Ralf
4548 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4545 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4549 that I'd used when Mike Heeter reported similar issues at the
4546 that I'd used when Mike Heeter reported similar issues at the
4550 top-level, but now for @run. It boils down to injecting the
4547 top-level, but now for @run. It boils down to injecting the
4551 namespace where code is being executed with something that looks
4548 namespace where code is being executed with something that looks
4552 enough like a module to fool pickle.dump(). Since a pickle stores
4549 enough like a module to fool pickle.dump(). Since a pickle stores
4553 a named reference to the importing module, we need this for
4550 a named reference to the importing module, we need this for
4554 pickles to save something sensible.
4551 pickles to save something sensible.
4555
4552
4556 * IPython/ipmaker.py (make_IPython): added an autocall option.
4553 * IPython/ipmaker.py (make_IPython): added an autocall option.
4557
4554
4558 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4555 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4559 the auto-eval code. Now autocalling is an option, and the code is
4556 the auto-eval code. Now autocalling is an option, and the code is
4560 also vastly safer. There is no more eval() involved at all.
4557 also vastly safer. There is no more eval() involved at all.
4561
4558
4562 2003-03-01 Fernando Perez <fperez@colorado.edu>
4559 2003-03-01 Fernando Perez <fperez@colorado.edu>
4563
4560
4564 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4561 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4565 dict with named keys instead of a tuple.
4562 dict with named keys instead of a tuple.
4566
4563
4567 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4564 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4568
4565
4569 * setup.py (make_shortcut): Fixed message about directories
4566 * setup.py (make_shortcut): Fixed message about directories
4570 created during Windows installation (the directories were ok, just
4567 created during Windows installation (the directories were ok, just
4571 the printed message was misleading). Thanks to Chris Liechti
4568 the printed message was misleading). Thanks to Chris Liechti
4572 <cliechti-AT-gmx.net> for the heads up.
4569 <cliechti-AT-gmx.net> for the heads up.
4573
4570
4574 2003-02-21 Fernando Perez <fperez@colorado.edu>
4571 2003-02-21 Fernando Perez <fperez@colorado.edu>
4575
4572
4576 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4573 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4577 of ValueError exception when checking for auto-execution. This
4574 of ValueError exception when checking for auto-execution. This
4578 one is raised by things like Numeric arrays arr.flat when the
4575 one is raised by things like Numeric arrays arr.flat when the
4579 array is non-contiguous.
4576 array is non-contiguous.
4580
4577
4581 2003-01-31 Fernando Perez <fperez@colorado.edu>
4578 2003-01-31 Fernando Perez <fperez@colorado.edu>
4582
4579
4583 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4580 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4584 not return any value at all (even though the command would get
4581 not return any value at all (even though the command would get
4585 executed).
4582 executed).
4586 (xsys): Flush stdout right after printing the command to ensure
4583 (xsys): Flush stdout right after printing the command to ensure
4587 proper ordering of commands and command output in the total
4584 proper ordering of commands and command output in the total
4588 output.
4585 output.
4589 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4586 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4590 system/getoutput as defaults. The old ones are kept for
4587 system/getoutput as defaults. The old ones are kept for
4591 compatibility reasons, so no code which uses this library needs
4588 compatibility reasons, so no code which uses this library needs
4592 changing.
4589 changing.
4593
4590
4594 2003-01-27 *** Released version 0.2.14
4591 2003-01-27 *** Released version 0.2.14
4595
4592
4596 2003-01-25 Fernando Perez <fperez@colorado.edu>
4593 2003-01-25 Fernando Perez <fperez@colorado.edu>
4597
4594
4598 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4595 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4599 functions defined in previous edit sessions could not be re-edited
4596 functions defined in previous edit sessions could not be re-edited
4600 (because the temp files were immediately removed). Now temp files
4597 (because the temp files were immediately removed). Now temp files
4601 are removed only at IPython's exit.
4598 are removed only at IPython's exit.
4602 (Magic.magic_run): Improved @run to perform shell-like expansions
4599 (Magic.magic_run): Improved @run to perform shell-like expansions
4603 on its arguments (~users and $VARS). With this, @run becomes more
4600 on its arguments (~users and $VARS). With this, @run becomes more
4604 like a normal command-line.
4601 like a normal command-line.
4605
4602
4606 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4603 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4607 bugs related to embedding and cleaned up that code. A fairly
4604 bugs related to embedding and cleaned up that code. A fairly
4608 important one was the impossibility to access the global namespace
4605 important one was the impossibility to access the global namespace
4609 through the embedded IPython (only local variables were visible).
4606 through the embedded IPython (only local variables were visible).
4610
4607
4611 2003-01-14 Fernando Perez <fperez@colorado.edu>
4608 2003-01-14 Fernando Perez <fperez@colorado.edu>
4612
4609
4613 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4610 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4614 auto-calling to be a bit more conservative. Now it doesn't get
4611 auto-calling to be a bit more conservative. Now it doesn't get
4615 triggered if any of '!=()<>' are in the rest of the input line, to
4612 triggered if any of '!=()<>' are in the rest of the input line, to
4616 allow comparing callables. Thanks to Alex for the heads up.
4613 allow comparing callables. Thanks to Alex for the heads up.
4617
4614
4618 2003-01-07 Fernando Perez <fperez@colorado.edu>
4615 2003-01-07 Fernando Perez <fperez@colorado.edu>
4619
4616
4620 * IPython/genutils.py (page): fixed estimation of the number of
4617 * IPython/genutils.py (page): fixed estimation of the number of
4621 lines in a string to be paged to simply count newlines. This
4618 lines in a string to be paged to simply count newlines. This
4622 prevents over-guessing due to embedded escape sequences. A better
4619 prevents over-guessing due to embedded escape sequences. A better
4623 long-term solution would involve stripping out the control chars
4620 long-term solution would involve stripping out the control chars
4624 for the count, but it's potentially so expensive I just don't
4621 for the count, but it's potentially so expensive I just don't
4625 think it's worth doing.
4622 think it's worth doing.
4626
4623
4627 2002-12-19 *** Released version 0.2.14pre50
4624 2002-12-19 *** Released version 0.2.14pre50
4628
4625
4629 2002-12-19 Fernando Perez <fperez@colorado.edu>
4626 2002-12-19 Fernando Perez <fperez@colorado.edu>
4630
4627
4631 * tools/release (version): Changed release scripts to inform
4628 * tools/release (version): Changed release scripts to inform
4632 Andrea and build a NEWS file with a list of recent changes.
4629 Andrea and build a NEWS file with a list of recent changes.
4633
4630
4634 * IPython/ColorANSI.py (__all__): changed terminal detection
4631 * IPython/ColorANSI.py (__all__): changed terminal detection
4635 code. Seems to work better for xterms without breaking
4632 code. Seems to work better for xterms without breaking
4636 konsole. Will need more testing to determine if WinXP and Mac OSX
4633 konsole. Will need more testing to determine if WinXP and Mac OSX
4637 also work ok.
4634 also work ok.
4638
4635
4639 2002-12-18 *** Released version 0.2.14pre49
4636 2002-12-18 *** Released version 0.2.14pre49
4640
4637
4641 2002-12-18 Fernando Perez <fperez@colorado.edu>
4638 2002-12-18 Fernando Perez <fperez@colorado.edu>
4642
4639
4643 * Docs: added new info about Mac OSX, from Andrea.
4640 * Docs: added new info about Mac OSX, from Andrea.
4644
4641
4645 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4642 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4646 allow direct plotting of python strings whose format is the same
4643 allow direct plotting of python strings whose format is the same
4647 of gnuplot data files.
4644 of gnuplot data files.
4648
4645
4649 2002-12-16 Fernando Perez <fperez@colorado.edu>
4646 2002-12-16 Fernando Perez <fperez@colorado.edu>
4650
4647
4651 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4648 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4652 value of exit question to be acknowledged.
4649 value of exit question to be acknowledged.
4653
4650
4654 2002-12-03 Fernando Perez <fperez@colorado.edu>
4651 2002-12-03 Fernando Perez <fperez@colorado.edu>
4655
4652
4656 * IPython/ipmaker.py: removed generators, which had been added
4653 * IPython/ipmaker.py: removed generators, which had been added
4657 by mistake in an earlier debugging run. This was causing trouble
4654 by mistake in an earlier debugging run. This was causing trouble
4658 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4655 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4659 for pointing this out.
4656 for pointing this out.
4660
4657
4661 2002-11-17 Fernando Perez <fperez@colorado.edu>
4658 2002-11-17 Fernando Perez <fperez@colorado.edu>
4662
4659
4663 * Manual: updated the Gnuplot section.
4660 * Manual: updated the Gnuplot section.
4664
4661
4665 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4662 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4666 a much better split of what goes in Runtime and what goes in
4663 a much better split of what goes in Runtime and what goes in
4667 Interactive.
4664 Interactive.
4668
4665
4669 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4666 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4670 being imported from iplib.
4667 being imported from iplib.
4671
4668
4672 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4669 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4673 for command-passing. Now the global Gnuplot instance is called
4670 for command-passing. Now the global Gnuplot instance is called
4674 'gp' instead of 'g', which was really a far too fragile and
4671 'gp' instead of 'g', which was really a far too fragile and
4675 common name.
4672 common name.
4676
4673
4677 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4674 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4678 bounding boxes generated by Gnuplot for square plots.
4675 bounding boxes generated by Gnuplot for square plots.
4679
4676
4680 * IPython/genutils.py (popkey): new function added. I should
4677 * IPython/genutils.py (popkey): new function added. I should
4681 suggest this on c.l.py as a dict method, it seems useful.
4678 suggest this on c.l.py as a dict method, it seems useful.
4682
4679
4683 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4680 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4684 to transparently handle PostScript generation. MUCH better than
4681 to transparently handle PostScript generation. MUCH better than
4685 the previous plot_eps/replot_eps (which I removed now). The code
4682 the previous plot_eps/replot_eps (which I removed now). The code
4686 is also fairly clean and well documented now (including
4683 is also fairly clean and well documented now (including
4687 docstrings).
4684 docstrings).
4688
4685
4689 2002-11-13 Fernando Perez <fperez@colorado.edu>
4686 2002-11-13 Fernando Perez <fperez@colorado.edu>
4690
4687
4691 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4688 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4692 (inconsistent with options).
4689 (inconsistent with options).
4693
4690
4694 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4691 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4695 manually disabled, I don't know why. Fixed it.
4692 manually disabled, I don't know why. Fixed it.
4696 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4693 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4697 eps output.
4694 eps output.
4698
4695
4699 2002-11-12 Fernando Perez <fperez@colorado.edu>
4696 2002-11-12 Fernando Perez <fperez@colorado.edu>
4700
4697
4701 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4698 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4702 don't propagate up to caller. Fixes crash reported by François
4699 don't propagate up to caller. Fixes crash reported by François
4703 Pinard.
4700 Pinard.
4704
4701
4705 2002-11-09 Fernando Perez <fperez@colorado.edu>
4702 2002-11-09 Fernando Perez <fperez@colorado.edu>
4706
4703
4707 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4704 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4708 history file for new users.
4705 history file for new users.
4709 (make_IPython): fixed bug where initial install would leave the
4706 (make_IPython): fixed bug where initial install would leave the
4710 user running in the .ipython dir.
4707 user running in the .ipython dir.
4711 (make_IPython): fixed bug where config dir .ipython would be
4708 (make_IPython): fixed bug where config dir .ipython would be
4712 created regardless of the given -ipythondir option. Thanks to Cory
4709 created regardless of the given -ipythondir option. Thanks to Cory
4713 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4710 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4714
4711
4715 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4712 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4716 type confirmations. Will need to use it in all of IPython's code
4713 type confirmations. Will need to use it in all of IPython's code
4717 consistently.
4714 consistently.
4718
4715
4719 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4716 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4720 context to print 31 lines instead of the default 5. This will make
4717 context to print 31 lines instead of the default 5. This will make
4721 the crash reports extremely detailed in case the problem is in
4718 the crash reports extremely detailed in case the problem is in
4722 libraries I don't have access to.
4719 libraries I don't have access to.
4723
4720
4724 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4721 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4725 line of defense' code to still crash, but giving users fair
4722 line of defense' code to still crash, but giving users fair
4726 warning. I don't want internal errors to go unreported: if there's
4723 warning. I don't want internal errors to go unreported: if there's
4727 an internal problem, IPython should crash and generate a full
4724 an internal problem, IPython should crash and generate a full
4728 report.
4725 report.
4729
4726
4730 2002-11-08 Fernando Perez <fperez@colorado.edu>
4727 2002-11-08 Fernando Perez <fperez@colorado.edu>
4731
4728
4732 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4729 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4733 otherwise uncaught exceptions which can appear if people set
4730 otherwise uncaught exceptions which can appear if people set
4734 sys.stdout to something badly broken. Thanks to a crash report
4731 sys.stdout to something badly broken. Thanks to a crash report
4735 from henni-AT-mail.brainbot.com.
4732 from henni-AT-mail.brainbot.com.
4736
4733
4737 2002-11-04 Fernando Perez <fperez@colorado.edu>
4734 2002-11-04 Fernando Perez <fperez@colorado.edu>
4738
4735
4739 * IPython/iplib.py (InteractiveShell.interact): added
4736 * IPython/iplib.py (InteractiveShell.interact): added
4740 __IPYTHON__active to the builtins. It's a flag which goes on when
4737 __IPYTHON__active to the builtins. It's a flag which goes on when
4741 the interaction starts and goes off again when it stops. This
4738 the interaction starts and goes off again when it stops. This
4742 allows embedding code to detect being inside IPython. Before this
4739 allows embedding code to detect being inside IPython. Before this
4743 was done via __IPYTHON__, but that only shows that an IPython
4740 was done via __IPYTHON__, but that only shows that an IPython
4744 instance has been created.
4741 instance has been created.
4745
4742
4746 * IPython/Magic.py (Magic.magic_env): I realized that in a
4743 * IPython/Magic.py (Magic.magic_env): I realized that in a
4747 UserDict, instance.data holds the data as a normal dict. So I
4744 UserDict, instance.data holds the data as a normal dict. So I
4748 modified @env to return os.environ.data instead of rebuilding a
4745 modified @env to return os.environ.data instead of rebuilding a
4749 dict by hand.
4746 dict by hand.
4750
4747
4751 2002-11-02 Fernando Perez <fperez@colorado.edu>
4748 2002-11-02 Fernando Perez <fperez@colorado.edu>
4752
4749
4753 * IPython/genutils.py (warn): changed so that level 1 prints no
4750 * IPython/genutils.py (warn): changed so that level 1 prints no
4754 header. Level 2 is now the default (with 'WARNING' header, as
4751 header. Level 2 is now the default (with 'WARNING' header, as
4755 before). I think I tracked all places where changes were needed in
4752 before). I think I tracked all places where changes were needed in
4756 IPython, but outside code using the old level numbering may have
4753 IPython, but outside code using the old level numbering may have
4757 broken.
4754 broken.
4758
4755
4759 * IPython/iplib.py (InteractiveShell.runcode): added this to
4756 * IPython/iplib.py (InteractiveShell.runcode): added this to
4760 handle the tracebacks in SystemExit traps correctly. The previous
4757 handle the tracebacks in SystemExit traps correctly. The previous
4761 code (through interact) was printing more of the stack than
4758 code (through interact) was printing more of the stack than
4762 necessary, showing IPython internal code to the user.
4759 necessary, showing IPython internal code to the user.
4763
4760
4764 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4761 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4765 default. Now that the default at the confirmation prompt is yes,
4762 default. Now that the default at the confirmation prompt is yes,
4766 it's not so intrusive. François' argument that ipython sessions
4763 it's not so intrusive. François' argument that ipython sessions
4767 tend to be complex enough not to lose them from an accidental C-d,
4764 tend to be complex enough not to lose them from an accidental C-d,
4768 is a valid one.
4765 is a valid one.
4769
4766
4770 * IPython/iplib.py (InteractiveShell.interact): added a
4767 * IPython/iplib.py (InteractiveShell.interact): added a
4771 showtraceback() call to the SystemExit trap, and modified the exit
4768 showtraceback() call to the SystemExit trap, and modified the exit
4772 confirmation to have yes as the default.
4769 confirmation to have yes as the default.
4773
4770
4774 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4771 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4775 this file. It's been gone from the code for a long time, this was
4772 this file. It's been gone from the code for a long time, this was
4776 simply leftover junk.
4773 simply leftover junk.
4777
4774
4778 2002-11-01 Fernando Perez <fperez@colorado.edu>
4775 2002-11-01 Fernando Perez <fperez@colorado.edu>
4779
4776
4780 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4777 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4781 added. If set, IPython now traps EOF and asks for
4778 added. If set, IPython now traps EOF and asks for
4782 confirmation. After a request by François Pinard.
4779 confirmation. After a request by François Pinard.
4783
4780
4784 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4781 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4785 of @abort, and with a new (better) mechanism for handling the
4782 of @abort, and with a new (better) mechanism for handling the
4786 exceptions.
4783 exceptions.
4787
4784
4788 2002-10-27 Fernando Perez <fperez@colorado.edu>
4785 2002-10-27 Fernando Perez <fperez@colorado.edu>
4789
4786
4790 * IPython/usage.py (__doc__): updated the --help information and
4787 * IPython/usage.py (__doc__): updated the --help information and
4791 the ipythonrc file to indicate that -log generates
4788 the ipythonrc file to indicate that -log generates
4792 ./ipython.log. Also fixed the corresponding info in @logstart.
4789 ./ipython.log. Also fixed the corresponding info in @logstart.
4793 This and several other fixes in the manuals thanks to reports by
4790 This and several other fixes in the manuals thanks to reports by
4794 François Pinard <pinard-AT-iro.umontreal.ca>.
4791 François Pinard <pinard-AT-iro.umontreal.ca>.
4795
4792
4796 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4793 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4797 refer to @logstart (instead of @log, which doesn't exist).
4794 refer to @logstart (instead of @log, which doesn't exist).
4798
4795
4799 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4796 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4800 AttributeError crash. Thanks to Christopher Armstrong
4797 AttributeError crash. Thanks to Christopher Armstrong
4801 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4798 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4802 introduced recently (in 0.2.14pre37) with the fix to the eval
4799 introduced recently (in 0.2.14pre37) with the fix to the eval
4803 problem mentioned below.
4800 problem mentioned below.
4804
4801
4805 2002-10-17 Fernando Perez <fperez@colorado.edu>
4802 2002-10-17 Fernando Perez <fperez@colorado.edu>
4806
4803
4807 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4804 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4808 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4805 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4809
4806
4810 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4807 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4811 this function to fix a problem reported by Alex Schmolck. He saw
4808 this function to fix a problem reported by Alex Schmolck. He saw
4812 it with list comprehensions and generators, which were getting
4809 it with list comprehensions and generators, which were getting
4813 called twice. The real problem was an 'eval' call in testing for
4810 called twice. The real problem was an 'eval' call in testing for
4814 automagic which was evaluating the input line silently.
4811 automagic which was evaluating the input line silently.
4815
4812
4816 This is a potentially very nasty bug, if the input has side
4813 This is a potentially very nasty bug, if the input has side
4817 effects which must not be repeated. The code is much cleaner now,
4814 effects which must not be repeated. The code is much cleaner now,
4818 without any blanket 'except' left and with a regexp test for
4815 without any blanket 'except' left and with a regexp test for
4819 actual function names.
4816 actual function names.
4820
4817
4821 But an eval remains, which I'm not fully comfortable with. I just
4818 But an eval remains, which I'm not fully comfortable with. I just
4822 don't know how to find out if an expression could be a callable in
4819 don't know how to find out if an expression could be a callable in
4823 the user's namespace without doing an eval on the string. However
4820 the user's namespace without doing an eval on the string. However
4824 that string is now much more strictly checked so that no code
4821 that string is now much more strictly checked so that no code
4825 slips by, so the eval should only happen for things that can
4822 slips by, so the eval should only happen for things that can
4826 really be only function/method names.
4823 really be only function/method names.
4827
4824
4828 2002-10-15 Fernando Perez <fperez@colorado.edu>
4825 2002-10-15 Fernando Perez <fperez@colorado.edu>
4829
4826
4830 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4827 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4831 OSX information to main manual, removed README_Mac_OSX file from
4828 OSX information to main manual, removed README_Mac_OSX file from
4832 distribution. Also updated credits for recent additions.
4829 distribution. Also updated credits for recent additions.
4833
4830
4834 2002-10-10 Fernando Perez <fperez@colorado.edu>
4831 2002-10-10 Fernando Perez <fperez@colorado.edu>
4835
4832
4836 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4833 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4837 terminal-related issues. Many thanks to Andrea Riciputi
4834 terminal-related issues. Many thanks to Andrea Riciputi
4838 <andrea.riciputi-AT-libero.it> for writing it.
4835 <andrea.riciputi-AT-libero.it> for writing it.
4839
4836
4840 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4837 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4841 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4838 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4842
4839
4843 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4840 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4844 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4841 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4845 <syver-en-AT-online.no> who both submitted patches for this problem.
4842 <syver-en-AT-online.no> who both submitted patches for this problem.
4846
4843
4847 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4844 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4848 global embedding to make sure that things don't overwrite user
4845 global embedding to make sure that things don't overwrite user
4849 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4846 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4850
4847
4851 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4848 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4852 compatibility. Thanks to Hayden Callow
4849 compatibility. Thanks to Hayden Callow
4853 <h.callow-AT-elec.canterbury.ac.nz>
4850 <h.callow-AT-elec.canterbury.ac.nz>
4854
4851
4855 2002-10-04 Fernando Perez <fperez@colorado.edu>
4852 2002-10-04 Fernando Perez <fperez@colorado.edu>
4856
4853
4857 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4854 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4858 Gnuplot.File objects.
4855 Gnuplot.File objects.
4859
4856
4860 2002-07-23 Fernando Perez <fperez@colorado.edu>
4857 2002-07-23 Fernando Perez <fperez@colorado.edu>
4861
4858
4862 * IPython/genutils.py (timing): Added timings() and timing() for
4859 * IPython/genutils.py (timing): Added timings() and timing() for
4863 quick access to the most commonly needed data, the execution
4860 quick access to the most commonly needed data, the execution
4864 times. Old timing() renamed to timings_out().
4861 times. Old timing() renamed to timings_out().
4865
4862
4866 2002-07-18 Fernando Perez <fperez@colorado.edu>
4863 2002-07-18 Fernando Perez <fperez@colorado.edu>
4867
4864
4868 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4865 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4869 bug with nested instances disrupting the parent's tab completion.
4866 bug with nested instances disrupting the parent's tab completion.
4870
4867
4871 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4868 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4872 all_completions code to begin the emacs integration.
4869 all_completions code to begin the emacs integration.
4873
4870
4874 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4871 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4875 argument to allow titling individual arrays when plotting.
4872 argument to allow titling individual arrays when plotting.
4876
4873
4877 2002-07-15 Fernando Perez <fperez@colorado.edu>
4874 2002-07-15 Fernando Perez <fperez@colorado.edu>
4878
4875
4879 * setup.py (make_shortcut): changed to retrieve the value of
4876 * setup.py (make_shortcut): changed to retrieve the value of
4880 'Program Files' directory from the registry (this value changes in
4877 'Program Files' directory from the registry (this value changes in
4881 non-english versions of Windows). Thanks to Thomas Fanslau
4878 non-english versions of Windows). Thanks to Thomas Fanslau
4882 <tfanslau-AT-gmx.de> for the report.
4879 <tfanslau-AT-gmx.de> for the report.
4883
4880
4884 2002-07-10 Fernando Perez <fperez@colorado.edu>
4881 2002-07-10 Fernando Perez <fperez@colorado.edu>
4885
4882
4886 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4883 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4887 a bug in pdb, which crashes if a line with only whitespace is
4884 a bug in pdb, which crashes if a line with only whitespace is
4888 entered. Bug report submitted to sourceforge.
4885 entered. Bug report submitted to sourceforge.
4889
4886
4890 2002-07-09 Fernando Perez <fperez@colorado.edu>
4887 2002-07-09 Fernando Perez <fperez@colorado.edu>
4891
4888
4892 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4889 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4893 reporting exceptions (it's a bug in inspect.py, I just set a
4890 reporting exceptions (it's a bug in inspect.py, I just set a
4894 workaround).
4891 workaround).
4895
4892
4896 2002-07-08 Fernando Perez <fperez@colorado.edu>
4893 2002-07-08 Fernando Perez <fperez@colorado.edu>
4897
4894
4898 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4895 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4899 __IPYTHON__ in __builtins__ to show up in user_ns.
4896 __IPYTHON__ in __builtins__ to show up in user_ns.
4900
4897
4901 2002-07-03 Fernando Perez <fperez@colorado.edu>
4898 2002-07-03 Fernando Perez <fperez@colorado.edu>
4902
4899
4903 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4900 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4904 name from @gp_set_instance to @gp_set_default.
4901 name from @gp_set_instance to @gp_set_default.
4905
4902
4906 * IPython/ipmaker.py (make_IPython): default editor value set to
4903 * IPython/ipmaker.py (make_IPython): default editor value set to
4907 '0' (a string), to match the rc file. Otherwise will crash when
4904 '0' (a string), to match the rc file. Otherwise will crash when
4908 .strip() is called on it.
4905 .strip() is called on it.
4909
4906
4910
4907
4911 2002-06-28 Fernando Perez <fperez@colorado.edu>
4908 2002-06-28 Fernando Perez <fperez@colorado.edu>
4912
4909
4913 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4910 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4914 of files in current directory when a file is executed via
4911 of files in current directory when a file is executed via
4915 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4912 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4916
4913
4917 * setup.py (manfiles): fix for rpm builds, submitted by RA
4914 * setup.py (manfiles): fix for rpm builds, submitted by RA
4918 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4915 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4919
4916
4920 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4917 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4921 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4918 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4922 string!). A. Schmolck caught this one.
4919 string!). A. Schmolck caught this one.
4923
4920
4924 2002-06-27 Fernando Perez <fperez@colorado.edu>
4921 2002-06-27 Fernando Perez <fperez@colorado.edu>
4925
4922
4926 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4923 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4927 defined files at the cmd line. __name__ wasn't being set to
4924 defined files at the cmd line. __name__ wasn't being set to
4928 __main__.
4925 __main__.
4929
4926
4930 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4927 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4931 regular lists and tuples besides Numeric arrays.
4928 regular lists and tuples besides Numeric arrays.
4932
4929
4933 * IPython/Prompts.py (CachedOutput.__call__): Added output
4930 * IPython/Prompts.py (CachedOutput.__call__): Added output
4934 supression for input ending with ';'. Similar to Mathematica and
4931 supression for input ending with ';'. Similar to Mathematica and
4935 Matlab. The _* vars and Out[] list are still updated, just like
4932 Matlab. The _* vars and Out[] list are still updated, just like
4936 Mathematica behaves.
4933 Mathematica behaves.
4937
4934
4938 2002-06-25 Fernando Perez <fperez@colorado.edu>
4935 2002-06-25 Fernando Perez <fperez@colorado.edu>
4939
4936
4940 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4937 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4941 .ini extensions for profiels under Windows.
4938 .ini extensions for profiels under Windows.
4942
4939
4943 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4940 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4944 string form. Fix contributed by Alexander Schmolck
4941 string form. Fix contributed by Alexander Schmolck
4945 <a.schmolck-AT-gmx.net>
4942 <a.schmolck-AT-gmx.net>
4946
4943
4947 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4944 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4948 pre-configured Gnuplot instance.
4945 pre-configured Gnuplot instance.
4949
4946
4950 2002-06-21 Fernando Perez <fperez@colorado.edu>
4947 2002-06-21 Fernando Perez <fperez@colorado.edu>
4951
4948
4952 * IPython/numutils.py (exp_safe): new function, works around the
4949 * IPython/numutils.py (exp_safe): new function, works around the
4953 underflow problems in Numeric.
4950 underflow problems in Numeric.
4954 (log2): New fn. Safe log in base 2: returns exact integer answer
4951 (log2): New fn. Safe log in base 2: returns exact integer answer
4955 for exact integer powers of 2.
4952 for exact integer powers of 2.
4956
4953
4957 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4954 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4958 properly.
4955 properly.
4959
4956
4960 2002-06-20 Fernando Perez <fperez@colorado.edu>
4957 2002-06-20 Fernando Perez <fperez@colorado.edu>
4961
4958
4962 * IPython/genutils.py (timing): new function like
4959 * IPython/genutils.py (timing): new function like
4963 Mathematica's. Similar to time_test, but returns more info.
4960 Mathematica's. Similar to time_test, but returns more info.
4964
4961
4965 2002-06-18 Fernando Perez <fperez@colorado.edu>
4962 2002-06-18 Fernando Perez <fperez@colorado.edu>
4966
4963
4967 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4964 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4968 according to Mike Heeter's suggestions.
4965 according to Mike Heeter's suggestions.
4969
4966
4970 2002-06-16 Fernando Perez <fperez@colorado.edu>
4967 2002-06-16 Fernando Perez <fperez@colorado.edu>
4971
4968
4972 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4969 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4973 system. GnuplotMagic is gone as a user-directory option. New files
4970 system. GnuplotMagic is gone as a user-directory option. New files
4974 make it easier to use all the gnuplot stuff both from external
4971 make it easier to use all the gnuplot stuff both from external
4975 programs as well as from IPython. Had to rewrite part of
4972 programs as well as from IPython. Had to rewrite part of
4976 hardcopy() b/c of a strange bug: often the ps files simply don't
4973 hardcopy() b/c of a strange bug: often the ps files simply don't
4977 get created, and require a repeat of the command (often several
4974 get created, and require a repeat of the command (often several
4978 times).
4975 times).
4979
4976
4980 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4977 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4981 resolve output channel at call time, so that if sys.stderr has
4978 resolve output channel at call time, so that if sys.stderr has
4982 been redirected by user this gets honored.
4979 been redirected by user this gets honored.
4983
4980
4984 2002-06-13 Fernando Perez <fperez@colorado.edu>
4981 2002-06-13 Fernando Perez <fperez@colorado.edu>
4985
4982
4986 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4983 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4987 IPShell. Kept a copy with the old names to avoid breaking people's
4984 IPShell. Kept a copy with the old names to avoid breaking people's
4988 embedded code.
4985 embedded code.
4989
4986
4990 * IPython/ipython: simplified it to the bare minimum after
4987 * IPython/ipython: simplified it to the bare minimum after
4991 Holger's suggestions. Added info about how to use it in
4988 Holger's suggestions. Added info about how to use it in
4992 PYTHONSTARTUP.
4989 PYTHONSTARTUP.
4993
4990
4994 * IPython/Shell.py (IPythonShell): changed the options passing
4991 * IPython/Shell.py (IPythonShell): changed the options passing
4995 from a string with funky %s replacements to a straight list. Maybe
4992 from a string with funky %s replacements to a straight list. Maybe
4996 a bit more typing, but it follows sys.argv conventions, so there's
4993 a bit more typing, but it follows sys.argv conventions, so there's
4997 less special-casing to remember.
4994 less special-casing to remember.
4998
4995
4999 2002-06-12 Fernando Perez <fperez@colorado.edu>
4996 2002-06-12 Fernando Perez <fperez@colorado.edu>
5000
4997
5001 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4998 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
5002 command. Thanks to a suggestion by Mike Heeter.
4999 command. Thanks to a suggestion by Mike Heeter.
5003 (Magic.magic_pfile): added behavior to look at filenames if given
5000 (Magic.magic_pfile): added behavior to look at filenames if given
5004 arg is not a defined object.
5001 arg is not a defined object.
5005 (Magic.magic_save): New @save function to save code snippets. Also
5002 (Magic.magic_save): New @save function to save code snippets. Also
5006 a Mike Heeter idea.
5003 a Mike Heeter idea.
5007
5004
5008 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5005 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5009 plot() and replot(). Much more convenient now, especially for
5006 plot() and replot(). Much more convenient now, especially for
5010 interactive use.
5007 interactive use.
5011
5008
5012 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5009 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5013 filenames.
5010 filenames.
5014
5011
5015 2002-06-02 Fernando Perez <fperez@colorado.edu>
5012 2002-06-02 Fernando Perez <fperez@colorado.edu>
5016
5013
5017 * IPython/Struct.py (Struct.__init__): modified to admit
5014 * IPython/Struct.py (Struct.__init__): modified to admit
5018 initialization via another struct.
5015 initialization via another struct.
5019
5016
5020 * IPython/genutils.py (SystemExec.__init__): New stateful
5017 * IPython/genutils.py (SystemExec.__init__): New stateful
5021 interface to xsys and bq. Useful for writing system scripts.
5018 interface to xsys and bq. Useful for writing system scripts.
5022
5019
5023 2002-05-30 Fernando Perez <fperez@colorado.edu>
5020 2002-05-30 Fernando Perez <fperez@colorado.edu>
5024
5021
5025 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5022 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5026 documents. This will make the user download smaller (it's getting
5023 documents. This will make the user download smaller (it's getting
5027 too big).
5024 too big).
5028
5025
5029 2002-05-29 Fernando Perez <fperez@colorado.edu>
5026 2002-05-29 Fernando Perez <fperez@colorado.edu>
5030
5027
5031 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5028 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5032 fix problems with shelve and pickle. Seems to work, but I don't
5029 fix problems with shelve and pickle. Seems to work, but I don't
5033 know if corner cases break it. Thanks to Mike Heeter
5030 know if corner cases break it. Thanks to Mike Heeter
5034 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5031 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5035
5032
5036 2002-05-24 Fernando Perez <fperez@colorado.edu>
5033 2002-05-24 Fernando Perez <fperez@colorado.edu>
5037
5034
5038 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5035 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5039 macros having broken.
5036 macros having broken.
5040
5037
5041 2002-05-21 Fernando Perez <fperez@colorado.edu>
5038 2002-05-21 Fernando Perez <fperez@colorado.edu>
5042
5039
5043 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5040 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5044 introduced logging bug: all history before logging started was
5041 introduced logging bug: all history before logging started was
5045 being written one character per line! This came from the redesign
5042 being written one character per line! This came from the redesign
5046 of the input history as a special list which slices to strings,
5043 of the input history as a special list which slices to strings,
5047 not to lists.
5044 not to lists.
5048
5045
5049 2002-05-20 Fernando Perez <fperez@colorado.edu>
5046 2002-05-20 Fernando Perez <fperez@colorado.edu>
5050
5047
5051 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5048 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5052 be an attribute of all classes in this module. The design of these
5049 be an attribute of all classes in this module. The design of these
5053 classes needs some serious overhauling.
5050 classes needs some serious overhauling.
5054
5051
5055 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5052 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5056 which was ignoring '_' in option names.
5053 which was ignoring '_' in option names.
5057
5054
5058 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5055 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5059 'Verbose_novars' to 'Context' and made it the new default. It's a
5056 'Verbose_novars' to 'Context' and made it the new default. It's a
5060 bit more readable and also safer than verbose.
5057 bit more readable and also safer than verbose.
5061
5058
5062 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5059 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5063 triple-quoted strings.
5060 triple-quoted strings.
5064
5061
5065 * IPython/OInspect.py (__all__): new module exposing the object
5062 * IPython/OInspect.py (__all__): new module exposing the object
5066 introspection facilities. Now the corresponding magics are dummy
5063 introspection facilities. Now the corresponding magics are dummy
5067 wrappers around this. Having this module will make it much easier
5064 wrappers around this. Having this module will make it much easier
5068 to put these functions into our modified pdb.
5065 to put these functions into our modified pdb.
5069 This new object inspector system uses the new colorizing module,
5066 This new object inspector system uses the new colorizing module,
5070 so source code and other things are nicely syntax highlighted.
5067 so source code and other things are nicely syntax highlighted.
5071
5068
5072 2002-05-18 Fernando Perez <fperez@colorado.edu>
5069 2002-05-18 Fernando Perez <fperez@colorado.edu>
5073
5070
5074 * IPython/ColorANSI.py: Split the coloring tools into a separate
5071 * IPython/ColorANSI.py: Split the coloring tools into a separate
5075 module so I can use them in other code easier (they were part of
5072 module so I can use them in other code easier (they were part of
5076 ultraTB).
5073 ultraTB).
5077
5074
5078 2002-05-17 Fernando Perez <fperez@colorado.edu>
5075 2002-05-17 Fernando Perez <fperez@colorado.edu>
5079
5076
5080 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5077 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5081 fixed it to set the global 'g' also to the called instance, as
5078 fixed it to set the global 'g' also to the called instance, as
5082 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5079 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5083 user's 'g' variables).
5080 user's 'g' variables).
5084
5081
5085 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5082 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5086 global variables (aliases to _ih,_oh) so that users which expect
5083 global variables (aliases to _ih,_oh) so that users which expect
5087 In[5] or Out[7] to work aren't unpleasantly surprised.
5084 In[5] or Out[7] to work aren't unpleasantly surprised.
5088 (InputList.__getslice__): new class to allow executing slices of
5085 (InputList.__getslice__): new class to allow executing slices of
5089 input history directly. Very simple class, complements the use of
5086 input history directly. Very simple class, complements the use of
5090 macros.
5087 macros.
5091
5088
5092 2002-05-16 Fernando Perez <fperez@colorado.edu>
5089 2002-05-16 Fernando Perez <fperez@colorado.edu>
5093
5090
5094 * setup.py (docdirbase): make doc directory be just doc/IPython
5091 * setup.py (docdirbase): make doc directory be just doc/IPython
5095 without version numbers, it will reduce clutter for users.
5092 without version numbers, it will reduce clutter for users.
5096
5093
5097 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5094 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5098 execfile call to prevent possible memory leak. See for details:
5095 execfile call to prevent possible memory leak. See for details:
5099 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5096 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5100
5097
5101 2002-05-15 Fernando Perez <fperez@colorado.edu>
5098 2002-05-15 Fernando Perez <fperez@colorado.edu>
5102
5099
5103 * IPython/Magic.py (Magic.magic_psource): made the object
5100 * IPython/Magic.py (Magic.magic_psource): made the object
5104 introspection names be more standard: pdoc, pdef, pfile and
5101 introspection names be more standard: pdoc, pdef, pfile and
5105 psource. They all print/page their output, and it makes
5102 psource. They all print/page their output, and it makes
5106 remembering them easier. Kept old names for compatibility as
5103 remembering them easier. Kept old names for compatibility as
5107 aliases.
5104 aliases.
5108
5105
5109 2002-05-14 Fernando Perez <fperez@colorado.edu>
5106 2002-05-14 Fernando Perez <fperez@colorado.edu>
5110
5107
5111 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5108 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5112 what the mouse problem was. The trick is to use gnuplot with temp
5109 what the mouse problem was. The trick is to use gnuplot with temp
5113 files and NOT with pipes (for data communication), because having
5110 files and NOT with pipes (for data communication), because having
5114 both pipes and the mouse on is bad news.
5111 both pipes and the mouse on is bad news.
5115
5112
5116 2002-05-13 Fernando Perez <fperez@colorado.edu>
5113 2002-05-13 Fernando Perez <fperez@colorado.edu>
5117
5114
5118 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5115 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5119 bug. Information would be reported about builtins even when
5116 bug. Information would be reported about builtins even when
5120 user-defined functions overrode them.
5117 user-defined functions overrode them.
5121
5118
5122 2002-05-11 Fernando Perez <fperez@colorado.edu>
5119 2002-05-11 Fernando Perez <fperez@colorado.edu>
5123
5120
5124 * IPython/__init__.py (__all__): removed FlexCompleter from
5121 * IPython/__init__.py (__all__): removed FlexCompleter from
5125 __all__ so that things don't fail in platforms without readline.
5122 __all__ so that things don't fail in platforms without readline.
5126
5123
5127 2002-05-10 Fernando Perez <fperez@colorado.edu>
5124 2002-05-10 Fernando Perez <fperez@colorado.edu>
5128
5125
5129 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5126 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5130 it requires Numeric, effectively making Numeric a dependency for
5127 it requires Numeric, effectively making Numeric a dependency for
5131 IPython.
5128 IPython.
5132
5129
5133 * Released 0.2.13
5130 * Released 0.2.13
5134
5131
5135 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5132 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5136 profiler interface. Now all the major options from the profiler
5133 profiler interface. Now all the major options from the profiler
5137 module are directly supported in IPython, both for single
5134 module are directly supported in IPython, both for single
5138 expressions (@prun) and for full programs (@run -p).
5135 expressions (@prun) and for full programs (@run -p).
5139
5136
5140 2002-05-09 Fernando Perez <fperez@colorado.edu>
5137 2002-05-09 Fernando Perez <fperez@colorado.edu>
5141
5138
5142 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5139 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5143 magic properly formatted for screen.
5140 magic properly formatted for screen.
5144
5141
5145 * setup.py (make_shortcut): Changed things to put pdf version in
5142 * setup.py (make_shortcut): Changed things to put pdf version in
5146 doc/ instead of doc/manual (had to change lyxport a bit).
5143 doc/ instead of doc/manual (had to change lyxport a bit).
5147
5144
5148 * IPython/Magic.py (Profile.string_stats): made profile runs go
5145 * IPython/Magic.py (Profile.string_stats): made profile runs go
5149 through pager (they are long and a pager allows searching, saving,
5146 through pager (they are long and a pager allows searching, saving,
5150 etc.)
5147 etc.)
5151
5148
5152 2002-05-08 Fernando Perez <fperez@colorado.edu>
5149 2002-05-08 Fernando Perez <fperez@colorado.edu>
5153
5150
5154 * Released 0.2.12
5151 * Released 0.2.12
5155
5152
5156 2002-05-06 Fernando Perez <fperez@colorado.edu>
5153 2002-05-06 Fernando Perez <fperez@colorado.edu>
5157
5154
5158 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5155 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5159 introduced); 'hist n1 n2' was broken.
5156 introduced); 'hist n1 n2' was broken.
5160 (Magic.magic_pdb): added optional on/off arguments to @pdb
5157 (Magic.magic_pdb): added optional on/off arguments to @pdb
5161 (Magic.magic_run): added option -i to @run, which executes code in
5158 (Magic.magic_run): added option -i to @run, which executes code in
5162 the IPython namespace instead of a clean one. Also added @irun as
5159 the IPython namespace instead of a clean one. Also added @irun as
5163 an alias to @run -i.
5160 an alias to @run -i.
5164
5161
5165 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5162 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5166 fixed (it didn't really do anything, the namespaces were wrong).
5163 fixed (it didn't really do anything, the namespaces were wrong).
5167
5164
5168 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5165 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5169
5166
5170 * IPython/__init__.py (__all__): Fixed package namespace, now
5167 * IPython/__init__.py (__all__): Fixed package namespace, now
5171 'import IPython' does give access to IPython.<all> as
5168 'import IPython' does give access to IPython.<all> as
5172 expected. Also renamed __release__ to Release.
5169 expected. Also renamed __release__ to Release.
5173
5170
5174 * IPython/Debugger.py (__license__): created new Pdb class which
5171 * IPython/Debugger.py (__license__): created new Pdb class which
5175 functions like a drop-in for the normal pdb.Pdb but does NOT
5172 functions like a drop-in for the normal pdb.Pdb but does NOT
5176 import readline by default. This way it doesn't muck up IPython's
5173 import readline by default. This way it doesn't muck up IPython's
5177 readline handling, and now tab-completion finally works in the
5174 readline handling, and now tab-completion finally works in the
5178 debugger -- sort of. It completes things globally visible, but the
5175 debugger -- sort of. It completes things globally visible, but the
5179 completer doesn't track the stack as pdb walks it. That's a bit
5176 completer doesn't track the stack as pdb walks it. That's a bit
5180 tricky, and I'll have to implement it later.
5177 tricky, and I'll have to implement it later.
5181
5178
5182 2002-05-05 Fernando Perez <fperez@colorado.edu>
5179 2002-05-05 Fernando Perez <fperez@colorado.edu>
5183
5180
5184 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5181 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5185 magic docstrings when printed via ? (explicit \'s were being
5182 magic docstrings when printed via ? (explicit \'s were being
5186 printed).
5183 printed).
5187
5184
5188 * IPython/ipmaker.py (make_IPython): fixed namespace
5185 * IPython/ipmaker.py (make_IPython): fixed namespace
5189 identification bug. Now variables loaded via logs or command-line
5186 identification bug. Now variables loaded via logs or command-line
5190 files are recognized in the interactive namespace by @who.
5187 files are recognized in the interactive namespace by @who.
5191
5188
5192 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5189 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5193 log replay system stemming from the string form of Structs.
5190 log replay system stemming from the string form of Structs.
5194
5191
5195 * IPython/Magic.py (Macro.__init__): improved macros to properly
5192 * IPython/Magic.py (Macro.__init__): improved macros to properly
5196 handle magic commands in them.
5193 handle magic commands in them.
5197 (Magic.magic_logstart): usernames are now expanded so 'logstart
5194 (Magic.magic_logstart): usernames are now expanded so 'logstart
5198 ~/mylog' now works.
5195 ~/mylog' now works.
5199
5196
5200 * IPython/iplib.py (complete): fixed bug where paths starting with
5197 * IPython/iplib.py (complete): fixed bug where paths starting with
5201 '/' would be completed as magic names.
5198 '/' would be completed as magic names.
5202
5199
5203 2002-05-04 Fernando Perez <fperez@colorado.edu>
5200 2002-05-04 Fernando Perez <fperez@colorado.edu>
5204
5201
5205 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5202 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5206 allow running full programs under the profiler's control.
5203 allow running full programs under the profiler's control.
5207
5204
5208 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5205 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5209 mode to report exceptions verbosely but without formatting
5206 mode to report exceptions verbosely but without formatting
5210 variables. This addresses the issue of ipython 'freezing' (it's
5207 variables. This addresses the issue of ipython 'freezing' (it's
5211 not frozen, but caught in an expensive formatting loop) when huge
5208 not frozen, but caught in an expensive formatting loop) when huge
5212 variables are in the context of an exception.
5209 variables are in the context of an exception.
5213 (VerboseTB.text): Added '--->' markers at line where exception was
5210 (VerboseTB.text): Added '--->' markers at line where exception was
5214 triggered. Much clearer to read, especially in NoColor modes.
5211 triggered. Much clearer to read, especially in NoColor modes.
5215
5212
5216 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5213 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5217 implemented in reverse when changing to the new parse_options().
5214 implemented in reverse when changing to the new parse_options().
5218
5215
5219 2002-05-03 Fernando Perez <fperez@colorado.edu>
5216 2002-05-03 Fernando Perez <fperez@colorado.edu>
5220
5217
5221 * IPython/Magic.py (Magic.parse_options): new function so that
5218 * IPython/Magic.py (Magic.parse_options): new function so that
5222 magics can parse options easier.
5219 magics can parse options easier.
5223 (Magic.magic_prun): new function similar to profile.run(),
5220 (Magic.magic_prun): new function similar to profile.run(),
5224 suggested by Chris Hart.
5221 suggested by Chris Hart.
5225 (Magic.magic_cd): fixed behavior so that it only changes if
5222 (Magic.magic_cd): fixed behavior so that it only changes if
5226 directory actually is in history.
5223 directory actually is in history.
5227
5224
5228 * IPython/usage.py (__doc__): added information about potential
5225 * IPython/usage.py (__doc__): added information about potential
5229 slowness of Verbose exception mode when there are huge data
5226 slowness of Verbose exception mode when there are huge data
5230 structures to be formatted (thanks to Archie Paulson).
5227 structures to be formatted (thanks to Archie Paulson).
5231
5228
5232 * IPython/ipmaker.py (make_IPython): Changed default logging
5229 * IPython/ipmaker.py (make_IPython): Changed default logging
5233 (when simply called with -log) to use curr_dir/ipython.log in
5230 (when simply called with -log) to use curr_dir/ipython.log in
5234 rotate mode. Fixed crash which was occuring with -log before
5231 rotate mode. Fixed crash which was occuring with -log before
5235 (thanks to Jim Boyle).
5232 (thanks to Jim Boyle).
5236
5233
5237 2002-05-01 Fernando Perez <fperez@colorado.edu>
5234 2002-05-01 Fernando Perez <fperez@colorado.edu>
5238
5235
5239 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5236 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5240 was nasty -- though somewhat of a corner case).
5237 was nasty -- though somewhat of a corner case).
5241
5238
5242 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5239 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5243 text (was a bug).
5240 text (was a bug).
5244
5241
5245 2002-04-30 Fernando Perez <fperez@colorado.edu>
5242 2002-04-30 Fernando Perez <fperez@colorado.edu>
5246
5243
5247 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5244 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5248 a print after ^D or ^C from the user so that the In[] prompt
5245 a print after ^D or ^C from the user so that the In[] prompt
5249 doesn't over-run the gnuplot one.
5246 doesn't over-run the gnuplot one.
5250
5247
5251 2002-04-29 Fernando Perez <fperez@colorado.edu>
5248 2002-04-29 Fernando Perez <fperez@colorado.edu>
5252
5249
5253 * Released 0.2.10
5250 * Released 0.2.10
5254
5251
5255 * IPython/__release__.py (version): get date dynamically.
5252 * IPython/__release__.py (version): get date dynamically.
5256
5253
5257 * Misc. documentation updates thanks to Arnd's comments. Also ran
5254 * Misc. documentation updates thanks to Arnd's comments. Also ran
5258 a full spellcheck on the manual (hadn't been done in a while).
5255 a full spellcheck on the manual (hadn't been done in a while).
5259
5256
5260 2002-04-27 Fernando Perez <fperez@colorado.edu>
5257 2002-04-27 Fernando Perez <fperez@colorado.edu>
5261
5258
5262 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5259 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5263 starting a log in mid-session would reset the input history list.
5260 starting a log in mid-session would reset the input history list.
5264
5261
5265 2002-04-26 Fernando Perez <fperez@colorado.edu>
5262 2002-04-26 Fernando Perez <fperez@colorado.edu>
5266
5263
5267 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5264 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5268 all files were being included in an update. Now anything in
5265 all files were being included in an update. Now anything in
5269 UserConfig that matches [A-Za-z]*.py will go (this excludes
5266 UserConfig that matches [A-Za-z]*.py will go (this excludes
5270 __init__.py)
5267 __init__.py)
5271
5268
5272 2002-04-25 Fernando Perez <fperez@colorado.edu>
5269 2002-04-25 Fernando Perez <fperez@colorado.edu>
5273
5270
5274 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5271 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5275 to __builtins__ so that any form of embedded or imported code can
5272 to __builtins__ so that any form of embedded or imported code can
5276 test for being inside IPython.
5273 test for being inside IPython.
5277
5274
5278 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5275 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5279 changed to GnuplotMagic because it's now an importable module,
5276 changed to GnuplotMagic because it's now an importable module,
5280 this makes the name follow that of the standard Gnuplot module.
5277 this makes the name follow that of the standard Gnuplot module.
5281 GnuplotMagic can now be loaded at any time in mid-session.
5278 GnuplotMagic can now be loaded at any time in mid-session.
5282
5279
5283 2002-04-24 Fernando Perez <fperez@colorado.edu>
5280 2002-04-24 Fernando Perez <fperez@colorado.edu>
5284
5281
5285 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5282 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5286 the globals (IPython has its own namespace) and the
5283 the globals (IPython has its own namespace) and the
5287 PhysicalQuantity stuff is much better anyway.
5284 PhysicalQuantity stuff is much better anyway.
5288
5285
5289 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5286 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5290 embedding example to standard user directory for
5287 embedding example to standard user directory for
5291 distribution. Also put it in the manual.
5288 distribution. Also put it in the manual.
5292
5289
5293 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5290 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5294 instance as first argument (so it doesn't rely on some obscure
5291 instance as first argument (so it doesn't rely on some obscure
5295 hidden global).
5292 hidden global).
5296
5293
5297 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5294 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5298 delimiters. While it prevents ().TAB from working, it allows
5295 delimiters. While it prevents ().TAB from working, it allows
5299 completions in open (... expressions. This is by far a more common
5296 completions in open (... expressions. This is by far a more common
5300 case.
5297 case.
5301
5298
5302 2002-04-23 Fernando Perez <fperez@colorado.edu>
5299 2002-04-23 Fernando Perez <fperez@colorado.edu>
5303
5300
5304 * IPython/Extensions/InterpreterPasteInput.py: new
5301 * IPython/Extensions/InterpreterPasteInput.py: new
5305 syntax-processing module for pasting lines with >>> or ... at the
5302 syntax-processing module for pasting lines with >>> or ... at the
5306 start.
5303 start.
5307
5304
5308 * IPython/Extensions/PhysicalQ_Interactive.py
5305 * IPython/Extensions/PhysicalQ_Interactive.py
5309 (PhysicalQuantityInteractive.__int__): fixed to work with either
5306 (PhysicalQuantityInteractive.__int__): fixed to work with either
5310 Numeric or math.
5307 Numeric or math.
5311
5308
5312 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5309 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5313 provided profiles. Now we have:
5310 provided profiles. Now we have:
5314 -math -> math module as * and cmath with its own namespace.
5311 -math -> math module as * and cmath with its own namespace.
5315 -numeric -> Numeric as *, plus gnuplot & grace
5312 -numeric -> Numeric as *, plus gnuplot & grace
5316 -physics -> same as before
5313 -physics -> same as before
5317
5314
5318 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5315 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5319 user-defined magics wouldn't be found by @magic if they were
5316 user-defined magics wouldn't be found by @magic if they were
5320 defined as class methods. Also cleaned up the namespace search
5317 defined as class methods. Also cleaned up the namespace search
5321 logic and the string building (to use %s instead of many repeated
5318 logic and the string building (to use %s instead of many repeated
5322 string adds).
5319 string adds).
5323
5320
5324 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5321 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5325 of user-defined magics to operate with class methods (cleaner, in
5322 of user-defined magics to operate with class methods (cleaner, in
5326 line with the gnuplot code).
5323 line with the gnuplot code).
5327
5324
5328 2002-04-22 Fernando Perez <fperez@colorado.edu>
5325 2002-04-22 Fernando Perez <fperez@colorado.edu>
5329
5326
5330 * setup.py: updated dependency list so that manual is updated when
5327 * setup.py: updated dependency list so that manual is updated when
5331 all included files change.
5328 all included files change.
5332
5329
5333 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5330 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5334 the delimiter removal option (the fix is ugly right now).
5331 the delimiter removal option (the fix is ugly right now).
5335
5332
5336 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5333 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5337 all of the math profile (quicker loading, no conflict between
5334 all of the math profile (quicker loading, no conflict between
5338 g-9.8 and g-gnuplot).
5335 g-9.8 and g-gnuplot).
5339
5336
5340 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5337 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5341 name of post-mortem files to IPython_crash_report.txt.
5338 name of post-mortem files to IPython_crash_report.txt.
5342
5339
5343 * Cleanup/update of the docs. Added all the new readline info and
5340 * Cleanup/update of the docs. Added all the new readline info and
5344 formatted all lists as 'real lists'.
5341 formatted all lists as 'real lists'.
5345
5342
5346 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5343 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5347 tab-completion options, since the full readline parse_and_bind is
5344 tab-completion options, since the full readline parse_and_bind is
5348 now accessible.
5345 now accessible.
5349
5346
5350 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5347 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5351 handling of readline options. Now users can specify any string to
5348 handling of readline options. Now users can specify any string to
5352 be passed to parse_and_bind(), as well as the delimiters to be
5349 be passed to parse_and_bind(), as well as the delimiters to be
5353 removed.
5350 removed.
5354 (InteractiveShell.__init__): Added __name__ to the global
5351 (InteractiveShell.__init__): Added __name__ to the global
5355 namespace so that things like Itpl which rely on its existence
5352 namespace so that things like Itpl which rely on its existence
5356 don't crash.
5353 don't crash.
5357 (InteractiveShell._prefilter): Defined the default with a _ so
5354 (InteractiveShell._prefilter): Defined the default with a _ so
5358 that prefilter() is easier to override, while the default one
5355 that prefilter() is easier to override, while the default one
5359 remains available.
5356 remains available.
5360
5357
5361 2002-04-18 Fernando Perez <fperez@colorado.edu>
5358 2002-04-18 Fernando Perez <fperez@colorado.edu>
5362
5359
5363 * Added information about pdb in the docs.
5360 * Added information about pdb in the docs.
5364
5361
5365 2002-04-17 Fernando Perez <fperez@colorado.edu>
5362 2002-04-17 Fernando Perez <fperez@colorado.edu>
5366
5363
5367 * IPython/ipmaker.py (make_IPython): added rc_override option to
5364 * IPython/ipmaker.py (make_IPython): added rc_override option to
5368 allow passing config options at creation time which may override
5365 allow passing config options at creation time which may override
5369 anything set in the config files or command line. This is
5366 anything set in the config files or command line. This is
5370 particularly useful for configuring embedded instances.
5367 particularly useful for configuring embedded instances.
5371
5368
5372 2002-04-15 Fernando Perez <fperez@colorado.edu>
5369 2002-04-15 Fernando Perez <fperez@colorado.edu>
5373
5370
5374 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5371 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5375 crash embedded instances because of the input cache falling out of
5372 crash embedded instances because of the input cache falling out of
5376 sync with the output counter.
5373 sync with the output counter.
5377
5374
5378 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5375 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5379 mode which calls pdb after an uncaught exception in IPython itself.
5376 mode which calls pdb after an uncaught exception in IPython itself.
5380
5377
5381 2002-04-14 Fernando Perez <fperez@colorado.edu>
5378 2002-04-14 Fernando Perez <fperez@colorado.edu>
5382
5379
5383 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5380 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5384 readline, fix it back after each call.
5381 readline, fix it back after each call.
5385
5382
5386 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5383 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5387 method to force all access via __call__(), which guarantees that
5384 method to force all access via __call__(), which guarantees that
5388 traceback references are properly deleted.
5385 traceback references are properly deleted.
5389
5386
5390 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5387 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5391 improve printing when pprint is in use.
5388 improve printing when pprint is in use.
5392
5389
5393 2002-04-13 Fernando Perez <fperez@colorado.edu>
5390 2002-04-13 Fernando Perez <fperez@colorado.edu>
5394
5391
5395 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5392 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5396 exceptions aren't caught anymore. If the user triggers one, he
5393 exceptions aren't caught anymore. If the user triggers one, he
5397 should know why he's doing it and it should go all the way up,
5394 should know why he's doing it and it should go all the way up,
5398 just like any other exception. So now @abort will fully kill the
5395 just like any other exception. So now @abort will fully kill the
5399 embedded interpreter and the embedding code (unless that happens
5396 embedded interpreter and the embedding code (unless that happens
5400 to catch SystemExit).
5397 to catch SystemExit).
5401
5398
5402 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5399 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5403 and a debugger() method to invoke the interactive pdb debugger
5400 and a debugger() method to invoke the interactive pdb debugger
5404 after printing exception information. Also added the corresponding
5401 after printing exception information. Also added the corresponding
5405 -pdb option and @pdb magic to control this feature, and updated
5402 -pdb option and @pdb magic to control this feature, and updated
5406 the docs. After a suggestion from Christopher Hart
5403 the docs. After a suggestion from Christopher Hart
5407 (hart-AT-caltech.edu).
5404 (hart-AT-caltech.edu).
5408
5405
5409 2002-04-12 Fernando Perez <fperez@colorado.edu>
5406 2002-04-12 Fernando Perez <fperez@colorado.edu>
5410
5407
5411 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5408 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5412 the exception handlers defined by the user (not the CrashHandler)
5409 the exception handlers defined by the user (not the CrashHandler)
5413 so that user exceptions don't trigger an ipython bug report.
5410 so that user exceptions don't trigger an ipython bug report.
5414
5411
5415 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5412 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5416 configurable (it should have always been so).
5413 configurable (it should have always been so).
5417
5414
5418 2002-03-26 Fernando Perez <fperez@colorado.edu>
5415 2002-03-26 Fernando Perez <fperez@colorado.edu>
5419
5416
5420 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5417 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5421 and there to fix embedding namespace issues. This should all be
5418 and there to fix embedding namespace issues. This should all be
5422 done in a more elegant way.
5419 done in a more elegant way.
5423
5420
5424 2002-03-25 Fernando Perez <fperez@colorado.edu>
5421 2002-03-25 Fernando Perez <fperez@colorado.edu>
5425
5422
5426 * IPython/genutils.py (get_home_dir): Try to make it work under
5423 * IPython/genutils.py (get_home_dir): Try to make it work under
5427 win9x also.
5424 win9x also.
5428
5425
5429 2002-03-20 Fernando Perez <fperez@colorado.edu>
5426 2002-03-20 Fernando Perez <fperez@colorado.edu>
5430
5427
5431 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5428 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5432 sys.displayhook untouched upon __init__.
5429 sys.displayhook untouched upon __init__.
5433
5430
5434 2002-03-19 Fernando Perez <fperez@colorado.edu>
5431 2002-03-19 Fernando Perez <fperez@colorado.edu>
5435
5432
5436 * Released 0.2.9 (for embedding bug, basically).
5433 * Released 0.2.9 (for embedding bug, basically).
5437
5434
5438 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5435 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5439 exceptions so that enclosing shell's state can be restored.
5436 exceptions so that enclosing shell's state can be restored.
5440
5437
5441 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5438 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5442 naming conventions in the .ipython/ dir.
5439 naming conventions in the .ipython/ dir.
5443
5440
5444 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5441 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5445 from delimiters list so filenames with - in them get expanded.
5442 from delimiters list so filenames with - in them get expanded.
5446
5443
5447 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5444 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5448 sys.displayhook not being properly restored after an embedded call.
5445 sys.displayhook not being properly restored after an embedded call.
5449
5446
5450 2002-03-18 Fernando Perez <fperez@colorado.edu>
5447 2002-03-18 Fernando Perez <fperez@colorado.edu>
5451
5448
5452 * Released 0.2.8
5449 * Released 0.2.8
5453
5450
5454 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5451 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5455 some files weren't being included in a -upgrade.
5452 some files weren't being included in a -upgrade.
5456 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5453 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5457 on' so that the first tab completes.
5454 on' so that the first tab completes.
5458 (InteractiveShell.handle_magic): fixed bug with spaces around
5455 (InteractiveShell.handle_magic): fixed bug with spaces around
5459 quotes breaking many magic commands.
5456 quotes breaking many magic commands.
5460
5457
5461 * setup.py: added note about ignoring the syntax error messages at
5458 * setup.py: added note about ignoring the syntax error messages at
5462 installation.
5459 installation.
5463
5460
5464 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5461 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5465 streamlining the gnuplot interface, now there's only one magic @gp.
5462 streamlining the gnuplot interface, now there's only one magic @gp.
5466
5463
5467 2002-03-17 Fernando Perez <fperez@colorado.edu>
5464 2002-03-17 Fernando Perez <fperez@colorado.edu>
5468
5465
5469 * IPython/UserConfig/magic_gnuplot.py: new name for the
5466 * IPython/UserConfig/magic_gnuplot.py: new name for the
5470 example-magic_pm.py file. Much enhanced system, now with a shell
5467 example-magic_pm.py file. Much enhanced system, now with a shell
5471 for communicating directly with gnuplot, one command at a time.
5468 for communicating directly with gnuplot, one command at a time.
5472
5469
5473 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5470 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5474 setting __name__=='__main__'.
5471 setting __name__=='__main__'.
5475
5472
5476 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5473 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5477 mini-shell for accessing gnuplot from inside ipython. Should
5474 mini-shell for accessing gnuplot from inside ipython. Should
5478 extend it later for grace access too. Inspired by Arnd's
5475 extend it later for grace access too. Inspired by Arnd's
5479 suggestion.
5476 suggestion.
5480
5477
5481 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5478 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5482 calling magic functions with () in their arguments. Thanks to Arnd
5479 calling magic functions with () in their arguments. Thanks to Arnd
5483 Baecker for pointing this to me.
5480 Baecker for pointing this to me.
5484
5481
5485 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5482 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5486 infinitely for integer or complex arrays (only worked with floats).
5483 infinitely for integer or complex arrays (only worked with floats).
5487
5484
5488 2002-03-16 Fernando Perez <fperez@colorado.edu>
5485 2002-03-16 Fernando Perez <fperez@colorado.edu>
5489
5486
5490 * setup.py: Merged setup and setup_windows into a single script
5487 * setup.py: Merged setup and setup_windows into a single script
5491 which properly handles things for windows users.
5488 which properly handles things for windows users.
5492
5489
5493 2002-03-15 Fernando Perez <fperez@colorado.edu>
5490 2002-03-15 Fernando Perez <fperez@colorado.edu>
5494
5491
5495 * Big change to the manual: now the magics are all automatically
5492 * Big change to the manual: now the magics are all automatically
5496 documented. This information is generated from their docstrings
5493 documented. This information is generated from their docstrings
5497 and put in a latex file included by the manual lyx file. This way
5494 and put in a latex file included by the manual lyx file. This way
5498 we get always up to date information for the magics. The manual
5495 we get always up to date information for the magics. The manual
5499 now also has proper version information, also auto-synced.
5496 now also has proper version information, also auto-synced.
5500
5497
5501 For this to work, an undocumented --magic_docstrings option was added.
5498 For this to work, an undocumented --magic_docstrings option was added.
5502
5499
5503 2002-03-13 Fernando Perez <fperez@colorado.edu>
5500 2002-03-13 Fernando Perez <fperez@colorado.edu>
5504
5501
5505 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5502 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5506 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5503 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5507
5504
5508 2002-03-12 Fernando Perez <fperez@colorado.edu>
5505 2002-03-12 Fernando Perez <fperez@colorado.edu>
5509
5506
5510 * IPython/ultraTB.py (TermColors): changed color escapes again to
5507 * IPython/ultraTB.py (TermColors): changed color escapes again to
5511 fix the (old, reintroduced) line-wrapping bug. Basically, if
5508 fix the (old, reintroduced) line-wrapping bug. Basically, if
5512 \001..\002 aren't given in the color escapes, lines get wrapped
5509 \001..\002 aren't given in the color escapes, lines get wrapped
5513 weirdly. But giving those screws up old xterms and emacs terms. So
5510 weirdly. But giving those screws up old xterms and emacs terms. So
5514 I added some logic for emacs terms to be ok, but I can't identify old
5511 I added some logic for emacs terms to be ok, but I can't identify old
5515 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5512 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5516
5513
5517 2002-03-10 Fernando Perez <fperez@colorado.edu>
5514 2002-03-10 Fernando Perez <fperez@colorado.edu>
5518
5515
5519 * IPython/usage.py (__doc__): Various documentation cleanups and
5516 * IPython/usage.py (__doc__): Various documentation cleanups and
5520 updates, both in usage docstrings and in the manual.
5517 updates, both in usage docstrings and in the manual.
5521
5518
5522 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5519 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5523 handling of caching. Set minimum acceptabe value for having a
5520 handling of caching. Set minimum acceptabe value for having a
5524 cache at 20 values.
5521 cache at 20 values.
5525
5522
5526 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5523 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5527 install_first_time function to a method, renamed it and added an
5524 install_first_time function to a method, renamed it and added an
5528 'upgrade' mode. Now people can update their config directory with
5525 'upgrade' mode. Now people can update their config directory with
5529 a simple command line switch (-upgrade, also new).
5526 a simple command line switch (-upgrade, also new).
5530
5527
5531 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5528 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5532 @file (convenient for automagic users under Python >= 2.2).
5529 @file (convenient for automagic users under Python >= 2.2).
5533 Removed @files (it seemed more like a plural than an abbrev. of
5530 Removed @files (it seemed more like a plural than an abbrev. of
5534 'file show').
5531 'file show').
5535
5532
5536 * IPython/iplib.py (install_first_time): Fixed crash if there were
5533 * IPython/iplib.py (install_first_time): Fixed crash if there were
5537 backup files ('~') in .ipython/ install directory.
5534 backup files ('~') in .ipython/ install directory.
5538
5535
5539 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5536 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5540 system. Things look fine, but these changes are fairly
5537 system. Things look fine, but these changes are fairly
5541 intrusive. Test them for a few days.
5538 intrusive. Test them for a few days.
5542
5539
5543 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5540 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5544 the prompts system. Now all in/out prompt strings are user
5541 the prompts system. Now all in/out prompt strings are user
5545 controllable. This is particularly useful for embedding, as one
5542 controllable. This is particularly useful for embedding, as one
5546 can tag embedded instances with particular prompts.
5543 can tag embedded instances with particular prompts.
5547
5544
5548 Also removed global use of sys.ps1/2, which now allows nested
5545 Also removed global use of sys.ps1/2, which now allows nested
5549 embeddings without any problems. Added command-line options for
5546 embeddings without any problems. Added command-line options for
5550 the prompt strings.
5547 the prompt strings.
5551
5548
5552 2002-03-08 Fernando Perez <fperez@colorado.edu>
5549 2002-03-08 Fernando Perez <fperez@colorado.edu>
5553
5550
5554 * IPython/UserConfig/example-embed-short.py (ipshell): added
5551 * IPython/UserConfig/example-embed-short.py (ipshell): added
5555 example file with the bare minimum code for embedding.
5552 example file with the bare minimum code for embedding.
5556
5553
5557 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5554 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5558 functionality for the embeddable shell to be activated/deactivated
5555 functionality for the embeddable shell to be activated/deactivated
5559 either globally or at each call.
5556 either globally or at each call.
5560
5557
5561 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5558 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5562 rewriting the prompt with '--->' for auto-inputs with proper
5559 rewriting the prompt with '--->' for auto-inputs with proper
5563 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5560 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5564 this is handled by the prompts class itself, as it should.
5561 this is handled by the prompts class itself, as it should.
5565
5562
5566 2002-03-05 Fernando Perez <fperez@colorado.edu>
5563 2002-03-05 Fernando Perez <fperez@colorado.edu>
5567
5564
5568 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5565 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5569 @logstart to avoid name clashes with the math log function.
5566 @logstart to avoid name clashes with the math log function.
5570
5567
5571 * Big updates to X/Emacs section of the manual.
5568 * Big updates to X/Emacs section of the manual.
5572
5569
5573 * Removed ipython_emacs. Milan explained to me how to pass
5570 * Removed ipython_emacs. Milan explained to me how to pass
5574 arguments to ipython through Emacs. Some day I'm going to end up
5571 arguments to ipython through Emacs. Some day I'm going to end up
5575 learning some lisp...
5572 learning some lisp...
5576
5573
5577 2002-03-04 Fernando Perez <fperez@colorado.edu>
5574 2002-03-04 Fernando Perez <fperez@colorado.edu>
5578
5575
5579 * IPython/ipython_emacs: Created script to be used as the
5576 * IPython/ipython_emacs: Created script to be used as the
5580 py-python-command Emacs variable so we can pass IPython
5577 py-python-command Emacs variable so we can pass IPython
5581 parameters. I can't figure out how to tell Emacs directly to pass
5578 parameters. I can't figure out how to tell Emacs directly to pass
5582 parameters to IPython, so a dummy shell script will do it.
5579 parameters to IPython, so a dummy shell script will do it.
5583
5580
5584 Other enhancements made for things to work better under Emacs'
5581 Other enhancements made for things to work better under Emacs'
5585 various types of terminals. Many thanks to Milan Zamazal
5582 various types of terminals. Many thanks to Milan Zamazal
5586 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5583 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5587
5584
5588 2002-03-01 Fernando Perez <fperez@colorado.edu>
5585 2002-03-01 Fernando Perez <fperez@colorado.edu>
5589
5586
5590 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5587 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5591 that loading of readline is now optional. This gives better
5588 that loading of readline is now optional. This gives better
5592 control to emacs users.
5589 control to emacs users.
5593
5590
5594 * IPython/ultraTB.py (__date__): Modified color escape sequences
5591 * IPython/ultraTB.py (__date__): Modified color escape sequences
5595 and now things work fine under xterm and in Emacs' term buffers
5592 and now things work fine under xterm and in Emacs' term buffers
5596 (though not shell ones). Well, in emacs you get colors, but all
5593 (though not shell ones). Well, in emacs you get colors, but all
5597 seem to be 'light' colors (no difference between dark and light
5594 seem to be 'light' colors (no difference between dark and light
5598 ones). But the garbage chars are gone, and also in xterms. It
5595 ones). But the garbage chars are gone, and also in xterms. It
5599 seems that now I'm using 'cleaner' ansi sequences.
5596 seems that now I'm using 'cleaner' ansi sequences.
5600
5597
5601 2002-02-21 Fernando Perez <fperez@colorado.edu>
5598 2002-02-21 Fernando Perez <fperez@colorado.edu>
5602
5599
5603 * Released 0.2.7 (mainly to publish the scoping fix).
5600 * Released 0.2.7 (mainly to publish the scoping fix).
5604
5601
5605 * IPython/Logger.py (Logger.logstate): added. A corresponding
5602 * IPython/Logger.py (Logger.logstate): added. A corresponding
5606 @logstate magic was created.
5603 @logstate magic was created.
5607
5604
5608 * IPython/Magic.py: fixed nested scoping problem under Python
5605 * IPython/Magic.py: fixed nested scoping problem under Python
5609 2.1.x (automagic wasn't working).
5606 2.1.x (automagic wasn't working).
5610
5607
5611 2002-02-20 Fernando Perez <fperez@colorado.edu>
5608 2002-02-20 Fernando Perez <fperez@colorado.edu>
5612
5609
5613 * Released 0.2.6.
5610 * Released 0.2.6.
5614
5611
5615 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5612 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5616 option so that logs can come out without any headers at all.
5613 option so that logs can come out without any headers at all.
5617
5614
5618 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5615 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5619 SciPy.
5616 SciPy.
5620
5617
5621 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5618 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5622 that embedded IPython calls don't require vars() to be explicitly
5619 that embedded IPython calls don't require vars() to be explicitly
5623 passed. Now they are extracted from the caller's frame (code
5620 passed. Now they are extracted from the caller's frame (code
5624 snatched from Eric Jones' weave). Added better documentation to
5621 snatched from Eric Jones' weave). Added better documentation to
5625 the section on embedding and the example file.
5622 the section on embedding and the example file.
5626
5623
5627 * IPython/genutils.py (page): Changed so that under emacs, it just
5624 * IPython/genutils.py (page): Changed so that under emacs, it just
5628 prints the string. You can then page up and down in the emacs
5625 prints the string. You can then page up and down in the emacs
5629 buffer itself. This is how the builtin help() works.
5626 buffer itself. This is how the builtin help() works.
5630
5627
5631 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5628 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5632 macro scoping: macros need to be executed in the user's namespace
5629 macro scoping: macros need to be executed in the user's namespace
5633 to work as if they had been typed by the user.
5630 to work as if they had been typed by the user.
5634
5631
5635 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5632 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5636 execute automatically (no need to type 'exec...'). They then
5633 execute automatically (no need to type 'exec...'). They then
5637 behave like 'true macros'. The printing system was also modified
5634 behave like 'true macros'. The printing system was also modified
5638 for this to work.
5635 for this to work.
5639
5636
5640 2002-02-19 Fernando Perez <fperez@colorado.edu>
5637 2002-02-19 Fernando Perez <fperez@colorado.edu>
5641
5638
5642 * IPython/genutils.py (page_file): new function for paging files
5639 * IPython/genutils.py (page_file): new function for paging files
5643 in an OS-independent way. Also necessary for file viewing to work
5640 in an OS-independent way. Also necessary for file viewing to work
5644 well inside Emacs buffers.
5641 well inside Emacs buffers.
5645 (page): Added checks for being in an emacs buffer.
5642 (page): Added checks for being in an emacs buffer.
5646 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5643 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5647 same bug in iplib.
5644 same bug in iplib.
5648
5645
5649 2002-02-18 Fernando Perez <fperez@colorado.edu>
5646 2002-02-18 Fernando Perez <fperez@colorado.edu>
5650
5647
5651 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5648 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5652 of readline so that IPython can work inside an Emacs buffer.
5649 of readline so that IPython can work inside an Emacs buffer.
5653
5650
5654 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5651 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5655 method signatures (they weren't really bugs, but it looks cleaner
5652 method signatures (they weren't really bugs, but it looks cleaner
5656 and keeps PyChecker happy).
5653 and keeps PyChecker happy).
5657
5654
5658 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5655 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5659 for implementing various user-defined hooks. Currently only
5656 for implementing various user-defined hooks. Currently only
5660 display is done.
5657 display is done.
5661
5658
5662 * IPython/Prompts.py (CachedOutput._display): changed display
5659 * IPython/Prompts.py (CachedOutput._display): changed display
5663 functions so that they can be dynamically changed by users easily.
5660 functions so that they can be dynamically changed by users easily.
5664
5661
5665 * IPython/Extensions/numeric_formats.py (num_display): added an
5662 * IPython/Extensions/numeric_formats.py (num_display): added an
5666 extension for printing NumPy arrays in flexible manners. It
5663 extension for printing NumPy arrays in flexible manners. It
5667 doesn't do anything yet, but all the structure is in
5664 doesn't do anything yet, but all the structure is in
5668 place. Ultimately the plan is to implement output format control
5665 place. Ultimately the plan is to implement output format control
5669 like in Octave.
5666 like in Octave.
5670
5667
5671 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5668 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5672 methods are found at run-time by all the automatic machinery.
5669 methods are found at run-time by all the automatic machinery.
5673
5670
5674 2002-02-17 Fernando Perez <fperez@colorado.edu>
5671 2002-02-17 Fernando Perez <fperez@colorado.edu>
5675
5672
5676 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5673 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5677 whole file a little.
5674 whole file a little.
5678
5675
5679 * ToDo: closed this document. Now there's a new_design.lyx
5676 * ToDo: closed this document. Now there's a new_design.lyx
5680 document for all new ideas. Added making a pdf of it for the
5677 document for all new ideas. Added making a pdf of it for the
5681 end-user distro.
5678 end-user distro.
5682
5679
5683 * IPython/Logger.py (Logger.switch_log): Created this to replace
5680 * IPython/Logger.py (Logger.switch_log): Created this to replace
5684 logon() and logoff(). It also fixes a nasty crash reported by
5681 logon() and logoff(). It also fixes a nasty crash reported by
5685 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5682 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5686
5683
5687 * IPython/iplib.py (complete): got auto-completion to work with
5684 * IPython/iplib.py (complete): got auto-completion to work with
5688 automagic (I had wanted this for a long time).
5685 automagic (I had wanted this for a long time).
5689
5686
5690 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5687 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5691 to @file, since file() is now a builtin and clashes with automagic
5688 to @file, since file() is now a builtin and clashes with automagic
5692 for @file.
5689 for @file.
5693
5690
5694 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5691 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5695 of this was previously in iplib, which had grown to more than 2000
5692 of this was previously in iplib, which had grown to more than 2000
5696 lines, way too long. No new functionality, but it makes managing
5693 lines, way too long. No new functionality, but it makes managing
5697 the code a bit easier.
5694 the code a bit easier.
5698
5695
5699 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5696 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5700 information to crash reports.
5697 information to crash reports.
5701
5698
5702 2002-02-12 Fernando Perez <fperez@colorado.edu>
5699 2002-02-12 Fernando Perez <fperez@colorado.edu>
5703
5700
5704 * Released 0.2.5.
5701 * Released 0.2.5.
5705
5702
5706 2002-02-11 Fernando Perez <fperez@colorado.edu>
5703 2002-02-11 Fernando Perez <fperez@colorado.edu>
5707
5704
5708 * Wrote a relatively complete Windows installer. It puts
5705 * Wrote a relatively complete Windows installer. It puts
5709 everything in place, creates Start Menu entries and fixes the
5706 everything in place, creates Start Menu entries and fixes the
5710 color issues. Nothing fancy, but it works.
5707 color issues. Nothing fancy, but it works.
5711
5708
5712 2002-02-10 Fernando Perez <fperez@colorado.edu>
5709 2002-02-10 Fernando Perez <fperez@colorado.edu>
5713
5710
5714 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5711 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5715 os.path.expanduser() call so that we can type @run ~/myfile.py and
5712 os.path.expanduser() call so that we can type @run ~/myfile.py and
5716 have thigs work as expected.
5713 have thigs work as expected.
5717
5714
5718 * IPython/genutils.py (page): fixed exception handling so things
5715 * IPython/genutils.py (page): fixed exception handling so things
5719 work both in Unix and Windows correctly. Quitting a pager triggers
5716 work both in Unix and Windows correctly. Quitting a pager triggers
5720 an IOError/broken pipe in Unix, and in windows not finding a pager
5717 an IOError/broken pipe in Unix, and in windows not finding a pager
5721 is also an IOError, so I had to actually look at the return value
5718 is also an IOError, so I had to actually look at the return value
5722 of the exception, not just the exception itself. Should be ok now.
5719 of the exception, not just the exception itself. Should be ok now.
5723
5720
5724 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5721 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5725 modified to allow case-insensitive color scheme changes.
5722 modified to allow case-insensitive color scheme changes.
5726
5723
5727 2002-02-09 Fernando Perez <fperez@colorado.edu>
5724 2002-02-09 Fernando Perez <fperez@colorado.edu>
5728
5725
5729 * IPython/genutils.py (native_line_ends): new function to leave
5726 * IPython/genutils.py (native_line_ends): new function to leave
5730 user config files with os-native line-endings.
5727 user config files with os-native line-endings.
5731
5728
5732 * README and manual updates.
5729 * README and manual updates.
5733
5730
5734 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5731 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5735 instead of StringType to catch Unicode strings.
5732 instead of StringType to catch Unicode strings.
5736
5733
5737 * IPython/genutils.py (filefind): fixed bug for paths with
5734 * IPython/genutils.py (filefind): fixed bug for paths with
5738 embedded spaces (very common in Windows).
5735 embedded spaces (very common in Windows).
5739
5736
5740 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5737 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5741 files under Windows, so that they get automatically associated
5738 files under Windows, so that they get automatically associated
5742 with a text editor. Windows makes it a pain to handle
5739 with a text editor. Windows makes it a pain to handle
5743 extension-less files.
5740 extension-less files.
5744
5741
5745 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5742 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5746 warning about readline only occur for Posix. In Windows there's no
5743 warning about readline only occur for Posix. In Windows there's no
5747 way to get readline, so why bother with the warning.
5744 way to get readline, so why bother with the warning.
5748
5745
5749 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5746 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5750 for __str__ instead of dir(self), since dir() changed in 2.2.
5747 for __str__ instead of dir(self), since dir() changed in 2.2.
5751
5748
5752 * Ported to Windows! Tested on XP, I suspect it should work fine
5749 * Ported to Windows! Tested on XP, I suspect it should work fine
5753 on NT/2000, but I don't think it will work on 98 et al. That
5750 on NT/2000, but I don't think it will work on 98 et al. That
5754 series of Windows is such a piece of junk anyway that I won't try
5751 series of Windows is such a piece of junk anyway that I won't try
5755 porting it there. The XP port was straightforward, showed a few
5752 porting it there. The XP port was straightforward, showed a few
5756 bugs here and there (fixed all), in particular some string
5753 bugs here and there (fixed all), in particular some string
5757 handling stuff which required considering Unicode strings (which
5754 handling stuff which required considering Unicode strings (which
5758 Windows uses). This is good, but hasn't been too tested :) No
5755 Windows uses). This is good, but hasn't been too tested :) No
5759 fancy installer yet, I'll put a note in the manual so people at
5756 fancy installer yet, I'll put a note in the manual so people at
5760 least make manually a shortcut.
5757 least make manually a shortcut.
5761
5758
5762 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5759 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5763 into a single one, "colors". This now controls both prompt and
5760 into a single one, "colors". This now controls both prompt and
5764 exception color schemes, and can be changed both at startup
5761 exception color schemes, and can be changed both at startup
5765 (either via command-line switches or via ipythonrc files) and at
5762 (either via command-line switches or via ipythonrc files) and at
5766 runtime, with @colors.
5763 runtime, with @colors.
5767 (Magic.magic_run): renamed @prun to @run and removed the old
5764 (Magic.magic_run): renamed @prun to @run and removed the old
5768 @run. The two were too similar to warrant keeping both.
5765 @run. The two were too similar to warrant keeping both.
5769
5766
5770 2002-02-03 Fernando Perez <fperez@colorado.edu>
5767 2002-02-03 Fernando Perez <fperez@colorado.edu>
5771
5768
5772 * IPython/iplib.py (install_first_time): Added comment on how to
5769 * IPython/iplib.py (install_first_time): Added comment on how to
5773 configure the color options for first-time users. Put a <return>
5770 configure the color options for first-time users. Put a <return>
5774 request at the end so that small-terminal users get a chance to
5771 request at the end so that small-terminal users get a chance to
5775 read the startup info.
5772 read the startup info.
5776
5773
5777 2002-01-23 Fernando Perez <fperez@colorado.edu>
5774 2002-01-23 Fernando Perez <fperez@colorado.edu>
5778
5775
5779 * IPython/iplib.py (CachedOutput.update): Changed output memory
5776 * IPython/iplib.py (CachedOutput.update): Changed output memory
5780 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5777 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5781 input history we still use _i. Did this b/c these variable are
5778 input history we still use _i. Did this b/c these variable are
5782 very commonly used in interactive work, so the less we need to
5779 very commonly used in interactive work, so the less we need to
5783 type the better off we are.
5780 type the better off we are.
5784 (Magic.magic_prun): updated @prun to better handle the namespaces
5781 (Magic.magic_prun): updated @prun to better handle the namespaces
5785 the file will run in, including a fix for __name__ not being set
5782 the file will run in, including a fix for __name__ not being set
5786 before.
5783 before.
5787
5784
5788 2002-01-20 Fernando Perez <fperez@colorado.edu>
5785 2002-01-20 Fernando Perez <fperez@colorado.edu>
5789
5786
5790 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5787 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5791 extra garbage for Python 2.2. Need to look more carefully into
5788 extra garbage for Python 2.2. Need to look more carefully into
5792 this later.
5789 this later.
5793
5790
5794 2002-01-19 Fernando Perez <fperez@colorado.edu>
5791 2002-01-19 Fernando Perez <fperez@colorado.edu>
5795
5792
5796 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5793 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5797 display SyntaxError exceptions properly formatted when they occur
5794 display SyntaxError exceptions properly formatted when they occur
5798 (they can be triggered by imported code).
5795 (they can be triggered by imported code).
5799
5796
5800 2002-01-18 Fernando Perez <fperez@colorado.edu>
5797 2002-01-18 Fernando Perez <fperez@colorado.edu>
5801
5798
5802 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5799 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5803 SyntaxError exceptions are reported nicely formatted, instead of
5800 SyntaxError exceptions are reported nicely formatted, instead of
5804 spitting out only offset information as before.
5801 spitting out only offset information as before.
5805 (Magic.magic_prun): Added the @prun function for executing
5802 (Magic.magic_prun): Added the @prun function for executing
5806 programs with command line args inside IPython.
5803 programs with command line args inside IPython.
5807
5804
5808 2002-01-16 Fernando Perez <fperez@colorado.edu>
5805 2002-01-16 Fernando Perez <fperez@colorado.edu>
5809
5806
5810 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5807 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5811 to *not* include the last item given in a range. This brings their
5808 to *not* include the last item given in a range. This brings their
5812 behavior in line with Python's slicing:
5809 behavior in line with Python's slicing:
5813 a[n1:n2] -> a[n1]...a[n2-1]
5810 a[n1:n2] -> a[n1]...a[n2-1]
5814 It may be a bit less convenient, but I prefer to stick to Python's
5811 It may be a bit less convenient, but I prefer to stick to Python's
5815 conventions *everywhere*, so users never have to wonder.
5812 conventions *everywhere*, so users never have to wonder.
5816 (Magic.magic_macro): Added @macro function to ease the creation of
5813 (Magic.magic_macro): Added @macro function to ease the creation of
5817 macros.
5814 macros.
5818
5815
5819 2002-01-05 Fernando Perez <fperez@colorado.edu>
5816 2002-01-05 Fernando Perez <fperez@colorado.edu>
5820
5817
5821 * Released 0.2.4.
5818 * Released 0.2.4.
5822
5819
5823 * IPython/iplib.py (Magic.magic_pdef):
5820 * IPython/iplib.py (Magic.magic_pdef):
5824 (InteractiveShell.safe_execfile): report magic lines and error
5821 (InteractiveShell.safe_execfile): report magic lines and error
5825 lines without line numbers so one can easily copy/paste them for
5822 lines without line numbers so one can easily copy/paste them for
5826 re-execution.
5823 re-execution.
5827
5824
5828 * Updated manual with recent changes.
5825 * Updated manual with recent changes.
5829
5826
5830 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5827 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5831 docstring printing when class? is called. Very handy for knowing
5828 docstring printing when class? is called. Very handy for knowing
5832 how to create class instances (as long as __init__ is well
5829 how to create class instances (as long as __init__ is well
5833 documented, of course :)
5830 documented, of course :)
5834 (Magic.magic_doc): print both class and constructor docstrings.
5831 (Magic.magic_doc): print both class and constructor docstrings.
5835 (Magic.magic_pdef): give constructor info if passed a class and
5832 (Magic.magic_pdef): give constructor info if passed a class and
5836 __call__ info for callable object instances.
5833 __call__ info for callable object instances.
5837
5834
5838 2002-01-04 Fernando Perez <fperez@colorado.edu>
5835 2002-01-04 Fernando Perez <fperez@colorado.edu>
5839
5836
5840 * Made deep_reload() off by default. It doesn't always work
5837 * Made deep_reload() off by default. It doesn't always work
5841 exactly as intended, so it's probably safer to have it off. It's
5838 exactly as intended, so it's probably safer to have it off. It's
5842 still available as dreload() anyway, so nothing is lost.
5839 still available as dreload() anyway, so nothing is lost.
5843
5840
5844 2002-01-02 Fernando Perez <fperez@colorado.edu>
5841 2002-01-02 Fernando Perez <fperez@colorado.edu>
5845
5842
5846 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5843 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5847 so I wanted an updated release).
5844 so I wanted an updated release).
5848
5845
5849 2001-12-27 Fernando Perez <fperez@colorado.edu>
5846 2001-12-27 Fernando Perez <fperez@colorado.edu>
5850
5847
5851 * IPython/iplib.py (InteractiveShell.interact): Added the original
5848 * IPython/iplib.py (InteractiveShell.interact): Added the original
5852 code from 'code.py' for this module in order to change the
5849 code from 'code.py' for this module in order to change the
5853 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5850 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5854 the history cache would break when the user hit Ctrl-C, and
5851 the history cache would break when the user hit Ctrl-C, and
5855 interact() offers no way to add any hooks to it.
5852 interact() offers no way to add any hooks to it.
5856
5853
5857 2001-12-23 Fernando Perez <fperez@colorado.edu>
5854 2001-12-23 Fernando Perez <fperez@colorado.edu>
5858
5855
5859 * setup.py: added check for 'MANIFEST' before trying to remove
5856 * setup.py: added check for 'MANIFEST' before trying to remove
5860 it. Thanks to Sean Reifschneider.
5857 it. Thanks to Sean Reifschneider.
5861
5858
5862 2001-12-22 Fernando Perez <fperez@colorado.edu>
5859 2001-12-22 Fernando Perez <fperez@colorado.edu>
5863
5860
5864 * Released 0.2.2.
5861 * Released 0.2.2.
5865
5862
5866 * Finished (reasonably) writing the manual. Later will add the
5863 * Finished (reasonably) writing the manual. Later will add the
5867 python-standard navigation stylesheets, but for the time being
5864 python-standard navigation stylesheets, but for the time being
5868 it's fairly complete. Distribution will include html and pdf
5865 it's fairly complete. Distribution will include html and pdf
5869 versions.
5866 versions.
5870
5867
5871 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5868 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5872 (MayaVi author).
5869 (MayaVi author).
5873
5870
5874 2001-12-21 Fernando Perez <fperez@colorado.edu>
5871 2001-12-21 Fernando Perez <fperez@colorado.edu>
5875
5872
5876 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5873 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5877 good public release, I think (with the manual and the distutils
5874 good public release, I think (with the manual and the distutils
5878 installer). The manual can use some work, but that can go
5875 installer). The manual can use some work, but that can go
5879 slowly. Otherwise I think it's quite nice for end users. Next
5876 slowly. Otherwise I think it's quite nice for end users. Next
5880 summer, rewrite the guts of it...
5877 summer, rewrite the guts of it...
5881
5878
5882 * Changed format of ipythonrc files to use whitespace as the
5879 * Changed format of ipythonrc files to use whitespace as the
5883 separator instead of an explicit '='. Cleaner.
5880 separator instead of an explicit '='. Cleaner.
5884
5881
5885 2001-12-20 Fernando Perez <fperez@colorado.edu>
5882 2001-12-20 Fernando Perez <fperez@colorado.edu>
5886
5883
5887 * Started a manual in LyX. For now it's just a quick merge of the
5884 * Started a manual in LyX. For now it's just a quick merge of the
5888 various internal docstrings and READMEs. Later it may grow into a
5885 various internal docstrings and READMEs. Later it may grow into a
5889 nice, full-blown manual.
5886 nice, full-blown manual.
5890
5887
5891 * Set up a distutils based installer. Installation should now be
5888 * Set up a distutils based installer. Installation should now be
5892 trivially simple for end-users.
5889 trivially simple for end-users.
5893
5890
5894 2001-12-11 Fernando Perez <fperez@colorado.edu>
5891 2001-12-11 Fernando Perez <fperez@colorado.edu>
5895
5892
5896 * Released 0.2.0. First public release, announced it at
5893 * Released 0.2.0. First public release, announced it at
5897 comp.lang.python. From now on, just bugfixes...
5894 comp.lang.python. From now on, just bugfixes...
5898
5895
5899 * Went through all the files, set copyright/license notices and
5896 * Went through all the files, set copyright/license notices and
5900 cleaned up things. Ready for release.
5897 cleaned up things. Ready for release.
5901
5898
5902 2001-12-10 Fernando Perez <fperez@colorado.edu>
5899 2001-12-10 Fernando Perez <fperez@colorado.edu>
5903
5900
5904 * Changed the first-time installer not to use tarfiles. It's more
5901 * Changed the first-time installer not to use tarfiles. It's more
5905 robust now and less unix-dependent. Also makes it easier for
5902 robust now and less unix-dependent. Also makes it easier for
5906 people to later upgrade versions.
5903 people to later upgrade versions.
5907
5904
5908 * Changed @exit to @abort to reflect the fact that it's pretty
5905 * Changed @exit to @abort to reflect the fact that it's pretty
5909 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5906 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5910 becomes significant only when IPyhton is embedded: in that case,
5907 becomes significant only when IPyhton is embedded: in that case,
5911 C-D closes IPython only, but @abort kills the enclosing program
5908 C-D closes IPython only, but @abort kills the enclosing program
5912 too (unless it had called IPython inside a try catching
5909 too (unless it had called IPython inside a try catching
5913 SystemExit).
5910 SystemExit).
5914
5911
5915 * Created Shell module which exposes the actuall IPython Shell
5912 * Created Shell module which exposes the actuall IPython Shell
5916 classes, currently the normal and the embeddable one. This at
5913 classes, currently the normal and the embeddable one. This at
5917 least offers a stable interface we won't need to change when
5914 least offers a stable interface we won't need to change when
5918 (later) the internals are rewritten. That rewrite will be confined
5915 (later) the internals are rewritten. That rewrite will be confined
5919 to iplib and ipmaker, but the Shell interface should remain as is.
5916 to iplib and ipmaker, but the Shell interface should remain as is.
5920
5917
5921 * Added embed module which offers an embeddable IPShell object,
5918 * Added embed module which offers an embeddable IPShell object,
5922 useful to fire up IPython *inside* a running program. Great for
5919 useful to fire up IPython *inside* a running program. Great for
5923 debugging or dynamical data analysis.
5920 debugging or dynamical data analysis.
5924
5921
5925 2001-12-08 Fernando Perez <fperez@colorado.edu>
5922 2001-12-08 Fernando Perez <fperez@colorado.edu>
5926
5923
5927 * Fixed small bug preventing seeing info from methods of defined
5924 * Fixed small bug preventing seeing info from methods of defined
5928 objects (incorrect namespace in _ofind()).
5925 objects (incorrect namespace in _ofind()).
5929
5926
5930 * Documentation cleanup. Moved the main usage docstrings to a
5927 * Documentation cleanup. Moved the main usage docstrings to a
5931 separate file, usage.py (cleaner to maintain, and hopefully in the
5928 separate file, usage.py (cleaner to maintain, and hopefully in the
5932 future some perlpod-like way of producing interactive, man and
5929 future some perlpod-like way of producing interactive, man and
5933 html docs out of it will be found).
5930 html docs out of it will be found).
5934
5931
5935 * Added @profile to see your profile at any time.
5932 * Added @profile to see your profile at any time.
5936
5933
5937 * Added @p as an alias for 'print'. It's especially convenient if
5934 * Added @p as an alias for 'print'. It's especially convenient if
5938 using automagic ('p x' prints x).
5935 using automagic ('p x' prints x).
5939
5936
5940 * Small cleanups and fixes after a pychecker run.
5937 * Small cleanups and fixes after a pychecker run.
5941
5938
5942 * Changed the @cd command to handle @cd - and @cd -<n> for
5939 * Changed the @cd command to handle @cd - and @cd -<n> for
5943 visiting any directory in _dh.
5940 visiting any directory in _dh.
5944
5941
5945 * Introduced _dh, a history of visited directories. @dhist prints
5942 * Introduced _dh, a history of visited directories. @dhist prints
5946 it out with numbers.
5943 it out with numbers.
5947
5944
5948 2001-12-07 Fernando Perez <fperez@colorado.edu>
5945 2001-12-07 Fernando Perez <fperez@colorado.edu>
5949
5946
5950 * Released 0.1.22
5947 * Released 0.1.22
5951
5948
5952 * Made initialization a bit more robust against invalid color
5949 * Made initialization a bit more robust against invalid color
5953 options in user input (exit, not traceback-crash).
5950 options in user input (exit, not traceback-crash).
5954
5951
5955 * Changed the bug crash reporter to write the report only in the
5952 * Changed the bug crash reporter to write the report only in the
5956 user's .ipython directory. That way IPython won't litter people's
5953 user's .ipython directory. That way IPython won't litter people's
5957 hard disks with crash files all over the place. Also print on
5954 hard disks with crash files all over the place. Also print on
5958 screen the necessary mail command.
5955 screen the necessary mail command.
5959
5956
5960 * With the new ultraTB, implemented LightBG color scheme for light
5957 * With the new ultraTB, implemented LightBG color scheme for light
5961 background terminals. A lot of people like white backgrounds, so I
5958 background terminals. A lot of people like white backgrounds, so I
5962 guess we should at least give them something readable.
5959 guess we should at least give them something readable.
5963
5960
5964 2001-12-06 Fernando Perez <fperez@colorado.edu>
5961 2001-12-06 Fernando Perez <fperez@colorado.edu>
5965
5962
5966 * Modified the structure of ultraTB. Now there's a proper class
5963 * Modified the structure of ultraTB. Now there's a proper class
5967 for tables of color schemes which allow adding schemes easily and
5964 for tables of color schemes which allow adding schemes easily and
5968 switching the active scheme without creating a new instance every
5965 switching the active scheme without creating a new instance every
5969 time (which was ridiculous). The syntax for creating new schemes
5966 time (which was ridiculous). The syntax for creating new schemes
5970 is also cleaner. I think ultraTB is finally done, with a clean
5967 is also cleaner. I think ultraTB is finally done, with a clean
5971 class structure. Names are also much cleaner (now there's proper
5968 class structure. Names are also much cleaner (now there's proper
5972 color tables, no need for every variable to also have 'color' in
5969 color tables, no need for every variable to also have 'color' in
5973 its name).
5970 its name).
5974
5971
5975 * Broke down genutils into separate files. Now genutils only
5972 * Broke down genutils into separate files. Now genutils only
5976 contains utility functions, and classes have been moved to their
5973 contains utility functions, and classes have been moved to their
5977 own files (they had enough independent functionality to warrant
5974 own files (they had enough independent functionality to warrant
5978 it): ConfigLoader, OutputTrap, Struct.
5975 it): ConfigLoader, OutputTrap, Struct.
5979
5976
5980 2001-12-05 Fernando Perez <fperez@colorado.edu>
5977 2001-12-05 Fernando Perez <fperez@colorado.edu>
5981
5978
5982 * IPython turns 21! Released version 0.1.21, as a candidate for
5979 * IPython turns 21! Released version 0.1.21, as a candidate for
5983 public consumption. If all goes well, release in a few days.
5980 public consumption. If all goes well, release in a few days.
5984
5981
5985 * Fixed path bug (files in Extensions/ directory wouldn't be found
5982 * Fixed path bug (files in Extensions/ directory wouldn't be found
5986 unless IPython/ was explicitly in sys.path).
5983 unless IPython/ was explicitly in sys.path).
5987
5984
5988 * Extended the FlexCompleter class as MagicCompleter to allow
5985 * Extended the FlexCompleter class as MagicCompleter to allow
5989 completion of @-starting lines.
5986 completion of @-starting lines.
5990
5987
5991 * Created __release__.py file as a central repository for release
5988 * Created __release__.py file as a central repository for release
5992 info that other files can read from.
5989 info that other files can read from.
5993
5990
5994 * Fixed small bug in logging: when logging was turned on in
5991 * Fixed small bug in logging: when logging was turned on in
5995 mid-session, old lines with special meanings (!@?) were being
5992 mid-session, old lines with special meanings (!@?) were being
5996 logged without the prepended comment, which is necessary since
5993 logged without the prepended comment, which is necessary since
5997 they are not truly valid python syntax. This should make session
5994 they are not truly valid python syntax. This should make session
5998 restores produce less errors.
5995 restores produce less errors.
5999
5996
6000 * The namespace cleanup forced me to make a FlexCompleter class
5997 * The namespace cleanup forced me to make a FlexCompleter class
6001 which is nothing but a ripoff of rlcompleter, but with selectable
5998 which is nothing but a ripoff of rlcompleter, but with selectable
6002 namespace (rlcompleter only works in __main__.__dict__). I'll try
5999 namespace (rlcompleter only works in __main__.__dict__). I'll try
6003 to submit a note to the authors to see if this change can be
6000 to submit a note to the authors to see if this change can be
6004 incorporated in future rlcompleter releases (Dec.6: done)
6001 incorporated in future rlcompleter releases (Dec.6: done)
6005
6002
6006 * More fixes to namespace handling. It was a mess! Now all
6003 * More fixes to namespace handling. It was a mess! Now all
6007 explicit references to __main__.__dict__ are gone (except when
6004 explicit references to __main__.__dict__ are gone (except when
6008 really needed) and everything is handled through the namespace
6005 really needed) and everything is handled through the namespace
6009 dicts in the IPython instance. We seem to be getting somewhere
6006 dicts in the IPython instance. We seem to be getting somewhere
6010 with this, finally...
6007 with this, finally...
6011
6008
6012 * Small documentation updates.
6009 * Small documentation updates.
6013
6010
6014 * Created the Extensions directory under IPython (with an
6011 * Created the Extensions directory under IPython (with an
6015 __init__.py). Put the PhysicalQ stuff there. This directory should
6012 __init__.py). Put the PhysicalQ stuff there. This directory should
6016 be used for all special-purpose extensions.
6013 be used for all special-purpose extensions.
6017
6014
6018 * File renaming:
6015 * File renaming:
6019 ipythonlib --> ipmaker
6016 ipythonlib --> ipmaker
6020 ipplib --> iplib
6017 ipplib --> iplib
6021 This makes a bit more sense in terms of what these files actually do.
6018 This makes a bit more sense in terms of what these files actually do.
6022
6019
6023 * Moved all the classes and functions in ipythonlib to ipplib, so
6020 * Moved all the classes and functions in ipythonlib to ipplib, so
6024 now ipythonlib only has make_IPython(). This will ease up its
6021 now ipythonlib only has make_IPython(). This will ease up its
6025 splitting in smaller functional chunks later.
6022 splitting in smaller functional chunks later.
6026
6023
6027 * Cleaned up (done, I think) output of @whos. Better column
6024 * Cleaned up (done, I think) output of @whos. Better column
6028 formatting, and now shows str(var) for as much as it can, which is
6025 formatting, and now shows str(var) for as much as it can, which is
6029 typically what one gets with a 'print var'.
6026 typically what one gets with a 'print var'.
6030
6027
6031 2001-12-04 Fernando Perez <fperez@colorado.edu>
6028 2001-12-04 Fernando Perez <fperez@colorado.edu>
6032
6029
6033 * Fixed namespace problems. Now builtin/IPyhton/user names get
6030 * Fixed namespace problems. Now builtin/IPyhton/user names get
6034 properly reported in their namespace. Internal namespace handling
6031 properly reported in their namespace. Internal namespace handling
6035 is finally getting decent (not perfect yet, but much better than
6032 is finally getting decent (not perfect yet, but much better than
6036 the ad-hoc mess we had).
6033 the ad-hoc mess we had).
6037
6034
6038 * Removed -exit option. If people just want to run a python
6035 * Removed -exit option. If people just want to run a python
6039 script, that's what the normal interpreter is for. Less
6036 script, that's what the normal interpreter is for. Less
6040 unnecessary options, less chances for bugs.
6037 unnecessary options, less chances for bugs.
6041
6038
6042 * Added a crash handler which generates a complete post-mortem if
6039 * Added a crash handler which generates a complete post-mortem if
6043 IPython crashes. This will help a lot in tracking bugs down the
6040 IPython crashes. This will help a lot in tracking bugs down the
6044 road.
6041 road.
6045
6042
6046 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6043 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6047 which were boud to functions being reassigned would bypass the
6044 which were boud to functions being reassigned would bypass the
6048 logger, breaking the sync of _il with the prompt counter. This
6045 logger, breaking the sync of _il with the prompt counter. This
6049 would then crash IPython later when a new line was logged.
6046 would then crash IPython later when a new line was logged.
6050
6047
6051 2001-12-02 Fernando Perez <fperez@colorado.edu>
6048 2001-12-02 Fernando Perez <fperez@colorado.edu>
6052
6049
6053 * Made IPython a package. This means people don't have to clutter
6050 * Made IPython a package. This means people don't have to clutter
6054 their sys.path with yet another directory. Changed the INSTALL
6051 their sys.path with yet another directory. Changed the INSTALL
6055 file accordingly.
6052 file accordingly.
6056
6053
6057 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6054 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6058 sorts its output (so @who shows it sorted) and @whos formats the
6055 sorts its output (so @who shows it sorted) and @whos formats the
6059 table according to the width of the first column. Nicer, easier to
6056 table according to the width of the first column. Nicer, easier to
6060 read. Todo: write a generic table_format() which takes a list of
6057 read. Todo: write a generic table_format() which takes a list of
6061 lists and prints it nicely formatted, with optional row/column
6058 lists and prints it nicely formatted, with optional row/column
6062 separators and proper padding and justification.
6059 separators and proper padding and justification.
6063
6060
6064 * Released 0.1.20
6061 * Released 0.1.20
6065
6062
6066 * Fixed bug in @log which would reverse the inputcache list (a
6063 * Fixed bug in @log which would reverse the inputcache list (a
6067 copy operation was missing).
6064 copy operation was missing).
6068
6065
6069 * Code cleanup. @config was changed to use page(). Better, since
6066 * Code cleanup. @config was changed to use page(). Better, since
6070 its output is always quite long.
6067 its output is always quite long.
6071
6068
6072 * Itpl is back as a dependency. I was having too many problems
6069 * Itpl is back as a dependency. I was having too many problems
6073 getting the parametric aliases to work reliably, and it's just
6070 getting the parametric aliases to work reliably, and it's just
6074 easier to code weird string operations with it than playing %()s
6071 easier to code weird string operations with it than playing %()s
6075 games. It's only ~6k, so I don't think it's too big a deal.
6072 games. It's only ~6k, so I don't think it's too big a deal.
6076
6073
6077 * Found (and fixed) a very nasty bug with history. !lines weren't
6074 * Found (and fixed) a very nasty bug with history. !lines weren't
6078 getting cached, and the out of sync caches would crash
6075 getting cached, and the out of sync caches would crash
6079 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6076 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6080 division of labor a bit better. Bug fixed, cleaner structure.
6077 division of labor a bit better. Bug fixed, cleaner structure.
6081
6078
6082 2001-12-01 Fernando Perez <fperez@colorado.edu>
6079 2001-12-01 Fernando Perez <fperez@colorado.edu>
6083
6080
6084 * Released 0.1.19
6081 * Released 0.1.19
6085
6082
6086 * Added option -n to @hist to prevent line number printing. Much
6083 * Added option -n to @hist to prevent line number printing. Much
6087 easier to copy/paste code this way.
6084 easier to copy/paste code this way.
6088
6085
6089 * Created global _il to hold the input list. Allows easy
6086 * Created global _il to hold the input list. Allows easy
6090 re-execution of blocks of code by slicing it (inspired by Janko's
6087 re-execution of blocks of code by slicing it (inspired by Janko's
6091 comment on 'macros').
6088 comment on 'macros').
6092
6089
6093 * Small fixes and doc updates.
6090 * Small fixes and doc updates.
6094
6091
6095 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6092 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6096 much too fragile with automagic. Handles properly multi-line
6093 much too fragile with automagic. Handles properly multi-line
6097 statements and takes parameters.
6094 statements and takes parameters.
6098
6095
6099 2001-11-30 Fernando Perez <fperez@colorado.edu>
6096 2001-11-30 Fernando Perez <fperez@colorado.edu>
6100
6097
6101 * Version 0.1.18 released.
6098 * Version 0.1.18 released.
6102
6099
6103 * Fixed nasty namespace bug in initial module imports.
6100 * Fixed nasty namespace bug in initial module imports.
6104
6101
6105 * Added copyright/license notes to all code files (except
6102 * Added copyright/license notes to all code files (except
6106 DPyGetOpt). For the time being, LGPL. That could change.
6103 DPyGetOpt). For the time being, LGPL. That could change.
6107
6104
6108 * Rewrote a much nicer README, updated INSTALL, cleaned up
6105 * Rewrote a much nicer README, updated INSTALL, cleaned up
6109 ipythonrc-* samples.
6106 ipythonrc-* samples.
6110
6107
6111 * Overall code/documentation cleanup. Basically ready for
6108 * Overall code/documentation cleanup. Basically ready for
6112 release. Only remaining thing: licence decision (LGPL?).
6109 release. Only remaining thing: licence decision (LGPL?).
6113
6110
6114 * Converted load_config to a class, ConfigLoader. Now recursion
6111 * Converted load_config to a class, ConfigLoader. Now recursion
6115 control is better organized. Doesn't include the same file twice.
6112 control is better organized. Doesn't include the same file twice.
6116
6113
6117 2001-11-29 Fernando Perez <fperez@colorado.edu>
6114 2001-11-29 Fernando Perez <fperez@colorado.edu>
6118
6115
6119 * Got input history working. Changed output history variables from
6116 * Got input history working. Changed output history variables from
6120 _p to _o so that _i is for input and _o for output. Just cleaner
6117 _p to _o so that _i is for input and _o for output. Just cleaner
6121 convention.
6118 convention.
6122
6119
6123 * Implemented parametric aliases. This pretty much allows the
6120 * Implemented parametric aliases. This pretty much allows the
6124 alias system to offer full-blown shell convenience, I think.
6121 alias system to offer full-blown shell convenience, I think.
6125
6122
6126 * Version 0.1.17 released, 0.1.18 opened.
6123 * Version 0.1.17 released, 0.1.18 opened.
6127
6124
6128 * dot_ipython/ipythonrc (alias): added documentation.
6125 * dot_ipython/ipythonrc (alias): added documentation.
6129 (xcolor): Fixed small bug (xcolors -> xcolor)
6126 (xcolor): Fixed small bug (xcolors -> xcolor)
6130
6127
6131 * Changed the alias system. Now alias is a magic command to define
6128 * Changed the alias system. Now alias is a magic command to define
6132 aliases just like the shell. Rationale: the builtin magics should
6129 aliases just like the shell. Rationale: the builtin magics should
6133 be there for things deeply connected to IPython's
6130 be there for things deeply connected to IPython's
6134 architecture. And this is a much lighter system for what I think
6131 architecture. And this is a much lighter system for what I think
6135 is the really important feature: allowing users to define quickly
6132 is the really important feature: allowing users to define quickly
6136 magics that will do shell things for them, so they can customize
6133 magics that will do shell things for them, so they can customize
6137 IPython easily to match their work habits. If someone is really
6134 IPython easily to match their work habits. If someone is really
6138 desperate to have another name for a builtin alias, they can
6135 desperate to have another name for a builtin alias, they can
6139 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6136 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6140 works.
6137 works.
6141
6138
6142 2001-11-28 Fernando Perez <fperez@colorado.edu>
6139 2001-11-28 Fernando Perez <fperez@colorado.edu>
6143
6140
6144 * Changed @file so that it opens the source file at the proper
6141 * Changed @file so that it opens the source file at the proper
6145 line. Since it uses less, if your EDITOR environment is
6142 line. Since it uses less, if your EDITOR environment is
6146 configured, typing v will immediately open your editor of choice
6143 configured, typing v will immediately open your editor of choice
6147 right at the line where the object is defined. Not as quick as
6144 right at the line where the object is defined. Not as quick as
6148 having a direct @edit command, but for all intents and purposes it
6145 having a direct @edit command, but for all intents and purposes it
6149 works. And I don't have to worry about writing @edit to deal with
6146 works. And I don't have to worry about writing @edit to deal with
6150 all the editors, less does that.
6147 all the editors, less does that.
6151
6148
6152 * Version 0.1.16 released, 0.1.17 opened.
6149 * Version 0.1.16 released, 0.1.17 opened.
6153
6150
6154 * Fixed some nasty bugs in the page/page_dumb combo that could
6151 * Fixed some nasty bugs in the page/page_dumb combo that could
6155 crash IPython.
6152 crash IPython.
6156
6153
6157 2001-11-27 Fernando Perez <fperez@colorado.edu>
6154 2001-11-27 Fernando Perez <fperez@colorado.edu>
6158
6155
6159 * Version 0.1.15 released, 0.1.16 opened.
6156 * Version 0.1.15 released, 0.1.16 opened.
6160
6157
6161 * Finally got ? and ?? to work for undefined things: now it's
6158 * Finally got ? and ?? to work for undefined things: now it's
6162 possible to type {}.get? and get information about the get method
6159 possible to type {}.get? and get information about the get method
6163 of dicts, or os.path? even if only os is defined (so technically
6160 of dicts, or os.path? even if only os is defined (so technically
6164 os.path isn't). Works at any level. For example, after import os,
6161 os.path isn't). Works at any level. For example, after import os,
6165 os?, os.path?, os.path.abspath? all work. This is great, took some
6162 os?, os.path?, os.path.abspath? all work. This is great, took some
6166 work in _ofind.
6163 work in _ofind.
6167
6164
6168 * Fixed more bugs with logging. The sanest way to do it was to add
6165 * Fixed more bugs with logging. The sanest way to do it was to add
6169 to @log a 'mode' parameter. Killed two in one shot (this mode
6166 to @log a 'mode' parameter. Killed two in one shot (this mode
6170 option was a request of Janko's). I think it's finally clean
6167 option was a request of Janko's). I think it's finally clean
6171 (famous last words).
6168 (famous last words).
6172
6169
6173 * Added a page_dumb() pager which does a decent job of paging on
6170 * Added a page_dumb() pager which does a decent job of paging on
6174 screen, if better things (like less) aren't available. One less
6171 screen, if better things (like less) aren't available. One less
6175 unix dependency (someday maybe somebody will port this to
6172 unix dependency (someday maybe somebody will port this to
6176 windows).
6173 windows).
6177
6174
6178 * Fixed problem in magic_log: would lock of logging out if log
6175 * Fixed problem in magic_log: would lock of logging out if log
6179 creation failed (because it would still think it had succeeded).
6176 creation failed (because it would still think it had succeeded).
6180
6177
6181 * Improved the page() function using curses to auto-detect screen
6178 * Improved the page() function using curses to auto-detect screen
6182 size. Now it can make a much better decision on whether to print
6179 size. Now it can make a much better decision on whether to print
6183 or page a string. Option screen_length was modified: a value 0
6180 or page a string. Option screen_length was modified: a value 0
6184 means auto-detect, and that's the default now.
6181 means auto-detect, and that's the default now.
6185
6182
6186 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6183 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6187 go out. I'll test it for a few days, then talk to Janko about
6184 go out. I'll test it for a few days, then talk to Janko about
6188 licences and announce it.
6185 licences and announce it.
6189
6186
6190 * Fixed the length of the auto-generated ---> prompt which appears
6187 * Fixed the length of the auto-generated ---> prompt which appears
6191 for auto-parens and auto-quotes. Getting this right isn't trivial,
6188 for auto-parens and auto-quotes. Getting this right isn't trivial,
6192 with all the color escapes, different prompt types and optional
6189 with all the color escapes, different prompt types and optional
6193 separators. But it seems to be working in all the combinations.
6190 separators. But it seems to be working in all the combinations.
6194
6191
6195 2001-11-26 Fernando Perez <fperez@colorado.edu>
6192 2001-11-26 Fernando Perez <fperez@colorado.edu>
6196
6193
6197 * Wrote a regexp filter to get option types from the option names
6194 * Wrote a regexp filter to get option types from the option names
6198 string. This eliminates the need to manually keep two duplicate
6195 string. This eliminates the need to manually keep two duplicate
6199 lists.
6196 lists.
6200
6197
6201 * Removed the unneeded check_option_names. Now options are handled
6198 * Removed the unneeded check_option_names. Now options are handled
6202 in a much saner manner and it's easy to visually check that things
6199 in a much saner manner and it's easy to visually check that things
6203 are ok.
6200 are ok.
6204
6201
6205 * Updated version numbers on all files I modified to carry a
6202 * Updated version numbers on all files I modified to carry a
6206 notice so Janko and Nathan have clear version markers.
6203 notice so Janko and Nathan have clear version markers.
6207
6204
6208 * Updated docstring for ultraTB with my changes. I should send
6205 * Updated docstring for ultraTB with my changes. I should send
6209 this to Nathan.
6206 this to Nathan.
6210
6207
6211 * Lots of small fixes. Ran everything through pychecker again.
6208 * Lots of small fixes. Ran everything through pychecker again.
6212
6209
6213 * Made loading of deep_reload an cmd line option. If it's not too
6210 * Made loading of deep_reload an cmd line option. If it's not too
6214 kosher, now people can just disable it. With -nodeep_reload it's
6211 kosher, now people can just disable it. With -nodeep_reload it's
6215 still available as dreload(), it just won't overwrite reload().
6212 still available as dreload(), it just won't overwrite reload().
6216
6213
6217 * Moved many options to the no| form (-opt and -noopt
6214 * Moved many options to the no| form (-opt and -noopt
6218 accepted). Cleaner.
6215 accepted). Cleaner.
6219
6216
6220 * Changed magic_log so that if called with no parameters, it uses
6217 * Changed magic_log so that if called with no parameters, it uses
6221 'rotate' mode. That way auto-generated logs aren't automatically
6218 'rotate' mode. That way auto-generated logs aren't automatically
6222 over-written. For normal logs, now a backup is made if it exists
6219 over-written. For normal logs, now a backup is made if it exists
6223 (only 1 level of backups). A new 'backup' mode was added to the
6220 (only 1 level of backups). A new 'backup' mode was added to the
6224 Logger class to support this. This was a request by Janko.
6221 Logger class to support this. This was a request by Janko.
6225
6222
6226 * Added @logoff/@logon to stop/restart an active log.
6223 * Added @logoff/@logon to stop/restart an active log.
6227
6224
6228 * Fixed a lot of bugs in log saving/replay. It was pretty
6225 * Fixed a lot of bugs in log saving/replay. It was pretty
6229 broken. Now special lines (!@,/) appear properly in the command
6226 broken. Now special lines (!@,/) appear properly in the command
6230 history after a log replay.
6227 history after a log replay.
6231
6228
6232 * Tried and failed to implement full session saving via pickle. My
6229 * Tried and failed to implement full session saving via pickle. My
6233 idea was to pickle __main__.__dict__, but modules can't be
6230 idea was to pickle __main__.__dict__, but modules can't be
6234 pickled. This would be a better alternative to replaying logs, but
6231 pickled. This would be a better alternative to replaying logs, but
6235 seems quite tricky to get to work. Changed -session to be called
6232 seems quite tricky to get to work. Changed -session to be called
6236 -logplay, which more accurately reflects what it does. And if we
6233 -logplay, which more accurately reflects what it does. And if we
6237 ever get real session saving working, -session is now available.
6234 ever get real session saving working, -session is now available.
6238
6235
6239 * Implemented color schemes for prompts also. As for tracebacks,
6236 * Implemented color schemes for prompts also. As for tracebacks,
6240 currently only NoColor and Linux are supported. But now the
6237 currently only NoColor and Linux are supported. But now the
6241 infrastructure is in place, based on a generic ColorScheme
6238 infrastructure is in place, based on a generic ColorScheme
6242 class. So writing and activating new schemes both for the prompts
6239 class. So writing and activating new schemes both for the prompts
6243 and the tracebacks should be straightforward.
6240 and the tracebacks should be straightforward.
6244
6241
6245 * Version 0.1.13 released, 0.1.14 opened.
6242 * Version 0.1.13 released, 0.1.14 opened.
6246
6243
6247 * Changed handling of options for output cache. Now counter is
6244 * Changed handling of options for output cache. Now counter is
6248 hardwired starting at 1 and one specifies the maximum number of
6245 hardwired starting at 1 and one specifies the maximum number of
6249 entries *in the outcache* (not the max prompt counter). This is
6246 entries *in the outcache* (not the max prompt counter). This is
6250 much better, since many statements won't increase the cache
6247 much better, since many statements won't increase the cache
6251 count. It also eliminated some confusing options, now there's only
6248 count. It also eliminated some confusing options, now there's only
6252 one: cache_size.
6249 one: cache_size.
6253
6250
6254 * Added 'alias' magic function and magic_alias option in the
6251 * Added 'alias' magic function and magic_alias option in the
6255 ipythonrc file. Now the user can easily define whatever names he
6252 ipythonrc file. Now the user can easily define whatever names he
6256 wants for the magic functions without having to play weird
6253 wants for the magic functions without having to play weird
6257 namespace games. This gives IPython a real shell-like feel.
6254 namespace games. This gives IPython a real shell-like feel.
6258
6255
6259 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6256 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6260 @ or not).
6257 @ or not).
6261
6258
6262 This was one of the last remaining 'visible' bugs (that I know
6259 This was one of the last remaining 'visible' bugs (that I know
6263 of). I think if I can clean up the session loading so it works
6260 of). I think if I can clean up the session loading so it works
6264 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6261 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6265 about licensing).
6262 about licensing).
6266
6263
6267 2001-11-25 Fernando Perez <fperez@colorado.edu>
6264 2001-11-25 Fernando Perez <fperez@colorado.edu>
6268
6265
6269 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6266 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6270 there's a cleaner distinction between what ? and ?? show.
6267 there's a cleaner distinction between what ? and ?? show.
6271
6268
6272 * Added screen_length option. Now the user can define his own
6269 * Added screen_length option. Now the user can define his own
6273 screen size for page() operations.
6270 screen size for page() operations.
6274
6271
6275 * Implemented magic shell-like functions with automatic code
6272 * Implemented magic shell-like functions with automatic code
6276 generation. Now adding another function is just a matter of adding
6273 generation. Now adding another function is just a matter of adding
6277 an entry to a dict, and the function is dynamically generated at
6274 an entry to a dict, and the function is dynamically generated at
6278 run-time. Python has some really cool features!
6275 run-time. Python has some really cool features!
6279
6276
6280 * Renamed many options to cleanup conventions a little. Now all
6277 * Renamed many options to cleanup conventions a little. Now all
6281 are lowercase, and only underscores where needed. Also in the code
6278 are lowercase, and only underscores where needed. Also in the code
6282 option name tables are clearer.
6279 option name tables are clearer.
6283
6280
6284 * Changed prompts a little. Now input is 'In [n]:' instead of
6281 * Changed prompts a little. Now input is 'In [n]:' instead of
6285 'In[n]:='. This allows it the numbers to be aligned with the
6282 'In[n]:='. This allows it the numbers to be aligned with the
6286 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6283 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6287 Python (it was a Mathematica thing). The '...' continuation prompt
6284 Python (it was a Mathematica thing). The '...' continuation prompt
6288 was also changed a little to align better.
6285 was also changed a little to align better.
6289
6286
6290 * Fixed bug when flushing output cache. Not all _p<n> variables
6287 * Fixed bug when flushing output cache. Not all _p<n> variables
6291 exist, so their deletion needs to be wrapped in a try:
6288 exist, so their deletion needs to be wrapped in a try:
6292
6289
6293 * Figured out how to properly use inspect.formatargspec() (it
6290 * Figured out how to properly use inspect.formatargspec() (it
6294 requires the args preceded by *). So I removed all the code from
6291 requires the args preceded by *). So I removed all the code from
6295 _get_pdef in Magic, which was just replicating that.
6292 _get_pdef in Magic, which was just replicating that.
6296
6293
6297 * Added test to prefilter to allow redefining magic function names
6294 * Added test to prefilter to allow redefining magic function names
6298 as variables. This is ok, since the @ form is always available,
6295 as variables. This is ok, since the @ form is always available,
6299 but whe should allow the user to define a variable called 'ls' if
6296 but whe should allow the user to define a variable called 'ls' if
6300 he needs it.
6297 he needs it.
6301
6298
6302 * Moved the ToDo information from README into a separate ToDo.
6299 * Moved the ToDo information from README into a separate ToDo.
6303
6300
6304 * General code cleanup and small bugfixes. I think it's close to a
6301 * General code cleanup and small bugfixes. I think it's close to a
6305 state where it can be released, obviously with a big 'beta'
6302 state where it can be released, obviously with a big 'beta'
6306 warning on it.
6303 warning on it.
6307
6304
6308 * Got the magic function split to work. Now all magics are defined
6305 * Got the magic function split to work. Now all magics are defined
6309 in a separate class. It just organizes things a bit, and now
6306 in a separate class. It just organizes things a bit, and now
6310 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6307 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6311 was too long).
6308 was too long).
6312
6309
6313 * Changed @clear to @reset to avoid potential confusions with
6310 * Changed @clear to @reset to avoid potential confusions with
6314 the shell command clear. Also renamed @cl to @clear, which does
6311 the shell command clear. Also renamed @cl to @clear, which does
6315 exactly what people expect it to from their shell experience.
6312 exactly what people expect it to from their shell experience.
6316
6313
6317 Added a check to the @reset command (since it's so
6314 Added a check to the @reset command (since it's so
6318 destructive, it's probably a good idea to ask for confirmation).
6315 destructive, it's probably a good idea to ask for confirmation).
6319 But now reset only works for full namespace resetting. Since the
6316 But now reset only works for full namespace resetting. Since the
6320 del keyword is already there for deleting a few specific
6317 del keyword is already there for deleting a few specific
6321 variables, I don't see the point of having a redundant magic
6318 variables, I don't see the point of having a redundant magic
6322 function for the same task.
6319 function for the same task.
6323
6320
6324 2001-11-24 Fernando Perez <fperez@colorado.edu>
6321 2001-11-24 Fernando Perez <fperez@colorado.edu>
6325
6322
6326 * Updated the builtin docs (esp. the ? ones).
6323 * Updated the builtin docs (esp. the ? ones).
6327
6324
6328 * Ran all the code through pychecker. Not terribly impressed with
6325 * Ran all the code through pychecker. Not terribly impressed with
6329 it: lots of spurious warnings and didn't really find anything of
6326 it: lots of spurious warnings and didn't really find anything of
6330 substance (just a few modules being imported and not used).
6327 substance (just a few modules being imported and not used).
6331
6328
6332 * Implemented the new ultraTB functionality into IPython. New
6329 * Implemented the new ultraTB functionality into IPython. New
6333 option: xcolors. This chooses color scheme. xmode now only selects
6330 option: xcolors. This chooses color scheme. xmode now only selects
6334 between Plain and Verbose. Better orthogonality.
6331 between Plain and Verbose. Better orthogonality.
6335
6332
6336 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6333 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6337 mode and color scheme for the exception handlers. Now it's
6334 mode and color scheme for the exception handlers. Now it's
6338 possible to have the verbose traceback with no coloring.
6335 possible to have the verbose traceback with no coloring.
6339
6336
6340 2001-11-23 Fernando Perez <fperez@colorado.edu>
6337 2001-11-23 Fernando Perez <fperez@colorado.edu>
6341
6338
6342 * Version 0.1.12 released, 0.1.13 opened.
6339 * Version 0.1.12 released, 0.1.13 opened.
6343
6340
6344 * Removed option to set auto-quote and auto-paren escapes by
6341 * Removed option to set auto-quote and auto-paren escapes by
6345 user. The chances of breaking valid syntax are just too high. If
6342 user. The chances of breaking valid syntax are just too high. If
6346 someone *really* wants, they can always dig into the code.
6343 someone *really* wants, they can always dig into the code.
6347
6344
6348 * Made prompt separators configurable.
6345 * Made prompt separators configurable.
6349
6346
6350 2001-11-22 Fernando Perez <fperez@colorado.edu>
6347 2001-11-22 Fernando Perez <fperez@colorado.edu>
6351
6348
6352 * Small bugfixes in many places.
6349 * Small bugfixes in many places.
6353
6350
6354 * Removed the MyCompleter class from ipplib. It seemed redundant
6351 * Removed the MyCompleter class from ipplib. It seemed redundant
6355 with the C-p,C-n history search functionality. Less code to
6352 with the C-p,C-n history search functionality. Less code to
6356 maintain.
6353 maintain.
6357
6354
6358 * Moved all the original ipython.py code into ipythonlib.py. Right
6355 * Moved all the original ipython.py code into ipythonlib.py. Right
6359 now it's just one big dump into a function called make_IPython, so
6356 now it's just one big dump into a function called make_IPython, so
6360 no real modularity has been gained. But at least it makes the
6357 no real modularity has been gained. But at least it makes the
6361 wrapper script tiny, and since ipythonlib is a module, it gets
6358 wrapper script tiny, and since ipythonlib is a module, it gets
6362 compiled and startup is much faster.
6359 compiled and startup is much faster.
6363
6360
6364 This is a reasobably 'deep' change, so we should test it for a
6361 This is a reasobably 'deep' change, so we should test it for a
6365 while without messing too much more with the code.
6362 while without messing too much more with the code.
6366
6363
6367 2001-11-21 Fernando Perez <fperez@colorado.edu>
6364 2001-11-21 Fernando Perez <fperez@colorado.edu>
6368
6365
6369 * Version 0.1.11 released, 0.1.12 opened for further work.
6366 * Version 0.1.11 released, 0.1.12 opened for further work.
6370
6367
6371 * Removed dependency on Itpl. It was only needed in one place. It
6368 * Removed dependency on Itpl. It was only needed in one place. It
6372 would be nice if this became part of python, though. It makes life
6369 would be nice if this became part of python, though. It makes life
6373 *a lot* easier in some cases.
6370 *a lot* easier in some cases.
6374
6371
6375 * Simplified the prefilter code a bit. Now all handlers are
6372 * Simplified the prefilter code a bit. Now all handlers are
6376 expected to explicitly return a value (at least a blank string).
6373 expected to explicitly return a value (at least a blank string).
6377
6374
6378 * Heavy edits in ipplib. Removed the help system altogether. Now
6375 * Heavy edits in ipplib. Removed the help system altogether. Now
6379 obj?/?? is used for inspecting objects, a magic @doc prints
6376 obj?/?? is used for inspecting objects, a magic @doc prints
6380 docstrings, and full-blown Python help is accessed via the 'help'
6377 docstrings, and full-blown Python help is accessed via the 'help'
6381 keyword. This cleans up a lot of code (less to maintain) and does
6378 keyword. This cleans up a lot of code (less to maintain) and does
6382 the job. Since 'help' is now a standard Python component, might as
6379 the job. Since 'help' is now a standard Python component, might as
6383 well use it and remove duplicate functionality.
6380 well use it and remove duplicate functionality.
6384
6381
6385 Also removed the option to use ipplib as a standalone program. By
6382 Also removed the option to use ipplib as a standalone program. By
6386 now it's too dependent on other parts of IPython to function alone.
6383 now it's too dependent on other parts of IPython to function alone.
6387
6384
6388 * Fixed bug in genutils.pager. It would crash if the pager was
6385 * Fixed bug in genutils.pager. It would crash if the pager was
6389 exited immediately after opening (broken pipe).
6386 exited immediately after opening (broken pipe).
6390
6387
6391 * Trimmed down the VerboseTB reporting a little. The header is
6388 * Trimmed down the VerboseTB reporting a little. The header is
6392 much shorter now and the repeated exception arguments at the end
6389 much shorter now and the repeated exception arguments at the end
6393 have been removed. For interactive use the old header seemed a bit
6390 have been removed. For interactive use the old header seemed a bit
6394 excessive.
6391 excessive.
6395
6392
6396 * Fixed small bug in output of @whos for variables with multi-word
6393 * Fixed small bug in output of @whos for variables with multi-word
6397 types (only first word was displayed).
6394 types (only first word was displayed).
6398
6395
6399 2001-11-17 Fernando Perez <fperez@colorado.edu>
6396 2001-11-17 Fernando Perez <fperez@colorado.edu>
6400
6397
6401 * Version 0.1.10 released, 0.1.11 opened for further work.
6398 * Version 0.1.10 released, 0.1.11 opened for further work.
6402
6399
6403 * Modified dirs and friends. dirs now *returns* the stack (not
6400 * Modified dirs and friends. dirs now *returns* the stack (not
6404 prints), so one can manipulate it as a variable. Convenient to
6401 prints), so one can manipulate it as a variable. Convenient to
6405 travel along many directories.
6402 travel along many directories.
6406
6403
6407 * Fixed bug in magic_pdef: would only work with functions with
6404 * Fixed bug in magic_pdef: would only work with functions with
6408 arguments with default values.
6405 arguments with default values.
6409
6406
6410 2001-11-14 Fernando Perez <fperez@colorado.edu>
6407 2001-11-14 Fernando Perez <fperez@colorado.edu>
6411
6408
6412 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6409 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6413 example with IPython. Various other minor fixes and cleanups.
6410 example with IPython. Various other minor fixes and cleanups.
6414
6411
6415 * Version 0.1.9 released, 0.1.10 opened for further work.
6412 * Version 0.1.9 released, 0.1.10 opened for further work.
6416
6413
6417 * Added sys.path to the list of directories searched in the
6414 * Added sys.path to the list of directories searched in the
6418 execfile= option. It used to be the current directory and the
6415 execfile= option. It used to be the current directory and the
6419 user's IPYTHONDIR only.
6416 user's IPYTHONDIR only.
6420
6417
6421 2001-11-13 Fernando Perez <fperez@colorado.edu>
6418 2001-11-13 Fernando Perez <fperez@colorado.edu>
6422
6419
6423 * Reinstated the raw_input/prefilter separation that Janko had
6420 * Reinstated the raw_input/prefilter separation that Janko had
6424 initially. This gives a more convenient setup for extending the
6421 initially. This gives a more convenient setup for extending the
6425 pre-processor from the outside: raw_input always gets a string,
6422 pre-processor from the outside: raw_input always gets a string,
6426 and prefilter has to process it. We can then redefine prefilter
6423 and prefilter has to process it. We can then redefine prefilter
6427 from the outside and implement extensions for special
6424 from the outside and implement extensions for special
6428 purposes.
6425 purposes.
6429
6426
6430 Today I got one for inputting PhysicalQuantity objects
6427 Today I got one for inputting PhysicalQuantity objects
6431 (from Scientific) without needing any function calls at
6428 (from Scientific) without needing any function calls at
6432 all. Extremely convenient, and it's all done as a user-level
6429 all. Extremely convenient, and it's all done as a user-level
6433 extension (no IPython code was touched). Now instead of:
6430 extension (no IPython code was touched). Now instead of:
6434 a = PhysicalQuantity(4.2,'m/s**2')
6431 a = PhysicalQuantity(4.2,'m/s**2')
6435 one can simply say
6432 one can simply say
6436 a = 4.2 m/s**2
6433 a = 4.2 m/s**2
6437 or even
6434 or even
6438 a = 4.2 m/s^2
6435 a = 4.2 m/s^2
6439
6436
6440 I use this, but it's also a proof of concept: IPython really is
6437 I use this, but it's also a proof of concept: IPython really is
6441 fully user-extensible, even at the level of the parsing of the
6438 fully user-extensible, even at the level of the parsing of the
6442 command line. It's not trivial, but it's perfectly doable.
6439 command line. It's not trivial, but it's perfectly doable.
6443
6440
6444 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6441 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6445 the problem of modules being loaded in the inverse order in which
6442 the problem of modules being loaded in the inverse order in which
6446 they were defined in
6443 they were defined in
6447
6444
6448 * Version 0.1.8 released, 0.1.9 opened for further work.
6445 * Version 0.1.8 released, 0.1.9 opened for further work.
6449
6446
6450 * Added magics pdef, source and file. They respectively show the
6447 * Added magics pdef, source and file. They respectively show the
6451 definition line ('prototype' in C), source code and full python
6448 definition line ('prototype' in C), source code and full python
6452 file for any callable object. The object inspector oinfo uses
6449 file for any callable object. The object inspector oinfo uses
6453 these to show the same information.
6450 these to show the same information.
6454
6451
6455 * Version 0.1.7 released, 0.1.8 opened for further work.
6452 * Version 0.1.7 released, 0.1.8 opened for further work.
6456
6453
6457 * Separated all the magic functions into a class called Magic. The
6454 * Separated all the magic functions into a class called Magic. The
6458 InteractiveShell class was becoming too big for Xemacs to handle
6455 InteractiveShell class was becoming too big for Xemacs to handle
6459 (de-indenting a line would lock it up for 10 seconds while it
6456 (de-indenting a line would lock it up for 10 seconds while it
6460 backtracked on the whole class!)
6457 backtracked on the whole class!)
6461
6458
6462 FIXME: didn't work. It can be done, but right now namespaces are
6459 FIXME: didn't work. It can be done, but right now namespaces are
6463 all messed up. Do it later (reverted it for now, so at least
6460 all messed up. Do it later (reverted it for now, so at least
6464 everything works as before).
6461 everything works as before).
6465
6462
6466 * Got the object introspection system (magic_oinfo) working! I
6463 * Got the object introspection system (magic_oinfo) working! I
6467 think this is pretty much ready for release to Janko, so he can
6464 think this is pretty much ready for release to Janko, so he can
6468 test it for a while and then announce it. Pretty much 100% of what
6465 test it for a while and then announce it. Pretty much 100% of what
6469 I wanted for the 'phase 1' release is ready. Happy, tired.
6466 I wanted for the 'phase 1' release is ready. Happy, tired.
6470
6467
6471 2001-11-12 Fernando Perez <fperez@colorado.edu>
6468 2001-11-12 Fernando Perez <fperez@colorado.edu>
6472
6469
6473 * Version 0.1.6 released, 0.1.7 opened for further work.
6470 * Version 0.1.6 released, 0.1.7 opened for further work.
6474
6471
6475 * Fixed bug in printing: it used to test for truth before
6472 * Fixed bug in printing: it used to test for truth before
6476 printing, so 0 wouldn't print. Now checks for None.
6473 printing, so 0 wouldn't print. Now checks for None.
6477
6474
6478 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6475 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6479 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6476 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6480 reaches by hand into the outputcache. Think of a better way to do
6477 reaches by hand into the outputcache. Think of a better way to do
6481 this later.
6478 this later.
6482
6479
6483 * Various small fixes thanks to Nathan's comments.
6480 * Various small fixes thanks to Nathan's comments.
6484
6481
6485 * Changed magic_pprint to magic_Pprint. This way it doesn't
6482 * Changed magic_pprint to magic_Pprint. This way it doesn't
6486 collide with pprint() and the name is consistent with the command
6483 collide with pprint() and the name is consistent with the command
6487 line option.
6484 line option.
6488
6485
6489 * Changed prompt counter behavior to be fully like
6486 * Changed prompt counter behavior to be fully like
6490 Mathematica's. That is, even input that doesn't return a result
6487 Mathematica's. That is, even input that doesn't return a result
6491 raises the prompt counter. The old behavior was kind of confusing
6488 raises the prompt counter. The old behavior was kind of confusing
6492 (getting the same prompt number several times if the operation
6489 (getting the same prompt number several times if the operation
6493 didn't return a result).
6490 didn't return a result).
6494
6491
6495 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6492 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6496
6493
6497 * Fixed -Classic mode (wasn't working anymore).
6494 * Fixed -Classic mode (wasn't working anymore).
6498
6495
6499 * Added colored prompts using Nathan's new code. Colors are
6496 * Added colored prompts using Nathan's new code. Colors are
6500 currently hardwired, they can be user-configurable. For
6497 currently hardwired, they can be user-configurable. For
6501 developers, they can be chosen in file ipythonlib.py, at the
6498 developers, they can be chosen in file ipythonlib.py, at the
6502 beginning of the CachedOutput class def.
6499 beginning of the CachedOutput class def.
6503
6500
6504 2001-11-11 Fernando Perez <fperez@colorado.edu>
6501 2001-11-11 Fernando Perez <fperez@colorado.edu>
6505
6502
6506 * Version 0.1.5 released, 0.1.6 opened for further work.
6503 * Version 0.1.5 released, 0.1.6 opened for further work.
6507
6504
6508 * Changed magic_env to *return* the environment as a dict (not to
6505 * Changed magic_env to *return* the environment as a dict (not to
6509 print it). This way it prints, but it can also be processed.
6506 print it). This way it prints, but it can also be processed.
6510
6507
6511 * Added Verbose exception reporting to interactive
6508 * Added Verbose exception reporting to interactive
6512 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6509 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6513 traceback. Had to make some changes to the ultraTB file. This is
6510 traceback. Had to make some changes to the ultraTB file. This is
6514 probably the last 'big' thing in my mental todo list. This ties
6511 probably the last 'big' thing in my mental todo list. This ties
6515 in with the next entry:
6512 in with the next entry:
6516
6513
6517 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6514 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6518 has to specify is Plain, Color or Verbose for all exception
6515 has to specify is Plain, Color or Verbose for all exception
6519 handling.
6516 handling.
6520
6517
6521 * Removed ShellServices option. All this can really be done via
6518 * Removed ShellServices option. All this can really be done via
6522 the magic system. It's easier to extend, cleaner and has automatic
6519 the magic system. It's easier to extend, cleaner and has automatic
6523 namespace protection and documentation.
6520 namespace protection and documentation.
6524
6521
6525 2001-11-09 Fernando Perez <fperez@colorado.edu>
6522 2001-11-09 Fernando Perez <fperez@colorado.edu>
6526
6523
6527 * Fixed bug in output cache flushing (missing parameter to
6524 * Fixed bug in output cache flushing (missing parameter to
6528 __init__). Other small bugs fixed (found using pychecker).
6525 __init__). Other small bugs fixed (found using pychecker).
6529
6526
6530 * Version 0.1.4 opened for bugfixing.
6527 * Version 0.1.4 opened for bugfixing.
6531
6528
6532 2001-11-07 Fernando Perez <fperez@colorado.edu>
6529 2001-11-07 Fernando Perez <fperez@colorado.edu>
6533
6530
6534 * Version 0.1.3 released, mainly because of the raw_input bug.
6531 * Version 0.1.3 released, mainly because of the raw_input bug.
6535
6532
6536 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6533 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6537 and when testing for whether things were callable, a call could
6534 and when testing for whether things were callable, a call could
6538 actually be made to certain functions. They would get called again
6535 actually be made to certain functions. They would get called again
6539 once 'really' executed, with a resulting double call. A disaster
6536 once 'really' executed, with a resulting double call. A disaster
6540 in many cases (list.reverse() would never work!).
6537 in many cases (list.reverse() would never work!).
6541
6538
6542 * Removed prefilter() function, moved its code to raw_input (which
6539 * Removed prefilter() function, moved its code to raw_input (which
6543 after all was just a near-empty caller for prefilter). This saves
6540 after all was just a near-empty caller for prefilter). This saves
6544 a function call on every prompt, and simplifies the class a tiny bit.
6541 a function call on every prompt, and simplifies the class a tiny bit.
6545
6542
6546 * Fix _ip to __ip name in magic example file.
6543 * Fix _ip to __ip name in magic example file.
6547
6544
6548 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6545 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6549 work with non-gnu versions of tar.
6546 work with non-gnu versions of tar.
6550
6547
6551 2001-11-06 Fernando Perez <fperez@colorado.edu>
6548 2001-11-06 Fernando Perez <fperez@colorado.edu>
6552
6549
6553 * Version 0.1.2. Just to keep track of the recent changes.
6550 * Version 0.1.2. Just to keep track of the recent changes.
6554
6551
6555 * Fixed nasty bug in output prompt routine. It used to check 'if
6552 * Fixed nasty bug in output prompt routine. It used to check 'if
6556 arg != None...'. Problem is, this fails if arg implements a
6553 arg != None...'. Problem is, this fails if arg implements a
6557 special comparison (__cmp__) which disallows comparing to
6554 special comparison (__cmp__) which disallows comparing to
6558 None. Found it when trying to use the PhysicalQuantity module from
6555 None. Found it when trying to use the PhysicalQuantity module from
6559 ScientificPython.
6556 ScientificPython.
6560
6557
6561 2001-11-05 Fernando Perez <fperez@colorado.edu>
6558 2001-11-05 Fernando Perez <fperez@colorado.edu>
6562
6559
6563 * Also added dirs. Now the pushd/popd/dirs family functions
6560 * Also added dirs. Now the pushd/popd/dirs family functions
6564 basically like the shell, with the added convenience of going home
6561 basically like the shell, with the added convenience of going home
6565 when called with no args.
6562 when called with no args.
6566
6563
6567 * pushd/popd slightly modified to mimic shell behavior more
6564 * pushd/popd slightly modified to mimic shell behavior more
6568 closely.
6565 closely.
6569
6566
6570 * Added env,pushd,popd from ShellServices as magic functions. I
6567 * Added env,pushd,popd from ShellServices as magic functions. I
6571 think the cleanest will be to port all desired functions from
6568 think the cleanest will be to port all desired functions from
6572 ShellServices as magics and remove ShellServices altogether. This
6569 ShellServices as magics and remove ShellServices altogether. This
6573 will provide a single, clean way of adding functionality
6570 will provide a single, clean way of adding functionality
6574 (shell-type or otherwise) to IP.
6571 (shell-type or otherwise) to IP.
6575
6572
6576 2001-11-04 Fernando Perez <fperez@colorado.edu>
6573 2001-11-04 Fernando Perez <fperez@colorado.edu>
6577
6574
6578 * Added .ipython/ directory to sys.path. This way users can keep
6575 * Added .ipython/ directory to sys.path. This way users can keep
6579 customizations there and access them via import.
6576 customizations there and access them via import.
6580
6577
6581 2001-11-03 Fernando Perez <fperez@colorado.edu>
6578 2001-11-03 Fernando Perez <fperez@colorado.edu>
6582
6579
6583 * Opened version 0.1.1 for new changes.
6580 * Opened version 0.1.1 for new changes.
6584
6581
6585 * Changed version number to 0.1.0: first 'public' release, sent to
6582 * Changed version number to 0.1.0: first 'public' release, sent to
6586 Nathan and Janko.
6583 Nathan and Janko.
6587
6584
6588 * Lots of small fixes and tweaks.
6585 * Lots of small fixes and tweaks.
6589
6586
6590 * Minor changes to whos format. Now strings are shown, snipped if
6587 * Minor changes to whos format. Now strings are shown, snipped if
6591 too long.
6588 too long.
6592
6589
6593 * Changed ShellServices to work on __main__ so they show up in @who
6590 * Changed ShellServices to work on __main__ so they show up in @who
6594
6591
6595 * Help also works with ? at the end of a line:
6592 * Help also works with ? at the end of a line:
6596 ?sin and sin?
6593 ?sin and sin?
6597 both produce the same effect. This is nice, as often I use the
6594 both produce the same effect. This is nice, as often I use the
6598 tab-complete to find the name of a method, but I used to then have
6595 tab-complete to find the name of a method, but I used to then have
6599 to go to the beginning of the line to put a ? if I wanted more
6596 to go to the beginning of the line to put a ? if I wanted more
6600 info. Now I can just add the ? and hit return. Convenient.
6597 info. Now I can just add the ? and hit return. Convenient.
6601
6598
6602 2001-11-02 Fernando Perez <fperez@colorado.edu>
6599 2001-11-02 Fernando Perez <fperez@colorado.edu>
6603
6600
6604 * Python version check (>=2.1) added.
6601 * Python version check (>=2.1) added.
6605
6602
6606 * Added LazyPython documentation. At this point the docs are quite
6603 * Added LazyPython documentation. At this point the docs are quite
6607 a mess. A cleanup is in order.
6604 a mess. A cleanup is in order.
6608
6605
6609 * Auto-installer created. For some bizarre reason, the zipfiles
6606 * Auto-installer created. For some bizarre reason, the zipfiles
6610 module isn't working on my system. So I made a tar version
6607 module isn't working on my system. So I made a tar version
6611 (hopefully the command line options in various systems won't kill
6608 (hopefully the command line options in various systems won't kill
6612 me).
6609 me).
6613
6610
6614 * Fixes to Struct in genutils. Now all dictionary-like methods are
6611 * Fixes to Struct in genutils. Now all dictionary-like methods are
6615 protected (reasonably).
6612 protected (reasonably).
6616
6613
6617 * Added pager function to genutils and changed ? to print usage
6614 * Added pager function to genutils and changed ? to print usage
6618 note through it (it was too long).
6615 note through it (it was too long).
6619
6616
6620 * Added the LazyPython functionality. Works great! I changed the
6617 * Added the LazyPython functionality. Works great! I changed the
6621 auto-quote escape to ';', it's on home row and next to '. But
6618 auto-quote escape to ';', it's on home row and next to '. But
6622 both auto-quote and auto-paren (still /) escapes are command-line
6619 both auto-quote and auto-paren (still /) escapes are command-line
6623 parameters.
6620 parameters.
6624
6621
6625
6622
6626 2001-11-01 Fernando Perez <fperez@colorado.edu>
6623 2001-11-01 Fernando Perez <fperez@colorado.edu>
6627
6624
6628 * Version changed to 0.0.7. Fairly large change: configuration now
6625 * Version changed to 0.0.7. Fairly large change: configuration now
6629 is all stored in a directory, by default .ipython. There, all
6626 is all stored in a directory, by default .ipython. There, all
6630 config files have normal looking names (not .names)
6627 config files have normal looking names (not .names)
6631
6628
6632 * Version 0.0.6 Released first to Lucas and Archie as a test
6629 * Version 0.0.6 Released first to Lucas and Archie as a test
6633 run. Since it's the first 'semi-public' release, change version to
6630 run. Since it's the first 'semi-public' release, change version to
6634 > 0.0.6 for any changes now.
6631 > 0.0.6 for any changes now.
6635
6632
6636 * Stuff I had put in the ipplib.py changelog:
6633 * Stuff I had put in the ipplib.py changelog:
6637
6634
6638 Changes to InteractiveShell:
6635 Changes to InteractiveShell:
6639
6636
6640 - Made the usage message a parameter.
6637 - Made the usage message a parameter.
6641
6638
6642 - Require the name of the shell variable to be given. It's a bit
6639 - Require the name of the shell variable to be given. It's a bit
6643 of a hack, but allows the name 'shell' not to be hardwired in the
6640 of a hack, but allows the name 'shell' not to be hardwired in the
6644 magic (@) handler, which is problematic b/c it requires
6641 magic (@) handler, which is problematic b/c it requires
6645 polluting the global namespace with 'shell'. This in turn is
6642 polluting the global namespace with 'shell'. This in turn is
6646 fragile: if a user redefines a variable called shell, things
6643 fragile: if a user redefines a variable called shell, things
6647 break.
6644 break.
6648
6645
6649 - magic @: all functions available through @ need to be defined
6646 - magic @: all functions available through @ need to be defined
6650 as magic_<name>, even though they can be called simply as
6647 as magic_<name>, even though they can be called simply as
6651 @<name>. This allows the special command @magic to gather
6648 @<name>. This allows the special command @magic to gather
6652 information automatically about all existing magic functions,
6649 information automatically about all existing magic functions,
6653 even if they are run-time user extensions, by parsing the shell
6650 even if they are run-time user extensions, by parsing the shell
6654 instance __dict__ looking for special magic_ names.
6651 instance __dict__ looking for special magic_ names.
6655
6652
6656 - mainloop: added *two* local namespace parameters. This allows
6653 - mainloop: added *two* local namespace parameters. This allows
6657 the class to differentiate between parameters which were there
6654 the class to differentiate between parameters which were there
6658 before and after command line initialization was processed. This
6655 before and after command line initialization was processed. This
6659 way, later @who can show things loaded at startup by the
6656 way, later @who can show things loaded at startup by the
6660 user. This trick was necessary to make session saving/reloading
6657 user. This trick was necessary to make session saving/reloading
6661 really work: ideally after saving/exiting/reloading a session,
6658 really work: ideally after saving/exiting/reloading a session,
6662 *everything* should look the same, including the output of @who. I
6659 *everything* should look the same, including the output of @who. I
6663 was only able to make this work with this double namespace
6660 was only able to make this work with this double namespace
6664 trick.
6661 trick.
6665
6662
6666 - added a header to the logfile which allows (almost) full
6663 - added a header to the logfile which allows (almost) full
6667 session restoring.
6664 session restoring.
6668
6665
6669 - prepend lines beginning with @ or !, with a and log
6666 - prepend lines beginning with @ or !, with a and log
6670 them. Why? !lines: may be useful to know what you did @lines:
6667 them. Why? !lines: may be useful to know what you did @lines:
6671 they may affect session state. So when restoring a session, at
6668 they may affect session state. So when restoring a session, at
6672 least inform the user of their presence. I couldn't quite get
6669 least inform the user of their presence. I couldn't quite get
6673 them to properly re-execute, but at least the user is warned.
6670 them to properly re-execute, but at least the user is warned.
6674
6671
6675 * Started ChangeLog.
6672 * Started ChangeLog.
General Comments 0
You need to be logged in to leave comments. Login now