##// END OF EJS Templates
Add runner factory to irunner
fperez -
Show More
@@ -1,395 +1,441 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 """Module for interactively running scripts.
2 """Module for interactively running scripts.
3
3
4 This module implements classes for interactively running scripts written for
4 This module implements classes for interactively running scripts written for
5 any system with a prompt which can be matched by a regexp suitable for
5 any system with a prompt which can be matched by a regexp suitable for
6 pexpect. It can be used to run as if they had been typed up interactively, an
6 pexpect. It can be used to run as if they had been typed up interactively, an
7 arbitrary series of commands for the target system.
7 arbitrary series of commands for the target system.
8
8
9 The module includes classes ready for IPython (with the default prompts),
9 The module includes classes ready for IPython (with the default prompts),
10 plain Python and SAGE, but making a new one is trivial. To see how to use it,
10 plain Python and SAGE, but making a new one is trivial. To see how to use it,
11 simply run the module as a script:
11 simply run the module as a script:
12
12
13 ./irunner.py --help
13 ./irunner.py --help
14
14
15
15
16 This is an extension of Ken Schutte <kschutte-AT-csail.mit.edu>'s script
16 This is an extension of Ken Schutte <kschutte-AT-csail.mit.edu>'s script
17 contributed on the ipython-user list:
17 contributed on the ipython-user list:
18
18
19 http://scipy.net/pipermail/ipython-user/2006-May/001705.html
19 http://scipy.net/pipermail/ipython-user/2006-May/001705.html
20
20
21
21
22 NOTES:
22 NOTES:
23
23
24 - This module requires pexpect, available in most linux distros, or which can
24 - This module requires pexpect, available in most linux distros, or which can
25 be downloaded from
25 be downloaded from
26
26
27 http://pexpect.sourceforge.net
27 http://pexpect.sourceforge.net
28
28
29 - Because pexpect only works under Unix or Windows-Cygwin, this has the same
29 - Because pexpect only works under Unix or Windows-Cygwin, this has the same
30 limitations. This means that it will NOT work under native windows Python.
30 limitations. This means that it will NOT work under native windows Python.
31 """
31 """
32
32
33 # Stdlib imports
33 # Stdlib imports
34 import optparse
34 import optparse
35 import os
35 import os
36 import sys
36 import sys
37
37
38 # Third-party modules.
38 # Third-party modules.
39 import pexpect
39 import pexpect
40
40
41 # Global usage strings, to avoid indentation issues when typing it below.
41 # Global usage strings, to avoid indentation issues when typing it below.
42 USAGE = """
42 USAGE = """
43 Interactive script runner, type: %s
43 Interactive script runner, type: %s
44
44
45 runner [opts] script_name
45 runner [opts] script_name
46 """
46 """
47
47
48 def pexpect_monkeypatch():
48 def pexpect_monkeypatch():
49 """Patch pexpect to prevent unhandled exceptions at VM teardown.
49 """Patch pexpect to prevent unhandled exceptions at VM teardown.
50
50
51 Calling this function will monkeypatch the pexpect.spawn class and modify
51 Calling this function will monkeypatch the pexpect.spawn class and modify
52 its __del__ method to make it more robust in the face of failures that can
52 its __del__ method to make it more robust in the face of failures that can
53 occur if it is called when the Python VM is shutting down.
53 occur if it is called when the Python VM is shutting down.
54
54
55 Since Python may fire __del__ methods arbitrarily late, it's possible for
55 Since Python may fire __del__ methods arbitrarily late, it's possible for
56 them to execute during the teardown of the Python VM itself. At this
56 them to execute during the teardown of the Python VM itself. At this
57 point, various builtin modules have been reset to None. Thus, the call to
57 point, various builtin modules have been reset to None. Thus, the call to
58 self.close() will trigger an exception because it tries to call os.close(),
58 self.close() will trigger an exception because it tries to call os.close(),
59 and os is now None.
59 and os is now None.
60 """
60 """
61
61
62 if pexpect.__version__[:3] >= '2.2':
62 if pexpect.__version__[:3] >= '2.2':
63 # No need to patch, fix is already the upstream version.
63 # No need to patch, fix is already the upstream version.
64 return
64 return
65
65
66 def __del__(self):
66 def __del__(self):
67 """This makes sure that no system resources are left open.
67 """This makes sure that no system resources are left open.
68 Python only garbage collects Python objects. OS file descriptors
68 Python only garbage collects Python objects. OS file descriptors
69 are not Python objects, so they must be handled explicitly.
69 are not Python objects, so they must be handled explicitly.
70 If the child file descriptor was opened outside of this class
70 If the child file descriptor was opened outside of this class
71 (passed to the constructor) then this does not close it.
71 (passed to the constructor) then this does not close it.
72 """
72 """
73 if not self.closed:
73 if not self.closed:
74 try:
74 try:
75 self.close()
75 self.close()
76 except AttributeError:
76 except AttributeError:
77 pass
77 pass
78
78
79 pexpect.spawn.__del__ = __del__
79 pexpect.spawn.__del__ = __del__
80
80
81 pexpect_monkeypatch()
81 pexpect_monkeypatch()
82
82
83 # The generic runner class
83 # The generic runner class
84 class InteractiveRunner(object):
84 class InteractiveRunner(object):
85 """Class to run a sequence of commands through an interactive program."""
85 """Class to run a sequence of commands through an interactive program."""
86
86
87 def __init__(self,program,prompts,args=None,out=sys.stdout,echo=True):
87 def __init__(self,program,prompts,args=None,out=sys.stdout,echo=True):
88 """Construct a runner.
88 """Construct a runner.
89
89
90 Inputs:
90 Inputs:
91
91
92 - program: command to execute the given program.
92 - program: command to execute the given program.
93
93
94 - prompts: a list of patterns to match as valid prompts, in the
94 - prompts: a list of patterns to match as valid prompts, in the
95 format used by pexpect. This basically means that it can be either
95 format used by pexpect. This basically means that it can be either
96 a string (to be compiled as a regular expression) or a list of such
96 a string (to be compiled as a regular expression) or a list of such
97 (it must be a true list, as pexpect does type checks).
97 (it must be a true list, as pexpect does type checks).
98
98
99 If more than one prompt is given, the first is treated as the main
99 If more than one prompt is given, the first is treated as the main
100 program prompt and the others as 'continuation' prompts, like
100 program prompt and the others as 'continuation' prompts, like
101 python's. This means that blank lines in the input source are
101 python's. This means that blank lines in the input source are
102 ommitted when the first prompt is matched, but are NOT ommitted when
102 ommitted when the first prompt is matched, but are NOT ommitted when
103 the continuation one matches, since this is how python signals the
103 the continuation one matches, since this is how python signals the
104 end of multiline input interactively.
104 end of multiline input interactively.
105
105
106 Optional inputs:
106 Optional inputs:
107
107
108 - args(None): optional list of strings to pass as arguments to the
108 - args(None): optional list of strings to pass as arguments to the
109 child program.
109 child program.
110
110
111 - out(sys.stdout): if given, an output stream to be used when writing
111 - out(sys.stdout): if given, an output stream to be used when writing
112 output. The only requirement is that it must have a .write() method.
112 output. The only requirement is that it must have a .write() method.
113
113
114 Public members not parameterized in the constructor:
114 Public members not parameterized in the constructor:
115
115
116 - delaybeforesend(0): Newer versions of pexpect have a delay before
116 - delaybeforesend(0): Newer versions of pexpect have a delay before
117 sending each new input. For our purposes here, it's typically best
117 sending each new input. For our purposes here, it's typically best
118 to just set this to zero, but if you encounter reliability problems
118 to just set this to zero, but if you encounter reliability problems
119 or want an interactive run to pause briefly at each prompt, just
119 or want an interactive run to pause briefly at each prompt, just
120 increase this value (it is measured in seconds). Note that this
120 increase this value (it is measured in seconds). Note that this
121 variable is not honored at all by older versions of pexpect.
121 variable is not honored at all by older versions of pexpect.
122 """
122 """
123
123
124 self.program = program
124 self.program = program
125 self.prompts = prompts
125 self.prompts = prompts
126 if args is None: args = []
126 if args is None: args = []
127 self.args = args
127 self.args = args
128 self.out = out
128 self.out = out
129 self.echo = echo
129 self.echo = echo
130 # Other public members which we don't make as parameters, but which
130 # Other public members which we don't make as parameters, but which
131 # users may occasionally want to tweak
131 # users may occasionally want to tweak
132 self.delaybeforesend = 0
132 self.delaybeforesend = 0
133
133
134 # Create child process and hold on to it so we don't have to re-create
134 # Create child process and hold on to it so we don't have to re-create
135 # for every single execution call
135 # for every single execution call
136 c = self.child = pexpect.spawn(self.program,self.args,timeout=None)
136 c = self.child = pexpect.spawn(self.program,self.args,timeout=None)
137 c.delaybeforesend = self.delaybeforesend
137 c.delaybeforesend = self.delaybeforesend
138 # pexpect hard-codes the terminal size as (24,80) (rows,columns).
138 # pexpect hard-codes the terminal size as (24,80) (rows,columns).
139 # This causes problems because any line longer than 80 characters gets
139 # This causes problems because any line longer than 80 characters gets
140 # completely overwrapped on the printed outptut (even though
140 # completely overwrapped on the printed outptut (even though
141 # internally the code runs fine). We reset this to 99 rows X 200
141 # internally the code runs fine). We reset this to 99 rows X 200
142 # columns (arbitrarily chosen), which should avoid problems in all
142 # columns (arbitrarily chosen), which should avoid problems in all
143 # reasonable cases.
143 # reasonable cases.
144 c.setwinsize(99,200)
144 c.setwinsize(99,200)
145
145
146 def close(self):
146 def close(self):
147 """close child process"""
147 """close child process"""
148
148
149 self.child.close()
149 self.child.close()
150
150
151 def run_file(self,fname,interact=False,get_output=False):
151 def run_file(self,fname,interact=False,get_output=False):
152 """Run the given file interactively.
152 """Run the given file interactively.
153
153
154 Inputs:
154 Inputs:
155
155
156 -fname: name of the file to execute.
156 -fname: name of the file to execute.
157
157
158 See the run_source docstring for the meaning of the optional
158 See the run_source docstring for the meaning of the optional
159 arguments."""
159 arguments."""
160
160
161 fobj = open(fname,'r')
161 fobj = open(fname,'r')
162 try:
162 try:
163 out = self.run_source(fobj,interact,get_output)
163 out = self.run_source(fobj,interact,get_output)
164 finally:
164 finally:
165 fobj.close()
165 fobj.close()
166 if get_output:
166 if get_output:
167 return out
167 return out
168
168
169 def run_source(self,source,interact=False,get_output=False):
169 def run_source(self,source,interact=False,get_output=False):
170 """Run the given source code interactively.
170 """Run the given source code interactively.
171
171
172 Inputs:
172 Inputs:
173
173
174 - source: a string of code to be executed, or an open file object we
174 - source: a string of code to be executed, or an open file object we
175 can iterate over.
175 can iterate over.
176
176
177 Optional inputs:
177 Optional inputs:
178
178
179 - interact(False): if true, start to interact with the running
179 - interact(False): if true, start to interact with the running
180 program at the end of the script. Otherwise, just exit.
180 program at the end of the script. Otherwise, just exit.
181
181
182 - get_output(False): if true, capture the output of the child process
182 - get_output(False): if true, capture the output of the child process
183 (filtering the input commands out) and return it as a string.
183 (filtering the input commands out) and return it as a string.
184
184
185 Returns:
185 Returns:
186 A string containing the process output, but only if requested.
186 A string containing the process output, but only if requested.
187 """
187 """
188
188
189 # if the source is a string, chop it up in lines so we can iterate
189 # if the source is a string, chop it up in lines so we can iterate
190 # over it just as if it were an open file.
190 # over it just as if it were an open file.
191 if not isinstance(source,file):
191 if not isinstance(source,file):
192 source = source.splitlines(True)
192 source = source.splitlines(True)
193
193
194 if self.echo:
194 if self.echo:
195 # normalize all strings we write to use the native OS line
195 # normalize all strings we write to use the native OS line
196 # separators.
196 # separators.
197 linesep = os.linesep
197 linesep = os.linesep
198 stdwrite = self.out.write
198 stdwrite = self.out.write
199 write = lambda s: stdwrite(s.replace('\r\n',linesep))
199 write = lambda s: stdwrite(s.replace('\r\n',linesep))
200 else:
200 else:
201 # Quiet mode, all writes are no-ops
201 # Quiet mode, all writes are no-ops
202 write = lambda s: None
202 write = lambda s: None
203
203
204 c = self.child
204 c = self.child
205 prompts = c.compile_pattern_list(self.prompts)
205 prompts = c.compile_pattern_list(self.prompts)
206 prompt_idx = c.expect_list(prompts)
206 prompt_idx = c.expect_list(prompts)
207
207
208 # Flag whether the script ends normally or not, to know whether we can
208 # Flag whether the script ends normally or not, to know whether we can
209 # do anything further with the underlying process.
209 # do anything further with the underlying process.
210 end_normal = True
210 end_normal = True
211
211
212 # If the output was requested, store it in a list for return at the end
212 # If the output was requested, store it in a list for return at the end
213 if get_output:
213 if get_output:
214 output = []
214 output = []
215 store_output = output.append
215 store_output = output.append
216
216
217 for cmd in source:
217 for cmd in source:
218 # skip blank lines for all matches to the 'main' prompt, while the
218 # skip blank lines for all matches to the 'main' prompt, while the
219 # secondary prompts do not
219 # secondary prompts do not
220 if prompt_idx==0 and \
220 if prompt_idx==0 and \
221 (cmd.isspace() or cmd.lstrip().startswith('#')):
221 (cmd.isspace() or cmd.lstrip().startswith('#')):
222 write(cmd)
222 write(cmd)
223 continue
223 continue
224
224
225 #write('AFTER: '+c.after) # dbg
225 #write('AFTER: '+c.after) # dbg
226 write(c.after)
226 write(c.after)
227 c.send(cmd)
227 c.send(cmd)
228 try:
228 try:
229 prompt_idx = c.expect_list(prompts)
229 prompt_idx = c.expect_list(prompts)
230 except pexpect.EOF:
230 except pexpect.EOF:
231 # this will happen if the child dies unexpectedly
231 # this will happen if the child dies unexpectedly
232 write(c.before)
232 write(c.before)
233 end_normal = False
233 end_normal = False
234 break
234 break
235
235
236 write(c.before)
236 write(c.before)
237
237
238 # With an echoing process, the output we get in c.before contains
238 # With an echoing process, the output we get in c.before contains
239 # the command sent, a newline, and then the actual process output
239 # the command sent, a newline, and then the actual process output
240 if get_output:
240 if get_output:
241 store_output(c.before[len(cmd+'\n'):])
241 store_output(c.before[len(cmd+'\n'):])
242 #write('CMD: <<%s>>' % cmd) # dbg
242 #write('CMD: <<%s>>' % cmd) # dbg
243 #write('OUTPUT: <<%s>>' % output[-1]) # dbg
243 #write('OUTPUT: <<%s>>' % output[-1]) # dbg
244
244
245 self.out.flush()
245 self.out.flush()
246 if end_normal:
246 if end_normal:
247 if interact:
247 if interact:
248 c.send('\n')
248 c.send('\n')
249 print '<< Starting interactive mode >>',
249 print '<< Starting interactive mode >>',
250 try:
250 try:
251 c.interact()
251 c.interact()
252 except OSError:
252 except OSError:
253 # This is what fires when the child stops. Simply print a
253 # This is what fires when the child stops. Simply print a
254 # newline so the system prompt is aligned. The extra
254 # newline so the system prompt is aligned. The extra
255 # space is there to make sure it gets printed, otherwise
255 # space is there to make sure it gets printed, otherwise
256 # OS buffering sometimes just suppresses it.
256 # OS buffering sometimes just suppresses it.
257 write(' \n')
257 write(' \n')
258 self.out.flush()
258 self.out.flush()
259 else:
259 else:
260 if interact:
260 if interact:
261 e="Further interaction is not possible: child process is dead."
261 e="Further interaction is not possible: child process is dead."
262 print >> sys.stderr, e
262 print >> sys.stderr, e
263
263
264 # Leave the child ready for more input later on, otherwise select just
264 # Leave the child ready for more input later on, otherwise select just
265 # hangs on the second invocation.
265 # hangs on the second invocation.
266 c.send('\n')
266 c.send('\n')
267
267
268 # Return any requested output
268 # Return any requested output
269 if get_output:
269 if get_output:
270 return ''.join(output)
270 return ''.join(output)
271
271
272 def main(self,argv=None):
272 def main(self,argv=None):
273 """Run as a command-line script."""
273 """Run as a command-line script."""
274
274
275 parser = optparse.OptionParser(usage=USAGE % self.__class__.__name__)
275 parser = optparse.OptionParser(usage=USAGE % self.__class__.__name__)
276 newopt = parser.add_option
276 newopt = parser.add_option
277 newopt('-i','--interact',action='store_true',default=False,
277 newopt('-i','--interact',action='store_true',default=False,
278 help='Interact with the program after the script is run.')
278 help='Interact with the program after the script is run.')
279
279
280 opts,args = parser.parse_args(argv)
280 opts,args = parser.parse_args(argv)
281
281
282 if len(args) != 1:
282 if len(args) != 1:
283 print >> sys.stderr,"You must supply exactly one file to run."
283 print >> sys.stderr,"You must supply exactly one file to run."
284 sys.exit(1)
284 sys.exit(1)
285
285
286 self.run_file(args[0],opts.interact)
286 self.run_file(args[0],opts.interact)
287
287
288
288
289 # Specific runners for particular programs
289 # Specific runners for particular programs
290 class IPythonRunner(InteractiveRunner):
290 class IPythonRunner(InteractiveRunner):
291 """Interactive IPython runner.
291 """Interactive IPython runner.
292
292
293 This initalizes IPython in 'nocolor' mode for simplicity. This lets us
293 This initalizes IPython in 'nocolor' mode for simplicity. This lets us
294 avoid having to write a regexp that matches ANSI sequences, though pexpect
294 avoid having to write a regexp that matches ANSI sequences, though pexpect
295 does support them. If anyone contributes patches for ANSI color support,
295 does support them. If anyone contributes patches for ANSI color support,
296 they will be welcome.
296 they will be welcome.
297
297
298 It also sets the prompts manually, since the prompt regexps for
298 It also sets the prompts manually, since the prompt regexps for
299 pexpect need to be matched to the actual prompts, so user-customized
299 pexpect need to be matched to the actual prompts, so user-customized
300 prompts would break this.
300 prompts would break this.
301 """
301 """
302
302
303 def __init__(self,program = 'ipython',args=None,out=sys.stdout,echo=True):
303 def __init__(self,program = 'ipython',args=None,out=sys.stdout,echo=True):
304 """New runner, optionally passing the ipython command to use."""
304 """New runner, optionally passing the ipython command to use."""
305
305
306 args0 = ['-colors','NoColor',
306 args0 = ['-colors','NoColor',
307 '-pi1','In [\\#]: ',
307 '-pi1','In [\\#]: ',
308 '-pi2',' .\\D.: ',
308 '-pi2',' .\\D.: ',
309 '-noterm_title',
309 '-noterm_title',
310 '-noautoindent']
310 '-noautoindent']
311 if args is None: args = args0
311 if args is None: args = args0
312 else: args = args0 + args
312 else: args = args0 + args
313 prompts = [r'In \[\d+\]: ',r' \.*: ']
313 prompts = [r'In \[\d+\]: ',r' \.*: ']
314 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
314 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
315
315
316
316
317 class PythonRunner(InteractiveRunner):
317 class PythonRunner(InteractiveRunner):
318 """Interactive Python runner."""
318 """Interactive Python runner."""
319
319
320 def __init__(self,program='python',args=None,out=sys.stdout,echo=True):
320 def __init__(self,program='python',args=None,out=sys.stdout,echo=True):
321 """New runner, optionally passing the python command to use."""
321 """New runner, optionally passing the python command to use."""
322
322
323 prompts = [r'>>> ',r'\.\.\. ']
323 prompts = [r'>>> ',r'\.\.\. ']
324 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
324 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
325
325
326
326
327 class SAGERunner(InteractiveRunner):
327 class SAGERunner(InteractiveRunner):
328 """Interactive SAGE runner.
328 """Interactive SAGE runner.
329
329
330 WARNING: this runner only works if you manually configure your SAGE copy
330 WARNING: this runner only works if you manually configure your SAGE copy
331 to use 'colors NoColor' in the ipythonrc config file, since currently the
331 to use 'colors NoColor' in the ipythonrc config file, since currently the
332 prompt matching regexp does not identify color sequences."""
332 prompt matching regexp does not identify color sequences."""
333
333
334 def __init__(self,program='sage',args=None,out=sys.stdout,echo=True):
334 def __init__(self,program='sage',args=None,out=sys.stdout,echo=True):
335 """New runner, optionally passing the sage command to use."""
335 """New runner, optionally passing the sage command to use."""
336
336
337 prompts = ['sage: ',r'\s*\.\.\. ']
337 prompts = ['sage: ',r'\s*\.\.\. ']
338 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
338 InteractiveRunner.__init__(self,program,prompts,args,out,echo)
339
339
340
341 class RunnerFactory(object):
342 """Code runner factory.
343
344 This class provides an IPython code runner, but enforces that only one
345 runner is ever instantiated. The runner is created based on the extension
346 of the first file to run, and it raises an exception if a runner is later
347 requested for a different extension type.
348
349 This ensures that we don't generate example files for doctest with a mix of
350 python and ipython syntax.
351 """
352
353 def __init__(self,out=sys.stdout):
354 """Instantiate a code runner."""
355
356 self.out = out
357 self.runner = None
358 self.runnerClass = None
359
360 def _makeRunner(self,runnerClass):
361 self.runnerClass = runnerClass
362 self.runner = runnerClass(out=self.out)
363 return self.runner
364
365 def __call__(self,fname):
366 """Return a runner for the given filename."""
367
368 if fname.endswith('.py'):
369 runnerClass = PythonRunner
370 elif fname.endswith('.ipy'):
371 runnerClass = IPythonRunner
372 else:
373 raise ValueError('Unknown file type for Runner: %r' % fname)
374
375 if self.runner is None:
376 return self._makeRunner(runnerClass)
377 else:
378 if runnerClass==self.runnerClass:
379 return self.runner
380 else:
381 e='A runner of type %r can not run file %r' % \
382 (self.runnerClass,fname)
383 raise ValueError(e)
384
385
340 # Global usage string, to avoid indentation issues if typed in a function def.
386 # Global usage string, to avoid indentation issues if typed in a function def.
341 MAIN_USAGE = """
387 MAIN_USAGE = """
342 %prog [options] file_to_run
388 %prog [options] file_to_run
343
389
344 This is an interface to the various interactive runners available in this
390 This is an interface to the various interactive runners available in this
345 module. If you want to pass specific options to one of the runners, you need
391 module. If you want to pass specific options to one of the runners, you need
346 to first terminate the main options with a '--', and then provide the runner's
392 to first terminate the main options with a '--', and then provide the runner's
347 options. For example:
393 options. For example:
348
394
349 irunner.py --python -- --help
395 irunner.py --python -- --help
350
396
351 will pass --help to the python runner. Similarly,
397 will pass --help to the python runner. Similarly,
352
398
353 irunner.py --ipython -- --interact script.ipy
399 irunner.py --ipython -- --interact script.ipy
354
400
355 will run the script.ipy file under the IPython runner, and then will start to
401 will run the script.ipy file under the IPython runner, and then will start to
356 interact with IPython at the end of the script (instead of exiting).
402 interact with IPython at the end of the script (instead of exiting).
357
403
358 The already implemented runners are listed below; adding one for a new program
404 The already implemented runners are listed below; adding one for a new program
359 is a trivial task, see the source for examples.
405 is a trivial task, see the source for examples.
360
406
361 WARNING: the SAGE runner only works if you manually configure your SAGE copy
407 WARNING: the SAGE runner only works if you manually configure your SAGE copy
362 to use 'colors NoColor' in the ipythonrc config file, since currently the
408 to use 'colors NoColor' in the ipythonrc config file, since currently the
363 prompt matching regexp does not identify color sequences.
409 prompt matching regexp does not identify color sequences.
364 """
410 """
365
411
366 def main():
412 def main():
367 """Run as a command-line script."""
413 """Run as a command-line script."""
368
414
369 parser = optparse.OptionParser(usage=MAIN_USAGE)
415 parser = optparse.OptionParser(usage=MAIN_USAGE)
370 newopt = parser.add_option
416 newopt = parser.add_option
371 parser.set_defaults(mode='ipython')
417 parser.set_defaults(mode='ipython')
372 newopt('--ipython',action='store_const',dest='mode',const='ipython',
418 newopt('--ipython',action='store_const',dest='mode',const='ipython',
373 help='IPython interactive runner (default).')
419 help='IPython interactive runner (default).')
374 newopt('--python',action='store_const',dest='mode',const='python',
420 newopt('--python',action='store_const',dest='mode',const='python',
375 help='Python interactive runner.')
421 help='Python interactive runner.')
376 newopt('--sage',action='store_const',dest='mode',const='sage',
422 newopt('--sage',action='store_const',dest='mode',const='sage',
377 help='SAGE interactive runner.')
423 help='SAGE interactive runner.')
378
424
379 opts,args = parser.parse_args()
425 opts,args = parser.parse_args()
380 runners = dict(ipython=IPythonRunner,
426 runners = dict(ipython=IPythonRunner,
381 python=PythonRunner,
427 python=PythonRunner,
382 sage=SAGERunner)
428 sage=SAGERunner)
383
429
384 try:
430 try:
385 ext = os.path.splitext(args[0])[-1]
431 ext = os.path.splitext(args[0])[-1]
386 except IndexError:
432 except IndexError:
387 ext = ''
433 ext = ''
388 modes = {'.ipy':'ipython',
434 modes = {'.ipy':'ipython',
389 '.py':'python',
435 '.py':'python',
390 '.sage':'sage'}
436 '.sage':'sage'}
391 mode = modes.get(ext,opts.mode)
437 mode = modes.get(ext,opts.mode)
392 runners[mode]().main(args)
438 runners[mode]().main(args)
393
439
394 if __name__ == '__main__':
440 if __name__ == '__main__':
395 main()
441 main()
@@ -1,6932 +1,6935 b''
1 2007-08-04 Fernando Perez <Fernando.Perez@colorado.edu>
1 2007-08-04 Fernando Perez <Fernando.Perez@colorado.edu>
2
2
3 * IPython/irunner.py (RunnerFactory): Add new factory class for
4 creating reusable runners based on filenames.
5
3 * IPython/Extensions/ipy_profile_doctest.py: New profile for
6 * IPython/Extensions/ipy_profile_doctest.py: New profile for
4 doctest support. It sets prompts/exceptions as similar to
7 doctest support. It sets prompts/exceptions as similar to
5 standard Python as possible, so that ipython sessions in this
8 standard Python as possible, so that ipython sessions in this
6 profile can be easily pasted as doctests with minimal
9 profile can be easily pasted as doctests with minimal
7 modifications. It also enables pasting of doctests from external
10 modifications. It also enables pasting of doctests from external
8 sources (even if they have leading whitespace), so that you can
11 sources (even if they have leading whitespace), so that you can
9 rerun doctests from existing sources.
12 rerun doctests from existing sources.
10
13
11 * IPython/iplib.py (_prefilter): fix a buglet where after entering
14 * IPython/iplib.py (_prefilter): fix a buglet where after entering
12 some whitespace, the prompt would become a continuation prompt
15 some whitespace, the prompt would become a continuation prompt
13 with no way of exiting it other than Ctrl-C. This fix brings us
16 with no way of exiting it other than Ctrl-C. This fix brings us
14 into conformity with how the default python prompt works.
17 into conformity with how the default python prompt works.
15
18
16 * IPython/Extensions/InterpreterPasteInput.py (prefilter_paste):
19 * IPython/Extensions/InterpreterPasteInput.py (prefilter_paste):
17 Add support for pasting not only lines that start with '>>>', but
20 Add support for pasting not only lines that start with '>>>', but
18 also with ' >>>'. That is, arbitrary whitespace can now precede
21 also with ' >>>'. That is, arbitrary whitespace can now precede
19 the prompts. This makes the system useful for pasting doctests
22 the prompts. This makes the system useful for pasting doctests
20 from docstrings back into a normal session.
23 from docstrings back into a normal session.
21
24
22 2007-08-02 Fernando Perez <Fernando.Perez@colorado.edu>
25 2007-08-02 Fernando Perez <Fernando.Perez@colorado.edu>
23
26
24 * IPython/Shell.py (IPShellEmbed.__call__): fix bug introduced in
27 * IPython/Shell.py (IPShellEmbed.__call__): fix bug introduced in
25 r1357, which had killed multiple invocations of an embedded
28 r1357, which had killed multiple invocations of an embedded
26 ipython (this means that example-embed has been broken for over 1
29 ipython (this means that example-embed has been broken for over 1
27 year!!!). Rather than possibly breaking the batch stuff for which
30 year!!!). Rather than possibly breaking the batch stuff for which
28 the code in iplib.py/interact was introduced, I worked around the
31 the code in iplib.py/interact was introduced, I worked around the
29 problem in the embedding class in Shell.py. We really need a
32 problem in the embedding class in Shell.py. We really need a
30 bloody test suite for this code, I'm sick of finding stuff that
33 bloody test suite for this code, I'm sick of finding stuff that
31 used to work breaking left and right every time I use an old
34 used to work breaking left and right every time I use an old
32 feature I hadn't touched in a few months.
35 feature I hadn't touched in a few months.
33 (kill_embedded): Add a new magic that only shows up in embedded
36 (kill_embedded): Add a new magic that only shows up in embedded
34 mode, to allow users to permanently deactivate an embedded instance.
37 mode, to allow users to permanently deactivate an embedded instance.
35
38
36 2007-08-01 Ville Vainio <vivainio@gmail.com>
39 2007-08-01 Ville Vainio <vivainio@gmail.com>
37
40
38 * iplib.py, ipy_profile_sh.py (runlines): Fix the bug where raw
41 * iplib.py, ipy_profile_sh.py (runlines): Fix the bug where raw
39 history gets out of sync on runlines (e.g. when running macros).
42 history gets out of sync on runlines (e.g. when running macros).
40
43
41 2007-07-31 Fernando Perez <Fernando.Perez@colorado.edu>
44 2007-07-31 Fernando Perez <Fernando.Perez@colorado.edu>
42
45
43 * IPython/Magic.py (magic_colors): fix win32-related error message
46 * IPython/Magic.py (magic_colors): fix win32-related error message
44 that could appear under *nix when readline was missing. Patch by
47 that could appear under *nix when readline was missing. Patch by
45 Scott Jackson, closes #175.
48 Scott Jackson, closes #175.
46
49
47 2007-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
50 2007-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
48
51
49 * IPython/Extensions/ipy_traits_completer.py: Add a new custom
52 * IPython/Extensions/ipy_traits_completer.py: Add a new custom
50 completer that it traits-aware, so that traits objects don't show
53 completer that it traits-aware, so that traits objects don't show
51 all of their internal attributes all the time.
54 all of their internal attributes all the time.
52
55
53 * IPython/genutils.py (dir2): moved this code from inside
56 * IPython/genutils.py (dir2): moved this code from inside
54 completer.py to expose it publicly, so I could use it in the
57 completer.py to expose it publicly, so I could use it in the
55 wildcards bugfix.
58 wildcards bugfix.
56
59
57 * IPython/wildcard.py (NameSpace.__init__): fix a bug reported by
60 * IPython/wildcard.py (NameSpace.__init__): fix a bug reported by
58 Stefan with Traits.
61 Stefan with Traits.
59
62
60 * IPython/completer.py (Completer.attr_matches): change internal
63 * IPython/completer.py (Completer.attr_matches): change internal
61 var name from 'object' to 'obj', since 'object' is now a builtin
64 var name from 'object' to 'obj', since 'object' is now a builtin
62 and this can lead to weird bugs if reusing this code elsewhere.
65 and this can lead to weird bugs if reusing this code elsewhere.
63
66
64 2007-07-25 Fernando Perez <Fernando.Perez@colorado.edu>
67 2007-07-25 Fernando Perez <Fernando.Perez@colorado.edu>
65
68
66 * IPython/OInspect.py (Inspector.pinfo): fix small glitches in
69 * IPython/OInspect.py (Inspector.pinfo): fix small glitches in
67 'foo?' and update the code to prevent printing of default
70 'foo?' and update the code to prevent printing of default
68 docstrings that started appearing after I added support for
71 docstrings that started appearing after I added support for
69 new-style classes. The approach I'm using isn't ideal (I just
72 new-style classes. The approach I'm using isn't ideal (I just
70 special-case those strings) but I'm not sure how to more robustly
73 special-case those strings) but I'm not sure how to more robustly
71 differentiate between truly user-written strings and Python's
74 differentiate between truly user-written strings and Python's
72 automatic ones.
75 automatic ones.
73
76
74 2007-07-09 Ville Vainio <vivainio@gmail.com>
77 2007-07-09 Ville Vainio <vivainio@gmail.com>
75
78
76 * completer.py: Applied Matthew Neeley's patch:
79 * completer.py: Applied Matthew Neeley's patch:
77 Dynamic attributes from trait_names and _getAttributeNames are added
80 Dynamic attributes from trait_names and _getAttributeNames are added
78 to the list of tab completions, but when this happens, the attribute
81 to the list of tab completions, but when this happens, the attribute
79 list is turned into a set, so the attributes are unordered when
82 list is turned into a set, so the attributes are unordered when
80 printed, which makes it hard to find the right completion. This patch
83 printed, which makes it hard to find the right completion. This patch
81 turns this set back into a list and sort it.
84 turns this set back into a list and sort it.
82
85
83 2007-07-06 Fernando Perez <Fernando.Perez@colorado.edu>
86 2007-07-06 Fernando Perez <Fernando.Perez@colorado.edu>
84
87
85 * IPython/OInspect.py (Inspector.pinfo): Add support for new-style
88 * IPython/OInspect.py (Inspector.pinfo): Add support for new-style
86 classes in various inspector functions.
89 classes in various inspector functions.
87
90
88 2007-06-28 Ville Vainio <vivainio@gmail.com>
91 2007-06-28 Ville Vainio <vivainio@gmail.com>
89
92
90 * shadowns.py, iplib.py, ipapi.py, OInspect.py:
93 * shadowns.py, iplib.py, ipapi.py, OInspect.py:
91 Implement "shadow" namespace, and callable aliases that reside there.
94 Implement "shadow" namespace, and callable aliases that reside there.
92 Use them by:
95 Use them by:
93
96
94 _ip.defalias('foo',myfunc) # creates _sh.foo that points to myfunc
97 _ip.defalias('foo',myfunc) # creates _sh.foo that points to myfunc
95
98
96 foo hello world
99 foo hello world
97 (gets translated to:)
100 (gets translated to:)
98 _sh.foo(r"""hello world""")
101 _sh.foo(r"""hello world""")
99
102
100 In practice, this kind of alias can take the role of a magic function
103 In practice, this kind of alias can take the role of a magic function
101
104
102 * New generic inspect_object, called on obj? and obj??
105 * New generic inspect_object, called on obj? and obj??
103
106
104 2007-06-15 Fernando Perez <Fernando.Perez@colorado.edu>
107 2007-06-15 Fernando Perez <Fernando.Perez@colorado.edu>
105
108
106 * IPython/ultraTB.py (findsource): fix a problem with
109 * IPython/ultraTB.py (findsource): fix a problem with
107 inspect.getfile that can cause crashes during traceback construction.
110 inspect.getfile that can cause crashes during traceback construction.
108
111
109 2007-06-14 Ville Vainio <vivainio@gmail.com>
112 2007-06-14 Ville Vainio <vivainio@gmail.com>
110
113
111 * iplib.py (handle_auto): Try to use ascii for printing "--->"
114 * iplib.py (handle_auto): Try to use ascii for printing "--->"
112 autocall rewrite indication, becausesometimes unicode fails to print
115 autocall rewrite indication, becausesometimes unicode fails to print
113 properly (and you get ' - - - '). Use plain uncoloured ---> for
116 properly (and you get ' - - - '). Use plain uncoloured ---> for
114 unicode.
117 unicode.
115
118
116 * shadow history. Usable through "%hist -g <pat>" and "%rep 0123".
119 * shadow history. Usable through "%hist -g <pat>" and "%rep 0123".
117
120
118 . pickleshare 'hash' commands (hget, hset, hcompress,
121 . pickleshare 'hash' commands (hget, hset, hcompress,
119 hdict) for efficient shadow history storage.
122 hdict) for efficient shadow history storage.
120
123
121 2007-06-13 Ville Vainio <vivainio@gmail.com>
124 2007-06-13 Ville Vainio <vivainio@gmail.com>
122
125
123 * ipapi.py: _ip.to_user_ns(vars, interactive = True).
126 * ipapi.py: _ip.to_user_ns(vars, interactive = True).
124 Added kw arg 'interactive', tell whether vars should be visible
127 Added kw arg 'interactive', tell whether vars should be visible
125 with %whos.
128 with %whos.
126
129
127 2007-06-11 Ville Vainio <vivainio@gmail.com>
130 2007-06-11 Ville Vainio <vivainio@gmail.com>
128
131
129 * pspersistence.py, Magic.py, iplib.py: directory history now saved
132 * pspersistence.py, Magic.py, iplib.py: directory history now saved
130 to db
133 to db
131
134
132 * iplib.py: "ipython -c <cmd>" now passes the command through prefilter.
135 * iplib.py: "ipython -c <cmd>" now passes the command through prefilter.
133 Also, it exits IPython immediately after evaluating the command (just like
136 Also, it exits IPython immediately after evaluating the command (just like
134 std python)
137 std python)
135
138
136 2007-06-05 Walter Doerwald <walter@livinglogic.de>
139 2007-06-05 Walter Doerwald <walter@livinglogic.de>
137
140
138 * IPython/Extensions/ipipe.py: Added a new table icap, which executes a
141 * IPython/Extensions/ipipe.py: Added a new table icap, which executes a
139 Python string and captures the output. (Idea and original patch by
142 Python string and captures the output. (Idea and original patch by
140 StοΏ½fan van der Walt)
143 StοΏ½fan van der Walt)
141
144
142 2007-06-01 Fernando Perez <Fernando.Perez@colorado.edu>
145 2007-06-01 Fernando Perez <Fernando.Perez@colorado.edu>
143
146
144 * IPython/ultraTB.py (VerboseTB.text): update printing of
147 * IPython/ultraTB.py (VerboseTB.text): update printing of
145 exception types for Python 2.5 (now all exceptions in the stdlib
148 exception types for Python 2.5 (now all exceptions in the stdlib
146 are new-style classes).
149 are new-style classes).
147
150
148 2007-05-31 Walter Doerwald <walter@livinglogic.de>
151 2007-05-31 Walter Doerwald <walter@livinglogic.de>
149
152
150 * IPython/Extensions/igrid.py: Add new commands refresh and
153 * IPython/Extensions/igrid.py: Add new commands refresh and
151 refresh_timer (mapped to "R"/"F5" and to the menu) which restarts
154 refresh_timer (mapped to "R"/"F5" and to the menu) which restarts
152 the iterator once (refresh) or after every x seconds (refresh_timer).
155 the iterator once (refresh) or after every x seconds (refresh_timer).
153 Add a working implementation of "searchexpression", where the text
156 Add a working implementation of "searchexpression", where the text
154 entered is not the text to search for, but an expression that must
157 entered is not the text to search for, but an expression that must
155 be true. Added display of shortcuts to the menu. Added commands "pickinput"
158 be true. Added display of shortcuts to the menu. Added commands "pickinput"
156 and "pickinputattr" that put the object or attribute under the cursor
159 and "pickinputattr" that put the object or attribute under the cursor
157 in the input line. Split the statusbar to be able to display the currently
160 in the input line. Split the statusbar to be able to display the currently
158 active refresh interval. (Patch by Nik Tautenhahn)
161 active refresh interval. (Patch by Nik Tautenhahn)
159
162
160 2007-05-29 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
163 2007-05-29 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
161
164
162 * fixing set_term_title to use ctypes as default
165 * fixing set_term_title to use ctypes as default
163
166
164 * fixing set_term_title fallback to work when curent dir
167 * fixing set_term_title fallback to work when curent dir
165 is on a windows network share
168 is on a windows network share
166
169
167 2007-05-28 Ville Vainio <vivainio@gmail.com>
170 2007-05-28 Ville Vainio <vivainio@gmail.com>
168
171
169 * %cpaste: strip + with > from left (diffs).
172 * %cpaste: strip + with > from left (diffs).
170
173
171 * iplib.py: Fix crash when readline not installed
174 * iplib.py: Fix crash when readline not installed
172
175
173 2007-05-26 Ville Vainio <vivainio@gmail.com>
176 2007-05-26 Ville Vainio <vivainio@gmail.com>
174
177
175 * generics.py: intruduce easy to extend result_display generic
178 * generics.py: intruduce easy to extend result_display generic
176 function (using simplegeneric.py).
179 function (using simplegeneric.py).
177
180
178 * Fixed the append functionality of %set.
181 * Fixed the append functionality of %set.
179
182
180 2007-05-25 Ville Vainio <vivainio@gmail.com>
183 2007-05-25 Ville Vainio <vivainio@gmail.com>
181
184
182 * New magic: %rep (fetch / run old commands from history)
185 * New magic: %rep (fetch / run old commands from history)
183
186
184 * New extension: mglob (%mglob magic), for powerful glob / find /filter
187 * New extension: mglob (%mglob magic), for powerful glob / find /filter
185 like functionality
188 like functionality
186
189
187 % maghistory.py: %hist -g PATTERM greps the history for pattern
190 % maghistory.py: %hist -g PATTERM greps the history for pattern
188
191
189 2007-05-24 Walter Doerwald <walter@livinglogic.de>
192 2007-05-24 Walter Doerwald <walter@livinglogic.de>
190
193
191 * IPython/Extensions/ipipe.py: Added a Table ihist that can be used to
194 * IPython/Extensions/ipipe.py: Added a Table ihist that can be used to
192 browse the IPython input history
195 browse the IPython input history
193
196
194 * IPython/Extensions/ibrowse.py: Added two command to ibrowse: pickinput
197 * IPython/Extensions/ibrowse.py: Added two command to ibrowse: pickinput
195 (mapped to "i") can be used to put the object under the curser in the input
198 (mapped to "i") can be used to put the object under the curser in the input
196 line. pickinputattr (mapped to "I") does the same for the attribute under
199 line. pickinputattr (mapped to "I") does the same for the attribute under
197 the cursor.
200 the cursor.
198
201
199 2007-05-24 Ville Vainio <vivainio@gmail.com>
202 2007-05-24 Ville Vainio <vivainio@gmail.com>
200
203
201 * Grand magic cleansing (changeset [2380]):
204 * Grand magic cleansing (changeset [2380]):
202
205
203 * Introduce ipy_legacy.py where the following magics were
206 * Introduce ipy_legacy.py where the following magics were
204 moved:
207 moved:
205
208
206 pdef pdoc psource pfile rehash dhist Quit p r automagic autocall
209 pdef pdoc psource pfile rehash dhist Quit p r automagic autocall
207
210
208 If you need them, either use default profile or "import ipy_legacy"
211 If you need them, either use default profile or "import ipy_legacy"
209 in your ipy_user_conf.py
212 in your ipy_user_conf.py
210
213
211 * Move sh and scipy profile to Extensions from UserConfig. this implies
214 * Move sh and scipy profile to Extensions from UserConfig. this implies
212 you should not edit them, but you don't need to run %upgrade when
215 you should not edit them, but you don't need to run %upgrade when
213 upgrading IPython anymore.
216 upgrading IPython anymore.
214
217
215 * %hist/%history now operates in "raw" mode by default. To get the old
218 * %hist/%history now operates in "raw" mode by default. To get the old
216 behaviour, run '%hist -n' (native mode).
219 behaviour, run '%hist -n' (native mode).
217
220
218 * split ipy_stock_completers.py to ipy_stock_completers.py and
221 * split ipy_stock_completers.py to ipy_stock_completers.py and
219 ipy_app_completers.py. Stock completers (%cd, import, %run) are now
222 ipy_app_completers.py. Stock completers (%cd, import, %run) are now
220 installed as default.
223 installed as default.
221
224
222 * sh profile now installs ipy_signals.py, for (hopefully) better ctrl+c
225 * sh profile now installs ipy_signals.py, for (hopefully) better ctrl+c
223 handling.
226 handling.
224
227
225 * iplib.py, ipapi.py: _ip.set_next_input(s) sets the next ("default")
228 * iplib.py, ipapi.py: _ip.set_next_input(s) sets the next ("default")
226 input if readline is available.
229 input if readline is available.
227
230
228 2007-05-23 Ville Vainio <vivainio@gmail.com>
231 2007-05-23 Ville Vainio <vivainio@gmail.com>
229
232
230 * macro.py: %store uses __getstate__ properly
233 * macro.py: %store uses __getstate__ properly
231
234
232 * exesetup.py: added new setup script for creating
235 * exesetup.py: added new setup script for creating
233 standalone IPython executables with py2exe (i.e.
236 standalone IPython executables with py2exe (i.e.
234 no python installation required).
237 no python installation required).
235
238
236 * Removed ipythonrc-scipy, ipy_profile_scipy.py takes
239 * Removed ipythonrc-scipy, ipy_profile_scipy.py takes
237 its place.
240 its place.
238
241
239 * rlineimpl.py, genutils.py (get_home_dir): py2exe support
242 * rlineimpl.py, genutils.py (get_home_dir): py2exe support
240
243
241 2007-05-21 Ville Vainio <vivainio@gmail.com>
244 2007-05-21 Ville Vainio <vivainio@gmail.com>
242
245
243 * platutil_win32.py (set_term_title): handle
246 * platutil_win32.py (set_term_title): handle
244 failure of 'title' system call properly.
247 failure of 'title' system call properly.
245
248
246 2007-05-17 Walter Doerwald <walter@livinglogic.de>
249 2007-05-17 Walter Doerwald <walter@livinglogic.de>
247
250
248 * IPython/Extensions/ipipe.py: Fix xrepr for ifiles.
251 * IPython/Extensions/ipipe.py: Fix xrepr for ifiles.
249 (Bug detected by Paul Mueller).
252 (Bug detected by Paul Mueller).
250
253
251 2007-05-16 Ville Vainio <vivainio@gmail.com>
254 2007-05-16 Ville Vainio <vivainio@gmail.com>
252
255
253 * ipy_profile_sci.py, ipython_win_post_install.py: Create
256 * ipy_profile_sci.py, ipython_win_post_install.py: Create
254 new "sci" profile, effectively a modern version of the old
257 new "sci" profile, effectively a modern version of the old
255 "scipy" profile (which is now slated for deprecation).
258 "scipy" profile (which is now slated for deprecation).
256
259
257 2007-05-15 Ville Vainio <vivainio@gmail.com>
260 2007-05-15 Ville Vainio <vivainio@gmail.com>
258
261
259 * pycolorize.py, pycolor.1: Paul Mueller's patches that
262 * pycolorize.py, pycolor.1: Paul Mueller's patches that
260 make pycolorize read input from stdin when run without arguments.
263 make pycolorize read input from stdin when run without arguments.
261
264
262 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
265 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
263
266
264 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
267 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
265 it in sh profile (instead of ipy_system_conf.py).
268 it in sh profile (instead of ipy_system_conf.py).
266
269
267 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
270 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
268 aliases are now lower case on windows (MyCommand.exe => mycommand).
271 aliases are now lower case on windows (MyCommand.exe => mycommand).
269
272
270 * macro.py, ipapi.py, iplib.py, Prompts.py: Macro system rehaul.
273 * macro.py, ipapi.py, iplib.py, Prompts.py: Macro system rehaul.
271 Macros are now callable objects that inherit from ipapi.IPyAutocall,
274 Macros are now callable objects that inherit from ipapi.IPyAutocall,
272 i.e. get autocalled regardless of system autocall setting.
275 i.e. get autocalled regardless of system autocall setting.
273
276
274 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
277 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
275
278
276 * IPython/rlineimpl.py: check for clear_history in readline and
279 * IPython/rlineimpl.py: check for clear_history in readline and
277 make it a dummy no-op if not available. This function isn't
280 make it a dummy no-op if not available. This function isn't
278 guaranteed to be in the API and appeared in Python 2.4, so we need
281 guaranteed to be in the API and appeared in Python 2.4, so we need
279 to check it ourselves. Also, clean up this file quite a bit.
282 to check it ourselves. Also, clean up this file quite a bit.
280
283
281 * ipython.1: update man page and full manual with information
284 * ipython.1: update man page and full manual with information
282 about threads (remove outdated warning). Closes #151.
285 about threads (remove outdated warning). Closes #151.
283
286
284 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
287 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
285
288
286 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
289 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
287 in trunk (note that this made it into the 0.8.1 release already,
290 in trunk (note that this made it into the 0.8.1 release already,
288 but the changelogs didn't get coordinated). Many thanks to Gael
291 but the changelogs didn't get coordinated). Many thanks to Gael
289 Varoquaux <gael.varoquaux-AT-normalesup.org>
292 Varoquaux <gael.varoquaux-AT-normalesup.org>
290
293
291 2007-05-09 *** Released version 0.8.1
294 2007-05-09 *** Released version 0.8.1
292
295
293 2007-05-10 Walter Doerwald <walter@livinglogic.de>
296 2007-05-10 Walter Doerwald <walter@livinglogic.de>
294
297
295 * IPython/Extensions/igrid.py: Incorporate html help into
298 * IPython/Extensions/igrid.py: Incorporate html help into
296 the module, so we don't have to search for the file.
299 the module, so we don't have to search for the file.
297
300
298 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
301 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
299
302
300 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
303 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
301
304
302 2007-04-30 Ville Vainio <vivainio@gmail.com>
305 2007-04-30 Ville Vainio <vivainio@gmail.com>
303
306
304 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
307 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
305 user has illegal (non-ascii) home directory name
308 user has illegal (non-ascii) home directory name
306
309
307 2007-04-27 Ville Vainio <vivainio@gmail.com>
310 2007-04-27 Ville Vainio <vivainio@gmail.com>
308
311
309 * platutils_win32.py: implement set_term_title for windows
312 * platutils_win32.py: implement set_term_title for windows
310
313
311 * Update version number
314 * Update version number
312
315
313 * ipy_profile_sh.py: more informative prompt (2 dir levels)
316 * ipy_profile_sh.py: more informative prompt (2 dir levels)
314
317
315 2007-04-26 Walter Doerwald <walter@livinglogic.de>
318 2007-04-26 Walter Doerwald <walter@livinglogic.de>
316
319
317 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
320 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
318 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
321 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
319 bug discovered by Ville).
322 bug discovered by Ville).
320
323
321 2007-04-26 Ville Vainio <vivainio@gmail.com>
324 2007-04-26 Ville Vainio <vivainio@gmail.com>
322
325
323 * Extensions/ipy_completers.py: Olivier's module completer now
326 * Extensions/ipy_completers.py: Olivier's module completer now
324 saves the list of root modules if it takes > 4 secs on the first run.
327 saves the list of root modules if it takes > 4 secs on the first run.
325
328
326 * Magic.py (%rehashx): %rehashx now clears the completer cache
329 * Magic.py (%rehashx): %rehashx now clears the completer cache
327
330
328
331
329 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
332 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
330
333
331 * ipython.el: fix incorrect color scheme, reported by Stefan.
334 * ipython.el: fix incorrect color scheme, reported by Stefan.
332 Closes #149.
335 Closes #149.
333
336
334 * IPython/PyColorize.py (Parser.format2): fix state-handling
337 * IPython/PyColorize.py (Parser.format2): fix state-handling
335 logic. I still don't like how that code handles state, but at
338 logic. I still don't like how that code handles state, but at
336 least now it should be correct, if inelegant. Closes #146.
339 least now it should be correct, if inelegant. Closes #146.
337
340
338 2007-04-25 Ville Vainio <vivainio@gmail.com>
341 2007-04-25 Ville Vainio <vivainio@gmail.com>
339
342
340 * Extensions/ipy_which.py: added extension for %which magic, works
343 * Extensions/ipy_which.py: added extension for %which magic, works
341 a lot like unix 'which' but also finds and expands aliases, and
344 a lot like unix 'which' but also finds and expands aliases, and
342 allows wildcards.
345 allows wildcards.
343
346
344 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
347 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
345 as opposed to returning nothing.
348 as opposed to returning nothing.
346
349
347 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
350 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
348 ipy_stock_completers on default profile, do import on sh profile.
351 ipy_stock_completers on default profile, do import on sh profile.
349
352
350 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
353 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
351
354
352 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
355 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
353 like ipython.py foo.py which raised a IndexError.
356 like ipython.py foo.py which raised a IndexError.
354
357
355 2007-04-21 Ville Vainio <vivainio@gmail.com>
358 2007-04-21 Ville Vainio <vivainio@gmail.com>
356
359
357 * Extensions/ipy_extutil.py: added extension to manage other ipython
360 * Extensions/ipy_extutil.py: added extension to manage other ipython
358 extensions. Now only supports 'ls' == list extensions.
361 extensions. Now only supports 'ls' == list extensions.
359
362
360 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
363 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
361
364
362 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
365 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
363 would prevent use of the exception system outside of a running
366 would prevent use of the exception system outside of a running
364 IPython instance.
367 IPython instance.
365
368
366 2007-04-20 Ville Vainio <vivainio@gmail.com>
369 2007-04-20 Ville Vainio <vivainio@gmail.com>
367
370
368 * Extensions/ipy_render.py: added extension for easy
371 * Extensions/ipy_render.py: added extension for easy
369 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
372 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
370 'Iptl' template notation,
373 'Iptl' template notation,
371
374
372 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
375 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
373 safer & faster 'import' completer.
376 safer & faster 'import' completer.
374
377
375 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
378 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
376 and _ip.defalias(name, command).
379 and _ip.defalias(name, command).
377
380
378 * Extensions/ipy_exportdb.py: New extension for exporting all the
381 * Extensions/ipy_exportdb.py: New extension for exporting all the
379 %store'd data in a portable format (normal ipapi calls like
382 %store'd data in a portable format (normal ipapi calls like
380 defmacro() etc.)
383 defmacro() etc.)
381
384
382 2007-04-19 Ville Vainio <vivainio@gmail.com>
385 2007-04-19 Ville Vainio <vivainio@gmail.com>
383
386
384 * upgrade_dir.py: skip junk files like *.pyc
387 * upgrade_dir.py: skip junk files like *.pyc
385
388
386 * Release.py: version number to 0.8.1
389 * Release.py: version number to 0.8.1
387
390
388 2007-04-18 Ville Vainio <vivainio@gmail.com>
391 2007-04-18 Ville Vainio <vivainio@gmail.com>
389
392
390 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
393 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
391 and later on win32.
394 and later on win32.
392
395
393 2007-04-16 Ville Vainio <vivainio@gmail.com>
396 2007-04-16 Ville Vainio <vivainio@gmail.com>
394
397
395 * iplib.py (showtraceback): Do not crash when running w/o readline.
398 * iplib.py (showtraceback): Do not crash when running w/o readline.
396
399
397 2007-04-12 Walter Doerwald <walter@livinglogic.de>
400 2007-04-12 Walter Doerwald <walter@livinglogic.de>
398
401
399 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
402 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
400 sorted (case sensitive with files and dirs mixed).
403 sorted (case sensitive with files and dirs mixed).
401
404
402 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
405 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
403
406
404 * IPython/Release.py (version): Open trunk for 0.8.1 development.
407 * IPython/Release.py (version): Open trunk for 0.8.1 development.
405
408
406 2007-04-10 *** Released version 0.8.0
409 2007-04-10 *** Released version 0.8.0
407
410
408 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
411 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
409
412
410 * Tag 0.8.0 for release.
413 * Tag 0.8.0 for release.
411
414
412 * IPython/iplib.py (reloadhist): add API function to cleanly
415 * IPython/iplib.py (reloadhist): add API function to cleanly
413 reload the readline history, which was growing inappropriately on
416 reload the readline history, which was growing inappropriately on
414 every %run call.
417 every %run call.
415
418
416 * win32_manual_post_install.py (run): apply last part of Nicolas
419 * win32_manual_post_install.py (run): apply last part of Nicolas
417 Pernetty's patch (I'd accidentally applied it in a different
420 Pernetty's patch (I'd accidentally applied it in a different
418 directory and this particular file didn't get patched).
421 directory and this particular file didn't get patched).
419
422
420 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
423 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
421
424
422 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
425 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
423 find the main thread id and use the proper API call. Thanks to
426 find the main thread id and use the proper API call. Thanks to
424 Stefan for the fix.
427 Stefan for the fix.
425
428
426 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
429 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
427 unit tests to reflect fixed ticket #52, and add more tests sent by
430 unit tests to reflect fixed ticket #52, and add more tests sent by
428 him.
431 him.
429
432
430 * IPython/iplib.py (raw_input): restore the readline completer
433 * IPython/iplib.py (raw_input): restore the readline completer
431 state on every input, in case third-party code messed it up.
434 state on every input, in case third-party code messed it up.
432 (_prefilter): revert recent addition of early-escape checks which
435 (_prefilter): revert recent addition of early-escape checks which
433 prevent many valid alias calls from working.
436 prevent many valid alias calls from working.
434
437
435 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
438 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
436 flag for sigint handler so we don't run a full signal() call on
439 flag for sigint handler so we don't run a full signal() call on
437 each runcode access.
440 each runcode access.
438
441
439 * IPython/Magic.py (magic_whos): small improvement to diagnostic
442 * IPython/Magic.py (magic_whos): small improvement to diagnostic
440 message.
443 message.
441
444
442 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
445 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
443
446
444 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
447 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
445 asynchronous exceptions working, i.e., Ctrl-C can actually
448 asynchronous exceptions working, i.e., Ctrl-C can actually
446 interrupt long-running code in the multithreaded shells.
449 interrupt long-running code in the multithreaded shells.
447
450
448 This is using Tomer Filiba's great ctypes-based trick:
451 This is using Tomer Filiba's great ctypes-based trick:
449 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
452 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
450 this in the past, but hadn't been able to make it work before. So
453 this in the past, but hadn't been able to make it work before. So
451 far it looks like it's actually running, but this needs more
454 far it looks like it's actually running, but this needs more
452 testing. If it really works, I'll be *very* happy, and we'll owe
455 testing. If it really works, I'll be *very* happy, and we'll owe
453 a huge thank you to Tomer. My current implementation is ugly,
456 a huge thank you to Tomer. My current implementation is ugly,
454 hackish and uses nasty globals, but I don't want to try and clean
457 hackish and uses nasty globals, but I don't want to try and clean
455 anything up until we know if it actually works.
458 anything up until we know if it actually works.
456
459
457 NOTE: this feature needs ctypes to work. ctypes is included in
460 NOTE: this feature needs ctypes to work. ctypes is included in
458 Python2.5, but 2.4 users will need to manually install it. This
461 Python2.5, but 2.4 users will need to manually install it. This
459 feature makes multi-threaded shells so much more usable that it's
462 feature makes multi-threaded shells so much more usable that it's
460 a minor price to pay (ctypes is very easy to install, already a
463 a minor price to pay (ctypes is very easy to install, already a
461 requirement for win32 and available in major linux distros).
464 requirement for win32 and available in major linux distros).
462
465
463 2007-04-04 Ville Vainio <vivainio@gmail.com>
466 2007-04-04 Ville Vainio <vivainio@gmail.com>
464
467
465 * Extensions/ipy_completers.py, ipy_stock_completers.py:
468 * Extensions/ipy_completers.py, ipy_stock_completers.py:
466 Moved implementations of 'bundled' completers to ipy_completers.py,
469 Moved implementations of 'bundled' completers to ipy_completers.py,
467 they are only enabled in ipy_stock_completers.py.
470 they are only enabled in ipy_stock_completers.py.
468
471
469 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
472 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
470
473
471 * IPython/PyColorize.py (Parser.format2): Fix identation of
474 * IPython/PyColorize.py (Parser.format2): Fix identation of
472 colorzied output and return early if color scheme is NoColor, to
475 colorzied output and return early if color scheme is NoColor, to
473 avoid unnecessary and expensive tokenization. Closes #131.
476 avoid unnecessary and expensive tokenization. Closes #131.
474
477
475 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
478 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
476
479
477 * IPython/Debugger.py: disable the use of pydb version 1.17. It
480 * IPython/Debugger.py: disable the use of pydb version 1.17. It
478 has a critical bug (a missing import that makes post-mortem not
481 has a critical bug (a missing import that makes post-mortem not
479 work at all). Unfortunately as of this time, this is the version
482 work at all). Unfortunately as of this time, this is the version
480 shipped with Ubuntu Edgy, so quite a few people have this one. I
483 shipped with Ubuntu Edgy, so quite a few people have this one. I
481 hope Edgy will update to a more recent package.
484 hope Edgy will update to a more recent package.
482
485
483 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
486 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
484
487
485 * IPython/iplib.py (_prefilter): close #52, second part of a patch
488 * IPython/iplib.py (_prefilter): close #52, second part of a patch
486 set by Stefan (only the first part had been applied before).
489 set by Stefan (only the first part had been applied before).
487
490
488 * IPython/Extensions/ipy_stock_completers.py (module_completer):
491 * IPython/Extensions/ipy_stock_completers.py (module_completer):
489 remove usage of the dangerous pkgutil.walk_packages(). See
492 remove usage of the dangerous pkgutil.walk_packages(). See
490 details in comments left in the code.
493 details in comments left in the code.
491
494
492 * IPython/Magic.py (magic_whos): add support for numpy arrays
495 * IPython/Magic.py (magic_whos): add support for numpy arrays
493 similar to what we had for Numeric.
496 similar to what we had for Numeric.
494
497
495 * IPython/completer.py (IPCompleter.complete): extend the
498 * IPython/completer.py (IPCompleter.complete): extend the
496 complete() call API to support completions by other mechanisms
499 complete() call API to support completions by other mechanisms
497 than readline. Closes #109.
500 than readline. Closes #109.
498
501
499 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
502 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
500 protect against a bug in Python's execfile(). Closes #123.
503 protect against a bug in Python's execfile(). Closes #123.
501
504
502 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
505 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
503
506
504 * IPython/iplib.py (split_user_input): ensure that when splitting
507 * IPython/iplib.py (split_user_input): ensure that when splitting
505 user input, the part that can be treated as a python name is pure
508 user input, the part that can be treated as a python name is pure
506 ascii (Python identifiers MUST be pure ascii). Part of the
509 ascii (Python identifiers MUST be pure ascii). Part of the
507 ongoing Unicode support work.
510 ongoing Unicode support work.
508
511
509 * IPython/Prompts.py (prompt_specials_color): Add \N for the
512 * IPython/Prompts.py (prompt_specials_color): Add \N for the
510 actual prompt number, without any coloring. This allows users to
513 actual prompt number, without any coloring. This allows users to
511 produce numbered prompts with their own colors. Added after a
514 produce numbered prompts with their own colors. Added after a
512 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
515 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
513
516
514 2007-03-31 Walter Doerwald <walter@livinglogic.de>
517 2007-03-31 Walter Doerwald <walter@livinglogic.de>
515
518
516 * IPython/Extensions/igrid.py: Map the return key
519 * IPython/Extensions/igrid.py: Map the return key
517 to enter() and shift-return to enterattr().
520 to enter() and shift-return to enterattr().
518
521
519 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
522 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
520
523
521 * IPython/Magic.py (magic_psearch): add unicode support by
524 * IPython/Magic.py (magic_psearch): add unicode support by
522 encoding to ascii the input, since this routine also only deals
525 encoding to ascii the input, since this routine also only deals
523 with valid Python names. Fixes a bug reported by Stefan.
526 with valid Python names. Fixes a bug reported by Stefan.
524
527
525 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
528 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
526
529
527 * IPython/Magic.py (_inspect): convert unicode input into ascii
530 * IPython/Magic.py (_inspect): convert unicode input into ascii
528 before trying to evaluate it as a Python identifier. This fixes a
531 before trying to evaluate it as a Python identifier. This fixes a
529 problem that the new unicode support had introduced when analyzing
532 problem that the new unicode support had introduced when analyzing
530 long definition lines for functions.
533 long definition lines for functions.
531
534
532 2007-03-24 Walter Doerwald <walter@livinglogic.de>
535 2007-03-24 Walter Doerwald <walter@livinglogic.de>
533
536
534 * IPython/Extensions/igrid.py: Fix picking. Using
537 * IPython/Extensions/igrid.py: Fix picking. Using
535 igrid with wxPython 2.6 and -wthread should work now.
538 igrid with wxPython 2.6 and -wthread should work now.
536 igrid.display() simply tries to create a frame without
539 igrid.display() simply tries to create a frame without
537 an application. Only if this fails an application is created.
540 an application. Only if this fails an application is created.
538
541
539 2007-03-23 Walter Doerwald <walter@livinglogic.de>
542 2007-03-23 Walter Doerwald <walter@livinglogic.de>
540
543
541 * IPython/Extensions/path.py: Updated to version 2.2.
544 * IPython/Extensions/path.py: Updated to version 2.2.
542
545
543 2007-03-23 Ville Vainio <vivainio@gmail.com>
546 2007-03-23 Ville Vainio <vivainio@gmail.com>
544
547
545 * iplib.py: recursive alias expansion now works better, so that
548 * iplib.py: recursive alias expansion now works better, so that
546 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
549 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
547 doesn't trip up the process, if 'd' has been aliased to 'ls'.
550 doesn't trip up the process, if 'd' has been aliased to 'ls'.
548
551
549 * Extensions/ipy_gnuglobal.py added, provides %global magic
552 * Extensions/ipy_gnuglobal.py added, provides %global magic
550 for users of http://www.gnu.org/software/global
553 for users of http://www.gnu.org/software/global
551
554
552 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
555 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
553 Closes #52. Patch by Stefan van der Walt.
556 Closes #52. Patch by Stefan van der Walt.
554
557
555 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
558 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
556
559
557 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
560 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
558 respect the __file__ attribute when using %run. Thanks to a bug
561 respect the __file__ attribute when using %run. Thanks to a bug
559 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
562 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
560
563
561 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
564 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
562
565
563 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
566 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
564 input. Patch sent by Stefan.
567 input. Patch sent by Stefan.
565
568
566 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
569 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
567 * IPython/Extensions/ipy_stock_completer.py
570 * IPython/Extensions/ipy_stock_completer.py
568 shlex_split, fix bug in shlex_split. len function
571 shlex_split, fix bug in shlex_split. len function
569 call was missing an if statement. Caused shlex_split to
572 call was missing an if statement. Caused shlex_split to
570 sometimes return "" as last element.
573 sometimes return "" as last element.
571
574
572 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
575 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
573
576
574 * IPython/completer.py
577 * IPython/completer.py
575 (IPCompleter.file_matches.single_dir_expand): fix a problem
578 (IPCompleter.file_matches.single_dir_expand): fix a problem
576 reported by Stefan, where directories containign a single subdir
579 reported by Stefan, where directories containign a single subdir
577 would be completed too early.
580 would be completed too early.
578
581
579 * IPython/Shell.py (_load_pylab): Make the execution of 'from
582 * IPython/Shell.py (_load_pylab): Make the execution of 'from
580 pylab import *' when -pylab is given be optional. A new flag,
583 pylab import *' when -pylab is given be optional. A new flag,
581 pylab_import_all controls this behavior, the default is True for
584 pylab_import_all controls this behavior, the default is True for
582 backwards compatibility.
585 backwards compatibility.
583
586
584 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
587 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
585 modified) R. Bernstein's patch for fully syntax highlighted
588 modified) R. Bernstein's patch for fully syntax highlighted
586 tracebacks. The functionality is also available under ultraTB for
589 tracebacks. The functionality is also available under ultraTB for
587 non-ipython users (someone using ultraTB but outside an ipython
590 non-ipython users (someone using ultraTB but outside an ipython
588 session). They can select the color scheme by setting the
591 session). They can select the color scheme by setting the
589 module-level global DEFAULT_SCHEME. The highlight functionality
592 module-level global DEFAULT_SCHEME. The highlight functionality
590 also works when debugging.
593 also works when debugging.
591
594
592 * IPython/genutils.py (IOStream.close): small patch by
595 * IPython/genutils.py (IOStream.close): small patch by
593 R. Bernstein for improved pydb support.
596 R. Bernstein for improved pydb support.
594
597
595 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
598 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
596 DaveS <davls@telus.net> to improve support of debugging under
599 DaveS <davls@telus.net> to improve support of debugging under
597 NTEmacs, including improved pydb behavior.
600 NTEmacs, including improved pydb behavior.
598
601
599 * IPython/Magic.py (magic_prun): Fix saving of profile info for
602 * IPython/Magic.py (magic_prun): Fix saving of profile info for
600 Python 2.5, where the stats object API changed a little. Thanks
603 Python 2.5, where the stats object API changed a little. Thanks
601 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
604 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
602
605
603 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
606 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
604 Pernetty's patch to improve support for (X)Emacs under Win32.
607 Pernetty's patch to improve support for (X)Emacs under Win32.
605
608
606 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
609 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
607
610
608 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
611 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
609 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
612 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
610 a report by Nik Tautenhahn.
613 a report by Nik Tautenhahn.
611
614
612 2007-03-16 Walter Doerwald <walter@livinglogic.de>
615 2007-03-16 Walter Doerwald <walter@livinglogic.de>
613
616
614 * setup.py: Add the igrid help files to the list of data files
617 * setup.py: Add the igrid help files to the list of data files
615 to be installed alongside igrid.
618 to be installed alongside igrid.
616 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
619 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
617 Show the input object of the igrid browser as the window tile.
620 Show the input object of the igrid browser as the window tile.
618 Show the object the cursor is on in the statusbar.
621 Show the object the cursor is on in the statusbar.
619
622
620 2007-03-15 Ville Vainio <vivainio@gmail.com>
623 2007-03-15 Ville Vainio <vivainio@gmail.com>
621
624
622 * Extensions/ipy_stock_completers.py: Fixed exception
625 * Extensions/ipy_stock_completers.py: Fixed exception
623 on mismatching quotes in %run completer. Patch by
626 on mismatching quotes in %run completer. Patch by
624 JοΏ½rgen Stenarson. Closes #127.
627 JοΏ½rgen Stenarson. Closes #127.
625
628
626 2007-03-14 Ville Vainio <vivainio@gmail.com>
629 2007-03-14 Ville Vainio <vivainio@gmail.com>
627
630
628 * Extensions/ext_rehashdir.py: Do not do auto_alias
631 * Extensions/ext_rehashdir.py: Do not do auto_alias
629 in %rehashdir, it clobbers %store'd aliases.
632 in %rehashdir, it clobbers %store'd aliases.
630
633
631 * UserConfig/ipy_profile_sh.py: envpersist.py extension
634 * UserConfig/ipy_profile_sh.py: envpersist.py extension
632 (beefed up %env) imported for sh profile.
635 (beefed up %env) imported for sh profile.
633
636
634 2007-03-10 Walter Doerwald <walter@livinglogic.de>
637 2007-03-10 Walter Doerwald <walter@livinglogic.de>
635
638
636 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
639 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
637 as the default browser.
640 as the default browser.
638 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
641 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
639 As igrid displays all attributes it ever encounters, fetch() (which has
642 As igrid displays all attributes it ever encounters, fetch() (which has
640 been renamed to _fetch()) doesn't have to recalculate the display attributes
643 been renamed to _fetch()) doesn't have to recalculate the display attributes
641 every time a new item is fetched. This should speed up scrolling.
644 every time a new item is fetched. This should speed up scrolling.
642
645
643 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
646 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
644
647
645 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
648 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
646 Schmolck's recently reported tab-completion bug (my previous one
649 Schmolck's recently reported tab-completion bug (my previous one
647 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
650 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
648
651
649 2007-03-09 Walter Doerwald <walter@livinglogic.de>
652 2007-03-09 Walter Doerwald <walter@livinglogic.de>
650
653
651 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
654 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
652 Close help window if exiting igrid.
655 Close help window if exiting igrid.
653
656
654 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
657 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
655
658
656 * IPython/Extensions/ipy_defaults.py: Check if readline is available
659 * IPython/Extensions/ipy_defaults.py: Check if readline is available
657 before calling functions from readline.
660 before calling functions from readline.
658
661
659 2007-03-02 Walter Doerwald <walter@livinglogic.de>
662 2007-03-02 Walter Doerwald <walter@livinglogic.de>
660
663
661 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
664 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
662 igrid is a wxPython-based display object for ipipe. If your system has
665 igrid is a wxPython-based display object for ipipe. If your system has
663 wx installed igrid will be the default display. Without wx ipipe falls
666 wx installed igrid will be the default display. Without wx ipipe falls
664 back to ibrowse (which needs curses). If no curses is installed ipipe
667 back to ibrowse (which needs curses). If no curses is installed ipipe
665 falls back to idump.
668 falls back to idump.
666
669
667 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
670 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
668
671
669 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
672 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
670 my changes from yesterday, they introduced bugs. Will reactivate
673 my changes from yesterday, they introduced bugs. Will reactivate
671 once I get a correct solution, which will be much easier thanks to
674 once I get a correct solution, which will be much easier thanks to
672 Dan Milstein's new prefilter test suite.
675 Dan Milstein's new prefilter test suite.
673
676
674 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
677 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
675
678
676 * IPython/iplib.py (split_user_input): fix input splitting so we
679 * IPython/iplib.py (split_user_input): fix input splitting so we
677 don't attempt attribute accesses on things that can't possibly be
680 don't attempt attribute accesses on things that can't possibly be
678 valid Python attributes. After a bug report by Alex Schmolck.
681 valid Python attributes. After a bug report by Alex Schmolck.
679 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
682 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
680 %magic with explicit % prefix.
683 %magic with explicit % prefix.
681
684
682 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
685 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
683
686
684 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
687 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
685 avoid a DeprecationWarning from GTK.
688 avoid a DeprecationWarning from GTK.
686
689
687 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
690 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
688
691
689 * IPython/genutils.py (clock): I modified clock() to return total
692 * IPython/genutils.py (clock): I modified clock() to return total
690 time, user+system. This is a more commonly needed metric. I also
693 time, user+system. This is a more commonly needed metric. I also
691 introduced the new clocku/clocks to get only user/system time if
694 introduced the new clocku/clocks to get only user/system time if
692 one wants those instead.
695 one wants those instead.
693
696
694 ***WARNING: API CHANGE*** clock() used to return only user time,
697 ***WARNING: API CHANGE*** clock() used to return only user time,
695 so if you want exactly the same results as before, use clocku
698 so if you want exactly the same results as before, use clocku
696 instead.
699 instead.
697
700
698 2007-02-22 Ville Vainio <vivainio@gmail.com>
701 2007-02-22 Ville Vainio <vivainio@gmail.com>
699
702
700 * IPython/Extensions/ipy_p4.py: Extension for improved
703 * IPython/Extensions/ipy_p4.py: Extension for improved
701 p4 (perforce version control system) experience.
704 p4 (perforce version control system) experience.
702 Adds %p4 magic with p4 command completion and
705 Adds %p4 magic with p4 command completion and
703 automatic -G argument (marshall output as python dict)
706 automatic -G argument (marshall output as python dict)
704
707
705 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
708 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
706
709
707 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
710 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
708 stop marks.
711 stop marks.
709 (ClearingMixin): a simple mixin to easily make a Demo class clear
712 (ClearingMixin): a simple mixin to easily make a Demo class clear
710 the screen in between blocks and have empty marquees. The
713 the screen in between blocks and have empty marquees. The
711 ClearDemo and ClearIPDemo classes that use it are included.
714 ClearDemo and ClearIPDemo classes that use it are included.
712
715
713 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
716 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
714
717
715 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
718 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
716 protect against exceptions at Python shutdown time. Patch
719 protect against exceptions at Python shutdown time. Patch
717 sumbmitted to upstream.
720 sumbmitted to upstream.
718
721
719 2007-02-14 Walter Doerwald <walter@livinglogic.de>
722 2007-02-14 Walter Doerwald <walter@livinglogic.de>
720
723
721 * IPython/Extensions/ibrowse.py: If entering the first object level
724 * IPython/Extensions/ibrowse.py: If entering the first object level
722 (i.e. the object for which the browser has been started) fails,
725 (i.e. the object for which the browser has been started) fails,
723 now the error is raised directly (aborting the browser) instead of
726 now the error is raised directly (aborting the browser) instead of
724 running into an empty levels list later.
727 running into an empty levels list later.
725
728
726 2007-02-03 Walter Doerwald <walter@livinglogic.de>
729 2007-02-03 Walter Doerwald <walter@livinglogic.de>
727
730
728 * IPython/Extensions/ipipe.py: Add an xrepr implementation
731 * IPython/Extensions/ipipe.py: Add an xrepr implementation
729 for the noitem object.
732 for the noitem object.
730
733
731 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
734 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
732
735
733 * IPython/completer.py (Completer.attr_matches): Fix small
736 * IPython/completer.py (Completer.attr_matches): Fix small
734 tab-completion bug with Enthought Traits objects with units.
737 tab-completion bug with Enthought Traits objects with units.
735 Thanks to a bug report by Tom Denniston
738 Thanks to a bug report by Tom Denniston
736 <tom.denniston-AT-alum.dartmouth.org>.
739 <tom.denniston-AT-alum.dartmouth.org>.
737
740
738 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
741 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
739
742
740 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
743 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
741 bug where only .ipy or .py would be completed. Once the first
744 bug where only .ipy or .py would be completed. Once the first
742 argument to %run has been given, all completions are valid because
745 argument to %run has been given, all completions are valid because
743 they are the arguments to the script, which may well be non-python
746 they are the arguments to the script, which may well be non-python
744 filenames.
747 filenames.
745
748
746 * IPython/irunner.py (InteractiveRunner.run_source): major updates
749 * IPython/irunner.py (InteractiveRunner.run_source): major updates
747 to irunner to allow it to correctly support real doctesting of
750 to irunner to allow it to correctly support real doctesting of
748 out-of-process ipython code.
751 out-of-process ipython code.
749
752
750 * IPython/Magic.py (magic_cd): Make the setting of the terminal
753 * IPython/Magic.py (magic_cd): Make the setting of the terminal
751 title an option (-noterm_title) because it completely breaks
754 title an option (-noterm_title) because it completely breaks
752 doctesting.
755 doctesting.
753
756
754 * IPython/demo.py: fix IPythonDemo class that was not actually working.
757 * IPython/demo.py: fix IPythonDemo class that was not actually working.
755
758
756 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
759 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
757
760
758 * IPython/irunner.py (main): fix small bug where extensions were
761 * IPython/irunner.py (main): fix small bug where extensions were
759 not being correctly recognized.
762 not being correctly recognized.
760
763
761 2007-01-23 Walter Doerwald <walter@livinglogic.de>
764 2007-01-23 Walter Doerwald <walter@livinglogic.de>
762
765
763 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
766 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
764 a string containing a single line yields the string itself as the
767 a string containing a single line yields the string itself as the
765 only item.
768 only item.
766
769
767 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
770 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
768 object if it's the same as the one on the last level (This avoids
771 object if it's the same as the one on the last level (This avoids
769 infinite recursion for one line strings).
772 infinite recursion for one line strings).
770
773
771 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
774 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
772
775
773 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
776 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
774 all output streams before printing tracebacks. This ensures that
777 all output streams before printing tracebacks. This ensures that
775 user output doesn't end up interleaved with traceback output.
778 user output doesn't end up interleaved with traceback output.
776
779
777 2007-01-10 Ville Vainio <vivainio@gmail.com>
780 2007-01-10 Ville Vainio <vivainio@gmail.com>
778
781
779 * Extensions/envpersist.py: Turbocharged %env that remembers
782 * Extensions/envpersist.py: Turbocharged %env that remembers
780 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
783 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
781 "%env VISUAL=jed".
784 "%env VISUAL=jed".
782
785
783 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
786 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
784
787
785 * IPython/iplib.py (showtraceback): ensure that we correctly call
788 * IPython/iplib.py (showtraceback): ensure that we correctly call
786 custom handlers in all cases (some with pdb were slipping through,
789 custom handlers in all cases (some with pdb were slipping through,
787 but I'm not exactly sure why).
790 but I'm not exactly sure why).
788
791
789 * IPython/Debugger.py (Tracer.__init__): added new class to
792 * IPython/Debugger.py (Tracer.__init__): added new class to
790 support set_trace-like usage of IPython's enhanced debugger.
793 support set_trace-like usage of IPython's enhanced debugger.
791
794
792 2006-12-24 Ville Vainio <vivainio@gmail.com>
795 2006-12-24 Ville Vainio <vivainio@gmail.com>
793
796
794 * ipmaker.py: more informative message when ipy_user_conf
797 * ipmaker.py: more informative message when ipy_user_conf
795 import fails (suggest running %upgrade).
798 import fails (suggest running %upgrade).
796
799
797 * tools/run_ipy_in_profiler.py: Utility to see where
800 * tools/run_ipy_in_profiler.py: Utility to see where
798 the time during IPython startup is spent.
801 the time during IPython startup is spent.
799
802
800 2006-12-20 Ville Vainio <vivainio@gmail.com>
803 2006-12-20 Ville Vainio <vivainio@gmail.com>
801
804
802 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
805 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
803
806
804 * ipapi.py: Add new ipapi method, expand_alias.
807 * ipapi.py: Add new ipapi method, expand_alias.
805
808
806 * Release.py: Bump up version to 0.7.4.svn
809 * Release.py: Bump up version to 0.7.4.svn
807
810
808 2006-12-17 Ville Vainio <vivainio@gmail.com>
811 2006-12-17 Ville Vainio <vivainio@gmail.com>
809
812
810 * Extensions/jobctrl.py: Fixed &cmd arg arg...
813 * Extensions/jobctrl.py: Fixed &cmd arg arg...
811 to work properly on posix too
814 to work properly on posix too
812
815
813 * Release.py: Update revnum (version is still just 0.7.3).
816 * Release.py: Update revnum (version is still just 0.7.3).
814
817
815 2006-12-15 Ville Vainio <vivainio@gmail.com>
818 2006-12-15 Ville Vainio <vivainio@gmail.com>
816
819
817 * scripts/ipython_win_post_install: create ipython.py in
820 * scripts/ipython_win_post_install: create ipython.py in
818 prefix + "/scripts".
821 prefix + "/scripts".
819
822
820 * Release.py: Update version to 0.7.3.
823 * Release.py: Update version to 0.7.3.
821
824
822 2006-12-14 Ville Vainio <vivainio@gmail.com>
825 2006-12-14 Ville Vainio <vivainio@gmail.com>
823
826
824 * scripts/ipython_win_post_install: Overwrite old shortcuts
827 * scripts/ipython_win_post_install: Overwrite old shortcuts
825 if they already exist
828 if they already exist
826
829
827 * Release.py: release 0.7.3rc2
830 * Release.py: release 0.7.3rc2
828
831
829 2006-12-13 Ville Vainio <vivainio@gmail.com>
832 2006-12-13 Ville Vainio <vivainio@gmail.com>
830
833
831 * Branch and update Release.py for 0.7.3rc1
834 * Branch and update Release.py for 0.7.3rc1
832
835
833 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
836 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
834
837
835 * IPython/Shell.py (IPShellWX): update for current WX naming
838 * IPython/Shell.py (IPShellWX): update for current WX naming
836 conventions, to avoid a deprecation warning with current WX
839 conventions, to avoid a deprecation warning with current WX
837 versions. Thanks to a report by Danny Shevitz.
840 versions. Thanks to a report by Danny Shevitz.
838
841
839 2006-12-12 Ville Vainio <vivainio@gmail.com>
842 2006-12-12 Ville Vainio <vivainio@gmail.com>
840
843
841 * ipmaker.py: apply david cournapeau's patch to make
844 * ipmaker.py: apply david cournapeau's patch to make
842 import_some work properly even when ipythonrc does
845 import_some work properly even when ipythonrc does
843 import_some on empty list (it was an old bug!).
846 import_some on empty list (it was an old bug!).
844
847
845 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
848 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
846 Add deprecation note to ipythonrc and a url to wiki
849 Add deprecation note to ipythonrc and a url to wiki
847 in ipy_user_conf.py
850 in ipy_user_conf.py
848
851
849
852
850 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
853 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
851 as if it was typed on IPython command prompt, i.e.
854 as if it was typed on IPython command prompt, i.e.
852 as IPython script.
855 as IPython script.
853
856
854 * example-magic.py, magic_grepl.py: remove outdated examples
857 * example-magic.py, magic_grepl.py: remove outdated examples
855
858
856 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
859 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
857
860
858 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
861 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
859 is called before any exception has occurred.
862 is called before any exception has occurred.
860
863
861 2006-12-08 Ville Vainio <vivainio@gmail.com>
864 2006-12-08 Ville Vainio <vivainio@gmail.com>
862
865
863 * Extensions/ipy_stock_completers.py: fix cd completer
866 * Extensions/ipy_stock_completers.py: fix cd completer
864 to translate /'s to \'s again.
867 to translate /'s to \'s again.
865
868
866 * completer.py: prevent traceback on file completions w/
869 * completer.py: prevent traceback on file completions w/
867 backslash.
870 backslash.
868
871
869 * Release.py: Update release number to 0.7.3b3 for release
872 * Release.py: Update release number to 0.7.3b3 for release
870
873
871 2006-12-07 Ville Vainio <vivainio@gmail.com>
874 2006-12-07 Ville Vainio <vivainio@gmail.com>
872
875
873 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
876 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
874 while executing external code. Provides more shell-like behaviour
877 while executing external code. Provides more shell-like behaviour
875 and overall better response to ctrl + C / ctrl + break.
878 and overall better response to ctrl + C / ctrl + break.
876
879
877 * tools/make_tarball.py: new script to create tarball straight from svn
880 * tools/make_tarball.py: new script to create tarball straight from svn
878 (setup.py sdist doesn't work on win32).
881 (setup.py sdist doesn't work on win32).
879
882
880 * Extensions/ipy_stock_completers.py: fix cd completer to give up
883 * Extensions/ipy_stock_completers.py: fix cd completer to give up
881 on dirnames with spaces and use the default completer instead.
884 on dirnames with spaces and use the default completer instead.
882
885
883 * Revision.py: Change version to 0.7.3b2 for release.
886 * Revision.py: Change version to 0.7.3b2 for release.
884
887
885 2006-12-05 Ville Vainio <vivainio@gmail.com>
888 2006-12-05 Ville Vainio <vivainio@gmail.com>
886
889
887 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
890 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
888 pydb patch 4 (rm debug printing, py 2.5 checking)
891 pydb patch 4 (rm debug printing, py 2.5 checking)
889
892
890 2006-11-30 Walter Doerwald <walter@livinglogic.de>
893 2006-11-30 Walter Doerwald <walter@livinglogic.de>
891 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
894 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
892 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
895 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
893 "refreshfind" (mapped to "R") does the same but tries to go back to the same
896 "refreshfind" (mapped to "R") does the same but tries to go back to the same
894 object the cursor was on before the refresh. The command "markrange" is
897 object the cursor was on before the refresh. The command "markrange" is
895 mapped to "%" now.
898 mapped to "%" now.
896 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
899 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
897
900
898 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
901 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
899
902
900 * IPython/Magic.py (magic_debug): new %debug magic to activate the
903 * IPython/Magic.py (magic_debug): new %debug magic to activate the
901 interactive debugger on the last traceback, without having to call
904 interactive debugger on the last traceback, without having to call
902 %pdb and rerun your code. Made minor changes in various modules,
905 %pdb and rerun your code. Made minor changes in various modules,
903 should automatically recognize pydb if available.
906 should automatically recognize pydb if available.
904
907
905 2006-11-28 Ville Vainio <vivainio@gmail.com>
908 2006-11-28 Ville Vainio <vivainio@gmail.com>
906
909
907 * completer.py: If the text start with !, show file completions
910 * completer.py: If the text start with !, show file completions
908 properly. This helps when trying to complete command name
911 properly. This helps when trying to complete command name
909 for shell escapes.
912 for shell escapes.
910
913
911 2006-11-27 Ville Vainio <vivainio@gmail.com>
914 2006-11-27 Ville Vainio <vivainio@gmail.com>
912
915
913 * ipy_stock_completers.py: bzr completer submitted by Stefan van
916 * ipy_stock_completers.py: bzr completer submitted by Stefan van
914 der Walt. Clean up svn and hg completers by using a common
917 der Walt. Clean up svn and hg completers by using a common
915 vcs_completer.
918 vcs_completer.
916
919
917 2006-11-26 Ville Vainio <vivainio@gmail.com>
920 2006-11-26 Ville Vainio <vivainio@gmail.com>
918
921
919 * Remove ipconfig and %config; you should use _ip.options structure
922 * Remove ipconfig and %config; you should use _ip.options structure
920 directly instead!
923 directly instead!
921
924
922 * genutils.py: add wrap_deprecated function for deprecating callables
925 * genutils.py: add wrap_deprecated function for deprecating callables
923
926
924 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
927 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
925 _ip.system instead. ipalias is redundant.
928 _ip.system instead. ipalias is redundant.
926
929
927 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
930 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
928 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
931 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
929 explicit.
932 explicit.
930
933
931 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
934 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
932 completer. Try it by entering 'hg ' and pressing tab.
935 completer. Try it by entering 'hg ' and pressing tab.
933
936
934 * macro.py: Give Macro a useful __repr__ method
937 * macro.py: Give Macro a useful __repr__ method
935
938
936 * Magic.py: %whos abbreviates the typename of Macro for brevity.
939 * Magic.py: %whos abbreviates the typename of Macro for brevity.
937
940
938 2006-11-24 Walter Doerwald <walter@livinglogic.de>
941 2006-11-24 Walter Doerwald <walter@livinglogic.de>
939 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
942 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
940 we don't get a duplicate ipipe module, where registration of the xrepr
943 we don't get a duplicate ipipe module, where registration of the xrepr
941 implementation for Text is useless.
944 implementation for Text is useless.
942
945
943 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
946 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
944
947
945 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
948 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
946
949
947 2006-11-24 Ville Vainio <vivainio@gmail.com>
950 2006-11-24 Ville Vainio <vivainio@gmail.com>
948
951
949 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
952 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
950 try to use "cProfile" instead of the slower pure python
953 try to use "cProfile" instead of the slower pure python
951 "profile"
954 "profile"
952
955
953 2006-11-23 Ville Vainio <vivainio@gmail.com>
956 2006-11-23 Ville Vainio <vivainio@gmail.com>
954
957
955 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
958 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
956 Qt+IPython+Designer link in documentation.
959 Qt+IPython+Designer link in documentation.
957
960
958 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
961 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
959 correct Pdb object to %pydb.
962 correct Pdb object to %pydb.
960
963
961
964
962 2006-11-22 Walter Doerwald <walter@livinglogic.de>
965 2006-11-22 Walter Doerwald <walter@livinglogic.de>
963 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
966 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
964 generic xrepr(), otherwise the list implementation would kick in.
967 generic xrepr(), otherwise the list implementation would kick in.
965
968
966 2006-11-21 Ville Vainio <vivainio@gmail.com>
969 2006-11-21 Ville Vainio <vivainio@gmail.com>
967
970
968 * upgrade_dir.py: Now actually overwrites a nonmodified user file
971 * upgrade_dir.py: Now actually overwrites a nonmodified user file
969 with one from UserConfig.
972 with one from UserConfig.
970
973
971 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
974 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
972 it was missing which broke the sh profile.
975 it was missing which broke the sh profile.
973
976
974 * completer.py: file completer now uses explicit '/' instead
977 * completer.py: file completer now uses explicit '/' instead
975 of os.path.join, expansion of 'foo' was broken on win32
978 of os.path.join, expansion of 'foo' was broken on win32
976 if there was one directory with name 'foobar'.
979 if there was one directory with name 'foobar'.
977
980
978 * A bunch of patches from Kirill Smelkov:
981 * A bunch of patches from Kirill Smelkov:
979
982
980 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
983 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
981
984
982 * [patch 7/9] Implement %page -r (page in raw mode) -
985 * [patch 7/9] Implement %page -r (page in raw mode) -
983
986
984 * [patch 5/9] ScientificPython webpage has moved
987 * [patch 5/9] ScientificPython webpage has moved
985
988
986 * [patch 4/9] The manual mentions %ds, should be %dhist
989 * [patch 4/9] The manual mentions %ds, should be %dhist
987
990
988 * [patch 3/9] Kill old bits from %prun doc.
991 * [patch 3/9] Kill old bits from %prun doc.
989
992
990 * [patch 1/9] Fix typos here and there.
993 * [patch 1/9] Fix typos here and there.
991
994
992 2006-11-08 Ville Vainio <vivainio@gmail.com>
995 2006-11-08 Ville Vainio <vivainio@gmail.com>
993
996
994 * completer.py (attr_matches): catch all exceptions raised
997 * completer.py (attr_matches): catch all exceptions raised
995 by eval of expr with dots.
998 by eval of expr with dots.
996
999
997 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
1000 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
998
1001
999 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
1002 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
1000 input if it starts with whitespace. This allows you to paste
1003 input if it starts with whitespace. This allows you to paste
1001 indented input from any editor without manually having to type in
1004 indented input from any editor without manually having to type in
1002 the 'if 1:', which is convenient when working interactively.
1005 the 'if 1:', which is convenient when working interactively.
1003 Slightly modifed version of a patch by Bo Peng
1006 Slightly modifed version of a patch by Bo Peng
1004 <bpeng-AT-rice.edu>.
1007 <bpeng-AT-rice.edu>.
1005
1008
1006 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
1009 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
1007
1010
1008 * IPython/irunner.py (main): modified irunner so it automatically
1011 * IPython/irunner.py (main): modified irunner so it automatically
1009 recognizes the right runner to use based on the extension (.py for
1012 recognizes the right runner to use based on the extension (.py for
1010 python, .ipy for ipython and .sage for sage).
1013 python, .ipy for ipython and .sage for sage).
1011
1014
1012 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
1015 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
1013 visible in ipapi as ip.config(), to programatically control the
1016 visible in ipapi as ip.config(), to programatically control the
1014 internal rc object. There's an accompanying %config magic for
1017 internal rc object. There's an accompanying %config magic for
1015 interactive use, which has been enhanced to match the
1018 interactive use, which has been enhanced to match the
1016 funtionality in ipconfig.
1019 funtionality in ipconfig.
1017
1020
1018 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
1021 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
1019 so it's not just a toggle, it now takes an argument. Add support
1022 so it's not just a toggle, it now takes an argument. Add support
1020 for a customizable header when making system calls, as the new
1023 for a customizable header when making system calls, as the new
1021 system_header variable in the ipythonrc file.
1024 system_header variable in the ipythonrc file.
1022
1025
1023 2006-11-03 Walter Doerwald <walter@livinglogic.de>
1026 2006-11-03 Walter Doerwald <walter@livinglogic.de>
1024
1027
1025 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
1028 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
1026 generic functions (using Philip J. Eby's simplegeneric package).
1029 generic functions (using Philip J. Eby's simplegeneric package).
1027 This makes it possible to customize the display of third-party classes
1030 This makes it possible to customize the display of third-party classes
1028 without having to monkeypatch them. xiter() no longer supports a mode
1031 without having to monkeypatch them. xiter() no longer supports a mode
1029 argument and the XMode class has been removed. The same functionality can
1032 argument and the XMode class has been removed. The same functionality can
1030 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
1033 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
1031 One consequence of the switch to generic functions is that xrepr() and
1034 One consequence of the switch to generic functions is that xrepr() and
1032 xattrs() implementation must define the default value for the mode
1035 xattrs() implementation must define the default value for the mode
1033 argument themselves and xattrs() implementations must return real
1036 argument themselves and xattrs() implementations must return real
1034 descriptors.
1037 descriptors.
1035
1038
1036 * IPython/external: This new subpackage will contain all third-party
1039 * IPython/external: This new subpackage will contain all third-party
1037 packages that are bundled with IPython. (The first one is simplegeneric).
1040 packages that are bundled with IPython. (The first one is simplegeneric).
1038
1041
1039 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
1042 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
1040 directory which as been dropped in r1703.
1043 directory which as been dropped in r1703.
1041
1044
1042 * IPython/Extensions/ipipe.py (iless): Fixed.
1045 * IPython/Extensions/ipipe.py (iless): Fixed.
1043
1046
1044 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
1047 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
1045
1048
1046 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
1049 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
1047
1050
1048 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
1051 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
1049 handling in variable expansion so that shells and magics recognize
1052 handling in variable expansion so that shells and magics recognize
1050 function local scopes correctly. Bug reported by Brian.
1053 function local scopes correctly. Bug reported by Brian.
1051
1054
1052 * scripts/ipython: remove the very first entry in sys.path which
1055 * scripts/ipython: remove the very first entry in sys.path which
1053 Python auto-inserts for scripts, so that sys.path under IPython is
1056 Python auto-inserts for scripts, so that sys.path under IPython is
1054 as similar as possible to that under plain Python.
1057 as similar as possible to that under plain Python.
1055
1058
1056 * IPython/completer.py (IPCompleter.file_matches): Fix
1059 * IPython/completer.py (IPCompleter.file_matches): Fix
1057 tab-completion so that quotes are not closed unless the completion
1060 tab-completion so that quotes are not closed unless the completion
1058 is unambiguous. After a request by Stefan. Minor cleanups in
1061 is unambiguous. After a request by Stefan. Minor cleanups in
1059 ipy_stock_completers.
1062 ipy_stock_completers.
1060
1063
1061 2006-11-02 Ville Vainio <vivainio@gmail.com>
1064 2006-11-02 Ville Vainio <vivainio@gmail.com>
1062
1065
1063 * ipy_stock_completers.py: Add %run and %cd completers.
1066 * ipy_stock_completers.py: Add %run and %cd completers.
1064
1067
1065 * completer.py: Try running custom completer for both
1068 * completer.py: Try running custom completer for both
1066 "foo" and "%foo" if the command is just "foo". Ignore case
1069 "foo" and "%foo" if the command is just "foo". Ignore case
1067 when filtering possible completions.
1070 when filtering possible completions.
1068
1071
1069 * UserConfig/ipy_user_conf.py: install stock completers as default
1072 * UserConfig/ipy_user_conf.py: install stock completers as default
1070
1073
1071 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
1074 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
1072 simplified readline history save / restore through a wrapper
1075 simplified readline history save / restore through a wrapper
1073 function
1076 function
1074
1077
1075
1078
1076 2006-10-31 Ville Vainio <vivainio@gmail.com>
1079 2006-10-31 Ville Vainio <vivainio@gmail.com>
1077
1080
1078 * strdispatch.py, completer.py, ipy_stock_completers.py:
1081 * strdispatch.py, completer.py, ipy_stock_completers.py:
1079 Allow str_key ("command") in completer hooks. Implement
1082 Allow str_key ("command") in completer hooks. Implement
1080 trivial completer for 'import' (stdlib modules only). Rename
1083 trivial completer for 'import' (stdlib modules only). Rename
1081 ipy_linux_package_managers.py to ipy_stock_completers.py.
1084 ipy_linux_package_managers.py to ipy_stock_completers.py.
1082 SVN completer.
1085 SVN completer.
1083
1086
1084 * Extensions/ledit.py: %magic line editor for easily and
1087 * Extensions/ledit.py: %magic line editor for easily and
1085 incrementally manipulating lists of strings. The magic command
1088 incrementally manipulating lists of strings. The magic command
1086 name is %led.
1089 name is %led.
1087
1090
1088 2006-10-30 Ville Vainio <vivainio@gmail.com>
1091 2006-10-30 Ville Vainio <vivainio@gmail.com>
1089
1092
1090 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
1093 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
1091 Bernsteins's patches for pydb integration.
1094 Bernsteins's patches for pydb integration.
1092 http://bashdb.sourceforge.net/pydb/
1095 http://bashdb.sourceforge.net/pydb/
1093
1096
1094 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
1097 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
1095 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
1098 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
1096 custom completer hook to allow the users to implement their own
1099 custom completer hook to allow the users to implement their own
1097 completers. See ipy_linux_package_managers.py for example. The
1100 completers. See ipy_linux_package_managers.py for example. The
1098 hook name is 'complete_command'.
1101 hook name is 'complete_command'.
1099
1102
1100 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
1103 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
1101
1104
1102 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
1105 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
1103 Numeric leftovers.
1106 Numeric leftovers.
1104
1107
1105 * ipython.el (py-execute-region): apply Stefan's patch to fix
1108 * ipython.el (py-execute-region): apply Stefan's patch to fix
1106 garbled results if the python shell hasn't been previously started.
1109 garbled results if the python shell hasn't been previously started.
1107
1110
1108 * IPython/genutils.py (arg_split): moved to genutils, since it's a
1111 * IPython/genutils.py (arg_split): moved to genutils, since it's a
1109 pretty generic function and useful for other things.
1112 pretty generic function and useful for other things.
1110
1113
1111 * IPython/OInspect.py (getsource): Add customizable source
1114 * IPython/OInspect.py (getsource): Add customizable source
1112 extractor. After a request/patch form W. Stein (SAGE).
1115 extractor. After a request/patch form W. Stein (SAGE).
1113
1116
1114 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
1117 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
1115 window size to a more reasonable value from what pexpect does,
1118 window size to a more reasonable value from what pexpect does,
1116 since their choice causes wrapping bugs with long input lines.
1119 since their choice causes wrapping bugs with long input lines.
1117
1120
1118 2006-10-28 Ville Vainio <vivainio@gmail.com>
1121 2006-10-28 Ville Vainio <vivainio@gmail.com>
1119
1122
1120 * Magic.py (%run): Save and restore the readline history from
1123 * Magic.py (%run): Save and restore the readline history from
1121 file around %run commands to prevent side effects from
1124 file around %run commands to prevent side effects from
1122 %runned programs that might use readline (e.g. pydb).
1125 %runned programs that might use readline (e.g. pydb).
1123
1126
1124 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
1127 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
1125 invoking the pydb enhanced debugger.
1128 invoking the pydb enhanced debugger.
1126
1129
1127 2006-10-23 Walter Doerwald <walter@livinglogic.de>
1130 2006-10-23 Walter Doerwald <walter@livinglogic.de>
1128
1131
1129 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
1132 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
1130 call the base class method and propagate the return value to
1133 call the base class method and propagate the return value to
1131 ifile. This is now done by path itself.
1134 ifile. This is now done by path itself.
1132
1135
1133 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
1136 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
1134
1137
1135 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
1138 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
1136 api: set_crash_handler(), to expose the ability to change the
1139 api: set_crash_handler(), to expose the ability to change the
1137 internal crash handler.
1140 internal crash handler.
1138
1141
1139 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
1142 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
1140 the various parameters of the crash handler so that apps using
1143 the various parameters of the crash handler so that apps using
1141 IPython as their engine can customize crash handling. Ipmlemented
1144 IPython as their engine can customize crash handling. Ipmlemented
1142 at the request of SAGE.
1145 at the request of SAGE.
1143
1146
1144 2006-10-14 Ville Vainio <vivainio@gmail.com>
1147 2006-10-14 Ville Vainio <vivainio@gmail.com>
1145
1148
1146 * Magic.py, ipython.el: applied first "safe" part of Rocky
1149 * Magic.py, ipython.el: applied first "safe" part of Rocky
1147 Bernstein's patch set for pydb integration.
1150 Bernstein's patch set for pydb integration.
1148
1151
1149 * Magic.py (%unalias, %alias): %store'd aliases can now be
1152 * Magic.py (%unalias, %alias): %store'd aliases can now be
1150 removed with '%unalias'. %alias w/o args now shows most
1153 removed with '%unalias'. %alias w/o args now shows most
1151 interesting (stored / manually defined) aliases last
1154 interesting (stored / manually defined) aliases last
1152 where they catch the eye w/o scrolling.
1155 where they catch the eye w/o scrolling.
1153
1156
1154 * Magic.py (%rehashx), ext_rehashdir.py: files with
1157 * Magic.py (%rehashx), ext_rehashdir.py: files with
1155 'py' extension are always considered executable, even
1158 'py' extension are always considered executable, even
1156 when not in PATHEXT environment variable.
1159 when not in PATHEXT environment variable.
1157
1160
1158 2006-10-12 Ville Vainio <vivainio@gmail.com>
1161 2006-10-12 Ville Vainio <vivainio@gmail.com>
1159
1162
1160 * jobctrl.py: Add new "jobctrl" extension for spawning background
1163 * jobctrl.py: Add new "jobctrl" extension for spawning background
1161 processes with "&find /". 'import jobctrl' to try it out. Requires
1164 processes with "&find /". 'import jobctrl' to try it out. Requires
1162 'subprocess' module, standard in python 2.4+.
1165 'subprocess' module, standard in python 2.4+.
1163
1166
1164 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
1167 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
1165 so if foo -> bar and bar -> baz, then foo -> baz.
1168 so if foo -> bar and bar -> baz, then foo -> baz.
1166
1169
1167 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
1170 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
1168
1171
1169 * IPython/Magic.py (Magic.parse_options): add a new posix option
1172 * IPython/Magic.py (Magic.parse_options): add a new posix option
1170 to allow parsing of input args in magics that doesn't strip quotes
1173 to allow parsing of input args in magics that doesn't strip quotes
1171 (if posix=False). This also closes %timeit bug reported by
1174 (if posix=False). This also closes %timeit bug reported by
1172 Stefan.
1175 Stefan.
1173
1176
1174 2006-10-03 Ville Vainio <vivainio@gmail.com>
1177 2006-10-03 Ville Vainio <vivainio@gmail.com>
1175
1178
1176 * iplib.py (raw_input, interact): Return ValueError catching for
1179 * iplib.py (raw_input, interact): Return ValueError catching for
1177 raw_input. Fixes infinite loop for sys.stdin.close() or
1180 raw_input. Fixes infinite loop for sys.stdin.close() or
1178 sys.stdout.close().
1181 sys.stdout.close().
1179
1182
1180 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1183 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1181
1184
1182 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
1185 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
1183 to help in handling doctests. irunner is now pretty useful for
1186 to help in handling doctests. irunner is now pretty useful for
1184 running standalone scripts and simulate a full interactive session
1187 running standalone scripts and simulate a full interactive session
1185 in a format that can be then pasted as a doctest.
1188 in a format that can be then pasted as a doctest.
1186
1189
1187 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
1190 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
1188 on top of the default (useless) ones. This also fixes the nasty
1191 on top of the default (useless) ones. This also fixes the nasty
1189 way in which 2.5's Quitter() exits (reverted [1785]).
1192 way in which 2.5's Quitter() exits (reverted [1785]).
1190
1193
1191 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
1194 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
1192 2.5.
1195 2.5.
1193
1196
1194 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
1197 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
1195 color scheme is updated as well when color scheme is changed
1198 color scheme is updated as well when color scheme is changed
1196 interactively.
1199 interactively.
1197
1200
1198 2006-09-27 Ville Vainio <vivainio@gmail.com>
1201 2006-09-27 Ville Vainio <vivainio@gmail.com>
1199
1202
1200 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
1203 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
1201 infinite loop and just exit. It's a hack, but will do for a while.
1204 infinite loop and just exit. It's a hack, but will do for a while.
1202
1205
1203 2006-08-25 Walter Doerwald <walter@livinglogic.de>
1206 2006-08-25 Walter Doerwald <walter@livinglogic.de>
1204
1207
1205 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
1208 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
1206 the constructor, this makes it possible to get a list of only directories
1209 the constructor, this makes it possible to get a list of only directories
1207 or only files.
1210 or only files.
1208
1211
1209 2006-08-12 Ville Vainio <vivainio@gmail.com>
1212 2006-08-12 Ville Vainio <vivainio@gmail.com>
1210
1213
1211 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
1214 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
1212 they broke unittest
1215 they broke unittest
1213
1216
1214 2006-08-11 Ville Vainio <vivainio@gmail.com>
1217 2006-08-11 Ville Vainio <vivainio@gmail.com>
1215
1218
1216 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
1219 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
1217 by resolving issue properly, i.e. by inheriting FakeModule
1220 by resolving issue properly, i.e. by inheriting FakeModule
1218 from types.ModuleType. Pickling ipython interactive data
1221 from types.ModuleType. Pickling ipython interactive data
1219 should still work as usual (testing appreciated).
1222 should still work as usual (testing appreciated).
1220
1223
1221 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
1224 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
1222
1225
1223 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
1226 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
1224 running under python 2.3 with code from 2.4 to fix a bug with
1227 running under python 2.3 with code from 2.4 to fix a bug with
1225 help(). Reported by the Debian maintainers, Norbert Tretkowski
1228 help(). Reported by the Debian maintainers, Norbert Tretkowski
1226 <norbert-AT-tretkowski.de> and Alexandre Fayolle
1229 <norbert-AT-tretkowski.de> and Alexandre Fayolle
1227 <afayolle-AT-debian.org>.
1230 <afayolle-AT-debian.org>.
1228
1231
1229 2006-08-04 Walter Doerwald <walter@livinglogic.de>
1232 2006-08-04 Walter Doerwald <walter@livinglogic.de>
1230
1233
1231 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
1234 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
1232 (which was displaying "quit" twice).
1235 (which was displaying "quit" twice).
1233
1236
1234 2006-07-28 Walter Doerwald <walter@livinglogic.de>
1237 2006-07-28 Walter Doerwald <walter@livinglogic.de>
1235
1238
1236 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
1239 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
1237 the mode argument).
1240 the mode argument).
1238
1241
1239 2006-07-27 Walter Doerwald <walter@livinglogic.de>
1242 2006-07-27 Walter Doerwald <walter@livinglogic.de>
1240
1243
1241 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
1244 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
1242 not running under IPython.
1245 not running under IPython.
1243
1246
1244 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
1247 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
1245 and make it iterable (iterating over the attribute itself). Add two new
1248 and make it iterable (iterating over the attribute itself). Add two new
1246 magic strings for __xattrs__(): If the string starts with "-", the attribute
1249 magic strings for __xattrs__(): If the string starts with "-", the attribute
1247 will not be displayed in ibrowse's detail view (but it can still be
1250 will not be displayed in ibrowse's detail view (but it can still be
1248 iterated over). This makes it possible to add attributes that are large
1251 iterated over). This makes it possible to add attributes that are large
1249 lists or generator methods to the detail view. Replace magic attribute names
1252 lists or generator methods to the detail view. Replace magic attribute names
1250 and _attrname() and _getattr() with "descriptors": For each type of magic
1253 and _attrname() and _getattr() with "descriptors": For each type of magic
1251 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
1254 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
1252 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
1255 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
1253 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
1256 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
1254 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
1257 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
1255 are still supported.
1258 are still supported.
1256
1259
1257 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
1260 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
1258 fails in ibrowse.fetch(), the exception object is added as the last item
1261 fails in ibrowse.fetch(), the exception object is added as the last item
1259 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
1262 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
1260 a generator throws an exception midway through execution.
1263 a generator throws an exception midway through execution.
1261
1264
1262 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1265 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1263 encoding into methods.
1266 encoding into methods.
1264
1267
1265 2006-07-26 Ville Vainio <vivainio@gmail.com>
1268 2006-07-26 Ville Vainio <vivainio@gmail.com>
1266
1269
1267 * iplib.py: history now stores multiline input as single
1270 * iplib.py: history now stores multiline input as single
1268 history entries. Patch by Jorgen Cederlof.
1271 history entries. Patch by Jorgen Cederlof.
1269
1272
1270 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1273 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1271
1274
1272 * IPython/Extensions/ibrowse.py: Make cursor visible over
1275 * IPython/Extensions/ibrowse.py: Make cursor visible over
1273 non existing attributes.
1276 non existing attributes.
1274
1277
1275 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1278 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1276
1279
1277 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1280 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1278 error output of the running command doesn't mess up the screen.
1281 error output of the running command doesn't mess up the screen.
1279
1282
1280 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1283 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1281
1284
1282 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1285 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1283 argument. This sorts the items themselves.
1286 argument. This sorts the items themselves.
1284
1287
1285 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1288 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1286
1289
1287 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1290 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1288 Compile expression strings into code objects. This should speed
1291 Compile expression strings into code objects. This should speed
1289 up ifilter and friends somewhat.
1292 up ifilter and friends somewhat.
1290
1293
1291 2006-07-08 Ville Vainio <vivainio@gmail.com>
1294 2006-07-08 Ville Vainio <vivainio@gmail.com>
1292
1295
1293 * Magic.py: %cpaste now strips > from the beginning of lines
1296 * Magic.py: %cpaste now strips > from the beginning of lines
1294 to ease pasting quoted code from emails. Contributed by
1297 to ease pasting quoted code from emails. Contributed by
1295 Stefan van der Walt.
1298 Stefan van der Walt.
1296
1299
1297 2006-06-29 Ville Vainio <vivainio@gmail.com>
1300 2006-06-29 Ville Vainio <vivainio@gmail.com>
1298
1301
1299 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1302 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1300 mode, patch contributed by Darren Dale. NEEDS TESTING!
1303 mode, patch contributed by Darren Dale. NEEDS TESTING!
1301
1304
1302 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1305 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1303
1306
1304 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1307 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1305 a blue background. Fix fetching new display rows when the browser
1308 a blue background. Fix fetching new display rows when the browser
1306 scrolls more than a screenful (e.g. by using the goto command).
1309 scrolls more than a screenful (e.g. by using the goto command).
1307
1310
1308 2006-06-27 Ville Vainio <vivainio@gmail.com>
1311 2006-06-27 Ville Vainio <vivainio@gmail.com>
1309
1312
1310 * Magic.py (_inspect, _ofind) Apply David Huard's
1313 * Magic.py (_inspect, _ofind) Apply David Huard's
1311 patch for displaying the correct docstring for 'property'
1314 patch for displaying the correct docstring for 'property'
1312 attributes.
1315 attributes.
1313
1316
1314 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1317 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1315
1318
1316 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1319 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1317 commands into the methods implementing them.
1320 commands into the methods implementing them.
1318
1321
1319 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1322 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1320
1323
1321 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1324 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1322 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1325 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1323 autoindent support was authored by Jin Liu.
1326 autoindent support was authored by Jin Liu.
1324
1327
1325 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1328 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1326
1329
1327 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1330 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1328 for keymaps with a custom class that simplifies handling.
1331 for keymaps with a custom class that simplifies handling.
1329
1332
1330 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1333 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1331
1334
1332 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1335 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1333 resizing. This requires Python 2.5 to work.
1336 resizing. This requires Python 2.5 to work.
1334
1337
1335 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1338 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1336
1339
1337 * IPython/Extensions/ibrowse.py: Add two new commands to
1340 * IPython/Extensions/ibrowse.py: Add two new commands to
1338 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1341 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1339 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1342 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1340 attributes again. Remapped the help command to "?". Display
1343 attributes again. Remapped the help command to "?". Display
1341 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1344 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1342 as keys for the "home" and "end" commands. Add three new commands
1345 as keys for the "home" and "end" commands. Add three new commands
1343 to the input mode for "find" and friends: "delend" (CTRL-K)
1346 to the input mode for "find" and friends: "delend" (CTRL-K)
1344 deletes to the end of line. "incsearchup" searches upwards in the
1347 deletes to the end of line. "incsearchup" searches upwards in the
1345 command history for an input that starts with the text before the cursor.
1348 command history for an input that starts with the text before the cursor.
1346 "incsearchdown" does the same downwards. Removed a bogus mapping of
1349 "incsearchdown" does the same downwards. Removed a bogus mapping of
1347 the x key to "delete".
1350 the x key to "delete".
1348
1351
1349 2006-06-15 Ville Vainio <vivainio@gmail.com>
1352 2006-06-15 Ville Vainio <vivainio@gmail.com>
1350
1353
1351 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1354 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1352 used to create prompts dynamically, instead of the "old" way of
1355 used to create prompts dynamically, instead of the "old" way of
1353 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1356 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1354 way still works (it's invoked by the default hook), of course.
1357 way still works (it's invoked by the default hook), of course.
1355
1358
1356 * Prompts.py: added generate_output_prompt hook for altering output
1359 * Prompts.py: added generate_output_prompt hook for altering output
1357 prompt
1360 prompt
1358
1361
1359 * Release.py: Changed version string to 0.7.3.svn.
1362 * Release.py: Changed version string to 0.7.3.svn.
1360
1363
1361 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1364 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1362
1365
1363 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1366 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1364 the call to fetch() always tries to fetch enough data for at least one
1367 the call to fetch() always tries to fetch enough data for at least one
1365 full screen. This makes it possible to simply call moveto(0,0,True) in
1368 full screen. This makes it possible to simply call moveto(0,0,True) in
1366 the constructor. Fix typos and removed the obsolete goto attribute.
1369 the constructor. Fix typos and removed the obsolete goto attribute.
1367
1370
1368 2006-06-12 Ville Vainio <vivainio@gmail.com>
1371 2006-06-12 Ville Vainio <vivainio@gmail.com>
1369
1372
1370 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1373 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1371 allowing $variable interpolation within multiline statements,
1374 allowing $variable interpolation within multiline statements,
1372 though so far only with "sh" profile for a testing period.
1375 though so far only with "sh" profile for a testing period.
1373 The patch also enables splitting long commands with \ but it
1376 The patch also enables splitting long commands with \ but it
1374 doesn't work properly yet.
1377 doesn't work properly yet.
1375
1378
1376 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1379 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1377
1380
1378 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1381 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1379 input history and the position of the cursor in the input history for
1382 input history and the position of the cursor in the input history for
1380 the find, findbackwards and goto command.
1383 the find, findbackwards and goto command.
1381
1384
1382 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1385 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1383
1386
1384 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1387 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1385 implements the basic functionality of browser commands that require
1388 implements the basic functionality of browser commands that require
1386 input. Reimplement the goto, find and findbackwards commands as
1389 input. Reimplement the goto, find and findbackwards commands as
1387 subclasses of _CommandInput. Add an input history and keymaps to those
1390 subclasses of _CommandInput. Add an input history and keymaps to those
1388 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1391 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1389 execute commands.
1392 execute commands.
1390
1393
1391 2006-06-07 Ville Vainio <vivainio@gmail.com>
1394 2006-06-07 Ville Vainio <vivainio@gmail.com>
1392
1395
1393 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1396 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1394 running the batch files instead of leaving the session open.
1397 running the batch files instead of leaving the session open.
1395
1398
1396 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1399 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1397
1400
1398 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1401 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1399 the original fix was incomplete. Patch submitted by W. Maier.
1402 the original fix was incomplete. Patch submitted by W. Maier.
1400
1403
1401 2006-06-07 Ville Vainio <vivainio@gmail.com>
1404 2006-06-07 Ville Vainio <vivainio@gmail.com>
1402
1405
1403 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1406 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1404 Confirmation prompts can be supressed by 'quiet' option.
1407 Confirmation prompts can be supressed by 'quiet' option.
1405 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1408 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1406
1409
1407 2006-06-06 *** Released version 0.7.2
1410 2006-06-06 *** Released version 0.7.2
1408
1411
1409 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1412 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1410
1413
1411 * IPython/Release.py (version): Made 0.7.2 final for release.
1414 * IPython/Release.py (version): Made 0.7.2 final for release.
1412 Repo tagged and release cut.
1415 Repo tagged and release cut.
1413
1416
1414 2006-06-05 Ville Vainio <vivainio@gmail.com>
1417 2006-06-05 Ville Vainio <vivainio@gmail.com>
1415
1418
1416 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1419 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1417 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1420 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1418
1421
1419 * upgrade_dir.py: try import 'path' module a bit harder
1422 * upgrade_dir.py: try import 'path' module a bit harder
1420 (for %upgrade)
1423 (for %upgrade)
1421
1424
1422 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1425 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1423
1426
1424 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1427 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1425 instead of looping 20 times.
1428 instead of looping 20 times.
1426
1429
1427 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1430 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1428 correctly at initialization time. Bug reported by Krishna Mohan
1431 correctly at initialization time. Bug reported by Krishna Mohan
1429 Gundu <gkmohan-AT-gmail.com> on the user list.
1432 Gundu <gkmohan-AT-gmail.com> on the user list.
1430
1433
1431 * IPython/Release.py (version): Mark 0.7.2 version to start
1434 * IPython/Release.py (version): Mark 0.7.2 version to start
1432 testing for release on 06/06.
1435 testing for release on 06/06.
1433
1436
1434 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1437 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1435
1438
1436 * scripts/irunner: thin script interface so users don't have to
1439 * scripts/irunner: thin script interface so users don't have to
1437 find the module and call it as an executable, since modules rarely
1440 find the module and call it as an executable, since modules rarely
1438 live in people's PATH.
1441 live in people's PATH.
1439
1442
1440 * IPython/irunner.py (InteractiveRunner.__init__): added
1443 * IPython/irunner.py (InteractiveRunner.__init__): added
1441 delaybeforesend attribute to control delays with newer versions of
1444 delaybeforesend attribute to control delays with newer versions of
1442 pexpect. Thanks to detailed help from pexpect's author, Noah
1445 pexpect. Thanks to detailed help from pexpect's author, Noah
1443 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1446 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1444 correctly (it works in NoColor mode).
1447 correctly (it works in NoColor mode).
1445
1448
1446 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1449 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1447 SAGE list, from improper log() calls.
1450 SAGE list, from improper log() calls.
1448
1451
1449 2006-05-31 Ville Vainio <vivainio@gmail.com>
1452 2006-05-31 Ville Vainio <vivainio@gmail.com>
1450
1453
1451 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1454 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1452 with args in parens to work correctly with dirs that have spaces.
1455 with args in parens to work correctly with dirs that have spaces.
1453
1456
1454 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1457 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1455
1458
1456 * IPython/Logger.py (Logger.logstart): add option to log raw input
1459 * IPython/Logger.py (Logger.logstart): add option to log raw input
1457 instead of the processed one. A -r flag was added to the
1460 instead of the processed one. A -r flag was added to the
1458 %logstart magic used for controlling logging.
1461 %logstart magic used for controlling logging.
1459
1462
1460 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1463 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1461
1464
1462 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1465 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1463 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1466 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1464 recognize the option. After a bug report by Will Maier. This
1467 recognize the option. After a bug report by Will Maier. This
1465 closes #64 (will do it after confirmation from W. Maier).
1468 closes #64 (will do it after confirmation from W. Maier).
1466
1469
1467 * IPython/irunner.py: New module to run scripts as if manually
1470 * IPython/irunner.py: New module to run scripts as if manually
1468 typed into an interactive environment, based on pexpect. After a
1471 typed into an interactive environment, based on pexpect. After a
1469 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1472 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1470 ipython-user list. Simple unittests in the tests/ directory.
1473 ipython-user list. Simple unittests in the tests/ directory.
1471
1474
1472 * tools/release: add Will Maier, OpenBSD port maintainer, to
1475 * tools/release: add Will Maier, OpenBSD port maintainer, to
1473 recepients list. We are now officially part of the OpenBSD ports:
1476 recepients list. We are now officially part of the OpenBSD ports:
1474 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1477 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1475 work.
1478 work.
1476
1479
1477 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1480 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1478
1481
1479 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1482 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1480 so that it doesn't break tkinter apps.
1483 so that it doesn't break tkinter apps.
1481
1484
1482 * IPython/iplib.py (_prefilter): fix bug where aliases would
1485 * IPython/iplib.py (_prefilter): fix bug where aliases would
1483 shadow variables when autocall was fully off. Reported by SAGE
1486 shadow variables when autocall was fully off. Reported by SAGE
1484 author William Stein.
1487 author William Stein.
1485
1488
1486 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1489 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1487 at what detail level strings are computed when foo? is requested.
1490 at what detail level strings are computed when foo? is requested.
1488 This allows users to ask for example that the string form of an
1491 This allows users to ask for example that the string form of an
1489 object is only computed when foo?? is called, or even never, by
1492 object is only computed when foo?? is called, or even never, by
1490 setting the object_info_string_level >= 2 in the configuration
1493 setting the object_info_string_level >= 2 in the configuration
1491 file. This new option has been added and documented. After a
1494 file. This new option has been added and documented. After a
1492 request by SAGE to be able to control the printing of very large
1495 request by SAGE to be able to control the printing of very large
1493 objects more easily.
1496 objects more easily.
1494
1497
1495 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1498 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1496
1499
1497 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1500 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1498 from sys.argv, to be 100% consistent with how Python itself works
1501 from sys.argv, to be 100% consistent with how Python itself works
1499 (as seen for example with python -i file.py). After a bug report
1502 (as seen for example with python -i file.py). After a bug report
1500 by Jeffrey Collins.
1503 by Jeffrey Collins.
1501
1504
1502 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1505 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1503 nasty bug which was preventing custom namespaces with -pylab,
1506 nasty bug which was preventing custom namespaces with -pylab,
1504 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1507 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1505 compatibility (long gone from mpl).
1508 compatibility (long gone from mpl).
1506
1509
1507 * IPython/ipapi.py (make_session): name change: create->make. We
1510 * IPython/ipapi.py (make_session): name change: create->make. We
1508 use make in other places (ipmaker,...), it's shorter and easier to
1511 use make in other places (ipmaker,...), it's shorter and easier to
1509 type and say, etc. I'm trying to clean things before 0.7.2 so
1512 type and say, etc. I'm trying to clean things before 0.7.2 so
1510 that I can keep things stable wrt to ipapi in the chainsaw branch.
1513 that I can keep things stable wrt to ipapi in the chainsaw branch.
1511
1514
1512 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1515 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1513 python-mode recognizes our debugger mode. Add support for
1516 python-mode recognizes our debugger mode. Add support for
1514 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1517 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1515 <m.liu.jin-AT-gmail.com> originally written by
1518 <m.liu.jin-AT-gmail.com> originally written by
1516 doxgen-AT-newsmth.net (with minor modifications for xemacs
1519 doxgen-AT-newsmth.net (with minor modifications for xemacs
1517 compatibility)
1520 compatibility)
1518
1521
1519 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1522 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1520 tracebacks when walking the stack so that the stack tracking system
1523 tracebacks when walking the stack so that the stack tracking system
1521 in emacs' python-mode can identify the frames correctly.
1524 in emacs' python-mode can identify the frames correctly.
1522
1525
1523 * IPython/ipmaker.py (make_IPython): make the internal (and
1526 * IPython/ipmaker.py (make_IPython): make the internal (and
1524 default config) autoedit_syntax value false by default. Too many
1527 default config) autoedit_syntax value false by default. Too many
1525 users have complained to me (both on and off-list) about problems
1528 users have complained to me (both on and off-list) about problems
1526 with this option being on by default, so I'm making it default to
1529 with this option being on by default, so I'm making it default to
1527 off. It can still be enabled by anyone via the usual mechanisms.
1530 off. It can still be enabled by anyone via the usual mechanisms.
1528
1531
1529 * IPython/completer.py (Completer.attr_matches): add support for
1532 * IPython/completer.py (Completer.attr_matches): add support for
1530 PyCrust-style _getAttributeNames magic method. Patch contributed
1533 PyCrust-style _getAttributeNames magic method. Patch contributed
1531 by <mscott-AT-goldenspud.com>. Closes #50.
1534 by <mscott-AT-goldenspud.com>. Closes #50.
1532
1535
1533 * IPython/iplib.py (InteractiveShell.__init__): remove the
1536 * IPython/iplib.py (InteractiveShell.__init__): remove the
1534 deletion of exit/quit from __builtin__, which can break
1537 deletion of exit/quit from __builtin__, which can break
1535 third-party tools like the Zope debugging console. The
1538 third-party tools like the Zope debugging console. The
1536 %exit/%quit magics remain. In general, it's probably a good idea
1539 %exit/%quit magics remain. In general, it's probably a good idea
1537 not to delete anything from __builtin__, since we never know what
1540 not to delete anything from __builtin__, since we never know what
1538 that will break. In any case, python now (for 2.5) will support
1541 that will break. In any case, python now (for 2.5) will support
1539 'real' exit/quit, so this issue is moot. Closes #55.
1542 'real' exit/quit, so this issue is moot. Closes #55.
1540
1543
1541 * IPython/genutils.py (with_obj): rename the 'with' function to
1544 * IPython/genutils.py (with_obj): rename the 'with' function to
1542 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1545 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1543 becomes a language keyword. Closes #53.
1546 becomes a language keyword. Closes #53.
1544
1547
1545 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1548 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1546 __file__ attribute to this so it fools more things into thinking
1549 __file__ attribute to this so it fools more things into thinking
1547 it is a real module. Closes #59.
1550 it is a real module. Closes #59.
1548
1551
1549 * IPython/Magic.py (magic_edit): add -n option to open the editor
1552 * IPython/Magic.py (magic_edit): add -n option to open the editor
1550 at a specific line number. After a patch by Stefan van der Walt.
1553 at a specific line number. After a patch by Stefan van der Walt.
1551
1554
1552 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1555 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1553
1556
1554 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1557 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1555 reason the file could not be opened. After automatic crash
1558 reason the file could not be opened. After automatic crash
1556 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1559 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1557 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1560 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1558 (_should_recompile): Don't fire editor if using %bg, since there
1561 (_should_recompile): Don't fire editor if using %bg, since there
1559 is no file in the first place. From the same report as above.
1562 is no file in the first place. From the same report as above.
1560 (raw_input): protect against faulty third-party prefilters. After
1563 (raw_input): protect against faulty third-party prefilters. After
1561 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1564 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1562 while running under SAGE.
1565 while running under SAGE.
1563
1566
1564 2006-05-23 Ville Vainio <vivainio@gmail.com>
1567 2006-05-23 Ville Vainio <vivainio@gmail.com>
1565
1568
1566 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1569 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1567 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1570 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1568 now returns None (again), unless dummy is specifically allowed by
1571 now returns None (again), unless dummy is specifically allowed by
1569 ipapi.get(allow_dummy=True).
1572 ipapi.get(allow_dummy=True).
1570
1573
1571 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1574 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1572
1575
1573 * IPython: remove all 2.2-compatibility objects and hacks from
1576 * IPython: remove all 2.2-compatibility objects and hacks from
1574 everywhere, since we only support 2.3 at this point. Docs
1577 everywhere, since we only support 2.3 at this point. Docs
1575 updated.
1578 updated.
1576
1579
1577 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1580 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1578 Anything requiring extra validation can be turned into a Python
1581 Anything requiring extra validation can be turned into a Python
1579 property in the future. I used a property for the db one b/c
1582 property in the future. I used a property for the db one b/c
1580 there was a nasty circularity problem with the initialization
1583 there was a nasty circularity problem with the initialization
1581 order, which right now I don't have time to clean up.
1584 order, which right now I don't have time to clean up.
1582
1585
1583 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1586 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1584 another locking bug reported by Jorgen. I'm not 100% sure though,
1587 another locking bug reported by Jorgen. I'm not 100% sure though,
1585 so more testing is needed...
1588 so more testing is needed...
1586
1589
1587 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1590 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1588
1591
1589 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1592 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1590 local variables from any routine in user code (typically executed
1593 local variables from any routine in user code (typically executed
1591 with %run) directly into the interactive namespace. Very useful
1594 with %run) directly into the interactive namespace. Very useful
1592 when doing complex debugging.
1595 when doing complex debugging.
1593 (IPythonNotRunning): Changed the default None object to a dummy
1596 (IPythonNotRunning): Changed the default None object to a dummy
1594 whose attributes can be queried as well as called without
1597 whose attributes can be queried as well as called without
1595 exploding, to ease writing code which works transparently both in
1598 exploding, to ease writing code which works transparently both in
1596 and out of ipython and uses some of this API.
1599 and out of ipython and uses some of this API.
1597
1600
1598 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1601 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1599
1602
1600 * IPython/hooks.py (result_display): Fix the fact that our display
1603 * IPython/hooks.py (result_display): Fix the fact that our display
1601 hook was using str() instead of repr(), as the default python
1604 hook was using str() instead of repr(), as the default python
1602 console does. This had gone unnoticed b/c it only happened if
1605 console does. This had gone unnoticed b/c it only happened if
1603 %Pprint was off, but the inconsistency was there.
1606 %Pprint was off, but the inconsistency was there.
1604
1607
1605 2006-05-15 Ville Vainio <vivainio@gmail.com>
1608 2006-05-15 Ville Vainio <vivainio@gmail.com>
1606
1609
1607 * Oinspect.py: Only show docstring for nonexisting/binary files
1610 * Oinspect.py: Only show docstring for nonexisting/binary files
1608 when doing object??, closing ticket #62
1611 when doing object??, closing ticket #62
1609
1612
1610 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1613 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1611
1614
1612 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1615 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1613 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1616 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1614 was being released in a routine which hadn't checked if it had
1617 was being released in a routine which hadn't checked if it had
1615 been the one to acquire it.
1618 been the one to acquire it.
1616
1619
1617 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1620 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1618
1621
1619 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1622 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1620
1623
1621 2006-04-11 Ville Vainio <vivainio@gmail.com>
1624 2006-04-11 Ville Vainio <vivainio@gmail.com>
1622
1625
1623 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1626 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1624 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1627 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1625 prefilters, allowing stuff like magics and aliases in the file.
1628 prefilters, allowing stuff like magics and aliases in the file.
1626
1629
1627 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1630 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1628 added. Supported now are "%clear in" and "%clear out" (clear input and
1631 added. Supported now are "%clear in" and "%clear out" (clear input and
1629 output history, respectively). Also fixed CachedOutput.flush to
1632 output history, respectively). Also fixed CachedOutput.flush to
1630 properly flush the output cache.
1633 properly flush the output cache.
1631
1634
1632 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1635 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1633 half-success (and fail explicitly).
1636 half-success (and fail explicitly).
1634
1637
1635 2006-03-28 Ville Vainio <vivainio@gmail.com>
1638 2006-03-28 Ville Vainio <vivainio@gmail.com>
1636
1639
1637 * iplib.py: Fix quoting of aliases so that only argless ones
1640 * iplib.py: Fix quoting of aliases so that only argless ones
1638 are quoted
1641 are quoted
1639
1642
1640 2006-03-28 Ville Vainio <vivainio@gmail.com>
1643 2006-03-28 Ville Vainio <vivainio@gmail.com>
1641
1644
1642 * iplib.py: Quote aliases with spaces in the name.
1645 * iplib.py: Quote aliases with spaces in the name.
1643 "c:\program files\blah\bin" is now legal alias target.
1646 "c:\program files\blah\bin" is now legal alias target.
1644
1647
1645 * ext_rehashdir.py: Space no longer allowed as arg
1648 * ext_rehashdir.py: Space no longer allowed as arg
1646 separator, since space is legal in path names.
1649 separator, since space is legal in path names.
1647
1650
1648 2006-03-16 Ville Vainio <vivainio@gmail.com>
1651 2006-03-16 Ville Vainio <vivainio@gmail.com>
1649
1652
1650 * upgrade_dir.py: Take path.py from Extensions, correcting
1653 * upgrade_dir.py: Take path.py from Extensions, correcting
1651 %upgrade magic
1654 %upgrade magic
1652
1655
1653 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1656 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1654
1657
1655 * hooks.py: Only enclose editor binary in quotes if legal and
1658 * hooks.py: Only enclose editor binary in quotes if legal and
1656 necessary (space in the name, and is an existing file). Fixes a bug
1659 necessary (space in the name, and is an existing file). Fixes a bug
1657 reported by Zachary Pincus.
1660 reported by Zachary Pincus.
1658
1661
1659 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1662 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1660
1663
1661 * Manual: thanks to a tip on proper color handling for Emacs, by
1664 * Manual: thanks to a tip on proper color handling for Emacs, by
1662 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1665 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1663
1666
1664 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1667 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1665 by applying the provided patch. Thanks to Liu Jin
1668 by applying the provided patch. Thanks to Liu Jin
1666 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1669 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1667 XEmacs/Linux, I'm trusting the submitter that it actually helps
1670 XEmacs/Linux, I'm trusting the submitter that it actually helps
1668 under win32/GNU Emacs. Will revisit if any problems are reported.
1671 under win32/GNU Emacs. Will revisit if any problems are reported.
1669
1672
1670 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1673 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1671
1674
1672 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1675 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1673 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1676 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1674
1677
1675 2006-03-12 Ville Vainio <vivainio@gmail.com>
1678 2006-03-12 Ville Vainio <vivainio@gmail.com>
1676
1679
1677 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1680 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1678 Torsten Marek.
1681 Torsten Marek.
1679
1682
1680 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1683 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1681
1684
1682 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1685 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1683 line ranges works again.
1686 line ranges works again.
1684
1687
1685 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1688 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1686
1689
1687 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1690 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1688 and friends, after a discussion with Zach Pincus on ipython-user.
1691 and friends, after a discussion with Zach Pincus on ipython-user.
1689 I'm not 100% sure, but after thinking about it quite a bit, it may
1692 I'm not 100% sure, but after thinking about it quite a bit, it may
1690 be OK. Testing with the multithreaded shells didn't reveal any
1693 be OK. Testing with the multithreaded shells didn't reveal any
1691 problems, but let's keep an eye out.
1694 problems, but let's keep an eye out.
1692
1695
1693 In the process, I fixed a few things which were calling
1696 In the process, I fixed a few things which were calling
1694 self.InteractiveTB() directly (like safe_execfile), which is a
1697 self.InteractiveTB() directly (like safe_execfile), which is a
1695 mistake: ALL exception reporting should be done by calling
1698 mistake: ALL exception reporting should be done by calling
1696 self.showtraceback(), which handles state and tab-completion and
1699 self.showtraceback(), which handles state and tab-completion and
1697 more.
1700 more.
1698
1701
1699 2006-03-01 Ville Vainio <vivainio@gmail.com>
1702 2006-03-01 Ville Vainio <vivainio@gmail.com>
1700
1703
1701 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1704 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1702 To use, do "from ipipe import *".
1705 To use, do "from ipipe import *".
1703
1706
1704 2006-02-24 Ville Vainio <vivainio@gmail.com>
1707 2006-02-24 Ville Vainio <vivainio@gmail.com>
1705
1708
1706 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1709 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1707 "cleanly" and safely than the older upgrade mechanism.
1710 "cleanly" and safely than the older upgrade mechanism.
1708
1711
1709 2006-02-21 Ville Vainio <vivainio@gmail.com>
1712 2006-02-21 Ville Vainio <vivainio@gmail.com>
1710
1713
1711 * Magic.py: %save works again.
1714 * Magic.py: %save works again.
1712
1715
1713 2006-02-15 Ville Vainio <vivainio@gmail.com>
1716 2006-02-15 Ville Vainio <vivainio@gmail.com>
1714
1717
1715 * Magic.py: %Pprint works again
1718 * Magic.py: %Pprint works again
1716
1719
1717 * Extensions/ipy_sane_defaults.py: Provide everything provided
1720 * Extensions/ipy_sane_defaults.py: Provide everything provided
1718 in default ipythonrc, to make it possible to have a completely empty
1721 in default ipythonrc, to make it possible to have a completely empty
1719 ipythonrc (and thus completely rc-file free configuration)
1722 ipythonrc (and thus completely rc-file free configuration)
1720
1723
1721 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1724 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1722
1725
1723 * IPython/hooks.py (editor): quote the call to the editor command,
1726 * IPython/hooks.py (editor): quote the call to the editor command,
1724 to allow commands with spaces in them. Problem noted by watching
1727 to allow commands with spaces in them. Problem noted by watching
1725 Ian Oswald's video about textpad under win32 at
1728 Ian Oswald's video about textpad under win32 at
1726 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1729 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1727
1730
1728 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1731 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1729 describing magics (we haven't used @ for a loong time).
1732 describing magics (we haven't used @ for a loong time).
1730
1733
1731 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1734 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1732 contributed by marienz to close
1735 contributed by marienz to close
1733 http://www.scipy.net/roundup/ipython/issue53.
1736 http://www.scipy.net/roundup/ipython/issue53.
1734
1737
1735 2006-02-10 Ville Vainio <vivainio@gmail.com>
1738 2006-02-10 Ville Vainio <vivainio@gmail.com>
1736
1739
1737 * genutils.py: getoutput now works in win32 too
1740 * genutils.py: getoutput now works in win32 too
1738
1741
1739 * completer.py: alias and magic completion only invoked
1742 * completer.py: alias and magic completion only invoked
1740 at the first "item" in the line, to avoid "cd %store"
1743 at the first "item" in the line, to avoid "cd %store"
1741 nonsense.
1744 nonsense.
1742
1745
1743 2006-02-09 Ville Vainio <vivainio@gmail.com>
1746 2006-02-09 Ville Vainio <vivainio@gmail.com>
1744
1747
1745 * test/*: Added a unit testing framework (finally).
1748 * test/*: Added a unit testing framework (finally).
1746 '%run runtests.py' to run test_*.
1749 '%run runtests.py' to run test_*.
1747
1750
1748 * ipapi.py: Exposed runlines and set_custom_exc
1751 * ipapi.py: Exposed runlines and set_custom_exc
1749
1752
1750 2006-02-07 Ville Vainio <vivainio@gmail.com>
1753 2006-02-07 Ville Vainio <vivainio@gmail.com>
1751
1754
1752 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1755 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1753 instead use "f(1 2)" as before.
1756 instead use "f(1 2)" as before.
1754
1757
1755 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1758 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1756
1759
1757 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1760 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1758 facilities, for demos processed by the IPython input filter
1761 facilities, for demos processed by the IPython input filter
1759 (IPythonDemo), and for running a script one-line-at-a-time as a
1762 (IPythonDemo), and for running a script one-line-at-a-time as a
1760 demo, both for pure Python (LineDemo) and for IPython-processed
1763 demo, both for pure Python (LineDemo) and for IPython-processed
1761 input (IPythonLineDemo). After a request by Dave Kohel, from the
1764 input (IPythonLineDemo). After a request by Dave Kohel, from the
1762 SAGE team.
1765 SAGE team.
1763 (Demo.edit): added an edit() method to the demo objects, to edit
1766 (Demo.edit): added an edit() method to the demo objects, to edit
1764 the in-memory copy of the last executed block.
1767 the in-memory copy of the last executed block.
1765
1768
1766 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1769 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1767 processing to %edit, %macro and %save. These commands can now be
1770 processing to %edit, %macro and %save. These commands can now be
1768 invoked on the unprocessed input as it was typed by the user
1771 invoked on the unprocessed input as it was typed by the user
1769 (without any prefilters applied). After requests by the SAGE team
1772 (without any prefilters applied). After requests by the SAGE team
1770 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1773 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1771
1774
1772 2006-02-01 Ville Vainio <vivainio@gmail.com>
1775 2006-02-01 Ville Vainio <vivainio@gmail.com>
1773
1776
1774 * setup.py, eggsetup.py: easy_install ipython==dev works
1777 * setup.py, eggsetup.py: easy_install ipython==dev works
1775 correctly now (on Linux)
1778 correctly now (on Linux)
1776
1779
1777 * ipy_user_conf,ipmaker: user config changes, removed spurious
1780 * ipy_user_conf,ipmaker: user config changes, removed spurious
1778 warnings
1781 warnings
1779
1782
1780 * iplib: if rc.banner is string, use it as is.
1783 * iplib: if rc.banner is string, use it as is.
1781
1784
1782 * Magic: %pycat accepts a string argument and pages it's contents.
1785 * Magic: %pycat accepts a string argument and pages it's contents.
1783
1786
1784
1787
1785 2006-01-30 Ville Vainio <vivainio@gmail.com>
1788 2006-01-30 Ville Vainio <vivainio@gmail.com>
1786
1789
1787 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1790 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1788 Now %store and bookmarks work through PickleShare, meaning that
1791 Now %store and bookmarks work through PickleShare, meaning that
1789 concurrent access is possible and all ipython sessions see the
1792 concurrent access is possible and all ipython sessions see the
1790 same database situation all the time, instead of snapshot of
1793 same database situation all the time, instead of snapshot of
1791 the situation when the session was started. Hence, %bookmark
1794 the situation when the session was started. Hence, %bookmark
1792 results are immediately accessible from othes sessions. The database
1795 results are immediately accessible from othes sessions. The database
1793 is also available for use by user extensions. See:
1796 is also available for use by user extensions. See:
1794 http://www.python.org/pypi/pickleshare
1797 http://www.python.org/pypi/pickleshare
1795
1798
1796 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1799 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1797
1800
1798 * aliases can now be %store'd
1801 * aliases can now be %store'd
1799
1802
1800 * path.py moved to Extensions so that pickleshare does not need
1803 * path.py moved to Extensions so that pickleshare does not need
1801 IPython-specific import. Extensions added to pythonpath right
1804 IPython-specific import. Extensions added to pythonpath right
1802 at __init__.
1805 at __init__.
1803
1806
1804 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1807 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1805 called with _ip.system and the pre-transformed command string.
1808 called with _ip.system and the pre-transformed command string.
1806
1809
1807 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1810 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1808
1811
1809 * IPython/iplib.py (interact): Fix that we were not catching
1812 * IPython/iplib.py (interact): Fix that we were not catching
1810 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1813 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1811 logic here had to change, but it's fixed now.
1814 logic here had to change, but it's fixed now.
1812
1815
1813 2006-01-29 Ville Vainio <vivainio@gmail.com>
1816 2006-01-29 Ville Vainio <vivainio@gmail.com>
1814
1817
1815 * iplib.py: Try to import pyreadline on Windows.
1818 * iplib.py: Try to import pyreadline on Windows.
1816
1819
1817 2006-01-27 Ville Vainio <vivainio@gmail.com>
1820 2006-01-27 Ville Vainio <vivainio@gmail.com>
1818
1821
1819 * iplib.py: Expose ipapi as _ip in builtin namespace.
1822 * iplib.py: Expose ipapi as _ip in builtin namespace.
1820 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1823 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1821 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1824 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1822 syntax now produce _ip.* variant of the commands.
1825 syntax now produce _ip.* variant of the commands.
1823
1826
1824 * "_ip.options().autoedit_syntax = 2" automatically throws
1827 * "_ip.options().autoedit_syntax = 2" automatically throws
1825 user to editor for syntax error correction without prompting.
1828 user to editor for syntax error correction without prompting.
1826
1829
1827 2006-01-27 Ville Vainio <vivainio@gmail.com>
1830 2006-01-27 Ville Vainio <vivainio@gmail.com>
1828
1831
1829 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1832 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1830 'ipython' at argv[0]) executed through command line.
1833 'ipython' at argv[0]) executed through command line.
1831 NOTE: this DEPRECATES calling ipython with multiple scripts
1834 NOTE: this DEPRECATES calling ipython with multiple scripts
1832 ("ipython a.py b.py c.py")
1835 ("ipython a.py b.py c.py")
1833
1836
1834 * iplib.py, hooks.py: Added configurable input prefilter,
1837 * iplib.py, hooks.py: Added configurable input prefilter,
1835 named 'input_prefilter'. See ext_rescapture.py for example
1838 named 'input_prefilter'. See ext_rescapture.py for example
1836 usage.
1839 usage.
1837
1840
1838 * ext_rescapture.py, Magic.py: Better system command output capture
1841 * ext_rescapture.py, Magic.py: Better system command output capture
1839 through 'var = !ls' (deprecates user-visible %sc). Same notation
1842 through 'var = !ls' (deprecates user-visible %sc). Same notation
1840 applies for magics, 'var = %alias' assigns alias list to var.
1843 applies for magics, 'var = %alias' assigns alias list to var.
1841
1844
1842 * ipapi.py: added meta() for accessing extension-usable data store.
1845 * ipapi.py: added meta() for accessing extension-usable data store.
1843
1846
1844 * iplib.py: added InteractiveShell.getapi(). New magics should be
1847 * iplib.py: added InteractiveShell.getapi(). New magics should be
1845 written doing self.getapi() instead of using the shell directly.
1848 written doing self.getapi() instead of using the shell directly.
1846
1849
1847 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1850 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1848 %store foo >> ~/myfoo.txt to store variables to files (in clean
1851 %store foo >> ~/myfoo.txt to store variables to files (in clean
1849 textual form, not a restorable pickle).
1852 textual form, not a restorable pickle).
1850
1853
1851 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1854 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1852
1855
1853 * usage.py, Magic.py: added %quickref
1856 * usage.py, Magic.py: added %quickref
1854
1857
1855 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1858 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1856
1859
1857 * GetoptErrors when invoking magics etc. with wrong args
1860 * GetoptErrors when invoking magics etc. with wrong args
1858 are now more helpful:
1861 are now more helpful:
1859 GetoptError: option -l not recognized (allowed: "qb" )
1862 GetoptError: option -l not recognized (allowed: "qb" )
1860
1863
1861 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1864 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1862
1865
1863 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1866 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1864 computationally intensive blocks don't appear to stall the demo.
1867 computationally intensive blocks don't appear to stall the demo.
1865
1868
1866 2006-01-24 Ville Vainio <vivainio@gmail.com>
1869 2006-01-24 Ville Vainio <vivainio@gmail.com>
1867
1870
1868 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1871 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1869 value to manipulate resulting history entry.
1872 value to manipulate resulting history entry.
1870
1873
1871 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1874 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1872 to instance methods of IPApi class, to make extending an embedded
1875 to instance methods of IPApi class, to make extending an embedded
1873 IPython feasible. See ext_rehashdir.py for example usage.
1876 IPython feasible. See ext_rehashdir.py for example usage.
1874
1877
1875 * Merged 1071-1076 from branches/0.7.1
1878 * Merged 1071-1076 from branches/0.7.1
1876
1879
1877
1880
1878 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1881 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1879
1882
1880 * tools/release (daystamp): Fix build tools to use the new
1883 * tools/release (daystamp): Fix build tools to use the new
1881 eggsetup.py script to build lightweight eggs.
1884 eggsetup.py script to build lightweight eggs.
1882
1885
1883 * Applied changesets 1062 and 1064 before 0.7.1 release.
1886 * Applied changesets 1062 and 1064 before 0.7.1 release.
1884
1887
1885 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1888 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1886 see the raw input history (without conversions like %ls ->
1889 see the raw input history (without conversions like %ls ->
1887 ipmagic("ls")). After a request from W. Stein, SAGE
1890 ipmagic("ls")). After a request from W. Stein, SAGE
1888 (http://modular.ucsd.edu/sage) developer. This information is
1891 (http://modular.ucsd.edu/sage) developer. This information is
1889 stored in the input_hist_raw attribute of the IPython instance, so
1892 stored in the input_hist_raw attribute of the IPython instance, so
1890 developers can access it if needed (it's an InputList instance).
1893 developers can access it if needed (it's an InputList instance).
1891
1894
1892 * Versionstring = 0.7.2.svn
1895 * Versionstring = 0.7.2.svn
1893
1896
1894 * eggsetup.py: A separate script for constructing eggs, creates
1897 * eggsetup.py: A separate script for constructing eggs, creates
1895 proper launch scripts even on Windows (an .exe file in
1898 proper launch scripts even on Windows (an .exe file in
1896 \python24\scripts).
1899 \python24\scripts).
1897
1900
1898 * ipapi.py: launch_new_instance, launch entry point needed for the
1901 * ipapi.py: launch_new_instance, launch entry point needed for the
1899 egg.
1902 egg.
1900
1903
1901 2006-01-23 Ville Vainio <vivainio@gmail.com>
1904 2006-01-23 Ville Vainio <vivainio@gmail.com>
1902
1905
1903 * Added %cpaste magic for pasting python code
1906 * Added %cpaste magic for pasting python code
1904
1907
1905 2006-01-22 Ville Vainio <vivainio@gmail.com>
1908 2006-01-22 Ville Vainio <vivainio@gmail.com>
1906
1909
1907 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1910 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1908
1911
1909 * Versionstring = 0.7.2.svn
1912 * Versionstring = 0.7.2.svn
1910
1913
1911 * eggsetup.py: A separate script for constructing eggs, creates
1914 * eggsetup.py: A separate script for constructing eggs, creates
1912 proper launch scripts even on Windows (an .exe file in
1915 proper launch scripts even on Windows (an .exe file in
1913 \python24\scripts).
1916 \python24\scripts).
1914
1917
1915 * ipapi.py: launch_new_instance, launch entry point needed for the
1918 * ipapi.py: launch_new_instance, launch entry point needed for the
1916 egg.
1919 egg.
1917
1920
1918 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1921 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1919
1922
1920 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1923 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1921 %pfile foo would print the file for foo even if it was a binary.
1924 %pfile foo would print the file for foo even if it was a binary.
1922 Now, extensions '.so' and '.dll' are skipped.
1925 Now, extensions '.so' and '.dll' are skipped.
1923
1926
1924 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1927 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1925 bug, where macros would fail in all threaded modes. I'm not 100%
1928 bug, where macros would fail in all threaded modes. I'm not 100%
1926 sure, so I'm going to put out an rc instead of making a release
1929 sure, so I'm going to put out an rc instead of making a release
1927 today, and wait for feedback for at least a few days.
1930 today, and wait for feedback for at least a few days.
1928
1931
1929 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1932 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1930 it...) the handling of pasting external code with autoindent on.
1933 it...) the handling of pasting external code with autoindent on.
1931 To get out of a multiline input, the rule will appear for most
1934 To get out of a multiline input, the rule will appear for most
1932 users unchanged: two blank lines or change the indent level
1935 users unchanged: two blank lines or change the indent level
1933 proposed by IPython. But there is a twist now: you can
1936 proposed by IPython. But there is a twist now: you can
1934 add/subtract only *one or two spaces*. If you add/subtract three
1937 add/subtract only *one or two spaces*. If you add/subtract three
1935 or more (unless you completely delete the line), IPython will
1938 or more (unless you completely delete the line), IPython will
1936 accept that line, and you'll need to enter a second one of pure
1939 accept that line, and you'll need to enter a second one of pure
1937 whitespace. I know it sounds complicated, but I can't find a
1940 whitespace. I know it sounds complicated, but I can't find a
1938 different solution that covers all the cases, with the right
1941 different solution that covers all the cases, with the right
1939 heuristics. Hopefully in actual use, nobody will really notice
1942 heuristics. Hopefully in actual use, nobody will really notice
1940 all these strange rules and things will 'just work'.
1943 all these strange rules and things will 'just work'.
1941
1944
1942 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1945 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1943
1946
1944 * IPython/iplib.py (interact): catch exceptions which can be
1947 * IPython/iplib.py (interact): catch exceptions which can be
1945 triggered asynchronously by signal handlers. Thanks to an
1948 triggered asynchronously by signal handlers. Thanks to an
1946 automatic crash report, submitted by Colin Kingsley
1949 automatic crash report, submitted by Colin Kingsley
1947 <tercel-AT-gentoo.org>.
1950 <tercel-AT-gentoo.org>.
1948
1951
1949 2006-01-20 Ville Vainio <vivainio@gmail.com>
1952 2006-01-20 Ville Vainio <vivainio@gmail.com>
1950
1953
1951 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1954 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1952 (%rehashdir, very useful, try it out) of how to extend ipython
1955 (%rehashdir, very useful, try it out) of how to extend ipython
1953 with new magics. Also added Extensions dir to pythonpath to make
1956 with new magics. Also added Extensions dir to pythonpath to make
1954 importing extensions easy.
1957 importing extensions easy.
1955
1958
1956 * %store now complains when trying to store interactively declared
1959 * %store now complains when trying to store interactively declared
1957 classes / instances of those classes.
1960 classes / instances of those classes.
1958
1961
1959 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1962 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1960 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1963 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1961 if they exist, and ipy_user_conf.py with some defaults is created for
1964 if they exist, and ipy_user_conf.py with some defaults is created for
1962 the user.
1965 the user.
1963
1966
1964 * Startup rehashing done by the config file, not InterpreterExec.
1967 * Startup rehashing done by the config file, not InterpreterExec.
1965 This means system commands are available even without selecting the
1968 This means system commands are available even without selecting the
1966 pysh profile. It's the sensible default after all.
1969 pysh profile. It's the sensible default after all.
1967
1970
1968 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1971 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1969
1972
1970 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1973 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1971 multiline code with autoindent on working. But I am really not
1974 multiline code with autoindent on working. But I am really not
1972 sure, so this needs more testing. Will commit a debug-enabled
1975 sure, so this needs more testing. Will commit a debug-enabled
1973 version for now, while I test it some more, so that Ville and
1976 version for now, while I test it some more, so that Ville and
1974 others may also catch any problems. Also made
1977 others may also catch any problems. Also made
1975 self.indent_current_str() a method, to ensure that there's no
1978 self.indent_current_str() a method, to ensure that there's no
1976 chance of the indent space count and the corresponding string
1979 chance of the indent space count and the corresponding string
1977 falling out of sync. All code needing the string should just call
1980 falling out of sync. All code needing the string should just call
1978 the method.
1981 the method.
1979
1982
1980 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1983 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1981
1984
1982 * IPython/Magic.py (magic_edit): fix check for when users don't
1985 * IPython/Magic.py (magic_edit): fix check for when users don't
1983 save their output files, the try/except was in the wrong section.
1986 save their output files, the try/except was in the wrong section.
1984
1987
1985 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1988 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1986
1989
1987 * IPython/Magic.py (magic_run): fix __file__ global missing from
1990 * IPython/Magic.py (magic_run): fix __file__ global missing from
1988 script's namespace when executed via %run. After a report by
1991 script's namespace when executed via %run. After a report by
1989 Vivian.
1992 Vivian.
1990
1993
1991 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1994 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1992 when using python 2.4. The parent constructor changed in 2.4, and
1995 when using python 2.4. The parent constructor changed in 2.4, and
1993 we need to track it directly (we can't call it, as it messes up
1996 we need to track it directly (we can't call it, as it messes up
1994 readline and tab-completion inside our pdb would stop working).
1997 readline and tab-completion inside our pdb would stop working).
1995 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1998 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1996
1999
1997 2006-01-16 Ville Vainio <vivainio@gmail.com>
2000 2006-01-16 Ville Vainio <vivainio@gmail.com>
1998
2001
1999 * Ipython/magic.py: Reverted back to old %edit functionality
2002 * Ipython/magic.py: Reverted back to old %edit functionality
2000 that returns file contents on exit.
2003 that returns file contents on exit.
2001
2004
2002 * IPython/path.py: Added Jason Orendorff's "path" module to
2005 * IPython/path.py: Added Jason Orendorff's "path" module to
2003 IPython tree, http://www.jorendorff.com/articles/python/path/.
2006 IPython tree, http://www.jorendorff.com/articles/python/path/.
2004 You can get path objects conveniently through %sc, and !!, e.g.:
2007 You can get path objects conveniently through %sc, and !!, e.g.:
2005 sc files=ls
2008 sc files=ls
2006 for p in files.paths: # or files.p
2009 for p in files.paths: # or files.p
2007 print p,p.mtime
2010 print p,p.mtime
2008
2011
2009 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
2012 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
2010 now work again without considering the exclusion regexp -
2013 now work again without considering the exclusion regexp -
2011 hence, things like ',foo my/path' turn to 'foo("my/path")'
2014 hence, things like ',foo my/path' turn to 'foo("my/path")'
2012 instead of syntax error.
2015 instead of syntax error.
2013
2016
2014
2017
2015 2006-01-14 Ville Vainio <vivainio@gmail.com>
2018 2006-01-14 Ville Vainio <vivainio@gmail.com>
2016
2019
2017 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
2020 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
2018 ipapi decorators for python 2.4 users, options() provides access to rc
2021 ipapi decorators for python 2.4 users, options() provides access to rc
2019 data.
2022 data.
2020
2023
2021 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
2024 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
2022 as path separators (even on Linux ;-). Space character after
2025 as path separators (even on Linux ;-). Space character after
2023 backslash (as yielded by tab completer) is still space;
2026 backslash (as yielded by tab completer) is still space;
2024 "%cd long\ name" works as expected.
2027 "%cd long\ name" works as expected.
2025
2028
2026 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
2029 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
2027 as "chain of command", with priority. API stays the same,
2030 as "chain of command", with priority. API stays the same,
2028 TryNext exception raised by a hook function signals that
2031 TryNext exception raised by a hook function signals that
2029 current hook failed and next hook should try handling it, as
2032 current hook failed and next hook should try handling it, as
2030 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
2033 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
2031 requested configurable display hook, which is now implemented.
2034 requested configurable display hook, which is now implemented.
2032
2035
2033 2006-01-13 Ville Vainio <vivainio@gmail.com>
2036 2006-01-13 Ville Vainio <vivainio@gmail.com>
2034
2037
2035 * IPython/platutils*.py: platform specific utility functions,
2038 * IPython/platutils*.py: platform specific utility functions,
2036 so far only set_term_title is implemented (change terminal
2039 so far only set_term_title is implemented (change terminal
2037 label in windowing systems). %cd now changes the title to
2040 label in windowing systems). %cd now changes the title to
2038 current dir.
2041 current dir.
2039
2042
2040 * IPython/Release.py: Added myself to "authors" list,
2043 * IPython/Release.py: Added myself to "authors" list,
2041 had to create new files.
2044 had to create new files.
2042
2045
2043 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
2046 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
2044 shell escape; not a known bug but had potential to be one in the
2047 shell escape; not a known bug but had potential to be one in the
2045 future.
2048 future.
2046
2049
2047 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
2050 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
2048 extension API for IPython! See the module for usage example. Fix
2051 extension API for IPython! See the module for usage example. Fix
2049 OInspect for docstring-less magic functions.
2052 OInspect for docstring-less magic functions.
2050
2053
2051
2054
2052 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
2055 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
2053
2056
2054 * IPython/iplib.py (raw_input): temporarily deactivate all
2057 * IPython/iplib.py (raw_input): temporarily deactivate all
2055 attempts at allowing pasting of code with autoindent on. It
2058 attempts at allowing pasting of code with autoindent on. It
2056 introduced bugs (reported by Prabhu) and I can't seem to find a
2059 introduced bugs (reported by Prabhu) and I can't seem to find a
2057 robust combination which works in all cases. Will have to revisit
2060 robust combination which works in all cases. Will have to revisit
2058 later.
2061 later.
2059
2062
2060 * IPython/genutils.py: remove isspace() function. We've dropped
2063 * IPython/genutils.py: remove isspace() function. We've dropped
2061 2.2 compatibility, so it's OK to use the string method.
2064 2.2 compatibility, so it's OK to use the string method.
2062
2065
2063 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
2066 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
2064
2067
2065 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
2068 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
2066 matching what NOT to autocall on, to include all python binary
2069 matching what NOT to autocall on, to include all python binary
2067 operators (including things like 'and', 'or', 'is' and 'in').
2070 operators (including things like 'and', 'or', 'is' and 'in').
2068 Prompted by a bug report on 'foo & bar', but I realized we had
2071 Prompted by a bug report on 'foo & bar', but I realized we had
2069 many more potential bug cases with other operators. The regexp is
2072 many more potential bug cases with other operators. The regexp is
2070 self.re_exclude_auto, it's fairly commented.
2073 self.re_exclude_auto, it's fairly commented.
2071
2074
2072 2006-01-12 Ville Vainio <vivainio@gmail.com>
2075 2006-01-12 Ville Vainio <vivainio@gmail.com>
2073
2076
2074 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
2077 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
2075 Prettified and hardened string/backslash quoting with ipsystem(),
2078 Prettified and hardened string/backslash quoting with ipsystem(),
2076 ipalias() and ipmagic(). Now even \ characters are passed to
2079 ipalias() and ipmagic(). Now even \ characters are passed to
2077 %magics, !shell escapes and aliases exactly as they are in the
2080 %magics, !shell escapes and aliases exactly as they are in the
2078 ipython command line. Should improve backslash experience,
2081 ipython command line. Should improve backslash experience,
2079 particularly in Windows (path delimiter for some commands that
2082 particularly in Windows (path delimiter for some commands that
2080 won't understand '/'), but Unix benefits as well (regexps). %cd
2083 won't understand '/'), but Unix benefits as well (regexps). %cd
2081 magic still doesn't support backslash path delimiters, though. Also
2084 magic still doesn't support backslash path delimiters, though. Also
2082 deleted all pretense of supporting multiline command strings in
2085 deleted all pretense of supporting multiline command strings in
2083 !system or %magic commands. Thanks to Jerry McRae for suggestions.
2086 !system or %magic commands. Thanks to Jerry McRae for suggestions.
2084
2087
2085 * doc/build_doc_instructions.txt added. Documentation on how to
2088 * doc/build_doc_instructions.txt added. Documentation on how to
2086 use doc/update_manual.py, added yesterday. Both files contributed
2089 use doc/update_manual.py, added yesterday. Both files contributed
2087 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
2090 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
2088 doc/*.sh for deprecation at a later date.
2091 doc/*.sh for deprecation at a later date.
2089
2092
2090 * /ipython.py Added ipython.py to root directory for
2093 * /ipython.py Added ipython.py to root directory for
2091 zero-installation (tar xzvf ipython.tgz; cd ipython; python
2094 zero-installation (tar xzvf ipython.tgz; cd ipython; python
2092 ipython.py) and development convenience (no need to keep doing
2095 ipython.py) and development convenience (no need to keep doing
2093 "setup.py install" between changes).
2096 "setup.py install" between changes).
2094
2097
2095 * Made ! and !! shell escapes work (again) in multiline expressions:
2098 * Made ! and !! shell escapes work (again) in multiline expressions:
2096 if 1:
2099 if 1:
2097 !ls
2100 !ls
2098 !!ls
2101 !!ls
2099
2102
2100 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
2103 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
2101
2104
2102 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
2105 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
2103 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
2106 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
2104 module in case-insensitive installation. Was causing crashes
2107 module in case-insensitive installation. Was causing crashes
2105 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
2108 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
2106
2109
2107 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
2110 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
2108 <marienz-AT-gentoo.org>, closes
2111 <marienz-AT-gentoo.org>, closes
2109 http://www.scipy.net/roundup/ipython/issue51.
2112 http://www.scipy.net/roundup/ipython/issue51.
2110
2113
2111 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
2114 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
2112
2115
2113 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
2116 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
2114 problem of excessive CPU usage under *nix and keyboard lag under
2117 problem of excessive CPU usage under *nix and keyboard lag under
2115 win32.
2118 win32.
2116
2119
2117 2006-01-10 *** Released version 0.7.0
2120 2006-01-10 *** Released version 0.7.0
2118
2121
2119 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
2122 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
2120
2123
2121 * IPython/Release.py (revision): tag version number to 0.7.0,
2124 * IPython/Release.py (revision): tag version number to 0.7.0,
2122 ready for release.
2125 ready for release.
2123
2126
2124 * IPython/Magic.py (magic_edit): Add print statement to %edit so
2127 * IPython/Magic.py (magic_edit): Add print statement to %edit so
2125 it informs the user of the name of the temp. file used. This can
2128 it informs the user of the name of the temp. file used. This can
2126 help if you decide later to reuse that same file, so you know
2129 help if you decide later to reuse that same file, so you know
2127 where to copy the info from.
2130 where to copy the info from.
2128
2131
2129 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
2132 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
2130
2133
2131 * setup_bdist_egg.py: little script to build an egg. Added
2134 * setup_bdist_egg.py: little script to build an egg. Added
2132 support in the release tools as well.
2135 support in the release tools as well.
2133
2136
2134 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
2137 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
2135
2138
2136 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
2139 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
2137 version selection (new -wxversion command line and ipythonrc
2140 version selection (new -wxversion command line and ipythonrc
2138 parameter). Patch contributed by Arnd Baecker
2141 parameter). Patch contributed by Arnd Baecker
2139 <arnd.baecker-AT-web.de>.
2142 <arnd.baecker-AT-web.de>.
2140
2143
2141 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2144 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2142 embedded instances, for variables defined at the interactive
2145 embedded instances, for variables defined at the interactive
2143 prompt of the embedded ipython. Reported by Arnd.
2146 prompt of the embedded ipython. Reported by Arnd.
2144
2147
2145 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
2148 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
2146 it can be used as a (stateful) toggle, or with a direct parameter.
2149 it can be used as a (stateful) toggle, or with a direct parameter.
2147
2150
2148 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
2151 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
2149 could be triggered in certain cases and cause the traceback
2152 could be triggered in certain cases and cause the traceback
2150 printer not to work.
2153 printer not to work.
2151
2154
2152 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
2155 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
2153
2156
2154 * IPython/iplib.py (_should_recompile): Small fix, closes
2157 * IPython/iplib.py (_should_recompile): Small fix, closes
2155 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
2158 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
2156
2159
2157 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
2160 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
2158
2161
2159 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
2162 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
2160 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
2163 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
2161 Moad for help with tracking it down.
2164 Moad for help with tracking it down.
2162
2165
2163 * IPython/iplib.py (handle_auto): fix autocall handling for
2166 * IPython/iplib.py (handle_auto): fix autocall handling for
2164 objects which support BOTH __getitem__ and __call__ (so that f [x]
2167 objects which support BOTH __getitem__ and __call__ (so that f [x]
2165 is left alone, instead of becoming f([x]) automatically).
2168 is left alone, instead of becoming f([x]) automatically).
2166
2169
2167 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
2170 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
2168 Ville's patch.
2171 Ville's patch.
2169
2172
2170 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
2173 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
2171
2174
2172 * IPython/iplib.py (handle_auto): changed autocall semantics to
2175 * IPython/iplib.py (handle_auto): changed autocall semantics to
2173 include 'smart' mode, where the autocall transformation is NOT
2176 include 'smart' mode, where the autocall transformation is NOT
2174 applied if there are no arguments on the line. This allows you to
2177 applied if there are no arguments on the line. This allows you to
2175 just type 'foo' if foo is a callable to see its internal form,
2178 just type 'foo' if foo is a callable to see its internal form,
2176 instead of having it called with no arguments (typically a
2179 instead of having it called with no arguments (typically a
2177 mistake). The old 'full' autocall still exists: for that, you
2180 mistake). The old 'full' autocall still exists: for that, you
2178 need to set the 'autocall' parameter to 2 in your ipythonrc file.
2181 need to set the 'autocall' parameter to 2 in your ipythonrc file.
2179
2182
2180 * IPython/completer.py (Completer.attr_matches): add
2183 * IPython/completer.py (Completer.attr_matches): add
2181 tab-completion support for Enthoughts' traits. After a report by
2184 tab-completion support for Enthoughts' traits. After a report by
2182 Arnd and a patch by Prabhu.
2185 Arnd and a patch by Prabhu.
2183
2186
2184 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
2187 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
2185
2188
2186 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
2189 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
2187 Schmolck's patch to fix inspect.getinnerframes().
2190 Schmolck's patch to fix inspect.getinnerframes().
2188
2191
2189 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
2192 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
2190 for embedded instances, regarding handling of namespaces and items
2193 for embedded instances, regarding handling of namespaces and items
2191 added to the __builtin__ one. Multiple embedded instances and
2194 added to the __builtin__ one. Multiple embedded instances and
2192 recursive embeddings should work better now (though I'm not sure
2195 recursive embeddings should work better now (though I'm not sure
2193 I've got all the corner cases fixed, that code is a bit of a brain
2196 I've got all the corner cases fixed, that code is a bit of a brain
2194 twister).
2197 twister).
2195
2198
2196 * IPython/Magic.py (magic_edit): added support to edit in-memory
2199 * IPython/Magic.py (magic_edit): added support to edit in-memory
2197 macros (automatically creates the necessary temp files). %edit
2200 macros (automatically creates the necessary temp files). %edit
2198 also doesn't return the file contents anymore, it's just noise.
2201 also doesn't return the file contents anymore, it's just noise.
2199
2202
2200 * IPython/completer.py (Completer.attr_matches): revert change to
2203 * IPython/completer.py (Completer.attr_matches): revert change to
2201 complete only on attributes listed in __all__. I realized it
2204 complete only on attributes listed in __all__. I realized it
2202 cripples the tab-completion system as a tool for exploring the
2205 cripples the tab-completion system as a tool for exploring the
2203 internals of unknown libraries (it renders any non-__all__
2206 internals of unknown libraries (it renders any non-__all__
2204 attribute off-limits). I got bit by this when trying to see
2207 attribute off-limits). I got bit by this when trying to see
2205 something inside the dis module.
2208 something inside the dis module.
2206
2209
2207 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
2210 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
2208
2211
2209 * IPython/iplib.py (InteractiveShell.__init__): add .meta
2212 * IPython/iplib.py (InteractiveShell.__init__): add .meta
2210 namespace for users and extension writers to hold data in. This
2213 namespace for users and extension writers to hold data in. This
2211 follows the discussion in
2214 follows the discussion in
2212 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
2215 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
2213
2216
2214 * IPython/completer.py (IPCompleter.complete): small patch to help
2217 * IPython/completer.py (IPCompleter.complete): small patch to help
2215 tab-completion under Emacs, after a suggestion by John Barnard
2218 tab-completion under Emacs, after a suggestion by John Barnard
2216 <barnarj-AT-ccf.org>.
2219 <barnarj-AT-ccf.org>.
2217
2220
2218 * IPython/Magic.py (Magic.extract_input_slices): added support for
2221 * IPython/Magic.py (Magic.extract_input_slices): added support for
2219 the slice notation in magics to use N-M to represent numbers N...M
2222 the slice notation in magics to use N-M to represent numbers N...M
2220 (closed endpoints). This is used by %macro and %save.
2223 (closed endpoints). This is used by %macro and %save.
2221
2224
2222 * IPython/completer.py (Completer.attr_matches): for modules which
2225 * IPython/completer.py (Completer.attr_matches): for modules which
2223 define __all__, complete only on those. After a patch by Jeffrey
2226 define __all__, complete only on those. After a patch by Jeffrey
2224 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
2227 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
2225 speed up this routine.
2228 speed up this routine.
2226
2229
2227 * IPython/Logger.py (Logger.log): fix a history handling bug. I
2230 * IPython/Logger.py (Logger.log): fix a history handling bug. I
2228 don't know if this is the end of it, but the behavior now is
2231 don't know if this is the end of it, but the behavior now is
2229 certainly much more correct. Note that coupled with macros,
2232 certainly much more correct. Note that coupled with macros,
2230 slightly surprising (at first) behavior may occur: a macro will in
2233 slightly surprising (at first) behavior may occur: a macro will in
2231 general expand to multiple lines of input, so upon exiting, the
2234 general expand to multiple lines of input, so upon exiting, the
2232 in/out counters will both be bumped by the corresponding amount
2235 in/out counters will both be bumped by the corresponding amount
2233 (as if the macro's contents had been typed interactively). Typing
2236 (as if the macro's contents had been typed interactively). Typing
2234 %hist will reveal the intermediate (silently processed) lines.
2237 %hist will reveal the intermediate (silently processed) lines.
2235
2238
2236 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
2239 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
2237 pickle to fail (%run was overwriting __main__ and not restoring
2240 pickle to fail (%run was overwriting __main__ and not restoring
2238 it, but pickle relies on __main__ to operate).
2241 it, but pickle relies on __main__ to operate).
2239
2242
2240 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
2243 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
2241 using properties, but forgot to make the main InteractiveShell
2244 using properties, but forgot to make the main InteractiveShell
2242 class a new-style class. Properties fail silently, and
2245 class a new-style class. Properties fail silently, and
2243 mysteriously, with old-style class (getters work, but
2246 mysteriously, with old-style class (getters work, but
2244 setters don't do anything).
2247 setters don't do anything).
2245
2248
2246 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
2249 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
2247
2250
2248 * IPython/Magic.py (magic_history): fix history reporting bug (I
2251 * IPython/Magic.py (magic_history): fix history reporting bug (I
2249 know some nasties are still there, I just can't seem to find a
2252 know some nasties are still there, I just can't seem to find a
2250 reproducible test case to track them down; the input history is
2253 reproducible test case to track them down; the input history is
2251 falling out of sync...)
2254 falling out of sync...)
2252
2255
2253 * IPython/iplib.py (handle_shell_escape): fix bug where both
2256 * IPython/iplib.py (handle_shell_escape): fix bug where both
2254 aliases and system accesses where broken for indented code (such
2257 aliases and system accesses where broken for indented code (such
2255 as loops).
2258 as loops).
2256
2259
2257 * IPython/genutils.py (shell): fix small but critical bug for
2260 * IPython/genutils.py (shell): fix small but critical bug for
2258 win32 system access.
2261 win32 system access.
2259
2262
2260 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2263 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2261
2264
2262 * IPython/iplib.py (showtraceback): remove use of the
2265 * IPython/iplib.py (showtraceback): remove use of the
2263 sys.last_{type/value/traceback} structures, which are non
2266 sys.last_{type/value/traceback} structures, which are non
2264 thread-safe.
2267 thread-safe.
2265 (_prefilter): change control flow to ensure that we NEVER
2268 (_prefilter): change control flow to ensure that we NEVER
2266 introspect objects when autocall is off. This will guarantee that
2269 introspect objects when autocall is off. This will guarantee that
2267 having an input line of the form 'x.y', where access to attribute
2270 having an input line of the form 'x.y', where access to attribute
2268 'y' has side effects, doesn't trigger the side effect TWICE. It
2271 'y' has side effects, doesn't trigger the side effect TWICE. It
2269 is important to note that, with autocall on, these side effects
2272 is important to note that, with autocall on, these side effects
2270 can still happen.
2273 can still happen.
2271 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2274 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2272 trio. IPython offers these three kinds of special calls which are
2275 trio. IPython offers these three kinds of special calls which are
2273 not python code, and it's a good thing to have their call method
2276 not python code, and it's a good thing to have their call method
2274 be accessible as pure python functions (not just special syntax at
2277 be accessible as pure python functions (not just special syntax at
2275 the command line). It gives us a better internal implementation
2278 the command line). It gives us a better internal implementation
2276 structure, as well as exposing these for user scripting more
2279 structure, as well as exposing these for user scripting more
2277 cleanly.
2280 cleanly.
2278
2281
2279 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2282 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2280 file. Now that they'll be more likely to be used with the
2283 file. Now that they'll be more likely to be used with the
2281 persistance system (%store), I want to make sure their module path
2284 persistance system (%store), I want to make sure their module path
2282 doesn't change in the future, so that we don't break things for
2285 doesn't change in the future, so that we don't break things for
2283 users' persisted data.
2286 users' persisted data.
2284
2287
2285 * IPython/iplib.py (autoindent_update): move indentation
2288 * IPython/iplib.py (autoindent_update): move indentation
2286 management into the _text_ processing loop, not the keyboard
2289 management into the _text_ processing loop, not the keyboard
2287 interactive one. This is necessary to correctly process non-typed
2290 interactive one. This is necessary to correctly process non-typed
2288 multiline input (such as macros).
2291 multiline input (such as macros).
2289
2292
2290 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2293 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2291 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2294 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2292 which was producing problems in the resulting manual.
2295 which was producing problems in the resulting manual.
2293 (magic_whos): improve reporting of instances (show their class,
2296 (magic_whos): improve reporting of instances (show their class,
2294 instead of simply printing 'instance' which isn't terribly
2297 instead of simply printing 'instance' which isn't terribly
2295 informative).
2298 informative).
2296
2299
2297 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2300 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2298 (minor mods) to support network shares under win32.
2301 (minor mods) to support network shares under win32.
2299
2302
2300 * IPython/winconsole.py (get_console_size): add new winconsole
2303 * IPython/winconsole.py (get_console_size): add new winconsole
2301 module and fixes to page_dumb() to improve its behavior under
2304 module and fixes to page_dumb() to improve its behavior under
2302 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2305 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2303
2306
2304 * IPython/Magic.py (Macro): simplified Macro class to just
2307 * IPython/Magic.py (Macro): simplified Macro class to just
2305 subclass list. We've had only 2.2 compatibility for a very long
2308 subclass list. We've had only 2.2 compatibility for a very long
2306 time, yet I was still avoiding subclassing the builtin types. No
2309 time, yet I was still avoiding subclassing the builtin types. No
2307 more (I'm also starting to use properties, though I won't shift to
2310 more (I'm also starting to use properties, though I won't shift to
2308 2.3-specific features quite yet).
2311 2.3-specific features quite yet).
2309 (magic_store): added Ville's patch for lightweight variable
2312 (magic_store): added Ville's patch for lightweight variable
2310 persistence, after a request on the user list by Matt Wilkie
2313 persistence, after a request on the user list by Matt Wilkie
2311 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2314 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2312 details.
2315 details.
2313
2316
2314 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2317 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2315 changed the default logfile name from 'ipython.log' to
2318 changed the default logfile name from 'ipython.log' to
2316 'ipython_log.py'. These logs are real python files, and now that
2319 'ipython_log.py'. These logs are real python files, and now that
2317 we have much better multiline support, people are more likely to
2320 we have much better multiline support, people are more likely to
2318 want to use them as such. Might as well name them correctly.
2321 want to use them as such. Might as well name them correctly.
2319
2322
2320 * IPython/Magic.py: substantial cleanup. While we can't stop
2323 * IPython/Magic.py: substantial cleanup. While we can't stop
2321 using magics as mixins, due to the existing customizations 'out
2324 using magics as mixins, due to the existing customizations 'out
2322 there' which rely on the mixin naming conventions, at least I
2325 there' which rely on the mixin naming conventions, at least I
2323 cleaned out all cross-class name usage. So once we are OK with
2326 cleaned out all cross-class name usage. So once we are OK with
2324 breaking compatibility, the two systems can be separated.
2327 breaking compatibility, the two systems can be separated.
2325
2328
2326 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2329 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2327 anymore, and the class is a fair bit less hideous as well. New
2330 anymore, and the class is a fair bit less hideous as well. New
2328 features were also introduced: timestamping of input, and logging
2331 features were also introduced: timestamping of input, and logging
2329 of output results. These are user-visible with the -t and -o
2332 of output results. These are user-visible with the -t and -o
2330 options to %logstart. Closes
2333 options to %logstart. Closes
2331 http://www.scipy.net/roundup/ipython/issue11 and a request by
2334 http://www.scipy.net/roundup/ipython/issue11 and a request by
2332 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2335 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2333
2336
2334 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2337 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2335
2338
2336 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2339 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2337 better handle backslashes in paths. See the thread 'More Windows
2340 better handle backslashes in paths. See the thread 'More Windows
2338 questions part 2 - \/ characters revisited' on the iypthon user
2341 questions part 2 - \/ characters revisited' on the iypthon user
2339 list:
2342 list:
2340 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2343 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2341
2344
2342 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2345 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2343
2346
2344 (InteractiveShell.__init__): change threaded shells to not use the
2347 (InteractiveShell.__init__): change threaded shells to not use the
2345 ipython crash handler. This was causing more problems than not,
2348 ipython crash handler. This was causing more problems than not,
2346 as exceptions in the main thread (GUI code, typically) would
2349 as exceptions in the main thread (GUI code, typically) would
2347 always show up as a 'crash', when they really weren't.
2350 always show up as a 'crash', when they really weren't.
2348
2351
2349 The colors and exception mode commands (%colors/%xmode) have been
2352 The colors and exception mode commands (%colors/%xmode) have been
2350 synchronized to also take this into account, so users can get
2353 synchronized to also take this into account, so users can get
2351 verbose exceptions for their threaded code as well. I also added
2354 verbose exceptions for their threaded code as well. I also added
2352 support for activating pdb inside this exception handler as well,
2355 support for activating pdb inside this exception handler as well,
2353 so now GUI authors can use IPython's enhanced pdb at runtime.
2356 so now GUI authors can use IPython's enhanced pdb at runtime.
2354
2357
2355 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2358 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2356 true by default, and add it to the shipped ipythonrc file. Since
2359 true by default, and add it to the shipped ipythonrc file. Since
2357 this asks the user before proceeding, I think it's OK to make it
2360 this asks the user before proceeding, I think it's OK to make it
2358 true by default.
2361 true by default.
2359
2362
2360 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2363 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2361 of the previous special-casing of input in the eval loop. I think
2364 of the previous special-casing of input in the eval loop. I think
2362 this is cleaner, as they really are commands and shouldn't have
2365 this is cleaner, as they really are commands and shouldn't have
2363 a special role in the middle of the core code.
2366 a special role in the middle of the core code.
2364
2367
2365 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2368 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2366
2369
2367 * IPython/iplib.py (edit_syntax_error): added support for
2370 * IPython/iplib.py (edit_syntax_error): added support for
2368 automatically reopening the editor if the file had a syntax error
2371 automatically reopening the editor if the file had a syntax error
2369 in it. Thanks to scottt who provided the patch at:
2372 in it. Thanks to scottt who provided the patch at:
2370 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2373 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2371 version committed).
2374 version committed).
2372
2375
2373 * IPython/iplib.py (handle_normal): add suport for multi-line
2376 * IPython/iplib.py (handle_normal): add suport for multi-line
2374 input with emtpy lines. This fixes
2377 input with emtpy lines. This fixes
2375 http://www.scipy.net/roundup/ipython/issue43 and a similar
2378 http://www.scipy.net/roundup/ipython/issue43 and a similar
2376 discussion on the user list.
2379 discussion on the user list.
2377
2380
2378 WARNING: a behavior change is necessarily introduced to support
2381 WARNING: a behavior change is necessarily introduced to support
2379 blank lines: now a single blank line with whitespace does NOT
2382 blank lines: now a single blank line with whitespace does NOT
2380 break the input loop, which means that when autoindent is on, by
2383 break the input loop, which means that when autoindent is on, by
2381 default hitting return on the next (indented) line does NOT exit.
2384 default hitting return on the next (indented) line does NOT exit.
2382
2385
2383 Instead, to exit a multiline input you can either have:
2386 Instead, to exit a multiline input you can either have:
2384
2387
2385 - TWO whitespace lines (just hit return again), or
2388 - TWO whitespace lines (just hit return again), or
2386 - a single whitespace line of a different length than provided
2389 - a single whitespace line of a different length than provided
2387 by the autoindent (add or remove a space).
2390 by the autoindent (add or remove a space).
2388
2391
2389 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2392 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2390 module to better organize all readline-related functionality.
2393 module to better organize all readline-related functionality.
2391 I've deleted FlexCompleter and put all completion clases here.
2394 I've deleted FlexCompleter and put all completion clases here.
2392
2395
2393 * IPython/iplib.py (raw_input): improve indentation management.
2396 * IPython/iplib.py (raw_input): improve indentation management.
2394 It is now possible to paste indented code with autoindent on, and
2397 It is now possible to paste indented code with autoindent on, and
2395 the code is interpreted correctly (though it still looks bad on
2398 the code is interpreted correctly (though it still looks bad on
2396 screen, due to the line-oriented nature of ipython).
2399 screen, due to the line-oriented nature of ipython).
2397 (MagicCompleter.complete): change behavior so that a TAB key on an
2400 (MagicCompleter.complete): change behavior so that a TAB key on an
2398 otherwise empty line actually inserts a tab, instead of completing
2401 otherwise empty line actually inserts a tab, instead of completing
2399 on the entire global namespace. This makes it easier to use the
2402 on the entire global namespace. This makes it easier to use the
2400 TAB key for indentation. After a request by Hans Meine
2403 TAB key for indentation. After a request by Hans Meine
2401 <hans_meine-AT-gmx.net>
2404 <hans_meine-AT-gmx.net>
2402 (_prefilter): add support so that typing plain 'exit' or 'quit'
2405 (_prefilter): add support so that typing plain 'exit' or 'quit'
2403 does a sensible thing. Originally I tried to deviate as little as
2406 does a sensible thing. Originally I tried to deviate as little as
2404 possible from the default python behavior, but even that one may
2407 possible from the default python behavior, but even that one may
2405 change in this direction (thread on python-dev to that effect).
2408 change in this direction (thread on python-dev to that effect).
2406 Regardless, ipython should do the right thing even if CPython's
2409 Regardless, ipython should do the right thing even if CPython's
2407 '>>>' prompt doesn't.
2410 '>>>' prompt doesn't.
2408 (InteractiveShell): removed subclassing code.InteractiveConsole
2411 (InteractiveShell): removed subclassing code.InteractiveConsole
2409 class. By now we'd overridden just about all of its methods: I've
2412 class. By now we'd overridden just about all of its methods: I've
2410 copied the remaining two over, and now ipython is a standalone
2413 copied the remaining two over, and now ipython is a standalone
2411 class. This will provide a clearer picture for the chainsaw
2414 class. This will provide a clearer picture for the chainsaw
2412 branch refactoring.
2415 branch refactoring.
2413
2416
2414 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2417 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2415
2418
2416 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2419 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2417 failures for objects which break when dir() is called on them.
2420 failures for objects which break when dir() is called on them.
2418
2421
2419 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2422 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2420 distinct local and global namespaces in the completer API. This
2423 distinct local and global namespaces in the completer API. This
2421 change allows us to properly handle completion with distinct
2424 change allows us to properly handle completion with distinct
2422 scopes, including in embedded instances (this had never really
2425 scopes, including in embedded instances (this had never really
2423 worked correctly).
2426 worked correctly).
2424
2427
2425 Note: this introduces a change in the constructor for
2428 Note: this introduces a change in the constructor for
2426 MagicCompleter, as a new global_namespace parameter is now the
2429 MagicCompleter, as a new global_namespace parameter is now the
2427 second argument (the others were bumped one position).
2430 second argument (the others were bumped one position).
2428
2431
2429 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2432 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2430
2433
2431 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2434 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2432 embedded instances (which can be done now thanks to Vivian's
2435 embedded instances (which can be done now thanks to Vivian's
2433 frame-handling fixes for pdb).
2436 frame-handling fixes for pdb).
2434 (InteractiveShell.__init__): Fix namespace handling problem in
2437 (InteractiveShell.__init__): Fix namespace handling problem in
2435 embedded instances. We were overwriting __main__ unconditionally,
2438 embedded instances. We were overwriting __main__ unconditionally,
2436 and this should only be done for 'full' (non-embedded) IPython;
2439 and this should only be done for 'full' (non-embedded) IPython;
2437 embedded instances must respect the caller's __main__. Thanks to
2440 embedded instances must respect the caller's __main__. Thanks to
2438 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2441 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2439
2442
2440 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2443 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2441
2444
2442 * setup.py: added download_url to setup(). This registers the
2445 * setup.py: added download_url to setup(). This registers the
2443 download address at PyPI, which is not only useful to humans
2446 download address at PyPI, which is not only useful to humans
2444 browsing the site, but is also picked up by setuptools (the Eggs
2447 browsing the site, but is also picked up by setuptools (the Eggs
2445 machinery). Thanks to Ville and R. Kern for the info/discussion
2448 machinery). Thanks to Ville and R. Kern for the info/discussion
2446 on this.
2449 on this.
2447
2450
2448 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2451 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2449
2452
2450 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2453 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2451 This brings a lot of nice functionality to the pdb mode, which now
2454 This brings a lot of nice functionality to the pdb mode, which now
2452 has tab-completion, syntax highlighting, and better stack handling
2455 has tab-completion, syntax highlighting, and better stack handling
2453 than before. Many thanks to Vivian De Smedt
2456 than before. Many thanks to Vivian De Smedt
2454 <vivian-AT-vdesmedt.com> for the original patches.
2457 <vivian-AT-vdesmedt.com> for the original patches.
2455
2458
2456 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2459 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2457
2460
2458 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2461 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2459 sequence to consistently accept the banner argument. The
2462 sequence to consistently accept the banner argument. The
2460 inconsistency was tripping SAGE, thanks to Gary Zablackis
2463 inconsistency was tripping SAGE, thanks to Gary Zablackis
2461 <gzabl-AT-yahoo.com> for the report.
2464 <gzabl-AT-yahoo.com> for the report.
2462
2465
2463 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2466 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2464
2467
2465 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2468 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2466 Fix bug where a naked 'alias' call in the ipythonrc file would
2469 Fix bug where a naked 'alias' call in the ipythonrc file would
2467 cause a crash. Bug reported by Jorgen Stenarson.
2470 cause a crash. Bug reported by Jorgen Stenarson.
2468
2471
2469 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2472 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2470
2473
2471 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2474 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2472 startup time.
2475 startup time.
2473
2476
2474 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2477 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2475 instances had introduced a bug with globals in normal code. Now
2478 instances had introduced a bug with globals in normal code. Now
2476 it's working in all cases.
2479 it's working in all cases.
2477
2480
2478 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2481 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2479 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2482 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2480 has been introduced to set the default case sensitivity of the
2483 has been introduced to set the default case sensitivity of the
2481 searches. Users can still select either mode at runtime on a
2484 searches. Users can still select either mode at runtime on a
2482 per-search basis.
2485 per-search basis.
2483
2486
2484 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2487 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2485
2488
2486 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2489 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2487 attributes in wildcard searches for subclasses. Modified version
2490 attributes in wildcard searches for subclasses. Modified version
2488 of a patch by Jorgen.
2491 of a patch by Jorgen.
2489
2492
2490 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2493 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2491
2494
2492 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2495 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2493 embedded instances. I added a user_global_ns attribute to the
2496 embedded instances. I added a user_global_ns attribute to the
2494 InteractiveShell class to handle this.
2497 InteractiveShell class to handle this.
2495
2498
2496 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2499 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2497
2500
2498 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2501 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2499 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2502 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2500 (reported under win32, but may happen also in other platforms).
2503 (reported under win32, but may happen also in other platforms).
2501 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2504 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2502
2505
2503 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2506 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2504
2507
2505 * IPython/Magic.py (magic_psearch): new support for wildcard
2508 * IPython/Magic.py (magic_psearch): new support for wildcard
2506 patterns. Now, typing ?a*b will list all names which begin with a
2509 patterns. Now, typing ?a*b will list all names which begin with a
2507 and end in b, for example. The %psearch magic has full
2510 and end in b, for example. The %psearch magic has full
2508 docstrings. Many thanks to JΓΆrgen Stenarson
2511 docstrings. Many thanks to JΓΆrgen Stenarson
2509 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2512 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2510 implementing this functionality.
2513 implementing this functionality.
2511
2514
2512 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2515 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2513
2516
2514 * Manual: fixed long-standing annoyance of double-dashes (as in
2517 * Manual: fixed long-standing annoyance of double-dashes (as in
2515 --prefix=~, for example) being stripped in the HTML version. This
2518 --prefix=~, for example) being stripped in the HTML version. This
2516 is a latex2html bug, but a workaround was provided. Many thanks
2519 is a latex2html bug, but a workaround was provided. Many thanks
2517 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2520 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2518 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2521 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2519 rolling. This seemingly small issue had tripped a number of users
2522 rolling. This seemingly small issue had tripped a number of users
2520 when first installing, so I'm glad to see it gone.
2523 when first installing, so I'm glad to see it gone.
2521
2524
2522 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2525 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2523
2526
2524 * IPython/Extensions/numeric_formats.py: fix missing import,
2527 * IPython/Extensions/numeric_formats.py: fix missing import,
2525 reported by Stephen Walton.
2528 reported by Stephen Walton.
2526
2529
2527 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2530 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2528
2531
2529 * IPython/demo.py: finish demo module, fully documented now.
2532 * IPython/demo.py: finish demo module, fully documented now.
2530
2533
2531 * IPython/genutils.py (file_read): simple little utility to read a
2534 * IPython/genutils.py (file_read): simple little utility to read a
2532 file and ensure it's closed afterwards.
2535 file and ensure it's closed afterwards.
2533
2536
2534 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2537 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2535
2538
2536 * IPython/demo.py (Demo.__init__): added support for individually
2539 * IPython/demo.py (Demo.__init__): added support for individually
2537 tagging blocks for automatic execution.
2540 tagging blocks for automatic execution.
2538
2541
2539 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2542 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2540 syntax-highlighted python sources, requested by John.
2543 syntax-highlighted python sources, requested by John.
2541
2544
2542 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2545 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2543
2546
2544 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2547 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2545 finishing.
2548 finishing.
2546
2549
2547 * IPython/genutils.py (shlex_split): moved from Magic to here,
2550 * IPython/genutils.py (shlex_split): moved from Magic to here,
2548 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2551 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2549
2552
2550 * IPython/demo.py (Demo.__init__): added support for silent
2553 * IPython/demo.py (Demo.__init__): added support for silent
2551 blocks, improved marks as regexps, docstrings written.
2554 blocks, improved marks as regexps, docstrings written.
2552 (Demo.__init__): better docstring, added support for sys.argv.
2555 (Demo.__init__): better docstring, added support for sys.argv.
2553
2556
2554 * IPython/genutils.py (marquee): little utility used by the demo
2557 * IPython/genutils.py (marquee): little utility used by the demo
2555 code, handy in general.
2558 code, handy in general.
2556
2559
2557 * IPython/demo.py (Demo.__init__): new class for interactive
2560 * IPython/demo.py (Demo.__init__): new class for interactive
2558 demos. Not documented yet, I just wrote it in a hurry for
2561 demos. Not documented yet, I just wrote it in a hurry for
2559 scipy'05. Will docstring later.
2562 scipy'05. Will docstring later.
2560
2563
2561 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2564 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2562
2565
2563 * IPython/Shell.py (sigint_handler): Drastic simplification which
2566 * IPython/Shell.py (sigint_handler): Drastic simplification which
2564 also seems to make Ctrl-C work correctly across threads! This is
2567 also seems to make Ctrl-C work correctly across threads! This is
2565 so simple, that I can't beleive I'd missed it before. Needs more
2568 so simple, that I can't beleive I'd missed it before. Needs more
2566 testing, though.
2569 testing, though.
2567 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2570 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2568 like this before...
2571 like this before...
2569
2572
2570 * IPython/genutils.py (get_home_dir): add protection against
2573 * IPython/genutils.py (get_home_dir): add protection against
2571 non-dirs in win32 registry.
2574 non-dirs in win32 registry.
2572
2575
2573 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2576 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2574 bug where dict was mutated while iterating (pysh crash).
2577 bug where dict was mutated while iterating (pysh crash).
2575
2578
2576 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2579 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2577
2580
2578 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2581 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2579 spurious newlines added by this routine. After a report by
2582 spurious newlines added by this routine. After a report by
2580 F. Mantegazza.
2583 F. Mantegazza.
2581
2584
2582 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2585 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2583
2586
2584 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2587 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2585 calls. These were a leftover from the GTK 1.x days, and can cause
2588 calls. These were a leftover from the GTK 1.x days, and can cause
2586 problems in certain cases (after a report by John Hunter).
2589 problems in certain cases (after a report by John Hunter).
2587
2590
2588 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2591 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2589 os.getcwd() fails at init time. Thanks to patch from David Remahl
2592 os.getcwd() fails at init time. Thanks to patch from David Remahl
2590 <chmod007-AT-mac.com>.
2593 <chmod007-AT-mac.com>.
2591 (InteractiveShell.__init__): prevent certain special magics from
2594 (InteractiveShell.__init__): prevent certain special magics from
2592 being shadowed by aliases. Closes
2595 being shadowed by aliases. Closes
2593 http://www.scipy.net/roundup/ipython/issue41.
2596 http://www.scipy.net/roundup/ipython/issue41.
2594
2597
2595 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2598 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2596
2599
2597 * IPython/iplib.py (InteractiveShell.complete): Added new
2600 * IPython/iplib.py (InteractiveShell.complete): Added new
2598 top-level completion method to expose the completion mechanism
2601 top-level completion method to expose the completion mechanism
2599 beyond readline-based environments.
2602 beyond readline-based environments.
2600
2603
2601 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2604 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2602
2605
2603 * tools/ipsvnc (svnversion): fix svnversion capture.
2606 * tools/ipsvnc (svnversion): fix svnversion capture.
2604
2607
2605 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2608 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2606 attribute to self, which was missing. Before, it was set by a
2609 attribute to self, which was missing. Before, it was set by a
2607 routine which in certain cases wasn't being called, so the
2610 routine which in certain cases wasn't being called, so the
2608 instance could end up missing the attribute. This caused a crash.
2611 instance could end up missing the attribute. This caused a crash.
2609 Closes http://www.scipy.net/roundup/ipython/issue40.
2612 Closes http://www.scipy.net/roundup/ipython/issue40.
2610
2613
2611 2005-08-16 Fernando Perez <fperez@colorado.edu>
2614 2005-08-16 Fernando Perez <fperez@colorado.edu>
2612
2615
2613 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2616 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2614 contains non-string attribute. Closes
2617 contains non-string attribute. Closes
2615 http://www.scipy.net/roundup/ipython/issue38.
2618 http://www.scipy.net/roundup/ipython/issue38.
2616
2619
2617 2005-08-14 Fernando Perez <fperez@colorado.edu>
2620 2005-08-14 Fernando Perez <fperez@colorado.edu>
2618
2621
2619 * tools/ipsvnc: Minor improvements, to add changeset info.
2622 * tools/ipsvnc: Minor improvements, to add changeset info.
2620
2623
2621 2005-08-12 Fernando Perez <fperez@colorado.edu>
2624 2005-08-12 Fernando Perez <fperez@colorado.edu>
2622
2625
2623 * IPython/iplib.py (runsource): remove self.code_to_run_src
2626 * IPython/iplib.py (runsource): remove self.code_to_run_src
2624 attribute. I realized this is nothing more than
2627 attribute. I realized this is nothing more than
2625 '\n'.join(self.buffer), and having the same data in two different
2628 '\n'.join(self.buffer), and having the same data in two different
2626 places is just asking for synchronization bugs. This may impact
2629 places is just asking for synchronization bugs. This may impact
2627 people who have custom exception handlers, so I need to warn
2630 people who have custom exception handlers, so I need to warn
2628 ipython-dev about it (F. Mantegazza may use them).
2631 ipython-dev about it (F. Mantegazza may use them).
2629
2632
2630 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2633 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2631
2634
2632 * IPython/genutils.py: fix 2.2 compatibility (generators)
2635 * IPython/genutils.py: fix 2.2 compatibility (generators)
2633
2636
2634 2005-07-18 Fernando Perez <fperez@colorado.edu>
2637 2005-07-18 Fernando Perez <fperez@colorado.edu>
2635
2638
2636 * IPython/genutils.py (get_home_dir): fix to help users with
2639 * IPython/genutils.py (get_home_dir): fix to help users with
2637 invalid $HOME under win32.
2640 invalid $HOME under win32.
2638
2641
2639 2005-07-17 Fernando Perez <fperez@colorado.edu>
2642 2005-07-17 Fernando Perez <fperez@colorado.edu>
2640
2643
2641 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2644 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2642 some old hacks and clean up a bit other routines; code should be
2645 some old hacks and clean up a bit other routines; code should be
2643 simpler and a bit faster.
2646 simpler and a bit faster.
2644
2647
2645 * IPython/iplib.py (interact): removed some last-resort attempts
2648 * IPython/iplib.py (interact): removed some last-resort attempts
2646 to survive broken stdout/stderr. That code was only making it
2649 to survive broken stdout/stderr. That code was only making it
2647 harder to abstract out the i/o (necessary for gui integration),
2650 harder to abstract out the i/o (necessary for gui integration),
2648 and the crashes it could prevent were extremely rare in practice
2651 and the crashes it could prevent were extremely rare in practice
2649 (besides being fully user-induced in a pretty violent manner).
2652 (besides being fully user-induced in a pretty violent manner).
2650
2653
2651 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2654 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2652 Nothing major yet, but the code is simpler to read; this should
2655 Nothing major yet, but the code is simpler to read; this should
2653 make it easier to do more serious modifications in the future.
2656 make it easier to do more serious modifications in the future.
2654
2657
2655 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2658 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2656 which broke in .15 (thanks to a report by Ville).
2659 which broke in .15 (thanks to a report by Ville).
2657
2660
2658 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2661 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2659 be quite correct, I know next to nothing about unicode). This
2662 be quite correct, I know next to nothing about unicode). This
2660 will allow unicode strings to be used in prompts, amongst other
2663 will allow unicode strings to be used in prompts, amongst other
2661 cases. It also will prevent ipython from crashing when unicode
2664 cases. It also will prevent ipython from crashing when unicode
2662 shows up unexpectedly in many places. If ascii encoding fails, we
2665 shows up unexpectedly in many places. If ascii encoding fails, we
2663 assume utf_8. Currently the encoding is not a user-visible
2666 assume utf_8. Currently the encoding is not a user-visible
2664 setting, though it could be made so if there is demand for it.
2667 setting, though it could be made so if there is demand for it.
2665
2668
2666 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2669 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2667
2670
2668 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2671 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2669
2672
2670 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2673 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2671
2674
2672 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2675 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2673 code can work transparently for 2.2/2.3.
2676 code can work transparently for 2.2/2.3.
2674
2677
2675 2005-07-16 Fernando Perez <fperez@colorado.edu>
2678 2005-07-16 Fernando Perez <fperez@colorado.edu>
2676
2679
2677 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2680 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2678 out of the color scheme table used for coloring exception
2681 out of the color scheme table used for coloring exception
2679 tracebacks. This allows user code to add new schemes at runtime.
2682 tracebacks. This allows user code to add new schemes at runtime.
2680 This is a minimally modified version of the patch at
2683 This is a minimally modified version of the patch at
2681 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2684 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2682 for the contribution.
2685 for the contribution.
2683
2686
2684 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2687 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2685 slightly modified version of the patch in
2688 slightly modified version of the patch in
2686 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2689 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2687 to remove the previous try/except solution (which was costlier).
2690 to remove the previous try/except solution (which was costlier).
2688 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2691 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2689
2692
2690 2005-06-08 Fernando Perez <fperez@colorado.edu>
2693 2005-06-08 Fernando Perez <fperez@colorado.edu>
2691
2694
2692 * IPython/iplib.py (write/write_err): Add methods to abstract all
2695 * IPython/iplib.py (write/write_err): Add methods to abstract all
2693 I/O a bit more.
2696 I/O a bit more.
2694
2697
2695 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2698 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2696 warning, reported by Aric Hagberg, fix by JD Hunter.
2699 warning, reported by Aric Hagberg, fix by JD Hunter.
2697
2700
2698 2005-06-02 *** Released version 0.6.15
2701 2005-06-02 *** Released version 0.6.15
2699
2702
2700 2005-06-01 Fernando Perez <fperez@colorado.edu>
2703 2005-06-01 Fernando Perez <fperez@colorado.edu>
2701
2704
2702 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2705 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2703 tab-completion of filenames within open-quoted strings. Note that
2706 tab-completion of filenames within open-quoted strings. Note that
2704 this requires that in ~/.ipython/ipythonrc, users change the
2707 this requires that in ~/.ipython/ipythonrc, users change the
2705 readline delimiters configuration to read:
2708 readline delimiters configuration to read:
2706
2709
2707 readline_remove_delims -/~
2710 readline_remove_delims -/~
2708
2711
2709
2712
2710 2005-05-31 *** Released version 0.6.14
2713 2005-05-31 *** Released version 0.6.14
2711
2714
2712 2005-05-29 Fernando Perez <fperez@colorado.edu>
2715 2005-05-29 Fernando Perez <fperez@colorado.edu>
2713
2716
2714 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2717 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2715 with files not on the filesystem. Reported by Eliyahu Sandler
2718 with files not on the filesystem. Reported by Eliyahu Sandler
2716 <eli@gondolin.net>
2719 <eli@gondolin.net>
2717
2720
2718 2005-05-22 Fernando Perez <fperez@colorado.edu>
2721 2005-05-22 Fernando Perez <fperez@colorado.edu>
2719
2722
2720 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2723 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2721 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2724 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2722
2725
2723 2005-05-19 Fernando Perez <fperez@colorado.edu>
2726 2005-05-19 Fernando Perez <fperez@colorado.edu>
2724
2727
2725 * IPython/iplib.py (safe_execfile): close a file which could be
2728 * IPython/iplib.py (safe_execfile): close a file which could be
2726 left open (causing problems in win32, which locks open files).
2729 left open (causing problems in win32, which locks open files).
2727 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2730 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2728
2731
2729 2005-05-18 Fernando Perez <fperez@colorado.edu>
2732 2005-05-18 Fernando Perez <fperez@colorado.edu>
2730
2733
2731 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2734 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2732 keyword arguments correctly to safe_execfile().
2735 keyword arguments correctly to safe_execfile().
2733
2736
2734 2005-05-13 Fernando Perez <fperez@colorado.edu>
2737 2005-05-13 Fernando Perez <fperez@colorado.edu>
2735
2738
2736 * ipython.1: Added info about Qt to manpage, and threads warning
2739 * ipython.1: Added info about Qt to manpage, and threads warning
2737 to usage page (invoked with --help).
2740 to usage page (invoked with --help).
2738
2741
2739 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2742 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2740 new matcher (it goes at the end of the priority list) to do
2743 new matcher (it goes at the end of the priority list) to do
2741 tab-completion on named function arguments. Submitted by George
2744 tab-completion on named function arguments. Submitted by George
2742 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2745 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2743 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2746 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2744 for more details.
2747 for more details.
2745
2748
2746 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2749 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2747 SystemExit exceptions in the script being run. Thanks to a report
2750 SystemExit exceptions in the script being run. Thanks to a report
2748 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2751 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2749 producing very annoying behavior when running unit tests.
2752 producing very annoying behavior when running unit tests.
2750
2753
2751 2005-05-12 Fernando Perez <fperez@colorado.edu>
2754 2005-05-12 Fernando Perez <fperez@colorado.edu>
2752
2755
2753 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2756 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2754 which I'd broken (again) due to a changed regexp. In the process,
2757 which I'd broken (again) due to a changed regexp. In the process,
2755 added ';' as an escape to auto-quote the whole line without
2758 added ';' as an escape to auto-quote the whole line without
2756 splitting its arguments. Thanks to a report by Jerry McRae
2759 splitting its arguments. Thanks to a report by Jerry McRae
2757 <qrs0xyc02-AT-sneakemail.com>.
2760 <qrs0xyc02-AT-sneakemail.com>.
2758
2761
2759 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2762 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2760 possible crashes caused by a TokenError. Reported by Ed Schofield
2763 possible crashes caused by a TokenError. Reported by Ed Schofield
2761 <schofield-AT-ftw.at>.
2764 <schofield-AT-ftw.at>.
2762
2765
2763 2005-05-06 Fernando Perez <fperez@colorado.edu>
2766 2005-05-06 Fernando Perez <fperez@colorado.edu>
2764
2767
2765 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2768 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2766
2769
2767 2005-04-29 Fernando Perez <fperez@colorado.edu>
2770 2005-04-29 Fernando Perez <fperez@colorado.edu>
2768
2771
2769 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2772 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2770 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2773 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2771 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2774 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2772 which provides support for Qt interactive usage (similar to the
2775 which provides support for Qt interactive usage (similar to the
2773 existing one for WX and GTK). This had been often requested.
2776 existing one for WX and GTK). This had been often requested.
2774
2777
2775 2005-04-14 *** Released version 0.6.13
2778 2005-04-14 *** Released version 0.6.13
2776
2779
2777 2005-04-08 Fernando Perez <fperez@colorado.edu>
2780 2005-04-08 Fernando Perez <fperez@colorado.edu>
2778
2781
2779 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2782 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2780 from _ofind, which gets called on almost every input line. Now,
2783 from _ofind, which gets called on almost every input line. Now,
2781 we only try to get docstrings if they are actually going to be
2784 we only try to get docstrings if they are actually going to be
2782 used (the overhead of fetching unnecessary docstrings can be
2785 used (the overhead of fetching unnecessary docstrings can be
2783 noticeable for certain objects, such as Pyro proxies).
2786 noticeable for certain objects, such as Pyro proxies).
2784
2787
2785 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2788 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2786 for completers. For some reason I had been passing them the state
2789 for completers. For some reason I had been passing them the state
2787 variable, which completers never actually need, and was in
2790 variable, which completers never actually need, and was in
2788 conflict with the rlcompleter API. Custom completers ONLY need to
2791 conflict with the rlcompleter API. Custom completers ONLY need to
2789 take the text parameter.
2792 take the text parameter.
2790
2793
2791 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2794 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2792 work correctly in pysh. I've also moved all the logic which used
2795 work correctly in pysh. I've also moved all the logic which used
2793 to be in pysh.py here, which will prevent problems with future
2796 to be in pysh.py here, which will prevent problems with future
2794 upgrades. However, this time I must warn users to update their
2797 upgrades. However, this time I must warn users to update their
2795 pysh profile to include the line
2798 pysh profile to include the line
2796
2799
2797 import_all IPython.Extensions.InterpreterExec
2800 import_all IPython.Extensions.InterpreterExec
2798
2801
2799 because otherwise things won't work for them. They MUST also
2802 because otherwise things won't work for them. They MUST also
2800 delete pysh.py and the line
2803 delete pysh.py and the line
2801
2804
2802 execfile pysh.py
2805 execfile pysh.py
2803
2806
2804 from their ipythonrc-pysh.
2807 from their ipythonrc-pysh.
2805
2808
2806 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2809 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2807 robust in the face of objects whose dir() returns non-strings
2810 robust in the face of objects whose dir() returns non-strings
2808 (which it shouldn't, but some broken libs like ITK do). Thanks to
2811 (which it shouldn't, but some broken libs like ITK do). Thanks to
2809 a patch by John Hunter (implemented differently, though). Also
2812 a patch by John Hunter (implemented differently, though). Also
2810 minor improvements by using .extend instead of + on lists.
2813 minor improvements by using .extend instead of + on lists.
2811
2814
2812 * pysh.py:
2815 * pysh.py:
2813
2816
2814 2005-04-06 Fernando Perez <fperez@colorado.edu>
2817 2005-04-06 Fernando Perez <fperez@colorado.edu>
2815
2818
2816 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2819 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2817 by default, so that all users benefit from it. Those who don't
2820 by default, so that all users benefit from it. Those who don't
2818 want it can still turn it off.
2821 want it can still turn it off.
2819
2822
2820 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2823 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2821 config file, I'd forgotten about this, so users were getting it
2824 config file, I'd forgotten about this, so users were getting it
2822 off by default.
2825 off by default.
2823
2826
2824 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2827 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2825 consistency. Now magics can be called in multiline statements,
2828 consistency. Now magics can be called in multiline statements,
2826 and python variables can be expanded in magic calls via $var.
2829 and python variables can be expanded in magic calls via $var.
2827 This makes the magic system behave just like aliases or !system
2830 This makes the magic system behave just like aliases or !system
2828 calls.
2831 calls.
2829
2832
2830 2005-03-28 Fernando Perez <fperez@colorado.edu>
2833 2005-03-28 Fernando Perez <fperez@colorado.edu>
2831
2834
2832 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2835 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2833 expensive string additions for building command. Add support for
2836 expensive string additions for building command. Add support for
2834 trailing ';' when autocall is used.
2837 trailing ';' when autocall is used.
2835
2838
2836 2005-03-26 Fernando Perez <fperez@colorado.edu>
2839 2005-03-26 Fernando Perez <fperez@colorado.edu>
2837
2840
2838 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2841 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2839 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2842 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2840 ipython.el robust against prompts with any number of spaces
2843 ipython.el robust against prompts with any number of spaces
2841 (including 0) after the ':' character.
2844 (including 0) after the ':' character.
2842
2845
2843 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2846 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2844 continuation prompt, which misled users to think the line was
2847 continuation prompt, which misled users to think the line was
2845 already indented. Closes debian Bug#300847, reported to me by
2848 already indented. Closes debian Bug#300847, reported to me by
2846 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2849 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2847
2850
2848 2005-03-23 Fernando Perez <fperez@colorado.edu>
2851 2005-03-23 Fernando Perez <fperez@colorado.edu>
2849
2852
2850 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2853 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2851 properly aligned if they have embedded newlines.
2854 properly aligned if they have embedded newlines.
2852
2855
2853 * IPython/iplib.py (runlines): Add a public method to expose
2856 * IPython/iplib.py (runlines): Add a public method to expose
2854 IPython's code execution machinery, so that users can run strings
2857 IPython's code execution machinery, so that users can run strings
2855 as if they had been typed at the prompt interactively.
2858 as if they had been typed at the prompt interactively.
2856 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2859 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2857 methods which can call the system shell, but with python variable
2860 methods which can call the system shell, but with python variable
2858 expansion. The three such methods are: __IPYTHON__.system,
2861 expansion. The three such methods are: __IPYTHON__.system,
2859 .getoutput and .getoutputerror. These need to be documented in a
2862 .getoutput and .getoutputerror. These need to be documented in a
2860 'public API' section (to be written) of the manual.
2863 'public API' section (to be written) of the manual.
2861
2864
2862 2005-03-20 Fernando Perez <fperez@colorado.edu>
2865 2005-03-20 Fernando Perez <fperez@colorado.edu>
2863
2866
2864 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2867 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2865 for custom exception handling. This is quite powerful, and it
2868 for custom exception handling. This is quite powerful, and it
2866 allows for user-installable exception handlers which can trap
2869 allows for user-installable exception handlers which can trap
2867 custom exceptions at runtime and treat them separately from
2870 custom exceptions at runtime and treat them separately from
2868 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2871 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2869 Mantegazza <mantegazza-AT-ill.fr>.
2872 Mantegazza <mantegazza-AT-ill.fr>.
2870 (InteractiveShell.set_custom_completer): public API function to
2873 (InteractiveShell.set_custom_completer): public API function to
2871 add new completers at runtime.
2874 add new completers at runtime.
2872
2875
2873 2005-03-19 Fernando Perez <fperez@colorado.edu>
2876 2005-03-19 Fernando Perez <fperez@colorado.edu>
2874
2877
2875 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2878 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2876 allow objects which provide their docstrings via non-standard
2879 allow objects which provide their docstrings via non-standard
2877 mechanisms (like Pyro proxies) to still be inspected by ipython's
2880 mechanisms (like Pyro proxies) to still be inspected by ipython's
2878 ? system.
2881 ? system.
2879
2882
2880 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2883 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2881 automatic capture system. I tried quite hard to make it work
2884 automatic capture system. I tried quite hard to make it work
2882 reliably, and simply failed. I tried many combinations with the
2885 reliably, and simply failed. I tried many combinations with the
2883 subprocess module, but eventually nothing worked in all needed
2886 subprocess module, but eventually nothing worked in all needed
2884 cases (not blocking stdin for the child, duplicating stdout
2887 cases (not blocking stdin for the child, duplicating stdout
2885 without blocking, etc). The new %sc/%sx still do capture to these
2888 without blocking, etc). The new %sc/%sx still do capture to these
2886 magical list/string objects which make shell use much more
2889 magical list/string objects which make shell use much more
2887 conveninent, so not all is lost.
2890 conveninent, so not all is lost.
2888
2891
2889 XXX - FIX MANUAL for the change above!
2892 XXX - FIX MANUAL for the change above!
2890
2893
2891 (runsource): I copied code.py's runsource() into ipython to modify
2894 (runsource): I copied code.py's runsource() into ipython to modify
2892 it a bit. Now the code object and source to be executed are
2895 it a bit. Now the code object and source to be executed are
2893 stored in ipython. This makes this info accessible to third-party
2896 stored in ipython. This makes this info accessible to third-party
2894 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2897 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2895 Mantegazza <mantegazza-AT-ill.fr>.
2898 Mantegazza <mantegazza-AT-ill.fr>.
2896
2899
2897 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2900 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2898 history-search via readline (like C-p/C-n). I'd wanted this for a
2901 history-search via readline (like C-p/C-n). I'd wanted this for a
2899 long time, but only recently found out how to do it. For users
2902 long time, but only recently found out how to do it. For users
2900 who already have their ipythonrc files made and want this, just
2903 who already have their ipythonrc files made and want this, just
2901 add:
2904 add:
2902
2905
2903 readline_parse_and_bind "\e[A": history-search-backward
2906 readline_parse_and_bind "\e[A": history-search-backward
2904 readline_parse_and_bind "\e[B": history-search-forward
2907 readline_parse_and_bind "\e[B": history-search-forward
2905
2908
2906 2005-03-18 Fernando Perez <fperez@colorado.edu>
2909 2005-03-18 Fernando Perez <fperez@colorado.edu>
2907
2910
2908 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2911 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2909 LSString and SList classes which allow transparent conversions
2912 LSString and SList classes which allow transparent conversions
2910 between list mode and whitespace-separated string.
2913 between list mode and whitespace-separated string.
2911 (magic_r): Fix recursion problem in %r.
2914 (magic_r): Fix recursion problem in %r.
2912
2915
2913 * IPython/genutils.py (LSString): New class to be used for
2916 * IPython/genutils.py (LSString): New class to be used for
2914 automatic storage of the results of all alias/system calls in _o
2917 automatic storage of the results of all alias/system calls in _o
2915 and _e (stdout/err). These provide a .l/.list attribute which
2918 and _e (stdout/err). These provide a .l/.list attribute which
2916 does automatic splitting on newlines. This means that for most
2919 does automatic splitting on newlines. This means that for most
2917 uses, you'll never need to do capturing of output with %sc/%sx
2920 uses, you'll never need to do capturing of output with %sc/%sx
2918 anymore, since ipython keeps this always done for you. Note that
2921 anymore, since ipython keeps this always done for you. Note that
2919 only the LAST results are stored, the _o/e variables are
2922 only the LAST results are stored, the _o/e variables are
2920 overwritten on each call. If you need to save their contents
2923 overwritten on each call. If you need to save their contents
2921 further, simply bind them to any other name.
2924 further, simply bind them to any other name.
2922
2925
2923 2005-03-17 Fernando Perez <fperez@colorado.edu>
2926 2005-03-17 Fernando Perez <fperez@colorado.edu>
2924
2927
2925 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2928 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2926 prompt namespace handling.
2929 prompt namespace handling.
2927
2930
2928 2005-03-16 Fernando Perez <fperez@colorado.edu>
2931 2005-03-16 Fernando Perez <fperez@colorado.edu>
2929
2932
2930 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2933 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2931 classic prompts to be '>>> ' (final space was missing, and it
2934 classic prompts to be '>>> ' (final space was missing, and it
2932 trips the emacs python mode).
2935 trips the emacs python mode).
2933 (BasePrompt.__str__): Added safe support for dynamic prompt
2936 (BasePrompt.__str__): Added safe support for dynamic prompt
2934 strings. Now you can set your prompt string to be '$x', and the
2937 strings. Now you can set your prompt string to be '$x', and the
2935 value of x will be printed from your interactive namespace. The
2938 value of x will be printed from your interactive namespace. The
2936 interpolation syntax includes the full Itpl support, so
2939 interpolation syntax includes the full Itpl support, so
2937 ${foo()+x+bar()} is a valid prompt string now, and the function
2940 ${foo()+x+bar()} is a valid prompt string now, and the function
2938 calls will be made at runtime.
2941 calls will be made at runtime.
2939
2942
2940 2005-03-15 Fernando Perez <fperez@colorado.edu>
2943 2005-03-15 Fernando Perez <fperez@colorado.edu>
2941
2944
2942 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2945 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2943 avoid name clashes in pylab. %hist still works, it just forwards
2946 avoid name clashes in pylab. %hist still works, it just forwards
2944 the call to %history.
2947 the call to %history.
2945
2948
2946 2005-03-02 *** Released version 0.6.12
2949 2005-03-02 *** Released version 0.6.12
2947
2950
2948 2005-03-02 Fernando Perez <fperez@colorado.edu>
2951 2005-03-02 Fernando Perez <fperez@colorado.edu>
2949
2952
2950 * IPython/iplib.py (handle_magic): log magic calls properly as
2953 * IPython/iplib.py (handle_magic): log magic calls properly as
2951 ipmagic() function calls.
2954 ipmagic() function calls.
2952
2955
2953 * IPython/Magic.py (magic_time): Improved %time to support
2956 * IPython/Magic.py (magic_time): Improved %time to support
2954 statements and provide wall-clock as well as CPU time.
2957 statements and provide wall-clock as well as CPU time.
2955
2958
2956 2005-02-27 Fernando Perez <fperez@colorado.edu>
2959 2005-02-27 Fernando Perez <fperez@colorado.edu>
2957
2960
2958 * IPython/hooks.py: New hooks module, to expose user-modifiable
2961 * IPython/hooks.py: New hooks module, to expose user-modifiable
2959 IPython functionality in a clean manner. For now only the editor
2962 IPython functionality in a clean manner. For now only the editor
2960 hook is actually written, and other thigns which I intend to turn
2963 hook is actually written, and other thigns which I intend to turn
2961 into proper hooks aren't yet there. The display and prefilter
2964 into proper hooks aren't yet there. The display and prefilter
2962 stuff, for example, should be hooks. But at least now the
2965 stuff, for example, should be hooks. But at least now the
2963 framework is in place, and the rest can be moved here with more
2966 framework is in place, and the rest can be moved here with more
2964 time later. IPython had had a .hooks variable for a long time for
2967 time later. IPython had had a .hooks variable for a long time for
2965 this purpose, but I'd never actually used it for anything.
2968 this purpose, but I'd never actually used it for anything.
2966
2969
2967 2005-02-26 Fernando Perez <fperez@colorado.edu>
2970 2005-02-26 Fernando Perez <fperez@colorado.edu>
2968
2971
2969 * IPython/ipmaker.py (make_IPython): make the default ipython
2972 * IPython/ipmaker.py (make_IPython): make the default ipython
2970 directory be called _ipython under win32, to follow more the
2973 directory be called _ipython under win32, to follow more the
2971 naming peculiarities of that platform (where buggy software like
2974 naming peculiarities of that platform (where buggy software like
2972 Visual Sourcesafe breaks with .named directories). Reported by
2975 Visual Sourcesafe breaks with .named directories). Reported by
2973 Ville Vainio.
2976 Ville Vainio.
2974
2977
2975 2005-02-23 Fernando Perez <fperez@colorado.edu>
2978 2005-02-23 Fernando Perez <fperez@colorado.edu>
2976
2979
2977 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2980 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2978 auto_aliases for win32 which were causing problems. Users can
2981 auto_aliases for win32 which were causing problems. Users can
2979 define the ones they personally like.
2982 define the ones they personally like.
2980
2983
2981 2005-02-21 Fernando Perez <fperez@colorado.edu>
2984 2005-02-21 Fernando Perez <fperez@colorado.edu>
2982
2985
2983 * IPython/Magic.py (magic_time): new magic to time execution of
2986 * IPython/Magic.py (magic_time): new magic to time execution of
2984 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2987 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2985
2988
2986 2005-02-19 Fernando Perez <fperez@colorado.edu>
2989 2005-02-19 Fernando Perez <fperez@colorado.edu>
2987
2990
2988 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2991 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2989 into keys (for prompts, for example).
2992 into keys (for prompts, for example).
2990
2993
2991 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2994 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2992 prompts in case users want them. This introduces a small behavior
2995 prompts in case users want them. This introduces a small behavior
2993 change: ipython does not automatically add a space to all prompts
2996 change: ipython does not automatically add a space to all prompts
2994 anymore. To get the old prompts with a space, users should add it
2997 anymore. To get the old prompts with a space, users should add it
2995 manually to their ipythonrc file, so for example prompt_in1 should
2998 manually to their ipythonrc file, so for example prompt_in1 should
2996 now read 'In [\#]: ' instead of 'In [\#]:'.
2999 now read 'In [\#]: ' instead of 'In [\#]:'.
2997 (BasePrompt.__init__): New option prompts_pad_left (only in rc
3000 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2998 file) to control left-padding of secondary prompts.
3001 file) to control left-padding of secondary prompts.
2999
3002
3000 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
3003 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
3001 the profiler can't be imported. Fix for Debian, which removed
3004 the profiler can't be imported. Fix for Debian, which removed
3002 profile.py because of License issues. I applied a slightly
3005 profile.py because of License issues. I applied a slightly
3003 modified version of the original Debian patch at
3006 modified version of the original Debian patch at
3004 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
3007 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
3005
3008
3006 2005-02-17 Fernando Perez <fperez@colorado.edu>
3009 2005-02-17 Fernando Perez <fperez@colorado.edu>
3007
3010
3008 * IPython/genutils.py (native_line_ends): Fix bug which would
3011 * IPython/genutils.py (native_line_ends): Fix bug which would
3009 cause improper line-ends under win32 b/c I was not opening files
3012 cause improper line-ends under win32 b/c I was not opening files
3010 in binary mode. Bug report and fix thanks to Ville.
3013 in binary mode. Bug report and fix thanks to Ville.
3011
3014
3012 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
3015 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
3013 trying to catch spurious foo[1] autocalls. My fix actually broke
3016 trying to catch spurious foo[1] autocalls. My fix actually broke
3014 ',/' autoquote/call with explicit escape (bad regexp).
3017 ',/' autoquote/call with explicit escape (bad regexp).
3015
3018
3016 2005-02-15 *** Released version 0.6.11
3019 2005-02-15 *** Released version 0.6.11
3017
3020
3018 2005-02-14 Fernando Perez <fperez@colorado.edu>
3021 2005-02-14 Fernando Perez <fperez@colorado.edu>
3019
3022
3020 * IPython/background_jobs.py: New background job management
3023 * IPython/background_jobs.py: New background job management
3021 subsystem. This is implemented via a new set of classes, and
3024 subsystem. This is implemented via a new set of classes, and
3022 IPython now provides a builtin 'jobs' object for background job
3025 IPython now provides a builtin 'jobs' object for background job
3023 execution. A convenience %bg magic serves as a lightweight
3026 execution. A convenience %bg magic serves as a lightweight
3024 frontend for starting the more common type of calls. This was
3027 frontend for starting the more common type of calls. This was
3025 inspired by discussions with B. Granger and the BackgroundCommand
3028 inspired by discussions with B. Granger and the BackgroundCommand
3026 class described in the book Python Scripting for Computational
3029 class described in the book Python Scripting for Computational
3027 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
3030 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
3028 (although ultimately no code from this text was used, as IPython's
3031 (although ultimately no code from this text was used, as IPython's
3029 system is a separate implementation).
3032 system is a separate implementation).
3030
3033
3031 * IPython/iplib.py (MagicCompleter.python_matches): add new option
3034 * IPython/iplib.py (MagicCompleter.python_matches): add new option
3032 to control the completion of single/double underscore names
3035 to control the completion of single/double underscore names
3033 separately. As documented in the example ipytonrc file, the
3036 separately. As documented in the example ipytonrc file, the
3034 readline_omit__names variable can now be set to 2, to omit even
3037 readline_omit__names variable can now be set to 2, to omit even
3035 single underscore names. Thanks to a patch by Brian Wong
3038 single underscore names. Thanks to a patch by Brian Wong
3036 <BrianWong-AT-AirgoNetworks.Com>.
3039 <BrianWong-AT-AirgoNetworks.Com>.
3037 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
3040 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
3038 be autocalled as foo([1]) if foo were callable. A problem for
3041 be autocalled as foo([1]) if foo were callable. A problem for
3039 things which are both callable and implement __getitem__.
3042 things which are both callable and implement __getitem__.
3040 (init_readline): Fix autoindentation for win32. Thanks to a patch
3043 (init_readline): Fix autoindentation for win32. Thanks to a patch
3041 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
3044 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
3042
3045
3043 2005-02-12 Fernando Perez <fperez@colorado.edu>
3046 2005-02-12 Fernando Perez <fperez@colorado.edu>
3044
3047
3045 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
3048 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
3046 which I had written long ago to sort out user error messages which
3049 which I had written long ago to sort out user error messages which
3047 may occur during startup. This seemed like a good idea initially,
3050 may occur during startup. This seemed like a good idea initially,
3048 but it has proven a disaster in retrospect. I don't want to
3051 but it has proven a disaster in retrospect. I don't want to
3049 change much code for now, so my fix is to set the internal 'debug'
3052 change much code for now, so my fix is to set the internal 'debug'
3050 flag to true everywhere, whose only job was precisely to control
3053 flag to true everywhere, whose only job was precisely to control
3051 this subsystem. This closes issue 28 (as well as avoiding all
3054 this subsystem. This closes issue 28 (as well as avoiding all
3052 sorts of strange hangups which occur from time to time).
3055 sorts of strange hangups which occur from time to time).
3053
3056
3054 2005-02-07 Fernando Perez <fperez@colorado.edu>
3057 2005-02-07 Fernando Perez <fperez@colorado.edu>
3055
3058
3056 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
3059 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
3057 previous call produced a syntax error.
3060 previous call produced a syntax error.
3058
3061
3059 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
3062 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
3060 classes without constructor.
3063 classes without constructor.
3061
3064
3062 2005-02-06 Fernando Perez <fperez@colorado.edu>
3065 2005-02-06 Fernando Perez <fperez@colorado.edu>
3063
3066
3064 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
3067 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
3065 completions with the results of each matcher, so we return results
3068 completions with the results of each matcher, so we return results
3066 to the user from all namespaces. This breaks with ipython
3069 to the user from all namespaces. This breaks with ipython
3067 tradition, but I think it's a nicer behavior. Now you get all
3070 tradition, but I think it's a nicer behavior. Now you get all
3068 possible completions listed, from all possible namespaces (python,
3071 possible completions listed, from all possible namespaces (python,
3069 filesystem, magics...) After a request by John Hunter
3072 filesystem, magics...) After a request by John Hunter
3070 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3073 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3071
3074
3072 2005-02-05 Fernando Perez <fperez@colorado.edu>
3075 2005-02-05 Fernando Perez <fperez@colorado.edu>
3073
3076
3074 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
3077 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
3075 the call had quote characters in it (the quotes were stripped).
3078 the call had quote characters in it (the quotes were stripped).
3076
3079
3077 2005-01-31 Fernando Perez <fperez@colorado.edu>
3080 2005-01-31 Fernando Perez <fperez@colorado.edu>
3078
3081
3079 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
3082 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
3080 Itpl.itpl() to make the code more robust against psyco
3083 Itpl.itpl() to make the code more robust against psyco
3081 optimizations.
3084 optimizations.
3082
3085
3083 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
3086 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
3084 of causing an exception. Quicker, cleaner.
3087 of causing an exception. Quicker, cleaner.
3085
3088
3086 2005-01-28 Fernando Perez <fperez@colorado.edu>
3089 2005-01-28 Fernando Perez <fperez@colorado.edu>
3087
3090
3088 * scripts/ipython_win_post_install.py (install): hardcode
3091 * scripts/ipython_win_post_install.py (install): hardcode
3089 sys.prefix+'python.exe' as the executable path. It turns out that
3092 sys.prefix+'python.exe' as the executable path. It turns out that
3090 during the post-installation run, sys.executable resolves to the
3093 during the post-installation run, sys.executable resolves to the
3091 name of the binary installer! I should report this as a distutils
3094 name of the binary installer! I should report this as a distutils
3092 bug, I think. I updated the .10 release with this tiny fix, to
3095 bug, I think. I updated the .10 release with this tiny fix, to
3093 avoid annoying the lists further.
3096 avoid annoying the lists further.
3094
3097
3095 2005-01-27 *** Released version 0.6.10
3098 2005-01-27 *** Released version 0.6.10
3096
3099
3097 2005-01-27 Fernando Perez <fperez@colorado.edu>
3100 2005-01-27 Fernando Perez <fperez@colorado.edu>
3098
3101
3099 * IPython/numutils.py (norm): Added 'inf' as optional name for
3102 * IPython/numutils.py (norm): Added 'inf' as optional name for
3100 L-infinity norm, included references to mathworld.com for vector
3103 L-infinity norm, included references to mathworld.com for vector
3101 norm definitions.
3104 norm definitions.
3102 (amin/amax): added amin/amax for array min/max. Similar to what
3105 (amin/amax): added amin/amax for array min/max. Similar to what
3103 pylab ships with after the recent reorganization of names.
3106 pylab ships with after the recent reorganization of names.
3104 (spike/spike_odd): removed deprecated spike/spike_odd functions.
3107 (spike/spike_odd): removed deprecated spike/spike_odd functions.
3105
3108
3106 * ipython.el: committed Alex's recent fixes and improvements.
3109 * ipython.el: committed Alex's recent fixes and improvements.
3107 Tested with python-mode from CVS, and it looks excellent. Since
3110 Tested with python-mode from CVS, and it looks excellent. Since
3108 python-mode hasn't released anything in a while, I'm temporarily
3111 python-mode hasn't released anything in a while, I'm temporarily
3109 putting a copy of today's CVS (v 4.70) of python-mode in:
3112 putting a copy of today's CVS (v 4.70) of python-mode in:
3110 http://ipython.scipy.org/tmp/python-mode.el
3113 http://ipython.scipy.org/tmp/python-mode.el
3111
3114
3112 * scripts/ipython_win_post_install.py (install): Win32 fix to use
3115 * scripts/ipython_win_post_install.py (install): Win32 fix to use
3113 sys.executable for the executable name, instead of assuming it's
3116 sys.executable for the executable name, instead of assuming it's
3114 called 'python.exe' (the post-installer would have produced broken
3117 called 'python.exe' (the post-installer would have produced broken
3115 setups on systems with a differently named python binary).
3118 setups on systems with a differently named python binary).
3116
3119
3117 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
3120 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
3118 references to os.linesep, to make the code more
3121 references to os.linesep, to make the code more
3119 platform-independent. This is also part of the win32 coloring
3122 platform-independent. This is also part of the win32 coloring
3120 fixes.
3123 fixes.
3121
3124
3122 * IPython/genutils.py (page_dumb): Remove attempts to chop long
3125 * IPython/genutils.py (page_dumb): Remove attempts to chop long
3123 lines, which actually cause coloring bugs because the length of
3126 lines, which actually cause coloring bugs because the length of
3124 the line is very difficult to correctly compute with embedded
3127 the line is very difficult to correctly compute with embedded
3125 escapes. This was the source of all the coloring problems under
3128 escapes. This was the source of all the coloring problems under
3126 Win32. I think that _finally_, Win32 users have a properly
3129 Win32. I think that _finally_, Win32 users have a properly
3127 working ipython in all respects. This would never have happened
3130 working ipython in all respects. This would never have happened
3128 if not for Gary Bishop and Viktor Ransmayr's great help and work.
3131 if not for Gary Bishop and Viktor Ransmayr's great help and work.
3129
3132
3130 2005-01-26 *** Released version 0.6.9
3133 2005-01-26 *** Released version 0.6.9
3131
3134
3132 2005-01-25 Fernando Perez <fperez@colorado.edu>
3135 2005-01-25 Fernando Perez <fperez@colorado.edu>
3133
3136
3134 * setup.py: finally, we have a true Windows installer, thanks to
3137 * setup.py: finally, we have a true Windows installer, thanks to
3135 the excellent work of Viktor Ransmayr
3138 the excellent work of Viktor Ransmayr
3136 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
3139 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
3137 Windows users. The setup routine is quite a bit cleaner thanks to
3140 Windows users. The setup routine is quite a bit cleaner thanks to
3138 this, and the post-install script uses the proper functions to
3141 this, and the post-install script uses the proper functions to
3139 allow a clean de-installation using the standard Windows Control
3142 allow a clean de-installation using the standard Windows Control
3140 Panel.
3143 Panel.
3141
3144
3142 * IPython/genutils.py (get_home_dir): changed to use the $HOME
3145 * IPython/genutils.py (get_home_dir): changed to use the $HOME
3143 environment variable under all OSes (including win32) if
3146 environment variable under all OSes (including win32) if
3144 available. This will give consistency to win32 users who have set
3147 available. This will give consistency to win32 users who have set
3145 this variable for any reason. If os.environ['HOME'] fails, the
3148 this variable for any reason. If os.environ['HOME'] fails, the
3146 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
3149 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
3147
3150
3148 2005-01-24 Fernando Perez <fperez@colorado.edu>
3151 2005-01-24 Fernando Perez <fperez@colorado.edu>
3149
3152
3150 * IPython/numutils.py (empty_like): add empty_like(), similar to
3153 * IPython/numutils.py (empty_like): add empty_like(), similar to
3151 zeros_like() but taking advantage of the new empty() Numeric routine.
3154 zeros_like() but taking advantage of the new empty() Numeric routine.
3152
3155
3153 2005-01-23 *** Released version 0.6.8
3156 2005-01-23 *** Released version 0.6.8
3154
3157
3155 2005-01-22 Fernando Perez <fperez@colorado.edu>
3158 2005-01-22 Fernando Perez <fperez@colorado.edu>
3156
3159
3157 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
3160 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
3158 automatic show() calls. After discussing things with JDH, it
3161 automatic show() calls. After discussing things with JDH, it
3159 turns out there are too many corner cases where this can go wrong.
3162 turns out there are too many corner cases where this can go wrong.
3160 It's best not to try to be 'too smart', and simply have ipython
3163 It's best not to try to be 'too smart', and simply have ipython
3161 reproduce as much as possible the default behavior of a normal
3164 reproduce as much as possible the default behavior of a normal
3162 python shell.
3165 python shell.
3163
3166
3164 * IPython/iplib.py (InteractiveShell.__init__): Modified the
3167 * IPython/iplib.py (InteractiveShell.__init__): Modified the
3165 line-splitting regexp and _prefilter() to avoid calling getattr()
3168 line-splitting regexp and _prefilter() to avoid calling getattr()
3166 on assignments. This closes
3169 on assignments. This closes
3167 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
3170 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
3168 readline uses getattr(), so a simple <TAB> keypress is still
3171 readline uses getattr(), so a simple <TAB> keypress is still
3169 enough to trigger getattr() calls on an object.
3172 enough to trigger getattr() calls on an object.
3170
3173
3171 2005-01-21 Fernando Perez <fperez@colorado.edu>
3174 2005-01-21 Fernando Perez <fperez@colorado.edu>
3172
3175
3173 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
3176 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
3174 docstring under pylab so it doesn't mask the original.
3177 docstring under pylab so it doesn't mask the original.
3175
3178
3176 2005-01-21 *** Released version 0.6.7
3179 2005-01-21 *** Released version 0.6.7
3177
3180
3178 2005-01-21 Fernando Perez <fperez@colorado.edu>
3181 2005-01-21 Fernando Perez <fperez@colorado.edu>
3179
3182
3180 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
3183 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
3181 signal handling for win32 users in multithreaded mode.
3184 signal handling for win32 users in multithreaded mode.
3182
3185
3183 2005-01-17 Fernando Perez <fperez@colorado.edu>
3186 2005-01-17 Fernando Perez <fperez@colorado.edu>
3184
3187
3185 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
3188 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
3186 instances with no __init__. After a crash report by Norbert Nemec
3189 instances with no __init__. After a crash report by Norbert Nemec
3187 <Norbert-AT-nemec-online.de>.
3190 <Norbert-AT-nemec-online.de>.
3188
3191
3189 2005-01-14 Fernando Perez <fperez@colorado.edu>
3192 2005-01-14 Fernando Perez <fperez@colorado.edu>
3190
3193
3191 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
3194 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
3192 names for verbose exceptions, when multiple dotted names and the
3195 names for verbose exceptions, when multiple dotted names and the
3193 'parent' object were present on the same line.
3196 'parent' object were present on the same line.
3194
3197
3195 2005-01-11 Fernando Perez <fperez@colorado.edu>
3198 2005-01-11 Fernando Perez <fperez@colorado.edu>
3196
3199
3197 * IPython/genutils.py (flag_calls): new utility to trap and flag
3200 * IPython/genutils.py (flag_calls): new utility to trap and flag
3198 calls in functions. I need it to clean up matplotlib support.
3201 calls in functions. I need it to clean up matplotlib support.
3199 Also removed some deprecated code in genutils.
3202 Also removed some deprecated code in genutils.
3200
3203
3201 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
3204 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
3202 that matplotlib scripts called with %run, which don't call show()
3205 that matplotlib scripts called with %run, which don't call show()
3203 themselves, still have their plotting windows open.
3206 themselves, still have their plotting windows open.
3204
3207
3205 2005-01-05 Fernando Perez <fperez@colorado.edu>
3208 2005-01-05 Fernando Perez <fperez@colorado.edu>
3206
3209
3207 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
3210 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
3208 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
3211 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
3209
3212
3210 2004-12-19 Fernando Perez <fperez@colorado.edu>
3213 2004-12-19 Fernando Perez <fperez@colorado.edu>
3211
3214
3212 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
3215 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
3213 parent_runcode, which was an eyesore. The same result can be
3216 parent_runcode, which was an eyesore. The same result can be
3214 obtained with Python's regular superclass mechanisms.
3217 obtained with Python's regular superclass mechanisms.
3215
3218
3216 2004-12-17 Fernando Perez <fperez@colorado.edu>
3219 2004-12-17 Fernando Perez <fperez@colorado.edu>
3217
3220
3218 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
3221 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
3219 reported by Prabhu.
3222 reported by Prabhu.
3220 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
3223 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
3221 sys.stderr) instead of explicitly calling sys.stderr. This helps
3224 sys.stderr) instead of explicitly calling sys.stderr. This helps
3222 maintain our I/O abstractions clean, for future GUI embeddings.
3225 maintain our I/O abstractions clean, for future GUI embeddings.
3223
3226
3224 * IPython/genutils.py (info): added new utility for sys.stderr
3227 * IPython/genutils.py (info): added new utility for sys.stderr
3225 unified info message handling (thin wrapper around warn()).
3228 unified info message handling (thin wrapper around warn()).
3226
3229
3227 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
3230 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
3228 composite (dotted) names on verbose exceptions.
3231 composite (dotted) names on verbose exceptions.
3229 (VerboseTB.nullrepr): harden against another kind of errors which
3232 (VerboseTB.nullrepr): harden against another kind of errors which
3230 Python's inspect module can trigger, and which were crashing
3233 Python's inspect module can trigger, and which were crashing
3231 IPython. Thanks to a report by Marco Lombardi
3234 IPython. Thanks to a report by Marco Lombardi
3232 <mlombard-AT-ma010192.hq.eso.org>.
3235 <mlombard-AT-ma010192.hq.eso.org>.
3233
3236
3234 2004-12-13 *** Released version 0.6.6
3237 2004-12-13 *** Released version 0.6.6
3235
3238
3236 2004-12-12 Fernando Perez <fperez@colorado.edu>
3239 2004-12-12 Fernando Perez <fperez@colorado.edu>
3237
3240
3238 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
3241 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
3239 generated by pygtk upon initialization if it was built without
3242 generated by pygtk upon initialization if it was built without
3240 threads (for matplotlib users). After a crash reported by
3243 threads (for matplotlib users). After a crash reported by
3241 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
3244 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
3242
3245
3243 * IPython/ipmaker.py (make_IPython): fix small bug in the
3246 * IPython/ipmaker.py (make_IPython): fix small bug in the
3244 import_some parameter for multiple imports.
3247 import_some parameter for multiple imports.
3245
3248
3246 * IPython/iplib.py (ipmagic): simplified the interface of
3249 * IPython/iplib.py (ipmagic): simplified the interface of
3247 ipmagic() to take a single string argument, just as it would be
3250 ipmagic() to take a single string argument, just as it would be
3248 typed at the IPython cmd line.
3251 typed at the IPython cmd line.
3249 (ipalias): Added new ipalias() with an interface identical to
3252 (ipalias): Added new ipalias() with an interface identical to
3250 ipmagic(). This completes exposing a pure python interface to the
3253 ipmagic(). This completes exposing a pure python interface to the
3251 alias and magic system, which can be used in loops or more complex
3254 alias and magic system, which can be used in loops or more complex
3252 code where IPython's automatic line mangling is not active.
3255 code where IPython's automatic line mangling is not active.
3253
3256
3254 * IPython/genutils.py (timing): changed interface of timing to
3257 * IPython/genutils.py (timing): changed interface of timing to
3255 simply run code once, which is the most common case. timings()
3258 simply run code once, which is the most common case. timings()
3256 remains unchanged, for the cases where you want multiple runs.
3259 remains unchanged, for the cases where you want multiple runs.
3257
3260
3258 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
3261 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
3259 bug where Python2.2 crashes with exec'ing code which does not end
3262 bug where Python2.2 crashes with exec'ing code which does not end
3260 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3263 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3261 before.
3264 before.
3262
3265
3263 2004-12-10 Fernando Perez <fperez@colorado.edu>
3266 2004-12-10 Fernando Perez <fperez@colorado.edu>
3264
3267
3265 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3268 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3266 -t to -T, to accomodate the new -t flag in %run (the %run and
3269 -t to -T, to accomodate the new -t flag in %run (the %run and
3267 %prun options are kind of intermixed, and it's not easy to change
3270 %prun options are kind of intermixed, and it's not easy to change
3268 this with the limitations of python's getopt).
3271 this with the limitations of python's getopt).
3269
3272
3270 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3273 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3271 the execution of scripts. It's not as fine-tuned as timeit.py,
3274 the execution of scripts. It's not as fine-tuned as timeit.py,
3272 but it works from inside ipython (and under 2.2, which lacks
3275 but it works from inside ipython (and under 2.2, which lacks
3273 timeit.py). Optionally a number of runs > 1 can be given for
3276 timeit.py). Optionally a number of runs > 1 can be given for
3274 timing very short-running code.
3277 timing very short-running code.
3275
3278
3276 * IPython/genutils.py (uniq_stable): new routine which returns a
3279 * IPython/genutils.py (uniq_stable): new routine which returns a
3277 list of unique elements in any iterable, but in stable order of
3280 list of unique elements in any iterable, but in stable order of
3278 appearance. I needed this for the ultraTB fixes, and it's a handy
3281 appearance. I needed this for the ultraTB fixes, and it's a handy
3279 utility.
3282 utility.
3280
3283
3281 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3284 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3282 dotted names in Verbose exceptions. This had been broken since
3285 dotted names in Verbose exceptions. This had been broken since
3283 the very start, now x.y will properly be printed in a Verbose
3286 the very start, now x.y will properly be printed in a Verbose
3284 traceback, instead of x being shown and y appearing always as an
3287 traceback, instead of x being shown and y appearing always as an
3285 'undefined global'. Getting this to work was a bit tricky,
3288 'undefined global'. Getting this to work was a bit tricky,
3286 because by default python tokenizers are stateless. Saved by
3289 because by default python tokenizers are stateless. Saved by
3287 python's ability to easily add a bit of state to an arbitrary
3290 python's ability to easily add a bit of state to an arbitrary
3288 function (without needing to build a full-blown callable object).
3291 function (without needing to build a full-blown callable object).
3289
3292
3290 Also big cleanup of this code, which had horrendous runtime
3293 Also big cleanup of this code, which had horrendous runtime
3291 lookups of zillions of attributes for colorization. Moved all
3294 lookups of zillions of attributes for colorization. Moved all
3292 this code into a few templates, which make it cleaner and quicker.
3295 this code into a few templates, which make it cleaner and quicker.
3293
3296
3294 Printout quality was also improved for Verbose exceptions: one
3297 Printout quality was also improved for Verbose exceptions: one
3295 variable per line, and memory addresses are printed (this can be
3298 variable per line, and memory addresses are printed (this can be
3296 quite handy in nasty debugging situations, which is what Verbose
3299 quite handy in nasty debugging situations, which is what Verbose
3297 is for).
3300 is for).
3298
3301
3299 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3302 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3300 the command line as scripts to be loaded by embedded instances.
3303 the command line as scripts to be loaded by embedded instances.
3301 Doing so has the potential for an infinite recursion if there are
3304 Doing so has the potential for an infinite recursion if there are
3302 exceptions thrown in the process. This fixes a strange crash
3305 exceptions thrown in the process. This fixes a strange crash
3303 reported by Philippe MULLER <muller-AT-irit.fr>.
3306 reported by Philippe MULLER <muller-AT-irit.fr>.
3304
3307
3305 2004-12-09 Fernando Perez <fperez@colorado.edu>
3308 2004-12-09 Fernando Perez <fperez@colorado.edu>
3306
3309
3307 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3310 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3308 to reflect new names in matplotlib, which now expose the
3311 to reflect new names in matplotlib, which now expose the
3309 matlab-compatible interface via a pylab module instead of the
3312 matlab-compatible interface via a pylab module instead of the
3310 'matlab' name. The new code is backwards compatible, so users of
3313 'matlab' name. The new code is backwards compatible, so users of
3311 all matplotlib versions are OK. Patch by J. Hunter.
3314 all matplotlib versions are OK. Patch by J. Hunter.
3312
3315
3313 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3316 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3314 of __init__ docstrings for instances (class docstrings are already
3317 of __init__ docstrings for instances (class docstrings are already
3315 automatically printed). Instances with customized docstrings
3318 automatically printed). Instances with customized docstrings
3316 (indep. of the class) are also recognized and all 3 separate
3319 (indep. of the class) are also recognized and all 3 separate
3317 docstrings are printed (instance, class, constructor). After some
3320 docstrings are printed (instance, class, constructor). After some
3318 comments/suggestions by J. Hunter.
3321 comments/suggestions by J. Hunter.
3319
3322
3320 2004-12-05 Fernando Perez <fperez@colorado.edu>
3323 2004-12-05 Fernando Perez <fperez@colorado.edu>
3321
3324
3322 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3325 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3323 warnings when tab-completion fails and triggers an exception.
3326 warnings when tab-completion fails and triggers an exception.
3324
3327
3325 2004-12-03 Fernando Perez <fperez@colorado.edu>
3328 2004-12-03 Fernando Perez <fperez@colorado.edu>
3326
3329
3327 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3330 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3328 be triggered when using 'run -p'. An incorrect option flag was
3331 be triggered when using 'run -p'. An incorrect option flag was
3329 being set ('d' instead of 'D').
3332 being set ('d' instead of 'D').
3330 (manpage): fix missing escaped \- sign.
3333 (manpage): fix missing escaped \- sign.
3331
3334
3332 2004-11-30 *** Released version 0.6.5
3335 2004-11-30 *** Released version 0.6.5
3333
3336
3334 2004-11-30 Fernando Perez <fperez@colorado.edu>
3337 2004-11-30 Fernando Perez <fperez@colorado.edu>
3335
3338
3336 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3339 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3337 setting with -d option.
3340 setting with -d option.
3338
3341
3339 * setup.py (docfiles): Fix problem where the doc glob I was using
3342 * setup.py (docfiles): Fix problem where the doc glob I was using
3340 was COMPLETELY BROKEN. It was giving the right files by pure
3343 was COMPLETELY BROKEN. It was giving the right files by pure
3341 accident, but failed once I tried to include ipython.el. Note:
3344 accident, but failed once I tried to include ipython.el. Note:
3342 glob() does NOT allow you to do exclusion on multiple endings!
3345 glob() does NOT allow you to do exclusion on multiple endings!
3343
3346
3344 2004-11-29 Fernando Perez <fperez@colorado.edu>
3347 2004-11-29 Fernando Perez <fperez@colorado.edu>
3345
3348
3346 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3349 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3347 the manpage as the source. Better formatting & consistency.
3350 the manpage as the source. Better formatting & consistency.
3348
3351
3349 * IPython/Magic.py (magic_run): Added new -d option, to run
3352 * IPython/Magic.py (magic_run): Added new -d option, to run
3350 scripts under the control of the python pdb debugger. Note that
3353 scripts under the control of the python pdb debugger. Note that
3351 this required changing the %prun option -d to -D, to avoid a clash
3354 this required changing the %prun option -d to -D, to avoid a clash
3352 (since %run must pass options to %prun, and getopt is too dumb to
3355 (since %run must pass options to %prun, and getopt is too dumb to
3353 handle options with string values with embedded spaces). Thanks
3356 handle options with string values with embedded spaces). Thanks
3354 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3357 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3355 (magic_who_ls): added type matching to %who and %whos, so that one
3358 (magic_who_ls): added type matching to %who and %whos, so that one
3356 can filter their output to only include variables of certain
3359 can filter their output to only include variables of certain
3357 types. Another suggestion by Matthew.
3360 types. Another suggestion by Matthew.
3358 (magic_whos): Added memory summaries in kb and Mb for arrays.
3361 (magic_whos): Added memory summaries in kb and Mb for arrays.
3359 (magic_who): Improve formatting (break lines every 9 vars).
3362 (magic_who): Improve formatting (break lines every 9 vars).
3360
3363
3361 2004-11-28 Fernando Perez <fperez@colorado.edu>
3364 2004-11-28 Fernando Perez <fperez@colorado.edu>
3362
3365
3363 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3366 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3364 cache when empty lines were present.
3367 cache when empty lines were present.
3365
3368
3366 2004-11-24 Fernando Perez <fperez@colorado.edu>
3369 2004-11-24 Fernando Perez <fperez@colorado.edu>
3367
3370
3368 * IPython/usage.py (__doc__): document the re-activated threading
3371 * IPython/usage.py (__doc__): document the re-activated threading
3369 options for WX and GTK.
3372 options for WX and GTK.
3370
3373
3371 2004-11-23 Fernando Perez <fperez@colorado.edu>
3374 2004-11-23 Fernando Perez <fperez@colorado.edu>
3372
3375
3373 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3376 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3374 the -wthread and -gthread options, along with a new -tk one to try
3377 the -wthread and -gthread options, along with a new -tk one to try
3375 and coordinate Tk threading with wx/gtk. The tk support is very
3378 and coordinate Tk threading with wx/gtk. The tk support is very
3376 platform dependent, since it seems to require Tcl and Tk to be
3379 platform dependent, since it seems to require Tcl and Tk to be
3377 built with threads (Fedora1/2 appears NOT to have it, but in
3380 built with threads (Fedora1/2 appears NOT to have it, but in
3378 Prabhu's Debian boxes it works OK). But even with some Tk
3381 Prabhu's Debian boxes it works OK). But even with some Tk
3379 limitations, this is a great improvement.
3382 limitations, this is a great improvement.
3380
3383
3381 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3384 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3382 info in user prompts. Patch by Prabhu.
3385 info in user prompts. Patch by Prabhu.
3383
3386
3384 2004-11-18 Fernando Perez <fperez@colorado.edu>
3387 2004-11-18 Fernando Perez <fperez@colorado.edu>
3385
3388
3386 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3389 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3387 EOFErrors and bail, to avoid infinite loops if a non-terminating
3390 EOFErrors and bail, to avoid infinite loops if a non-terminating
3388 file is fed into ipython. Patch submitted in issue 19 by user,
3391 file is fed into ipython. Patch submitted in issue 19 by user,
3389 many thanks.
3392 many thanks.
3390
3393
3391 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3394 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3392 autoquote/parens in continuation prompts, which can cause lots of
3395 autoquote/parens in continuation prompts, which can cause lots of
3393 problems. Closes roundup issue 20.
3396 problems. Closes roundup issue 20.
3394
3397
3395 2004-11-17 Fernando Perez <fperez@colorado.edu>
3398 2004-11-17 Fernando Perez <fperez@colorado.edu>
3396
3399
3397 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3400 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3398 reported as debian bug #280505. I'm not sure my local changelog
3401 reported as debian bug #280505. I'm not sure my local changelog
3399 entry has the proper debian format (Jack?).
3402 entry has the proper debian format (Jack?).
3400
3403
3401 2004-11-08 *** Released version 0.6.4
3404 2004-11-08 *** Released version 0.6.4
3402
3405
3403 2004-11-08 Fernando Perez <fperez@colorado.edu>
3406 2004-11-08 Fernando Perez <fperez@colorado.edu>
3404
3407
3405 * IPython/iplib.py (init_readline): Fix exit message for Windows
3408 * IPython/iplib.py (init_readline): Fix exit message for Windows
3406 when readline is active. Thanks to a report by Eric Jones
3409 when readline is active. Thanks to a report by Eric Jones
3407 <eric-AT-enthought.com>.
3410 <eric-AT-enthought.com>.
3408
3411
3409 2004-11-07 Fernando Perez <fperez@colorado.edu>
3412 2004-11-07 Fernando Perez <fperez@colorado.edu>
3410
3413
3411 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3414 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3412 sometimes seen by win2k/cygwin users.
3415 sometimes seen by win2k/cygwin users.
3413
3416
3414 2004-11-06 Fernando Perez <fperez@colorado.edu>
3417 2004-11-06 Fernando Perez <fperez@colorado.edu>
3415
3418
3416 * IPython/iplib.py (interact): Change the handling of %Exit from
3419 * IPython/iplib.py (interact): Change the handling of %Exit from
3417 trying to propagate a SystemExit to an internal ipython flag.
3420 trying to propagate a SystemExit to an internal ipython flag.
3418 This is less elegant than using Python's exception mechanism, but
3421 This is less elegant than using Python's exception mechanism, but
3419 I can't get that to work reliably with threads, so under -pylab
3422 I can't get that to work reliably with threads, so under -pylab
3420 %Exit was hanging IPython. Cross-thread exception handling is
3423 %Exit was hanging IPython. Cross-thread exception handling is
3421 really a bitch. Thaks to a bug report by Stephen Walton
3424 really a bitch. Thaks to a bug report by Stephen Walton
3422 <stephen.walton-AT-csun.edu>.
3425 <stephen.walton-AT-csun.edu>.
3423
3426
3424 2004-11-04 Fernando Perez <fperez@colorado.edu>
3427 2004-11-04 Fernando Perez <fperez@colorado.edu>
3425
3428
3426 * IPython/iplib.py (raw_input_original): store a pointer to the
3429 * IPython/iplib.py (raw_input_original): store a pointer to the
3427 true raw_input to harden against code which can modify it
3430 true raw_input to harden against code which can modify it
3428 (wx.py.PyShell does this and would otherwise crash ipython).
3431 (wx.py.PyShell does this and would otherwise crash ipython).
3429 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3432 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3430
3433
3431 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3434 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3432 Ctrl-C problem, which does not mess up the input line.
3435 Ctrl-C problem, which does not mess up the input line.
3433
3436
3434 2004-11-03 Fernando Perez <fperez@colorado.edu>
3437 2004-11-03 Fernando Perez <fperez@colorado.edu>
3435
3438
3436 * IPython/Release.py: Changed licensing to BSD, in all files.
3439 * IPython/Release.py: Changed licensing to BSD, in all files.
3437 (name): lowercase name for tarball/RPM release.
3440 (name): lowercase name for tarball/RPM release.
3438
3441
3439 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3442 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3440 use throughout ipython.
3443 use throughout ipython.
3441
3444
3442 * IPython/Magic.py (Magic._ofind): Switch to using the new
3445 * IPython/Magic.py (Magic._ofind): Switch to using the new
3443 OInspect.getdoc() function.
3446 OInspect.getdoc() function.
3444
3447
3445 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3448 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3446 of the line currently being canceled via Ctrl-C. It's extremely
3449 of the line currently being canceled via Ctrl-C. It's extremely
3447 ugly, but I don't know how to do it better (the problem is one of
3450 ugly, but I don't know how to do it better (the problem is one of
3448 handling cross-thread exceptions).
3451 handling cross-thread exceptions).
3449
3452
3450 2004-10-28 Fernando Perez <fperez@colorado.edu>
3453 2004-10-28 Fernando Perez <fperez@colorado.edu>
3451
3454
3452 * IPython/Shell.py (signal_handler): add signal handlers to trap
3455 * IPython/Shell.py (signal_handler): add signal handlers to trap
3453 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3456 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3454 report by Francesc Alted.
3457 report by Francesc Alted.
3455
3458
3456 2004-10-21 Fernando Perez <fperez@colorado.edu>
3459 2004-10-21 Fernando Perez <fperez@colorado.edu>
3457
3460
3458 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3461 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3459 to % for pysh syntax extensions.
3462 to % for pysh syntax extensions.
3460
3463
3461 2004-10-09 Fernando Perez <fperez@colorado.edu>
3464 2004-10-09 Fernando Perez <fperez@colorado.edu>
3462
3465
3463 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3466 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3464 arrays to print a more useful summary, without calling str(arr).
3467 arrays to print a more useful summary, without calling str(arr).
3465 This avoids the problem of extremely lengthy computations which
3468 This avoids the problem of extremely lengthy computations which
3466 occur if arr is large, and appear to the user as a system lockup
3469 occur if arr is large, and appear to the user as a system lockup
3467 with 100% cpu activity. After a suggestion by Kristian Sandberg
3470 with 100% cpu activity. After a suggestion by Kristian Sandberg
3468 <Kristian.Sandberg@colorado.edu>.
3471 <Kristian.Sandberg@colorado.edu>.
3469 (Magic.__init__): fix bug in global magic escapes not being
3472 (Magic.__init__): fix bug in global magic escapes not being
3470 correctly set.
3473 correctly set.
3471
3474
3472 2004-10-08 Fernando Perez <fperez@colorado.edu>
3475 2004-10-08 Fernando Perez <fperez@colorado.edu>
3473
3476
3474 * IPython/Magic.py (__license__): change to absolute imports of
3477 * IPython/Magic.py (__license__): change to absolute imports of
3475 ipython's own internal packages, to start adapting to the absolute
3478 ipython's own internal packages, to start adapting to the absolute
3476 import requirement of PEP-328.
3479 import requirement of PEP-328.
3477
3480
3478 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3481 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3479 files, and standardize author/license marks through the Release
3482 files, and standardize author/license marks through the Release
3480 module instead of having per/file stuff (except for files with
3483 module instead of having per/file stuff (except for files with
3481 particular licenses, like the MIT/PSF-licensed codes).
3484 particular licenses, like the MIT/PSF-licensed codes).
3482
3485
3483 * IPython/Debugger.py: remove dead code for python 2.1
3486 * IPython/Debugger.py: remove dead code for python 2.1
3484
3487
3485 2004-10-04 Fernando Perez <fperez@colorado.edu>
3488 2004-10-04 Fernando Perez <fperez@colorado.edu>
3486
3489
3487 * IPython/iplib.py (ipmagic): New function for accessing magics
3490 * IPython/iplib.py (ipmagic): New function for accessing magics
3488 via a normal python function call.
3491 via a normal python function call.
3489
3492
3490 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3493 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3491 from '@' to '%', to accomodate the new @decorator syntax of python
3494 from '@' to '%', to accomodate the new @decorator syntax of python
3492 2.4.
3495 2.4.
3493
3496
3494 2004-09-29 Fernando Perez <fperez@colorado.edu>
3497 2004-09-29 Fernando Perez <fperez@colorado.edu>
3495
3498
3496 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3499 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3497 matplotlib.use to prevent running scripts which try to switch
3500 matplotlib.use to prevent running scripts which try to switch
3498 interactive backends from within ipython. This will just crash
3501 interactive backends from within ipython. This will just crash
3499 the python interpreter, so we can't allow it (but a detailed error
3502 the python interpreter, so we can't allow it (but a detailed error
3500 is given to the user).
3503 is given to the user).
3501
3504
3502 2004-09-28 Fernando Perez <fperez@colorado.edu>
3505 2004-09-28 Fernando Perez <fperez@colorado.edu>
3503
3506
3504 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3507 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3505 matplotlib-related fixes so that using @run with non-matplotlib
3508 matplotlib-related fixes so that using @run with non-matplotlib
3506 scripts doesn't pop up spurious plot windows. This requires
3509 scripts doesn't pop up spurious plot windows. This requires
3507 matplotlib >= 0.63, where I had to make some changes as well.
3510 matplotlib >= 0.63, where I had to make some changes as well.
3508
3511
3509 * IPython/ipmaker.py (make_IPython): update version requirement to
3512 * IPython/ipmaker.py (make_IPython): update version requirement to
3510 python 2.2.
3513 python 2.2.
3511
3514
3512 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3515 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3513 banner arg for embedded customization.
3516 banner arg for embedded customization.
3514
3517
3515 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3518 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3516 explicit uses of __IP as the IPython's instance name. Now things
3519 explicit uses of __IP as the IPython's instance name. Now things
3517 are properly handled via the shell.name value. The actual code
3520 are properly handled via the shell.name value. The actual code
3518 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3521 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3519 is much better than before. I'll clean things completely when the
3522 is much better than before. I'll clean things completely when the
3520 magic stuff gets a real overhaul.
3523 magic stuff gets a real overhaul.
3521
3524
3522 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3525 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3523 minor changes to debian dir.
3526 minor changes to debian dir.
3524
3527
3525 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3528 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3526 pointer to the shell itself in the interactive namespace even when
3529 pointer to the shell itself in the interactive namespace even when
3527 a user-supplied dict is provided. This is needed for embedding
3530 a user-supplied dict is provided. This is needed for embedding
3528 purposes (found by tests with Michel Sanner).
3531 purposes (found by tests with Michel Sanner).
3529
3532
3530 2004-09-27 Fernando Perez <fperez@colorado.edu>
3533 2004-09-27 Fernando Perez <fperez@colorado.edu>
3531
3534
3532 * IPython/UserConfig/ipythonrc: remove []{} from
3535 * IPython/UserConfig/ipythonrc: remove []{} from
3533 readline_remove_delims, so that things like [modname.<TAB> do
3536 readline_remove_delims, so that things like [modname.<TAB> do
3534 proper completion. This disables [].TAB, but that's a less common
3537 proper completion. This disables [].TAB, but that's a less common
3535 case than module names in list comprehensions, for example.
3538 case than module names in list comprehensions, for example.
3536 Thanks to a report by Andrea Riciputi.
3539 Thanks to a report by Andrea Riciputi.
3537
3540
3538 2004-09-09 Fernando Perez <fperez@colorado.edu>
3541 2004-09-09 Fernando Perez <fperez@colorado.edu>
3539
3542
3540 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3543 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3541 blocking problems in win32 and osx. Fix by John.
3544 blocking problems in win32 and osx. Fix by John.
3542
3545
3543 2004-09-08 Fernando Perez <fperez@colorado.edu>
3546 2004-09-08 Fernando Perez <fperez@colorado.edu>
3544
3547
3545 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3548 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3546 for Win32 and OSX. Fix by John Hunter.
3549 for Win32 and OSX. Fix by John Hunter.
3547
3550
3548 2004-08-30 *** Released version 0.6.3
3551 2004-08-30 *** Released version 0.6.3
3549
3552
3550 2004-08-30 Fernando Perez <fperez@colorado.edu>
3553 2004-08-30 Fernando Perez <fperez@colorado.edu>
3551
3554
3552 * setup.py (isfile): Add manpages to list of dependent files to be
3555 * setup.py (isfile): Add manpages to list of dependent files to be
3553 updated.
3556 updated.
3554
3557
3555 2004-08-27 Fernando Perez <fperez@colorado.edu>
3558 2004-08-27 Fernando Perez <fperez@colorado.edu>
3556
3559
3557 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3560 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3558 for now. They don't really work with standalone WX/GTK code
3561 for now. They don't really work with standalone WX/GTK code
3559 (though matplotlib IS working fine with both of those backends).
3562 (though matplotlib IS working fine with both of those backends).
3560 This will neeed much more testing. I disabled most things with
3563 This will neeed much more testing. I disabled most things with
3561 comments, so turning it back on later should be pretty easy.
3564 comments, so turning it back on later should be pretty easy.
3562
3565
3563 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3566 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3564 autocalling of expressions like r'foo', by modifying the line
3567 autocalling of expressions like r'foo', by modifying the line
3565 split regexp. Closes
3568 split regexp. Closes
3566 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3569 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3567 Riley <ipythonbugs-AT-sabi.net>.
3570 Riley <ipythonbugs-AT-sabi.net>.
3568 (InteractiveShell.mainloop): honor --nobanner with banner
3571 (InteractiveShell.mainloop): honor --nobanner with banner
3569 extensions.
3572 extensions.
3570
3573
3571 * IPython/Shell.py: Significant refactoring of all classes, so
3574 * IPython/Shell.py: Significant refactoring of all classes, so
3572 that we can really support ALL matplotlib backends and threading
3575 that we can really support ALL matplotlib backends and threading
3573 models (John spotted a bug with Tk which required this). Now we
3576 models (John spotted a bug with Tk which required this). Now we
3574 should support single-threaded, WX-threads and GTK-threads, both
3577 should support single-threaded, WX-threads and GTK-threads, both
3575 for generic code and for matplotlib.
3578 for generic code and for matplotlib.
3576
3579
3577 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3580 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3578 -pylab, to simplify things for users. Will also remove the pylab
3581 -pylab, to simplify things for users. Will also remove the pylab
3579 profile, since now all of matplotlib configuration is directly
3582 profile, since now all of matplotlib configuration is directly
3580 handled here. This also reduces startup time.
3583 handled here. This also reduces startup time.
3581
3584
3582 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3585 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3583 shell wasn't being correctly called. Also in IPShellWX.
3586 shell wasn't being correctly called. Also in IPShellWX.
3584
3587
3585 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3588 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3586 fine-tune banner.
3589 fine-tune banner.
3587
3590
3588 * IPython/numutils.py (spike): Deprecate these spike functions,
3591 * IPython/numutils.py (spike): Deprecate these spike functions,
3589 delete (long deprecated) gnuplot_exec handler.
3592 delete (long deprecated) gnuplot_exec handler.
3590
3593
3591 2004-08-26 Fernando Perez <fperez@colorado.edu>
3594 2004-08-26 Fernando Perez <fperez@colorado.edu>
3592
3595
3593 * ipython.1: Update for threading options, plus some others which
3596 * ipython.1: Update for threading options, plus some others which
3594 were missing.
3597 were missing.
3595
3598
3596 * IPython/ipmaker.py (__call__): Added -wthread option for
3599 * IPython/ipmaker.py (__call__): Added -wthread option for
3597 wxpython thread handling. Make sure threading options are only
3600 wxpython thread handling. Make sure threading options are only
3598 valid at the command line.
3601 valid at the command line.
3599
3602
3600 * scripts/ipython: moved shell selection into a factory function
3603 * scripts/ipython: moved shell selection into a factory function
3601 in Shell.py, to keep the starter script to a minimum.
3604 in Shell.py, to keep the starter script to a minimum.
3602
3605
3603 2004-08-25 Fernando Perez <fperez@colorado.edu>
3606 2004-08-25 Fernando Perez <fperez@colorado.edu>
3604
3607
3605 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3608 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3606 John. Along with some recent changes he made to matplotlib, the
3609 John. Along with some recent changes he made to matplotlib, the
3607 next versions of both systems should work very well together.
3610 next versions of both systems should work very well together.
3608
3611
3609 2004-08-24 Fernando Perez <fperez@colorado.edu>
3612 2004-08-24 Fernando Perez <fperez@colorado.edu>
3610
3613
3611 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3614 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3612 tried to switch the profiling to using hotshot, but I'm getting
3615 tried to switch the profiling to using hotshot, but I'm getting
3613 strange errors from prof.runctx() there. I may be misreading the
3616 strange errors from prof.runctx() there. I may be misreading the
3614 docs, but it looks weird. For now the profiling code will
3617 docs, but it looks weird. For now the profiling code will
3615 continue to use the standard profiler.
3618 continue to use the standard profiler.
3616
3619
3617 2004-08-23 Fernando Perez <fperez@colorado.edu>
3620 2004-08-23 Fernando Perez <fperez@colorado.edu>
3618
3621
3619 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3622 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3620 threaded shell, by John Hunter. It's not quite ready yet, but
3623 threaded shell, by John Hunter. It's not quite ready yet, but
3621 close.
3624 close.
3622
3625
3623 2004-08-22 Fernando Perez <fperez@colorado.edu>
3626 2004-08-22 Fernando Perez <fperez@colorado.edu>
3624
3627
3625 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3628 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3626 in Magic and ultraTB.
3629 in Magic and ultraTB.
3627
3630
3628 * ipython.1: document threading options in manpage.
3631 * ipython.1: document threading options in manpage.
3629
3632
3630 * scripts/ipython: Changed name of -thread option to -gthread,
3633 * scripts/ipython: Changed name of -thread option to -gthread,
3631 since this is GTK specific. I want to leave the door open for a
3634 since this is GTK specific. I want to leave the door open for a
3632 -wthread option for WX, which will most likely be necessary. This
3635 -wthread option for WX, which will most likely be necessary. This
3633 change affects usage and ipmaker as well.
3636 change affects usage and ipmaker as well.
3634
3637
3635 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3638 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3636 handle the matplotlib shell issues. Code by John Hunter
3639 handle the matplotlib shell issues. Code by John Hunter
3637 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3640 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3638 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3641 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3639 broken (and disabled for end users) for now, but it puts the
3642 broken (and disabled for end users) for now, but it puts the
3640 infrastructure in place.
3643 infrastructure in place.
3641
3644
3642 2004-08-21 Fernando Perez <fperez@colorado.edu>
3645 2004-08-21 Fernando Perez <fperez@colorado.edu>
3643
3646
3644 * ipythonrc-pylab: Add matplotlib support.
3647 * ipythonrc-pylab: Add matplotlib support.
3645
3648
3646 * matplotlib_config.py: new files for matplotlib support, part of
3649 * matplotlib_config.py: new files for matplotlib support, part of
3647 the pylab profile.
3650 the pylab profile.
3648
3651
3649 * IPython/usage.py (__doc__): documented the threading options.
3652 * IPython/usage.py (__doc__): documented the threading options.
3650
3653
3651 2004-08-20 Fernando Perez <fperez@colorado.edu>
3654 2004-08-20 Fernando Perez <fperez@colorado.edu>
3652
3655
3653 * ipython: Modified the main calling routine to handle the -thread
3656 * ipython: Modified the main calling routine to handle the -thread
3654 and -mpthread options. This needs to be done as a top-level hack,
3657 and -mpthread options. This needs to be done as a top-level hack,
3655 because it determines which class to instantiate for IPython
3658 because it determines which class to instantiate for IPython
3656 itself.
3659 itself.
3657
3660
3658 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3661 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3659 classes to support multithreaded GTK operation without blocking,
3662 classes to support multithreaded GTK operation without blocking,
3660 and matplotlib with all backends. This is a lot of still very
3663 and matplotlib with all backends. This is a lot of still very
3661 experimental code, and threads are tricky. So it may still have a
3664 experimental code, and threads are tricky. So it may still have a
3662 few rough edges... This code owes a lot to
3665 few rough edges... This code owes a lot to
3663 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3666 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3664 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3667 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3665 to John Hunter for all the matplotlib work.
3668 to John Hunter for all the matplotlib work.
3666
3669
3667 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3670 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3668 options for gtk thread and matplotlib support.
3671 options for gtk thread and matplotlib support.
3669
3672
3670 2004-08-16 Fernando Perez <fperez@colorado.edu>
3673 2004-08-16 Fernando Perez <fperez@colorado.edu>
3671
3674
3672 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3675 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3673 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3676 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3674 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3677 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3675
3678
3676 2004-08-11 Fernando Perez <fperez@colorado.edu>
3679 2004-08-11 Fernando Perez <fperez@colorado.edu>
3677
3680
3678 * setup.py (isfile): Fix build so documentation gets updated for
3681 * setup.py (isfile): Fix build so documentation gets updated for
3679 rpms (it was only done for .tgz builds).
3682 rpms (it was only done for .tgz builds).
3680
3683
3681 2004-08-10 Fernando Perez <fperez@colorado.edu>
3684 2004-08-10 Fernando Perez <fperez@colorado.edu>
3682
3685
3683 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3686 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3684
3687
3685 * iplib.py : Silence syntax error exceptions in tab-completion.
3688 * iplib.py : Silence syntax error exceptions in tab-completion.
3686
3689
3687 2004-08-05 Fernando Perez <fperez@colorado.edu>
3690 2004-08-05 Fernando Perez <fperez@colorado.edu>
3688
3691
3689 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3692 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3690 'color off' mark for continuation prompts. This was causing long
3693 'color off' mark for continuation prompts. This was causing long
3691 continuation lines to mis-wrap.
3694 continuation lines to mis-wrap.
3692
3695
3693 2004-08-01 Fernando Perez <fperez@colorado.edu>
3696 2004-08-01 Fernando Perez <fperez@colorado.edu>
3694
3697
3695 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3698 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3696 for building ipython to be a parameter. All this is necessary
3699 for building ipython to be a parameter. All this is necessary
3697 right now to have a multithreaded version, but this insane
3700 right now to have a multithreaded version, but this insane
3698 non-design will be cleaned up soon. For now, it's a hack that
3701 non-design will be cleaned up soon. For now, it's a hack that
3699 works.
3702 works.
3700
3703
3701 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3704 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3702 args in various places. No bugs so far, but it's a dangerous
3705 args in various places. No bugs so far, but it's a dangerous
3703 practice.
3706 practice.
3704
3707
3705 2004-07-31 Fernando Perez <fperez@colorado.edu>
3708 2004-07-31 Fernando Perez <fperez@colorado.edu>
3706
3709
3707 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3710 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3708 fix completion of files with dots in their names under most
3711 fix completion of files with dots in their names under most
3709 profiles (pysh was OK because the completion order is different).
3712 profiles (pysh was OK because the completion order is different).
3710
3713
3711 2004-07-27 Fernando Perez <fperez@colorado.edu>
3714 2004-07-27 Fernando Perez <fperez@colorado.edu>
3712
3715
3713 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3716 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3714 keywords manually, b/c the one in keyword.py was removed in python
3717 keywords manually, b/c the one in keyword.py was removed in python
3715 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3718 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3716 This is NOT a bug under python 2.3 and earlier.
3719 This is NOT a bug under python 2.3 and earlier.
3717
3720
3718 2004-07-26 Fernando Perez <fperez@colorado.edu>
3721 2004-07-26 Fernando Perez <fperez@colorado.edu>
3719
3722
3720 * IPython/ultraTB.py (VerboseTB.text): Add another
3723 * IPython/ultraTB.py (VerboseTB.text): Add another
3721 linecache.checkcache() call to try to prevent inspect.py from
3724 linecache.checkcache() call to try to prevent inspect.py from
3722 crashing under python 2.3. I think this fixes
3725 crashing under python 2.3. I think this fixes
3723 http://www.scipy.net/roundup/ipython/issue17.
3726 http://www.scipy.net/roundup/ipython/issue17.
3724
3727
3725 2004-07-26 *** Released version 0.6.2
3728 2004-07-26 *** Released version 0.6.2
3726
3729
3727 2004-07-26 Fernando Perez <fperez@colorado.edu>
3730 2004-07-26 Fernando Perez <fperez@colorado.edu>
3728
3731
3729 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3732 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3730 fail for any number.
3733 fail for any number.
3731 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3734 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3732 empty bookmarks.
3735 empty bookmarks.
3733
3736
3734 2004-07-26 *** Released version 0.6.1
3737 2004-07-26 *** Released version 0.6.1
3735
3738
3736 2004-07-26 Fernando Perez <fperez@colorado.edu>
3739 2004-07-26 Fernando Perez <fperez@colorado.edu>
3737
3740
3738 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3741 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3739
3742
3740 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3743 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3741 escaping '()[]{}' in filenames.
3744 escaping '()[]{}' in filenames.
3742
3745
3743 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3746 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3744 Python 2.2 users who lack a proper shlex.split.
3747 Python 2.2 users who lack a proper shlex.split.
3745
3748
3746 2004-07-19 Fernando Perez <fperez@colorado.edu>
3749 2004-07-19 Fernando Perez <fperez@colorado.edu>
3747
3750
3748 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3751 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3749 for reading readline's init file. I follow the normal chain:
3752 for reading readline's init file. I follow the normal chain:
3750 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3753 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3751 report by Mike Heeter. This closes
3754 report by Mike Heeter. This closes
3752 http://www.scipy.net/roundup/ipython/issue16.
3755 http://www.scipy.net/roundup/ipython/issue16.
3753
3756
3754 2004-07-18 Fernando Perez <fperez@colorado.edu>
3757 2004-07-18 Fernando Perez <fperez@colorado.edu>
3755
3758
3756 * IPython/iplib.py (__init__): Add better handling of '\' under
3759 * IPython/iplib.py (__init__): Add better handling of '\' under
3757 Win32 for filenames. After a patch by Ville.
3760 Win32 for filenames. After a patch by Ville.
3758
3761
3759 2004-07-17 Fernando Perez <fperez@colorado.edu>
3762 2004-07-17 Fernando Perez <fperez@colorado.edu>
3760
3763
3761 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3764 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3762 autocalling would be triggered for 'foo is bar' if foo is
3765 autocalling would be triggered for 'foo is bar' if foo is
3763 callable. I also cleaned up the autocall detection code to use a
3766 callable. I also cleaned up the autocall detection code to use a
3764 regexp, which is faster. Bug reported by Alexander Schmolck.
3767 regexp, which is faster. Bug reported by Alexander Schmolck.
3765
3768
3766 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3769 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3767 '?' in them would confuse the help system. Reported by Alex
3770 '?' in them would confuse the help system. Reported by Alex
3768 Schmolck.
3771 Schmolck.
3769
3772
3770 2004-07-16 Fernando Perez <fperez@colorado.edu>
3773 2004-07-16 Fernando Perez <fperez@colorado.edu>
3771
3774
3772 * IPython/GnuplotInteractive.py (__all__): added plot2.
3775 * IPython/GnuplotInteractive.py (__all__): added plot2.
3773
3776
3774 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3777 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3775 plotting dictionaries, lists or tuples of 1d arrays.
3778 plotting dictionaries, lists or tuples of 1d arrays.
3776
3779
3777 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3780 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3778 optimizations.
3781 optimizations.
3779
3782
3780 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3783 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3781 the information which was there from Janko's original IPP code:
3784 the information which was there from Janko's original IPP code:
3782
3785
3783 03.05.99 20:53 porto.ifm.uni-kiel.de
3786 03.05.99 20:53 porto.ifm.uni-kiel.de
3784 --Started changelog.
3787 --Started changelog.
3785 --make clear do what it say it does
3788 --make clear do what it say it does
3786 --added pretty output of lines from inputcache
3789 --added pretty output of lines from inputcache
3787 --Made Logger a mixin class, simplifies handling of switches
3790 --Made Logger a mixin class, simplifies handling of switches
3788 --Added own completer class. .string<TAB> expands to last history
3791 --Added own completer class. .string<TAB> expands to last history
3789 line which starts with string. The new expansion is also present
3792 line which starts with string. The new expansion is also present
3790 with Ctrl-r from the readline library. But this shows, who this
3793 with Ctrl-r from the readline library. But this shows, who this
3791 can be done for other cases.
3794 can be done for other cases.
3792 --Added convention that all shell functions should accept a
3795 --Added convention that all shell functions should accept a
3793 parameter_string This opens the door for different behaviour for
3796 parameter_string This opens the door for different behaviour for
3794 each function. @cd is a good example of this.
3797 each function. @cd is a good example of this.
3795
3798
3796 04.05.99 12:12 porto.ifm.uni-kiel.de
3799 04.05.99 12:12 porto.ifm.uni-kiel.de
3797 --added logfile rotation
3800 --added logfile rotation
3798 --added new mainloop method which freezes first the namespace
3801 --added new mainloop method which freezes first the namespace
3799
3802
3800 07.05.99 21:24 porto.ifm.uni-kiel.de
3803 07.05.99 21:24 porto.ifm.uni-kiel.de
3801 --added the docreader classes. Now there is a help system.
3804 --added the docreader classes. Now there is a help system.
3802 -This is only a first try. Currently it's not easy to put new
3805 -This is only a first try. Currently it's not easy to put new
3803 stuff in the indices. But this is the way to go. Info would be
3806 stuff in the indices. But this is the way to go. Info would be
3804 better, but HTML is every where and not everybody has an info
3807 better, but HTML is every where and not everybody has an info
3805 system installed and it's not so easy to change html-docs to info.
3808 system installed and it's not so easy to change html-docs to info.
3806 --added global logfile option
3809 --added global logfile option
3807 --there is now a hook for object inspection method pinfo needs to
3810 --there is now a hook for object inspection method pinfo needs to
3808 be provided for this. Can be reached by two '??'.
3811 be provided for this. Can be reached by two '??'.
3809
3812
3810 08.05.99 20:51 porto.ifm.uni-kiel.de
3813 08.05.99 20:51 porto.ifm.uni-kiel.de
3811 --added a README
3814 --added a README
3812 --bug in rc file. Something has changed so functions in the rc
3815 --bug in rc file. Something has changed so functions in the rc
3813 file need to reference the shell and not self. Not clear if it's a
3816 file need to reference the shell and not self. Not clear if it's a
3814 bug or feature.
3817 bug or feature.
3815 --changed rc file for new behavior
3818 --changed rc file for new behavior
3816
3819
3817 2004-07-15 Fernando Perez <fperez@colorado.edu>
3820 2004-07-15 Fernando Perez <fperez@colorado.edu>
3818
3821
3819 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3822 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3820 cache was falling out of sync in bizarre manners when multi-line
3823 cache was falling out of sync in bizarre manners when multi-line
3821 input was present. Minor optimizations and cleanup.
3824 input was present. Minor optimizations and cleanup.
3822
3825
3823 (Logger): Remove old Changelog info for cleanup. This is the
3826 (Logger): Remove old Changelog info for cleanup. This is the
3824 information which was there from Janko's original code:
3827 information which was there from Janko's original code:
3825
3828
3826 Changes to Logger: - made the default log filename a parameter
3829 Changes to Logger: - made the default log filename a parameter
3827
3830
3828 - put a check for lines beginning with !@? in log(). Needed
3831 - put a check for lines beginning with !@? in log(). Needed
3829 (even if the handlers properly log their lines) for mid-session
3832 (even if the handlers properly log their lines) for mid-session
3830 logging activation to work properly. Without this, lines logged
3833 logging activation to work properly. Without this, lines logged
3831 in mid session, which get read from the cache, would end up
3834 in mid session, which get read from the cache, would end up
3832 'bare' (with !@? in the open) in the log. Now they are caught
3835 'bare' (with !@? in the open) in the log. Now they are caught
3833 and prepended with a #.
3836 and prepended with a #.
3834
3837
3835 * IPython/iplib.py (InteractiveShell.init_readline): added check
3838 * IPython/iplib.py (InteractiveShell.init_readline): added check
3836 in case MagicCompleter fails to be defined, so we don't crash.
3839 in case MagicCompleter fails to be defined, so we don't crash.
3837
3840
3838 2004-07-13 Fernando Perez <fperez@colorado.edu>
3841 2004-07-13 Fernando Perez <fperez@colorado.edu>
3839
3842
3840 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3843 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3841 of EPS if the requested filename ends in '.eps'.
3844 of EPS if the requested filename ends in '.eps'.
3842
3845
3843 2004-07-04 Fernando Perez <fperez@colorado.edu>
3846 2004-07-04 Fernando Perez <fperez@colorado.edu>
3844
3847
3845 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3848 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3846 escaping of quotes when calling the shell.
3849 escaping of quotes when calling the shell.
3847
3850
3848 2004-07-02 Fernando Perez <fperez@colorado.edu>
3851 2004-07-02 Fernando Perez <fperez@colorado.edu>
3849
3852
3850 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3853 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3851 gettext not working because we were clobbering '_'. Fixes
3854 gettext not working because we were clobbering '_'. Fixes
3852 http://www.scipy.net/roundup/ipython/issue6.
3855 http://www.scipy.net/roundup/ipython/issue6.
3853
3856
3854 2004-07-01 Fernando Perez <fperez@colorado.edu>
3857 2004-07-01 Fernando Perez <fperez@colorado.edu>
3855
3858
3856 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3859 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3857 into @cd. Patch by Ville.
3860 into @cd. Patch by Ville.
3858
3861
3859 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3862 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3860 new function to store things after ipmaker runs. Patch by Ville.
3863 new function to store things after ipmaker runs. Patch by Ville.
3861 Eventually this will go away once ipmaker is removed and the class
3864 Eventually this will go away once ipmaker is removed and the class
3862 gets cleaned up, but for now it's ok. Key functionality here is
3865 gets cleaned up, but for now it's ok. Key functionality here is
3863 the addition of the persistent storage mechanism, a dict for
3866 the addition of the persistent storage mechanism, a dict for
3864 keeping data across sessions (for now just bookmarks, but more can
3867 keeping data across sessions (for now just bookmarks, but more can
3865 be implemented later).
3868 be implemented later).
3866
3869
3867 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3870 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3868 persistent across sections. Patch by Ville, I modified it
3871 persistent across sections. Patch by Ville, I modified it
3869 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3872 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3870 added a '-l' option to list all bookmarks.
3873 added a '-l' option to list all bookmarks.
3871
3874
3872 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3875 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3873 center for cleanup. Registered with atexit.register(). I moved
3876 center for cleanup. Registered with atexit.register(). I moved
3874 here the old exit_cleanup(). After a patch by Ville.
3877 here the old exit_cleanup(). After a patch by Ville.
3875
3878
3876 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3879 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3877 characters in the hacked shlex_split for python 2.2.
3880 characters in the hacked shlex_split for python 2.2.
3878
3881
3879 * IPython/iplib.py (file_matches): more fixes to filenames with
3882 * IPython/iplib.py (file_matches): more fixes to filenames with
3880 whitespace in them. It's not perfect, but limitations in python's
3883 whitespace in them. It's not perfect, but limitations in python's
3881 readline make it impossible to go further.
3884 readline make it impossible to go further.
3882
3885
3883 2004-06-29 Fernando Perez <fperez@colorado.edu>
3886 2004-06-29 Fernando Perez <fperez@colorado.edu>
3884
3887
3885 * IPython/iplib.py (file_matches): escape whitespace correctly in
3888 * IPython/iplib.py (file_matches): escape whitespace correctly in
3886 filename completions. Bug reported by Ville.
3889 filename completions. Bug reported by Ville.
3887
3890
3888 2004-06-28 Fernando Perez <fperez@colorado.edu>
3891 2004-06-28 Fernando Perez <fperez@colorado.edu>
3889
3892
3890 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3893 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3891 the history file will be called 'history-PROFNAME' (or just
3894 the history file will be called 'history-PROFNAME' (or just
3892 'history' if no profile is loaded). I was getting annoyed at
3895 'history' if no profile is loaded). I was getting annoyed at
3893 getting my Numerical work history clobbered by pysh sessions.
3896 getting my Numerical work history clobbered by pysh sessions.
3894
3897
3895 * IPython/iplib.py (InteractiveShell.__init__): Internal
3898 * IPython/iplib.py (InteractiveShell.__init__): Internal
3896 getoutputerror() function so that we can honor the system_verbose
3899 getoutputerror() function so that we can honor the system_verbose
3897 flag for _all_ system calls. I also added escaping of #
3900 flag for _all_ system calls. I also added escaping of #
3898 characters here to avoid confusing Itpl.
3901 characters here to avoid confusing Itpl.
3899
3902
3900 * IPython/Magic.py (shlex_split): removed call to shell in
3903 * IPython/Magic.py (shlex_split): removed call to shell in
3901 parse_options and replaced it with shlex.split(). The annoying
3904 parse_options and replaced it with shlex.split(). The annoying
3902 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3905 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3903 to backport it from 2.3, with several frail hacks (the shlex
3906 to backport it from 2.3, with several frail hacks (the shlex
3904 module is rather limited in 2.2). Thanks to a suggestion by Ville
3907 module is rather limited in 2.2). Thanks to a suggestion by Ville
3905 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3908 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3906 problem.
3909 problem.
3907
3910
3908 (Magic.magic_system_verbose): new toggle to print the actual
3911 (Magic.magic_system_verbose): new toggle to print the actual
3909 system calls made by ipython. Mainly for debugging purposes.
3912 system calls made by ipython. Mainly for debugging purposes.
3910
3913
3911 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3914 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3912 doesn't support persistence. Reported (and fix suggested) by
3915 doesn't support persistence. Reported (and fix suggested) by
3913 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3916 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3914
3917
3915 2004-06-26 Fernando Perez <fperez@colorado.edu>
3918 2004-06-26 Fernando Perez <fperez@colorado.edu>
3916
3919
3917 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3920 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3918 continue prompts.
3921 continue prompts.
3919
3922
3920 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3923 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3921 function (basically a big docstring) and a few more things here to
3924 function (basically a big docstring) and a few more things here to
3922 speedup startup. pysh.py is now very lightweight. We want because
3925 speedup startup. pysh.py is now very lightweight. We want because
3923 it gets execfile'd, while InterpreterExec gets imported, so
3926 it gets execfile'd, while InterpreterExec gets imported, so
3924 byte-compilation saves time.
3927 byte-compilation saves time.
3925
3928
3926 2004-06-25 Fernando Perez <fperez@colorado.edu>
3929 2004-06-25 Fernando Perez <fperez@colorado.edu>
3927
3930
3928 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3931 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3929 -NUM', which was recently broken.
3932 -NUM', which was recently broken.
3930
3933
3931 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3934 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3932 in multi-line input (but not !!, which doesn't make sense there).
3935 in multi-line input (but not !!, which doesn't make sense there).
3933
3936
3934 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3937 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3935 It's just too useful, and people can turn it off in the less
3938 It's just too useful, and people can turn it off in the less
3936 common cases where it's a problem.
3939 common cases where it's a problem.
3937
3940
3938 2004-06-24 Fernando Perez <fperez@colorado.edu>
3941 2004-06-24 Fernando Perez <fperez@colorado.edu>
3939
3942
3940 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3943 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3941 special syntaxes (like alias calling) is now allied in multi-line
3944 special syntaxes (like alias calling) is now allied in multi-line
3942 input. This is still _very_ experimental, but it's necessary for
3945 input. This is still _very_ experimental, but it's necessary for
3943 efficient shell usage combining python looping syntax with system
3946 efficient shell usage combining python looping syntax with system
3944 calls. For now it's restricted to aliases, I don't think it
3947 calls. For now it's restricted to aliases, I don't think it
3945 really even makes sense to have this for magics.
3948 really even makes sense to have this for magics.
3946
3949
3947 2004-06-23 Fernando Perez <fperez@colorado.edu>
3950 2004-06-23 Fernando Perez <fperez@colorado.edu>
3948
3951
3949 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3952 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3950 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3953 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3951
3954
3952 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3955 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3953 extensions under Windows (after code sent by Gary Bishop). The
3956 extensions under Windows (after code sent by Gary Bishop). The
3954 extensions considered 'executable' are stored in IPython's rc
3957 extensions considered 'executable' are stored in IPython's rc
3955 structure as win_exec_ext.
3958 structure as win_exec_ext.
3956
3959
3957 * IPython/genutils.py (shell): new function, like system() but
3960 * IPython/genutils.py (shell): new function, like system() but
3958 without return value. Very useful for interactive shell work.
3961 without return value. Very useful for interactive shell work.
3959
3962
3960 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3963 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3961 delete aliases.
3964 delete aliases.
3962
3965
3963 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3966 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3964 sure that the alias table doesn't contain python keywords.
3967 sure that the alias table doesn't contain python keywords.
3965
3968
3966 2004-06-21 Fernando Perez <fperez@colorado.edu>
3969 2004-06-21 Fernando Perez <fperez@colorado.edu>
3967
3970
3968 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3971 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3969 non-existent items are found in $PATH. Reported by Thorsten.
3972 non-existent items are found in $PATH. Reported by Thorsten.
3970
3973
3971 2004-06-20 Fernando Perez <fperez@colorado.edu>
3974 2004-06-20 Fernando Perez <fperez@colorado.edu>
3972
3975
3973 * IPython/iplib.py (complete): modified the completer so that the
3976 * IPython/iplib.py (complete): modified the completer so that the
3974 order of priorities can be easily changed at runtime.
3977 order of priorities can be easily changed at runtime.
3975
3978
3976 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3979 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3977 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3980 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3978
3981
3979 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3982 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3980 expand Python variables prepended with $ in all system calls. The
3983 expand Python variables prepended with $ in all system calls. The
3981 same was done to InteractiveShell.handle_shell_escape. Now all
3984 same was done to InteractiveShell.handle_shell_escape. Now all
3982 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3985 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3983 expansion of python variables and expressions according to the
3986 expansion of python variables and expressions according to the
3984 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3987 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3985
3988
3986 Though PEP-215 has been rejected, a similar (but simpler) one
3989 Though PEP-215 has been rejected, a similar (but simpler) one
3987 seems like it will go into Python 2.4, PEP-292 -
3990 seems like it will go into Python 2.4, PEP-292 -
3988 http://www.python.org/peps/pep-0292.html.
3991 http://www.python.org/peps/pep-0292.html.
3989
3992
3990 I'll keep the full syntax of PEP-215, since IPython has since the
3993 I'll keep the full syntax of PEP-215, since IPython has since the
3991 start used Ka-Ping Yee's reference implementation discussed there
3994 start used Ka-Ping Yee's reference implementation discussed there
3992 (Itpl), and I actually like the powerful semantics it offers.
3995 (Itpl), and I actually like the powerful semantics it offers.
3993
3996
3994 In order to access normal shell variables, the $ has to be escaped
3997 In order to access normal shell variables, the $ has to be escaped
3995 via an extra $. For example:
3998 via an extra $. For example:
3996
3999
3997 In [7]: PATH='a python variable'
4000 In [7]: PATH='a python variable'
3998
4001
3999 In [8]: !echo $PATH
4002 In [8]: !echo $PATH
4000 a python variable
4003 a python variable
4001
4004
4002 In [9]: !echo $$PATH
4005 In [9]: !echo $$PATH
4003 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
4006 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
4004
4007
4005 (Magic.parse_options): escape $ so the shell doesn't evaluate
4008 (Magic.parse_options): escape $ so the shell doesn't evaluate
4006 things prematurely.
4009 things prematurely.
4007
4010
4008 * IPython/iplib.py (InteractiveShell.call_alias): added the
4011 * IPython/iplib.py (InteractiveShell.call_alias): added the
4009 ability for aliases to expand python variables via $.
4012 ability for aliases to expand python variables via $.
4010
4013
4011 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
4014 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
4012 system, now there's a @rehash/@rehashx pair of magics. These work
4015 system, now there's a @rehash/@rehashx pair of magics. These work
4013 like the csh rehash command, and can be invoked at any time. They
4016 like the csh rehash command, and can be invoked at any time. They
4014 build a table of aliases to everything in the user's $PATH
4017 build a table of aliases to everything in the user's $PATH
4015 (@rehash uses everything, @rehashx is slower but only adds
4018 (@rehash uses everything, @rehashx is slower but only adds
4016 executable files). With this, the pysh.py-based shell profile can
4019 executable files). With this, the pysh.py-based shell profile can
4017 now simply call rehash upon startup, and full access to all
4020 now simply call rehash upon startup, and full access to all
4018 programs in the user's path is obtained.
4021 programs in the user's path is obtained.
4019
4022
4020 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
4023 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
4021 functionality is now fully in place. I removed the old dynamic
4024 functionality is now fully in place. I removed the old dynamic
4022 code generation based approach, in favor of a much lighter one
4025 code generation based approach, in favor of a much lighter one
4023 based on a simple dict. The advantage is that this allows me to
4026 based on a simple dict. The advantage is that this allows me to
4024 now have thousands of aliases with negligible cost (unthinkable
4027 now have thousands of aliases with negligible cost (unthinkable
4025 with the old system).
4028 with the old system).
4026
4029
4027 2004-06-19 Fernando Perez <fperez@colorado.edu>
4030 2004-06-19 Fernando Perez <fperez@colorado.edu>
4028
4031
4029 * IPython/iplib.py (__init__): extended MagicCompleter class to
4032 * IPython/iplib.py (__init__): extended MagicCompleter class to
4030 also complete (last in priority) on user aliases.
4033 also complete (last in priority) on user aliases.
4031
4034
4032 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
4035 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
4033 call to eval.
4036 call to eval.
4034 (ItplNS.__init__): Added a new class which functions like Itpl,
4037 (ItplNS.__init__): Added a new class which functions like Itpl,
4035 but allows configuring the namespace for the evaluation to occur
4038 but allows configuring the namespace for the evaluation to occur
4036 in.
4039 in.
4037
4040
4038 2004-06-18 Fernando Perez <fperez@colorado.edu>
4041 2004-06-18 Fernando Perez <fperez@colorado.edu>
4039
4042
4040 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
4043 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
4041 better message when 'exit' or 'quit' are typed (a common newbie
4044 better message when 'exit' or 'quit' are typed (a common newbie
4042 confusion).
4045 confusion).
4043
4046
4044 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
4047 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
4045 check for Windows users.
4048 check for Windows users.
4046
4049
4047 * IPython/iplib.py (InteractiveShell.user_setup): removed
4050 * IPython/iplib.py (InteractiveShell.user_setup): removed
4048 disabling of colors for Windows. I'll test at runtime and issue a
4051 disabling of colors for Windows. I'll test at runtime and issue a
4049 warning if Gary's readline isn't found, as to nudge users to
4052 warning if Gary's readline isn't found, as to nudge users to
4050 download it.
4053 download it.
4051
4054
4052 2004-06-16 Fernando Perez <fperez@colorado.edu>
4055 2004-06-16 Fernando Perez <fperez@colorado.edu>
4053
4056
4054 * IPython/genutils.py (Stream.__init__): changed to print errors
4057 * IPython/genutils.py (Stream.__init__): changed to print errors
4055 to sys.stderr. I had a circular dependency here. Now it's
4058 to sys.stderr. I had a circular dependency here. Now it's
4056 possible to run ipython as IDLE's shell (consider this pre-alpha,
4059 possible to run ipython as IDLE's shell (consider this pre-alpha,
4057 since true stdout things end up in the starting terminal instead
4060 since true stdout things end up in the starting terminal instead
4058 of IDLE's out).
4061 of IDLE's out).
4059
4062
4060 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
4063 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
4061 users who haven't # updated their prompt_in2 definitions. Remove
4064 users who haven't # updated their prompt_in2 definitions. Remove
4062 eventually.
4065 eventually.
4063 (multiple_replace): added credit to original ASPN recipe.
4066 (multiple_replace): added credit to original ASPN recipe.
4064
4067
4065 2004-06-15 Fernando Perez <fperez@colorado.edu>
4068 2004-06-15 Fernando Perez <fperez@colorado.edu>
4066
4069
4067 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
4070 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
4068 list of auto-defined aliases.
4071 list of auto-defined aliases.
4069
4072
4070 2004-06-13 Fernando Perez <fperez@colorado.edu>
4073 2004-06-13 Fernando Perez <fperez@colorado.edu>
4071
4074
4072 * setup.py (scriptfiles): Don't trigger win_post_install unless an
4075 * setup.py (scriptfiles): Don't trigger win_post_install unless an
4073 install was really requested (so setup.py can be used for other
4076 install was really requested (so setup.py can be used for other
4074 things under Windows).
4077 things under Windows).
4075
4078
4076 2004-06-10 Fernando Perez <fperez@colorado.edu>
4079 2004-06-10 Fernando Perez <fperez@colorado.edu>
4077
4080
4078 * IPython/Logger.py (Logger.create_log): Manually remove any old
4081 * IPython/Logger.py (Logger.create_log): Manually remove any old
4079 backup, since os.remove may fail under Windows. Fixes bug
4082 backup, since os.remove may fail under Windows. Fixes bug
4080 reported by Thorsten.
4083 reported by Thorsten.
4081
4084
4082 2004-06-09 Fernando Perez <fperez@colorado.edu>
4085 2004-06-09 Fernando Perez <fperez@colorado.edu>
4083
4086
4084 * examples/example-embed.py: fixed all references to %n (replaced
4087 * examples/example-embed.py: fixed all references to %n (replaced
4085 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
4088 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
4086 for all examples and the manual as well.
4089 for all examples and the manual as well.
4087
4090
4088 2004-06-08 Fernando Perez <fperez@colorado.edu>
4091 2004-06-08 Fernando Perez <fperez@colorado.edu>
4089
4092
4090 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
4093 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
4091 alignment and color management. All 3 prompt subsystems now
4094 alignment and color management. All 3 prompt subsystems now
4092 inherit from BasePrompt.
4095 inherit from BasePrompt.
4093
4096
4094 * tools/release: updates for windows installer build and tag rpms
4097 * tools/release: updates for windows installer build and tag rpms
4095 with python version (since paths are fixed).
4098 with python version (since paths are fixed).
4096
4099
4097 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
4100 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
4098 which will become eventually obsolete. Also fixed the default
4101 which will become eventually obsolete. Also fixed the default
4099 prompt_in2 to use \D, so at least new users start with the correct
4102 prompt_in2 to use \D, so at least new users start with the correct
4100 defaults.
4103 defaults.
4101 WARNING: Users with existing ipythonrc files will need to apply
4104 WARNING: Users with existing ipythonrc files will need to apply
4102 this fix manually!
4105 this fix manually!
4103
4106
4104 * setup.py: make windows installer (.exe). This is finally the
4107 * setup.py: make windows installer (.exe). This is finally the
4105 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
4108 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
4106 which I hadn't included because it required Python 2.3 (or recent
4109 which I hadn't included because it required Python 2.3 (or recent
4107 distutils).
4110 distutils).
4108
4111
4109 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
4112 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
4110 usage of new '\D' escape.
4113 usage of new '\D' escape.
4111
4114
4112 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
4115 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
4113 lacks os.getuid())
4116 lacks os.getuid())
4114 (CachedOutput.set_colors): Added the ability to turn coloring
4117 (CachedOutput.set_colors): Added the ability to turn coloring
4115 on/off with @colors even for manually defined prompt colors. It
4118 on/off with @colors even for manually defined prompt colors. It
4116 uses a nasty global, but it works safely and via the generic color
4119 uses a nasty global, but it works safely and via the generic color
4117 handling mechanism.
4120 handling mechanism.
4118 (Prompt2.__init__): Introduced new escape '\D' for continuation
4121 (Prompt2.__init__): Introduced new escape '\D' for continuation
4119 prompts. It represents the counter ('\#') as dots.
4122 prompts. It represents the counter ('\#') as dots.
4120 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
4123 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
4121 need to update their ipythonrc files and replace '%n' with '\D' in
4124 need to update their ipythonrc files and replace '%n' with '\D' in
4122 their prompt_in2 settings everywhere. Sorry, but there's
4125 their prompt_in2 settings everywhere. Sorry, but there's
4123 otherwise no clean way to get all prompts to properly align. The
4126 otherwise no clean way to get all prompts to properly align. The
4124 ipythonrc shipped with IPython has been updated.
4127 ipythonrc shipped with IPython has been updated.
4125
4128
4126 2004-06-07 Fernando Perez <fperez@colorado.edu>
4129 2004-06-07 Fernando Perez <fperez@colorado.edu>
4127
4130
4128 * setup.py (isfile): Pass local_icons option to latex2html, so the
4131 * setup.py (isfile): Pass local_icons option to latex2html, so the
4129 resulting HTML file is self-contained. Thanks to
4132 resulting HTML file is self-contained. Thanks to
4130 dryice-AT-liu.com.cn for the tip.
4133 dryice-AT-liu.com.cn for the tip.
4131
4134
4132 * pysh.py: I created a new profile 'shell', which implements a
4135 * pysh.py: I created a new profile 'shell', which implements a
4133 _rudimentary_ IPython-based shell. This is in NO WAY a realy
4136 _rudimentary_ IPython-based shell. This is in NO WAY a realy
4134 system shell, nor will it become one anytime soon. It's mainly
4137 system shell, nor will it become one anytime soon. It's mainly
4135 meant to illustrate the use of the new flexible bash-like prompts.
4138 meant to illustrate the use of the new flexible bash-like prompts.
4136 I guess it could be used by hardy souls for true shell management,
4139 I guess it could be used by hardy souls for true shell management,
4137 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
4140 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
4138 profile. This uses the InterpreterExec extension provided by
4141 profile. This uses the InterpreterExec extension provided by
4139 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
4142 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
4140
4143
4141 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
4144 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
4142 auto-align itself with the length of the previous input prompt
4145 auto-align itself with the length of the previous input prompt
4143 (taking into account the invisible color escapes).
4146 (taking into account the invisible color escapes).
4144 (CachedOutput.__init__): Large restructuring of this class. Now
4147 (CachedOutput.__init__): Large restructuring of this class. Now
4145 all three prompts (primary1, primary2, output) are proper objects,
4148 all three prompts (primary1, primary2, output) are proper objects,
4146 managed by the 'parent' CachedOutput class. The code is still a
4149 managed by the 'parent' CachedOutput class. The code is still a
4147 bit hackish (all prompts share state via a pointer to the cache),
4150 bit hackish (all prompts share state via a pointer to the cache),
4148 but it's overall far cleaner than before.
4151 but it's overall far cleaner than before.
4149
4152
4150 * IPython/genutils.py (getoutputerror): modified to add verbose,
4153 * IPython/genutils.py (getoutputerror): modified to add verbose,
4151 debug and header options. This makes the interface of all getout*
4154 debug and header options. This makes the interface of all getout*
4152 functions uniform.
4155 functions uniform.
4153 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
4156 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
4154
4157
4155 * IPython/Magic.py (Magic.default_option): added a function to
4158 * IPython/Magic.py (Magic.default_option): added a function to
4156 allow registering default options for any magic command. This
4159 allow registering default options for any magic command. This
4157 makes it easy to have profiles which customize the magics globally
4160 makes it easy to have profiles which customize the magics globally
4158 for a certain use. The values set through this function are
4161 for a certain use. The values set through this function are
4159 picked up by the parse_options() method, which all magics should
4162 picked up by the parse_options() method, which all magics should
4160 use to parse their options.
4163 use to parse their options.
4161
4164
4162 * IPython/genutils.py (warn): modified the warnings framework to
4165 * IPython/genutils.py (warn): modified the warnings framework to
4163 use the Term I/O class. I'm trying to slowly unify all of
4166 use the Term I/O class. I'm trying to slowly unify all of
4164 IPython's I/O operations to pass through Term.
4167 IPython's I/O operations to pass through Term.
4165
4168
4166 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
4169 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
4167 the secondary prompt to correctly match the length of the primary
4170 the secondary prompt to correctly match the length of the primary
4168 one for any prompt. Now multi-line code will properly line up
4171 one for any prompt. Now multi-line code will properly line up
4169 even for path dependent prompts, such as the new ones available
4172 even for path dependent prompts, such as the new ones available
4170 via the prompt_specials.
4173 via the prompt_specials.
4171
4174
4172 2004-06-06 Fernando Perez <fperez@colorado.edu>
4175 2004-06-06 Fernando Perez <fperez@colorado.edu>
4173
4176
4174 * IPython/Prompts.py (prompt_specials): Added the ability to have
4177 * IPython/Prompts.py (prompt_specials): Added the ability to have
4175 bash-like special sequences in the prompts, which get
4178 bash-like special sequences in the prompts, which get
4176 automatically expanded. Things like hostname, current working
4179 automatically expanded. Things like hostname, current working
4177 directory and username are implemented already, but it's easy to
4180 directory and username are implemented already, but it's easy to
4178 add more in the future. Thanks to a patch by W.J. van der Laan
4181 add more in the future. Thanks to a patch by W.J. van der Laan
4179 <gnufnork-AT-hetdigitalegat.nl>
4182 <gnufnork-AT-hetdigitalegat.nl>
4180 (prompt_specials): Added color support for prompt strings, so
4183 (prompt_specials): Added color support for prompt strings, so
4181 users can define arbitrary color setups for their prompts.
4184 users can define arbitrary color setups for their prompts.
4182
4185
4183 2004-06-05 Fernando Perez <fperez@colorado.edu>
4186 2004-06-05 Fernando Perez <fperez@colorado.edu>
4184
4187
4185 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
4188 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
4186 code to load Gary Bishop's readline and configure it
4189 code to load Gary Bishop's readline and configure it
4187 automatically. Thanks to Gary for help on this.
4190 automatically. Thanks to Gary for help on this.
4188
4191
4189 2004-06-01 Fernando Perez <fperez@colorado.edu>
4192 2004-06-01 Fernando Perez <fperez@colorado.edu>
4190
4193
4191 * IPython/Logger.py (Logger.create_log): fix bug for logging
4194 * IPython/Logger.py (Logger.create_log): fix bug for logging
4192 with no filename (previous fix was incomplete).
4195 with no filename (previous fix was incomplete).
4193
4196
4194 2004-05-25 Fernando Perez <fperez@colorado.edu>
4197 2004-05-25 Fernando Perez <fperez@colorado.edu>
4195
4198
4196 * IPython/Magic.py (Magic.parse_options): fix bug where naked
4199 * IPython/Magic.py (Magic.parse_options): fix bug where naked
4197 parens would get passed to the shell.
4200 parens would get passed to the shell.
4198
4201
4199 2004-05-20 Fernando Perez <fperez@colorado.edu>
4202 2004-05-20 Fernando Perez <fperez@colorado.edu>
4200
4203
4201 * IPython/Magic.py (Magic.magic_prun): changed default profile
4204 * IPython/Magic.py (Magic.magic_prun): changed default profile
4202 sort order to 'time' (the more common profiling need).
4205 sort order to 'time' (the more common profiling need).
4203
4206
4204 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
4207 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
4205 so that source code shown is guaranteed in sync with the file on
4208 so that source code shown is guaranteed in sync with the file on
4206 disk (also changed in psource). Similar fix to the one for
4209 disk (also changed in psource). Similar fix to the one for
4207 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
4210 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
4208 <yann.ledu-AT-noos.fr>.
4211 <yann.ledu-AT-noos.fr>.
4209
4212
4210 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
4213 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
4211 with a single option would not be correctly parsed. Closes
4214 with a single option would not be correctly parsed. Closes
4212 http://www.scipy.net/roundup/ipython/issue14. This bug had been
4215 http://www.scipy.net/roundup/ipython/issue14. This bug had been
4213 introduced in 0.6.0 (on 2004-05-06).
4216 introduced in 0.6.0 (on 2004-05-06).
4214
4217
4215 2004-05-13 *** Released version 0.6.0
4218 2004-05-13 *** Released version 0.6.0
4216
4219
4217 2004-05-13 Fernando Perez <fperez@colorado.edu>
4220 2004-05-13 Fernando Perez <fperez@colorado.edu>
4218
4221
4219 * debian/: Added debian/ directory to CVS, so that debian support
4222 * debian/: Added debian/ directory to CVS, so that debian support
4220 is publicly accessible. The debian package is maintained by Jack
4223 is publicly accessible. The debian package is maintained by Jack
4221 Moffit <jack-AT-xiph.org>.
4224 Moffit <jack-AT-xiph.org>.
4222
4225
4223 * Documentation: included the notes about an ipython-based system
4226 * Documentation: included the notes about an ipython-based system
4224 shell (the hypothetical 'pysh') into the new_design.pdf document,
4227 shell (the hypothetical 'pysh') into the new_design.pdf document,
4225 so that these ideas get distributed to users along with the
4228 so that these ideas get distributed to users along with the
4226 official documentation.
4229 official documentation.
4227
4230
4228 2004-05-10 Fernando Perez <fperez@colorado.edu>
4231 2004-05-10 Fernando Perez <fperez@colorado.edu>
4229
4232
4230 * IPython/Logger.py (Logger.create_log): fix recently introduced
4233 * IPython/Logger.py (Logger.create_log): fix recently introduced
4231 bug (misindented line) where logstart would fail when not given an
4234 bug (misindented line) where logstart would fail when not given an
4232 explicit filename.
4235 explicit filename.
4233
4236
4234 2004-05-09 Fernando Perez <fperez@colorado.edu>
4237 2004-05-09 Fernando Perez <fperez@colorado.edu>
4235
4238
4236 * IPython/Magic.py (Magic.parse_options): skip system call when
4239 * IPython/Magic.py (Magic.parse_options): skip system call when
4237 there are no options to look for. Faster, cleaner for the common
4240 there are no options to look for. Faster, cleaner for the common
4238 case.
4241 case.
4239
4242
4240 * Documentation: many updates to the manual: describing Windows
4243 * Documentation: many updates to the manual: describing Windows
4241 support better, Gnuplot updates, credits, misc small stuff. Also
4244 support better, Gnuplot updates, credits, misc small stuff. Also
4242 updated the new_design doc a bit.
4245 updated the new_design doc a bit.
4243
4246
4244 2004-05-06 *** Released version 0.6.0.rc1
4247 2004-05-06 *** Released version 0.6.0.rc1
4245
4248
4246 2004-05-06 Fernando Perez <fperez@colorado.edu>
4249 2004-05-06 Fernando Perez <fperez@colorado.edu>
4247
4250
4248 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
4251 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
4249 operations to use the vastly more efficient list/''.join() method.
4252 operations to use the vastly more efficient list/''.join() method.
4250 (FormattedTB.text): Fix
4253 (FormattedTB.text): Fix
4251 http://www.scipy.net/roundup/ipython/issue12 - exception source
4254 http://www.scipy.net/roundup/ipython/issue12 - exception source
4252 extract not updated after reload. Thanks to Mike Salib
4255 extract not updated after reload. Thanks to Mike Salib
4253 <msalib-AT-mit.edu> for pinning the source of the problem.
4256 <msalib-AT-mit.edu> for pinning the source of the problem.
4254 Fortunately, the solution works inside ipython and doesn't require
4257 Fortunately, the solution works inside ipython and doesn't require
4255 any changes to python proper.
4258 any changes to python proper.
4256
4259
4257 * IPython/Magic.py (Magic.parse_options): Improved to process the
4260 * IPython/Magic.py (Magic.parse_options): Improved to process the
4258 argument list as a true shell would (by actually using the
4261 argument list as a true shell would (by actually using the
4259 underlying system shell). This way, all @magics automatically get
4262 underlying system shell). This way, all @magics automatically get
4260 shell expansion for variables. Thanks to a comment by Alex
4263 shell expansion for variables. Thanks to a comment by Alex
4261 Schmolck.
4264 Schmolck.
4262
4265
4263 2004-04-04 Fernando Perez <fperez@colorado.edu>
4266 2004-04-04 Fernando Perez <fperez@colorado.edu>
4264
4267
4265 * IPython/iplib.py (InteractiveShell.interact): Added a special
4268 * IPython/iplib.py (InteractiveShell.interact): Added a special
4266 trap for a debugger quit exception, which is basically impossible
4269 trap for a debugger quit exception, which is basically impossible
4267 to handle by normal mechanisms, given what pdb does to the stack.
4270 to handle by normal mechanisms, given what pdb does to the stack.
4268 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4271 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4269
4272
4270 2004-04-03 Fernando Perez <fperez@colorado.edu>
4273 2004-04-03 Fernando Perez <fperez@colorado.edu>
4271
4274
4272 * IPython/genutils.py (Term): Standardized the names of the Term
4275 * IPython/genutils.py (Term): Standardized the names of the Term
4273 class streams to cin/cout/cerr, following C++ naming conventions
4276 class streams to cin/cout/cerr, following C++ naming conventions
4274 (I can't use in/out/err because 'in' is not a valid attribute
4277 (I can't use in/out/err because 'in' is not a valid attribute
4275 name).
4278 name).
4276
4279
4277 * IPython/iplib.py (InteractiveShell.interact): don't increment
4280 * IPython/iplib.py (InteractiveShell.interact): don't increment
4278 the prompt if there's no user input. By Daniel 'Dang' Griffith
4281 the prompt if there's no user input. By Daniel 'Dang' Griffith
4279 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4282 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4280 Francois Pinard.
4283 Francois Pinard.
4281
4284
4282 2004-04-02 Fernando Perez <fperez@colorado.edu>
4285 2004-04-02 Fernando Perez <fperez@colorado.edu>
4283
4286
4284 * IPython/genutils.py (Stream.__init__): Modified to survive at
4287 * IPython/genutils.py (Stream.__init__): Modified to survive at
4285 least importing in contexts where stdin/out/err aren't true file
4288 least importing in contexts where stdin/out/err aren't true file
4286 objects, such as PyCrust (they lack fileno() and mode). However,
4289 objects, such as PyCrust (they lack fileno() and mode). However,
4287 the recovery facilities which rely on these things existing will
4290 the recovery facilities which rely on these things existing will
4288 not work.
4291 not work.
4289
4292
4290 2004-04-01 Fernando Perez <fperez@colorado.edu>
4293 2004-04-01 Fernando Perez <fperez@colorado.edu>
4291
4294
4292 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4295 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4293 use the new getoutputerror() function, so it properly
4296 use the new getoutputerror() function, so it properly
4294 distinguishes stdout/err.
4297 distinguishes stdout/err.
4295
4298
4296 * IPython/genutils.py (getoutputerror): added a function to
4299 * IPython/genutils.py (getoutputerror): added a function to
4297 capture separately the standard output and error of a command.
4300 capture separately the standard output and error of a command.
4298 After a comment from dang on the mailing lists. This code is
4301 After a comment from dang on the mailing lists. This code is
4299 basically a modified version of commands.getstatusoutput(), from
4302 basically a modified version of commands.getstatusoutput(), from
4300 the standard library.
4303 the standard library.
4301
4304
4302 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4305 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4303 '!!' as a special syntax (shorthand) to access @sx.
4306 '!!' as a special syntax (shorthand) to access @sx.
4304
4307
4305 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4308 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4306 command and return its output as a list split on '\n'.
4309 command and return its output as a list split on '\n'.
4307
4310
4308 2004-03-31 Fernando Perez <fperez@colorado.edu>
4311 2004-03-31 Fernando Perez <fperez@colorado.edu>
4309
4312
4310 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4313 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4311 method to dictionaries used as FakeModule instances if they lack
4314 method to dictionaries used as FakeModule instances if they lack
4312 it. At least pydoc in python2.3 breaks for runtime-defined
4315 it. At least pydoc in python2.3 breaks for runtime-defined
4313 functions without this hack. At some point I need to _really_
4316 functions without this hack. At some point I need to _really_
4314 understand what FakeModule is doing, because it's a gross hack.
4317 understand what FakeModule is doing, because it's a gross hack.
4315 But it solves Arnd's problem for now...
4318 But it solves Arnd's problem for now...
4316
4319
4317 2004-02-27 Fernando Perez <fperez@colorado.edu>
4320 2004-02-27 Fernando Perez <fperez@colorado.edu>
4318
4321
4319 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4322 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4320 mode would behave erratically. Also increased the number of
4323 mode would behave erratically. Also increased the number of
4321 possible logs in rotate mod to 999. Thanks to Rod Holland
4324 possible logs in rotate mod to 999. Thanks to Rod Holland
4322 <rhh@StructureLABS.com> for the report and fixes.
4325 <rhh@StructureLABS.com> for the report and fixes.
4323
4326
4324 2004-02-26 Fernando Perez <fperez@colorado.edu>
4327 2004-02-26 Fernando Perez <fperez@colorado.edu>
4325
4328
4326 * IPython/genutils.py (page): Check that the curses module really
4329 * IPython/genutils.py (page): Check that the curses module really
4327 has the initscr attribute before trying to use it. For some
4330 has the initscr attribute before trying to use it. For some
4328 reason, the Solaris curses module is missing this. I think this
4331 reason, the Solaris curses module is missing this. I think this
4329 should be considered a Solaris python bug, but I'm not sure.
4332 should be considered a Solaris python bug, but I'm not sure.
4330
4333
4331 2004-01-17 Fernando Perez <fperez@colorado.edu>
4334 2004-01-17 Fernando Perez <fperez@colorado.edu>
4332
4335
4333 * IPython/genutils.py (Stream.__init__): Changes to try to make
4336 * IPython/genutils.py (Stream.__init__): Changes to try to make
4334 ipython robust against stdin/out/err being closed by the user.
4337 ipython robust against stdin/out/err being closed by the user.
4335 This is 'user error' (and blocks a normal python session, at least
4338 This is 'user error' (and blocks a normal python session, at least
4336 the stdout case). However, Ipython should be able to survive such
4339 the stdout case). However, Ipython should be able to survive such
4337 instances of abuse as gracefully as possible. To simplify the
4340 instances of abuse as gracefully as possible. To simplify the
4338 coding and maintain compatibility with Gary Bishop's Term
4341 coding and maintain compatibility with Gary Bishop's Term
4339 contributions, I've made use of classmethods for this. I think
4342 contributions, I've made use of classmethods for this. I think
4340 this introduces a dependency on python 2.2.
4343 this introduces a dependency on python 2.2.
4341
4344
4342 2004-01-13 Fernando Perez <fperez@colorado.edu>
4345 2004-01-13 Fernando Perez <fperez@colorado.edu>
4343
4346
4344 * IPython/numutils.py (exp_safe): simplified the code a bit and
4347 * IPython/numutils.py (exp_safe): simplified the code a bit and
4345 removed the need for importing the kinds module altogether.
4348 removed the need for importing the kinds module altogether.
4346
4349
4347 2004-01-06 Fernando Perez <fperez@colorado.edu>
4350 2004-01-06 Fernando Perez <fperez@colorado.edu>
4348
4351
4349 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4352 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4350 a magic function instead, after some community feedback. No
4353 a magic function instead, after some community feedback. No
4351 special syntax will exist for it, but its name is deliberately
4354 special syntax will exist for it, but its name is deliberately
4352 very short.
4355 very short.
4353
4356
4354 2003-12-20 Fernando Perez <fperez@colorado.edu>
4357 2003-12-20 Fernando Perez <fperez@colorado.edu>
4355
4358
4356 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4359 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4357 new functionality, to automagically assign the result of a shell
4360 new functionality, to automagically assign the result of a shell
4358 command to a variable. I'll solicit some community feedback on
4361 command to a variable. I'll solicit some community feedback on
4359 this before making it permanent.
4362 this before making it permanent.
4360
4363
4361 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4364 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4362 requested about callables for which inspect couldn't obtain a
4365 requested about callables for which inspect couldn't obtain a
4363 proper argspec. Thanks to a crash report sent by Etienne
4366 proper argspec. Thanks to a crash report sent by Etienne
4364 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4367 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4365
4368
4366 2003-12-09 Fernando Perez <fperez@colorado.edu>
4369 2003-12-09 Fernando Perez <fperez@colorado.edu>
4367
4370
4368 * IPython/genutils.py (page): patch for the pager to work across
4371 * IPython/genutils.py (page): patch for the pager to work across
4369 various versions of Windows. By Gary Bishop.
4372 various versions of Windows. By Gary Bishop.
4370
4373
4371 2003-12-04 Fernando Perez <fperez@colorado.edu>
4374 2003-12-04 Fernando Perez <fperez@colorado.edu>
4372
4375
4373 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4376 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4374 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4377 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4375 While I tested this and it looks ok, there may still be corner
4378 While I tested this and it looks ok, there may still be corner
4376 cases I've missed.
4379 cases I've missed.
4377
4380
4378 2003-12-01 Fernando Perez <fperez@colorado.edu>
4381 2003-12-01 Fernando Perez <fperez@colorado.edu>
4379
4382
4380 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4383 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4381 where a line like 'p,q=1,2' would fail because the automagic
4384 where a line like 'p,q=1,2' would fail because the automagic
4382 system would be triggered for @p.
4385 system would be triggered for @p.
4383
4386
4384 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4387 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4385 cleanups, code unmodified.
4388 cleanups, code unmodified.
4386
4389
4387 * IPython/genutils.py (Term): added a class for IPython to handle
4390 * IPython/genutils.py (Term): added a class for IPython to handle
4388 output. In most cases it will just be a proxy for stdout/err, but
4391 output. In most cases it will just be a proxy for stdout/err, but
4389 having this allows modifications to be made for some platforms,
4392 having this allows modifications to be made for some platforms,
4390 such as handling color escapes under Windows. All of this code
4393 such as handling color escapes under Windows. All of this code
4391 was contributed by Gary Bishop, with minor modifications by me.
4394 was contributed by Gary Bishop, with minor modifications by me.
4392 The actual changes affect many files.
4395 The actual changes affect many files.
4393
4396
4394 2003-11-30 Fernando Perez <fperez@colorado.edu>
4397 2003-11-30 Fernando Perez <fperez@colorado.edu>
4395
4398
4396 * IPython/iplib.py (file_matches): new completion code, courtesy
4399 * IPython/iplib.py (file_matches): new completion code, courtesy
4397 of Jeff Collins. This enables filename completion again under
4400 of Jeff Collins. This enables filename completion again under
4398 python 2.3, which disabled it at the C level.
4401 python 2.3, which disabled it at the C level.
4399
4402
4400 2003-11-11 Fernando Perez <fperez@colorado.edu>
4403 2003-11-11 Fernando Perez <fperez@colorado.edu>
4401
4404
4402 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4405 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4403 for Numeric.array(map(...)), but often convenient.
4406 for Numeric.array(map(...)), but often convenient.
4404
4407
4405 2003-11-05 Fernando Perez <fperez@colorado.edu>
4408 2003-11-05 Fernando Perez <fperez@colorado.edu>
4406
4409
4407 * IPython/numutils.py (frange): Changed a call from int() to
4410 * IPython/numutils.py (frange): Changed a call from int() to
4408 int(round()) to prevent a problem reported with arange() in the
4411 int(round()) to prevent a problem reported with arange() in the
4409 numpy list.
4412 numpy list.
4410
4413
4411 2003-10-06 Fernando Perez <fperez@colorado.edu>
4414 2003-10-06 Fernando Perez <fperez@colorado.edu>
4412
4415
4413 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4416 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4414 prevent crashes if sys lacks an argv attribute (it happens with
4417 prevent crashes if sys lacks an argv attribute (it happens with
4415 embedded interpreters which build a bare-bones sys module).
4418 embedded interpreters which build a bare-bones sys module).
4416 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4419 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4417
4420
4418 2003-09-24 Fernando Perez <fperez@colorado.edu>
4421 2003-09-24 Fernando Perez <fperez@colorado.edu>
4419
4422
4420 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4423 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4421 to protect against poorly written user objects where __getattr__
4424 to protect against poorly written user objects where __getattr__
4422 raises exceptions other than AttributeError. Thanks to a bug
4425 raises exceptions other than AttributeError. Thanks to a bug
4423 report by Oliver Sander <osander-AT-gmx.de>.
4426 report by Oliver Sander <osander-AT-gmx.de>.
4424
4427
4425 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4428 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4426 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4429 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4427
4430
4428 2003-09-09 Fernando Perez <fperez@colorado.edu>
4431 2003-09-09 Fernando Perez <fperez@colorado.edu>
4429
4432
4430 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4433 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4431 unpacking a list whith a callable as first element would
4434 unpacking a list whith a callable as first element would
4432 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4435 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4433 Collins.
4436 Collins.
4434
4437
4435 2003-08-25 *** Released version 0.5.0
4438 2003-08-25 *** Released version 0.5.0
4436
4439
4437 2003-08-22 Fernando Perez <fperez@colorado.edu>
4440 2003-08-22 Fernando Perez <fperez@colorado.edu>
4438
4441
4439 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4442 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4440 improperly defined user exceptions. Thanks to feedback from Mark
4443 improperly defined user exceptions. Thanks to feedback from Mark
4441 Russell <mrussell-AT-verio.net>.
4444 Russell <mrussell-AT-verio.net>.
4442
4445
4443 2003-08-20 Fernando Perez <fperez@colorado.edu>
4446 2003-08-20 Fernando Perez <fperez@colorado.edu>
4444
4447
4445 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4448 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4446 printing so that it would print multi-line string forms starting
4449 printing so that it would print multi-line string forms starting
4447 with a new line. This way the formatting is better respected for
4450 with a new line. This way the formatting is better respected for
4448 objects which work hard to make nice string forms.
4451 objects which work hard to make nice string forms.
4449
4452
4450 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4453 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4451 autocall would overtake data access for objects with both
4454 autocall would overtake data access for objects with both
4452 __getitem__ and __call__.
4455 __getitem__ and __call__.
4453
4456
4454 2003-08-19 *** Released version 0.5.0-rc1
4457 2003-08-19 *** Released version 0.5.0-rc1
4455
4458
4456 2003-08-19 Fernando Perez <fperez@colorado.edu>
4459 2003-08-19 Fernando Perez <fperez@colorado.edu>
4457
4460
4458 * IPython/deep_reload.py (load_tail): single tiny change here
4461 * IPython/deep_reload.py (load_tail): single tiny change here
4459 seems to fix the long-standing bug of dreload() failing to work
4462 seems to fix the long-standing bug of dreload() failing to work
4460 for dotted names. But this module is pretty tricky, so I may have
4463 for dotted names. But this module is pretty tricky, so I may have
4461 missed some subtlety. Needs more testing!.
4464 missed some subtlety. Needs more testing!.
4462
4465
4463 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4466 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4464 exceptions which have badly implemented __str__ methods.
4467 exceptions which have badly implemented __str__ methods.
4465 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4468 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4466 which I've been getting reports about from Python 2.3 users. I
4469 which I've been getting reports about from Python 2.3 users. I
4467 wish I had a simple test case to reproduce the problem, so I could
4470 wish I had a simple test case to reproduce the problem, so I could
4468 either write a cleaner workaround or file a bug report if
4471 either write a cleaner workaround or file a bug report if
4469 necessary.
4472 necessary.
4470
4473
4471 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4474 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4472 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4475 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4473 a bug report by Tjabo Kloppenburg.
4476 a bug report by Tjabo Kloppenburg.
4474
4477
4475 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4478 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4476 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4479 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4477 seems rather unstable. Thanks to a bug report by Tjabo
4480 seems rather unstable. Thanks to a bug report by Tjabo
4478 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4481 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4479
4482
4480 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4483 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4481 this out soon because of the critical fixes in the inner loop for
4484 this out soon because of the critical fixes in the inner loop for
4482 generators.
4485 generators.
4483
4486
4484 * IPython/Magic.py (Magic.getargspec): removed. This (and
4487 * IPython/Magic.py (Magic.getargspec): removed. This (and
4485 _get_def) have been obsoleted by OInspect for a long time, I
4488 _get_def) have been obsoleted by OInspect for a long time, I
4486 hadn't noticed that they were dead code.
4489 hadn't noticed that they were dead code.
4487 (Magic._ofind): restored _ofind functionality for a few literals
4490 (Magic._ofind): restored _ofind functionality for a few literals
4488 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4491 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4489 for things like "hello".capitalize?, since that would require a
4492 for things like "hello".capitalize?, since that would require a
4490 potentially dangerous eval() again.
4493 potentially dangerous eval() again.
4491
4494
4492 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4495 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4493 logic a bit more to clean up the escapes handling and minimize the
4496 logic a bit more to clean up the escapes handling and minimize the
4494 use of _ofind to only necessary cases. The interactive 'feel' of
4497 use of _ofind to only necessary cases. The interactive 'feel' of
4495 IPython should have improved quite a bit with the changes in
4498 IPython should have improved quite a bit with the changes in
4496 _prefilter and _ofind (besides being far safer than before).
4499 _prefilter and _ofind (besides being far safer than before).
4497
4500
4498 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4501 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4499 obscure, never reported). Edit would fail to find the object to
4502 obscure, never reported). Edit would fail to find the object to
4500 edit under some circumstances.
4503 edit under some circumstances.
4501 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4504 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4502 which were causing double-calling of generators. Those eval calls
4505 which were causing double-calling of generators. Those eval calls
4503 were _very_ dangerous, since code with side effects could be
4506 were _very_ dangerous, since code with side effects could be
4504 triggered. As they say, 'eval is evil'... These were the
4507 triggered. As they say, 'eval is evil'... These were the
4505 nastiest evals in IPython. Besides, _ofind is now far simpler,
4508 nastiest evals in IPython. Besides, _ofind is now far simpler,
4506 and it should also be quite a bit faster. Its use of inspect is
4509 and it should also be quite a bit faster. Its use of inspect is
4507 also safer, so perhaps some of the inspect-related crashes I've
4510 also safer, so perhaps some of the inspect-related crashes I've
4508 seen lately with Python 2.3 might be taken care of. That will
4511 seen lately with Python 2.3 might be taken care of. That will
4509 need more testing.
4512 need more testing.
4510
4513
4511 2003-08-17 Fernando Perez <fperez@colorado.edu>
4514 2003-08-17 Fernando Perez <fperez@colorado.edu>
4512
4515
4513 * IPython/iplib.py (InteractiveShell._prefilter): significant
4516 * IPython/iplib.py (InteractiveShell._prefilter): significant
4514 simplifications to the logic for handling user escapes. Faster
4517 simplifications to the logic for handling user escapes. Faster
4515 and simpler code.
4518 and simpler code.
4516
4519
4517 2003-08-14 Fernando Perez <fperez@colorado.edu>
4520 2003-08-14 Fernando Perez <fperez@colorado.edu>
4518
4521
4519 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4522 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4520 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4523 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4521 but it should be quite a bit faster. And the recursive version
4524 but it should be quite a bit faster. And the recursive version
4522 generated O(log N) intermediate storage for all rank>1 arrays,
4525 generated O(log N) intermediate storage for all rank>1 arrays,
4523 even if they were contiguous.
4526 even if they were contiguous.
4524 (l1norm): Added this function.
4527 (l1norm): Added this function.
4525 (norm): Added this function for arbitrary norms (including
4528 (norm): Added this function for arbitrary norms (including
4526 l-infinity). l1 and l2 are still special cases for convenience
4529 l-infinity). l1 and l2 are still special cases for convenience
4527 and speed.
4530 and speed.
4528
4531
4529 2003-08-03 Fernando Perez <fperez@colorado.edu>
4532 2003-08-03 Fernando Perez <fperez@colorado.edu>
4530
4533
4531 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4534 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4532 exceptions, which now raise PendingDeprecationWarnings in Python
4535 exceptions, which now raise PendingDeprecationWarnings in Python
4533 2.3. There were some in Magic and some in Gnuplot2.
4536 2.3. There were some in Magic and some in Gnuplot2.
4534
4537
4535 2003-06-30 Fernando Perez <fperez@colorado.edu>
4538 2003-06-30 Fernando Perez <fperez@colorado.edu>
4536
4539
4537 * IPython/genutils.py (page): modified to call curses only for
4540 * IPython/genutils.py (page): modified to call curses only for
4538 terminals where TERM=='xterm'. After problems under many other
4541 terminals where TERM=='xterm'. After problems under many other
4539 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4542 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4540
4543
4541 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4544 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4542 would be triggered when readline was absent. This was just an old
4545 would be triggered when readline was absent. This was just an old
4543 debugging statement I'd forgotten to take out.
4546 debugging statement I'd forgotten to take out.
4544
4547
4545 2003-06-20 Fernando Perez <fperez@colorado.edu>
4548 2003-06-20 Fernando Perez <fperez@colorado.edu>
4546
4549
4547 * IPython/genutils.py (clock): modified to return only user time
4550 * IPython/genutils.py (clock): modified to return only user time
4548 (not counting system time), after a discussion on scipy. While
4551 (not counting system time), after a discussion on scipy. While
4549 system time may be a useful quantity occasionally, it may much
4552 system time may be a useful quantity occasionally, it may much
4550 more easily be skewed by occasional swapping or other similar
4553 more easily be skewed by occasional swapping or other similar
4551 activity.
4554 activity.
4552
4555
4553 2003-06-05 Fernando Perez <fperez@colorado.edu>
4556 2003-06-05 Fernando Perez <fperez@colorado.edu>
4554
4557
4555 * IPython/numutils.py (identity): new function, for building
4558 * IPython/numutils.py (identity): new function, for building
4556 arbitrary rank Kronecker deltas (mostly backwards compatible with
4559 arbitrary rank Kronecker deltas (mostly backwards compatible with
4557 Numeric.identity)
4560 Numeric.identity)
4558
4561
4559 2003-06-03 Fernando Perez <fperez@colorado.edu>
4562 2003-06-03 Fernando Perez <fperez@colorado.edu>
4560
4563
4561 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4564 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4562 arguments passed to magics with spaces, to allow trailing '\' to
4565 arguments passed to magics with spaces, to allow trailing '\' to
4563 work normally (mainly for Windows users).
4566 work normally (mainly for Windows users).
4564
4567
4565 2003-05-29 Fernando Perez <fperez@colorado.edu>
4568 2003-05-29 Fernando Perez <fperez@colorado.edu>
4566
4569
4567 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4570 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4568 instead of pydoc.help. This fixes a bizarre behavior where
4571 instead of pydoc.help. This fixes a bizarre behavior where
4569 printing '%s' % locals() would trigger the help system. Now
4572 printing '%s' % locals() would trigger the help system. Now
4570 ipython behaves like normal python does.
4573 ipython behaves like normal python does.
4571
4574
4572 Note that if one does 'from pydoc import help', the bizarre
4575 Note that if one does 'from pydoc import help', the bizarre
4573 behavior returns, but this will also happen in normal python, so
4576 behavior returns, but this will also happen in normal python, so
4574 it's not an ipython bug anymore (it has to do with how pydoc.help
4577 it's not an ipython bug anymore (it has to do with how pydoc.help
4575 is implemented).
4578 is implemented).
4576
4579
4577 2003-05-22 Fernando Perez <fperez@colorado.edu>
4580 2003-05-22 Fernando Perez <fperez@colorado.edu>
4578
4581
4579 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4582 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4580 return [] instead of None when nothing matches, also match to end
4583 return [] instead of None when nothing matches, also match to end
4581 of line. Patch by Gary Bishop.
4584 of line. Patch by Gary Bishop.
4582
4585
4583 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4586 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4584 protection as before, for files passed on the command line. This
4587 protection as before, for files passed on the command line. This
4585 prevents the CrashHandler from kicking in if user files call into
4588 prevents the CrashHandler from kicking in if user files call into
4586 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4589 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4587 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4590 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4588
4591
4589 2003-05-20 *** Released version 0.4.0
4592 2003-05-20 *** Released version 0.4.0
4590
4593
4591 2003-05-20 Fernando Perez <fperez@colorado.edu>
4594 2003-05-20 Fernando Perez <fperez@colorado.edu>
4592
4595
4593 * setup.py: added support for manpages. It's a bit hackish b/c of
4596 * setup.py: added support for manpages. It's a bit hackish b/c of
4594 a bug in the way the bdist_rpm distutils target handles gzipped
4597 a bug in the way the bdist_rpm distutils target handles gzipped
4595 manpages, but it works. After a patch by Jack.
4598 manpages, but it works. After a patch by Jack.
4596
4599
4597 2003-05-19 Fernando Perez <fperez@colorado.edu>
4600 2003-05-19 Fernando Perez <fperez@colorado.edu>
4598
4601
4599 * IPython/numutils.py: added a mockup of the kinds module, since
4602 * IPython/numutils.py: added a mockup of the kinds module, since
4600 it was recently removed from Numeric. This way, numutils will
4603 it was recently removed from Numeric. This way, numutils will
4601 work for all users even if they are missing kinds.
4604 work for all users even if they are missing kinds.
4602
4605
4603 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4606 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4604 failure, which can occur with SWIG-wrapped extensions. After a
4607 failure, which can occur with SWIG-wrapped extensions. After a
4605 crash report from Prabhu.
4608 crash report from Prabhu.
4606
4609
4607 2003-05-16 Fernando Perez <fperez@colorado.edu>
4610 2003-05-16 Fernando Perez <fperez@colorado.edu>
4608
4611
4609 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4612 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4610 protect ipython from user code which may call directly
4613 protect ipython from user code which may call directly
4611 sys.excepthook (this looks like an ipython crash to the user, even
4614 sys.excepthook (this looks like an ipython crash to the user, even
4612 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4615 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4613 This is especially important to help users of WxWindows, but may
4616 This is especially important to help users of WxWindows, but may
4614 also be useful in other cases.
4617 also be useful in other cases.
4615
4618
4616 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4619 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4617 an optional tb_offset to be specified, and to preserve exception
4620 an optional tb_offset to be specified, and to preserve exception
4618 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4621 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4619
4622
4620 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4623 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4621
4624
4622 2003-05-15 Fernando Perez <fperez@colorado.edu>
4625 2003-05-15 Fernando Perez <fperez@colorado.edu>
4623
4626
4624 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4627 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4625 installing for a new user under Windows.
4628 installing for a new user under Windows.
4626
4629
4627 2003-05-12 Fernando Perez <fperez@colorado.edu>
4630 2003-05-12 Fernando Perez <fperez@colorado.edu>
4628
4631
4629 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4632 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4630 handler for Emacs comint-based lines. Currently it doesn't do
4633 handler for Emacs comint-based lines. Currently it doesn't do
4631 much (but importantly, it doesn't update the history cache). In
4634 much (but importantly, it doesn't update the history cache). In
4632 the future it may be expanded if Alex needs more functionality
4635 the future it may be expanded if Alex needs more functionality
4633 there.
4636 there.
4634
4637
4635 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4638 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4636 info to crash reports.
4639 info to crash reports.
4637
4640
4638 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4641 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4639 just like Python's -c. Also fixed crash with invalid -color
4642 just like Python's -c. Also fixed crash with invalid -color
4640 option value at startup. Thanks to Will French
4643 option value at startup. Thanks to Will French
4641 <wfrench-AT-bestweb.net> for the bug report.
4644 <wfrench-AT-bestweb.net> for the bug report.
4642
4645
4643 2003-05-09 Fernando Perez <fperez@colorado.edu>
4646 2003-05-09 Fernando Perez <fperez@colorado.edu>
4644
4647
4645 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4648 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4646 to EvalDict (it's a mapping, after all) and simplified its code
4649 to EvalDict (it's a mapping, after all) and simplified its code
4647 quite a bit, after a nice discussion on c.l.py where Gustavo
4650 quite a bit, after a nice discussion on c.l.py where Gustavo
4648 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4651 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4649
4652
4650 2003-04-30 Fernando Perez <fperez@colorado.edu>
4653 2003-04-30 Fernando Perez <fperez@colorado.edu>
4651
4654
4652 * IPython/genutils.py (timings_out): modified it to reduce its
4655 * IPython/genutils.py (timings_out): modified it to reduce its
4653 overhead in the common reps==1 case.
4656 overhead in the common reps==1 case.
4654
4657
4655 2003-04-29 Fernando Perez <fperez@colorado.edu>
4658 2003-04-29 Fernando Perez <fperez@colorado.edu>
4656
4659
4657 * IPython/genutils.py (timings_out): Modified to use the resource
4660 * IPython/genutils.py (timings_out): Modified to use the resource
4658 module, which avoids the wraparound problems of time.clock().
4661 module, which avoids the wraparound problems of time.clock().
4659
4662
4660 2003-04-17 *** Released version 0.2.15pre4
4663 2003-04-17 *** Released version 0.2.15pre4
4661
4664
4662 2003-04-17 Fernando Perez <fperez@colorado.edu>
4665 2003-04-17 Fernando Perez <fperez@colorado.edu>
4663
4666
4664 * setup.py (scriptfiles): Split windows-specific stuff over to a
4667 * setup.py (scriptfiles): Split windows-specific stuff over to a
4665 separate file, in an attempt to have a Windows GUI installer.
4668 separate file, in an attempt to have a Windows GUI installer.
4666 That didn't work, but part of the groundwork is done.
4669 That didn't work, but part of the groundwork is done.
4667
4670
4668 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4671 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4669 indent/unindent with 4 spaces. Particularly useful in combination
4672 indent/unindent with 4 spaces. Particularly useful in combination
4670 with the new auto-indent option.
4673 with the new auto-indent option.
4671
4674
4672 2003-04-16 Fernando Perez <fperez@colorado.edu>
4675 2003-04-16 Fernando Perez <fperez@colorado.edu>
4673
4676
4674 * IPython/Magic.py: various replacements of self.rc for
4677 * IPython/Magic.py: various replacements of self.rc for
4675 self.shell.rc. A lot more remains to be done to fully disentangle
4678 self.shell.rc. A lot more remains to be done to fully disentangle
4676 this class from the main Shell class.
4679 this class from the main Shell class.
4677
4680
4678 * IPython/GnuplotRuntime.py: added checks for mouse support so
4681 * IPython/GnuplotRuntime.py: added checks for mouse support so
4679 that we don't try to enable it if the current gnuplot doesn't
4682 that we don't try to enable it if the current gnuplot doesn't
4680 really support it. Also added checks so that we don't try to
4683 really support it. Also added checks so that we don't try to
4681 enable persist under Windows (where Gnuplot doesn't recognize the
4684 enable persist under Windows (where Gnuplot doesn't recognize the
4682 option).
4685 option).
4683
4686
4684 * IPython/iplib.py (InteractiveShell.interact): Added optional
4687 * IPython/iplib.py (InteractiveShell.interact): Added optional
4685 auto-indenting code, after a patch by King C. Shu
4688 auto-indenting code, after a patch by King C. Shu
4686 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4689 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4687 get along well with pasting indented code. If I ever figure out
4690 get along well with pasting indented code. If I ever figure out
4688 how to make that part go well, it will become on by default.
4691 how to make that part go well, it will become on by default.
4689
4692
4690 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4693 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4691 crash ipython if there was an unmatched '%' in the user's prompt
4694 crash ipython if there was an unmatched '%' in the user's prompt
4692 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4695 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4693
4696
4694 * IPython/iplib.py (InteractiveShell.interact): removed the
4697 * IPython/iplib.py (InteractiveShell.interact): removed the
4695 ability to ask the user whether he wants to crash or not at the
4698 ability to ask the user whether he wants to crash or not at the
4696 'last line' exception handler. Calling functions at that point
4699 'last line' exception handler. Calling functions at that point
4697 changes the stack, and the error reports would have incorrect
4700 changes the stack, and the error reports would have incorrect
4698 tracebacks.
4701 tracebacks.
4699
4702
4700 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4703 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4701 pass through a peger a pretty-printed form of any object. After a
4704 pass through a peger a pretty-printed form of any object. After a
4702 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4705 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4703
4706
4704 2003-04-14 Fernando Perez <fperez@colorado.edu>
4707 2003-04-14 Fernando Perez <fperez@colorado.edu>
4705
4708
4706 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4709 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4707 all files in ~ would be modified at first install (instead of
4710 all files in ~ would be modified at first install (instead of
4708 ~/.ipython). This could be potentially disastrous, as the
4711 ~/.ipython). This could be potentially disastrous, as the
4709 modification (make line-endings native) could damage binary files.
4712 modification (make line-endings native) could damage binary files.
4710
4713
4711 2003-04-10 Fernando Perez <fperez@colorado.edu>
4714 2003-04-10 Fernando Perez <fperez@colorado.edu>
4712
4715
4713 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4716 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4714 handle only lines which are invalid python. This now means that
4717 handle only lines which are invalid python. This now means that
4715 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4718 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4716 for the bug report.
4719 for the bug report.
4717
4720
4718 2003-04-01 Fernando Perez <fperez@colorado.edu>
4721 2003-04-01 Fernando Perez <fperez@colorado.edu>
4719
4722
4720 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4723 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4721 where failing to set sys.last_traceback would crash pdb.pm().
4724 where failing to set sys.last_traceback would crash pdb.pm().
4722 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4725 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4723 report.
4726 report.
4724
4727
4725 2003-03-25 Fernando Perez <fperez@colorado.edu>
4728 2003-03-25 Fernando Perez <fperez@colorado.edu>
4726
4729
4727 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4730 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4728 before printing it (it had a lot of spurious blank lines at the
4731 before printing it (it had a lot of spurious blank lines at the
4729 end).
4732 end).
4730
4733
4731 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4734 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4732 output would be sent 21 times! Obviously people don't use this
4735 output would be sent 21 times! Obviously people don't use this
4733 too often, or I would have heard about it.
4736 too often, or I would have heard about it.
4734
4737
4735 2003-03-24 Fernando Perez <fperez@colorado.edu>
4738 2003-03-24 Fernando Perez <fperez@colorado.edu>
4736
4739
4737 * setup.py (scriptfiles): renamed the data_files parameter from
4740 * setup.py (scriptfiles): renamed the data_files parameter from
4738 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4741 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4739 for the patch.
4742 for the patch.
4740
4743
4741 2003-03-20 Fernando Perez <fperez@colorado.edu>
4744 2003-03-20 Fernando Perez <fperez@colorado.edu>
4742
4745
4743 * IPython/genutils.py (error): added error() and fatal()
4746 * IPython/genutils.py (error): added error() and fatal()
4744 functions.
4747 functions.
4745
4748
4746 2003-03-18 *** Released version 0.2.15pre3
4749 2003-03-18 *** Released version 0.2.15pre3
4747
4750
4748 2003-03-18 Fernando Perez <fperez@colorado.edu>
4751 2003-03-18 Fernando Perez <fperez@colorado.edu>
4749
4752
4750 * setupext/install_data_ext.py
4753 * setupext/install_data_ext.py
4751 (install_data_ext.initialize_options): Class contributed by Jack
4754 (install_data_ext.initialize_options): Class contributed by Jack
4752 Moffit for fixing the old distutils hack. He is sending this to
4755 Moffit for fixing the old distutils hack. He is sending this to
4753 the distutils folks so in the future we may not need it as a
4756 the distutils folks so in the future we may not need it as a
4754 private fix.
4757 private fix.
4755
4758
4756 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4759 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4757 changes for Debian packaging. See his patch for full details.
4760 changes for Debian packaging. See his patch for full details.
4758 The old distutils hack of making the ipythonrc* files carry a
4761 The old distutils hack of making the ipythonrc* files carry a
4759 bogus .py extension is gone, at last. Examples were moved to a
4762 bogus .py extension is gone, at last. Examples were moved to a
4760 separate subdir under doc/, and the separate executable scripts
4763 separate subdir under doc/, and the separate executable scripts
4761 now live in their own directory. Overall a great cleanup. The
4764 now live in their own directory. Overall a great cleanup. The
4762 manual was updated to use the new files, and setup.py has been
4765 manual was updated to use the new files, and setup.py has been
4763 fixed for this setup.
4766 fixed for this setup.
4764
4767
4765 * IPython/PyColorize.py (Parser.usage): made non-executable and
4768 * IPython/PyColorize.py (Parser.usage): made non-executable and
4766 created a pycolor wrapper around it to be included as a script.
4769 created a pycolor wrapper around it to be included as a script.
4767
4770
4768 2003-03-12 *** Released version 0.2.15pre2
4771 2003-03-12 *** Released version 0.2.15pre2
4769
4772
4770 2003-03-12 Fernando Perez <fperez@colorado.edu>
4773 2003-03-12 Fernando Perez <fperez@colorado.edu>
4771
4774
4772 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4775 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4773 long-standing problem with garbage characters in some terminals.
4776 long-standing problem with garbage characters in some terminals.
4774 The issue was really that the \001 and \002 escapes must _only_ be
4777 The issue was really that the \001 and \002 escapes must _only_ be
4775 passed to input prompts (which call readline), but _never_ to
4778 passed to input prompts (which call readline), but _never_ to
4776 normal text to be printed on screen. I changed ColorANSI to have
4779 normal text to be printed on screen. I changed ColorANSI to have
4777 two classes: TermColors and InputTermColors, each with the
4780 two classes: TermColors and InputTermColors, each with the
4778 appropriate escapes for input prompts or normal text. The code in
4781 appropriate escapes for input prompts or normal text. The code in
4779 Prompts.py got slightly more complicated, but this very old and
4782 Prompts.py got slightly more complicated, but this very old and
4780 annoying bug is finally fixed.
4783 annoying bug is finally fixed.
4781
4784
4782 All the credit for nailing down the real origin of this problem
4785 All the credit for nailing down the real origin of this problem
4783 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4786 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4784 *Many* thanks to him for spending quite a bit of effort on this.
4787 *Many* thanks to him for spending quite a bit of effort on this.
4785
4788
4786 2003-03-05 *** Released version 0.2.15pre1
4789 2003-03-05 *** Released version 0.2.15pre1
4787
4790
4788 2003-03-03 Fernando Perez <fperez@colorado.edu>
4791 2003-03-03 Fernando Perez <fperez@colorado.edu>
4789
4792
4790 * IPython/FakeModule.py: Moved the former _FakeModule to a
4793 * IPython/FakeModule.py: Moved the former _FakeModule to a
4791 separate file, because it's also needed by Magic (to fix a similar
4794 separate file, because it's also needed by Magic (to fix a similar
4792 pickle-related issue in @run).
4795 pickle-related issue in @run).
4793
4796
4794 2003-03-02 Fernando Perez <fperez@colorado.edu>
4797 2003-03-02 Fernando Perez <fperez@colorado.edu>
4795
4798
4796 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4799 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4797 the autocall option at runtime.
4800 the autocall option at runtime.
4798 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4801 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4799 across Magic.py to start separating Magic from InteractiveShell.
4802 across Magic.py to start separating Magic from InteractiveShell.
4800 (Magic._ofind): Fixed to return proper namespace for dotted
4803 (Magic._ofind): Fixed to return proper namespace for dotted
4801 names. Before, a dotted name would always return 'not currently
4804 names. Before, a dotted name would always return 'not currently
4802 defined', because it would find the 'parent'. s.x would be found,
4805 defined', because it would find the 'parent'. s.x would be found,
4803 but since 'x' isn't defined by itself, it would get confused.
4806 but since 'x' isn't defined by itself, it would get confused.
4804 (Magic.magic_run): Fixed pickling problems reported by Ralf
4807 (Magic.magic_run): Fixed pickling problems reported by Ralf
4805 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4808 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4806 that I'd used when Mike Heeter reported similar issues at the
4809 that I'd used when Mike Heeter reported similar issues at the
4807 top-level, but now for @run. It boils down to injecting the
4810 top-level, but now for @run. It boils down to injecting the
4808 namespace where code is being executed with something that looks
4811 namespace where code is being executed with something that looks
4809 enough like a module to fool pickle.dump(). Since a pickle stores
4812 enough like a module to fool pickle.dump(). Since a pickle stores
4810 a named reference to the importing module, we need this for
4813 a named reference to the importing module, we need this for
4811 pickles to save something sensible.
4814 pickles to save something sensible.
4812
4815
4813 * IPython/ipmaker.py (make_IPython): added an autocall option.
4816 * IPython/ipmaker.py (make_IPython): added an autocall option.
4814
4817
4815 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4818 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4816 the auto-eval code. Now autocalling is an option, and the code is
4819 the auto-eval code. Now autocalling is an option, and the code is
4817 also vastly safer. There is no more eval() involved at all.
4820 also vastly safer. There is no more eval() involved at all.
4818
4821
4819 2003-03-01 Fernando Perez <fperez@colorado.edu>
4822 2003-03-01 Fernando Perez <fperez@colorado.edu>
4820
4823
4821 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4824 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4822 dict with named keys instead of a tuple.
4825 dict with named keys instead of a tuple.
4823
4826
4824 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4827 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4825
4828
4826 * setup.py (make_shortcut): Fixed message about directories
4829 * setup.py (make_shortcut): Fixed message about directories
4827 created during Windows installation (the directories were ok, just
4830 created during Windows installation (the directories were ok, just
4828 the printed message was misleading). Thanks to Chris Liechti
4831 the printed message was misleading). Thanks to Chris Liechti
4829 <cliechti-AT-gmx.net> for the heads up.
4832 <cliechti-AT-gmx.net> for the heads up.
4830
4833
4831 2003-02-21 Fernando Perez <fperez@colorado.edu>
4834 2003-02-21 Fernando Perez <fperez@colorado.edu>
4832
4835
4833 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4836 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4834 of ValueError exception when checking for auto-execution. This
4837 of ValueError exception when checking for auto-execution. This
4835 one is raised by things like Numeric arrays arr.flat when the
4838 one is raised by things like Numeric arrays arr.flat when the
4836 array is non-contiguous.
4839 array is non-contiguous.
4837
4840
4838 2003-01-31 Fernando Perez <fperez@colorado.edu>
4841 2003-01-31 Fernando Perez <fperez@colorado.edu>
4839
4842
4840 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4843 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4841 not return any value at all (even though the command would get
4844 not return any value at all (even though the command would get
4842 executed).
4845 executed).
4843 (xsys): Flush stdout right after printing the command to ensure
4846 (xsys): Flush stdout right after printing the command to ensure
4844 proper ordering of commands and command output in the total
4847 proper ordering of commands and command output in the total
4845 output.
4848 output.
4846 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4849 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4847 system/getoutput as defaults. The old ones are kept for
4850 system/getoutput as defaults. The old ones are kept for
4848 compatibility reasons, so no code which uses this library needs
4851 compatibility reasons, so no code which uses this library needs
4849 changing.
4852 changing.
4850
4853
4851 2003-01-27 *** Released version 0.2.14
4854 2003-01-27 *** Released version 0.2.14
4852
4855
4853 2003-01-25 Fernando Perez <fperez@colorado.edu>
4856 2003-01-25 Fernando Perez <fperez@colorado.edu>
4854
4857
4855 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4858 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4856 functions defined in previous edit sessions could not be re-edited
4859 functions defined in previous edit sessions could not be re-edited
4857 (because the temp files were immediately removed). Now temp files
4860 (because the temp files were immediately removed). Now temp files
4858 are removed only at IPython's exit.
4861 are removed only at IPython's exit.
4859 (Magic.magic_run): Improved @run to perform shell-like expansions
4862 (Magic.magic_run): Improved @run to perform shell-like expansions
4860 on its arguments (~users and $VARS). With this, @run becomes more
4863 on its arguments (~users and $VARS). With this, @run becomes more
4861 like a normal command-line.
4864 like a normal command-line.
4862
4865
4863 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4866 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4864 bugs related to embedding and cleaned up that code. A fairly
4867 bugs related to embedding and cleaned up that code. A fairly
4865 important one was the impossibility to access the global namespace
4868 important one was the impossibility to access the global namespace
4866 through the embedded IPython (only local variables were visible).
4869 through the embedded IPython (only local variables were visible).
4867
4870
4868 2003-01-14 Fernando Perez <fperez@colorado.edu>
4871 2003-01-14 Fernando Perez <fperez@colorado.edu>
4869
4872
4870 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4873 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4871 auto-calling to be a bit more conservative. Now it doesn't get
4874 auto-calling to be a bit more conservative. Now it doesn't get
4872 triggered if any of '!=()<>' are in the rest of the input line, to
4875 triggered if any of '!=()<>' are in the rest of the input line, to
4873 allow comparing callables. Thanks to Alex for the heads up.
4876 allow comparing callables. Thanks to Alex for the heads up.
4874
4877
4875 2003-01-07 Fernando Perez <fperez@colorado.edu>
4878 2003-01-07 Fernando Perez <fperez@colorado.edu>
4876
4879
4877 * IPython/genutils.py (page): fixed estimation of the number of
4880 * IPython/genutils.py (page): fixed estimation of the number of
4878 lines in a string to be paged to simply count newlines. This
4881 lines in a string to be paged to simply count newlines. This
4879 prevents over-guessing due to embedded escape sequences. A better
4882 prevents over-guessing due to embedded escape sequences. A better
4880 long-term solution would involve stripping out the control chars
4883 long-term solution would involve stripping out the control chars
4881 for the count, but it's potentially so expensive I just don't
4884 for the count, but it's potentially so expensive I just don't
4882 think it's worth doing.
4885 think it's worth doing.
4883
4886
4884 2002-12-19 *** Released version 0.2.14pre50
4887 2002-12-19 *** Released version 0.2.14pre50
4885
4888
4886 2002-12-19 Fernando Perez <fperez@colorado.edu>
4889 2002-12-19 Fernando Perez <fperez@colorado.edu>
4887
4890
4888 * tools/release (version): Changed release scripts to inform
4891 * tools/release (version): Changed release scripts to inform
4889 Andrea and build a NEWS file with a list of recent changes.
4892 Andrea and build a NEWS file with a list of recent changes.
4890
4893
4891 * IPython/ColorANSI.py (__all__): changed terminal detection
4894 * IPython/ColorANSI.py (__all__): changed terminal detection
4892 code. Seems to work better for xterms without breaking
4895 code. Seems to work better for xterms without breaking
4893 konsole. Will need more testing to determine if WinXP and Mac OSX
4896 konsole. Will need more testing to determine if WinXP and Mac OSX
4894 also work ok.
4897 also work ok.
4895
4898
4896 2002-12-18 *** Released version 0.2.14pre49
4899 2002-12-18 *** Released version 0.2.14pre49
4897
4900
4898 2002-12-18 Fernando Perez <fperez@colorado.edu>
4901 2002-12-18 Fernando Perez <fperez@colorado.edu>
4899
4902
4900 * Docs: added new info about Mac OSX, from Andrea.
4903 * Docs: added new info about Mac OSX, from Andrea.
4901
4904
4902 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4905 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4903 allow direct plotting of python strings whose format is the same
4906 allow direct plotting of python strings whose format is the same
4904 of gnuplot data files.
4907 of gnuplot data files.
4905
4908
4906 2002-12-16 Fernando Perez <fperez@colorado.edu>
4909 2002-12-16 Fernando Perez <fperez@colorado.edu>
4907
4910
4908 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4911 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4909 value of exit question to be acknowledged.
4912 value of exit question to be acknowledged.
4910
4913
4911 2002-12-03 Fernando Perez <fperez@colorado.edu>
4914 2002-12-03 Fernando Perez <fperez@colorado.edu>
4912
4915
4913 * IPython/ipmaker.py: removed generators, which had been added
4916 * IPython/ipmaker.py: removed generators, which had been added
4914 by mistake in an earlier debugging run. This was causing trouble
4917 by mistake in an earlier debugging run. This was causing trouble
4915 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4918 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4916 for pointing this out.
4919 for pointing this out.
4917
4920
4918 2002-11-17 Fernando Perez <fperez@colorado.edu>
4921 2002-11-17 Fernando Perez <fperez@colorado.edu>
4919
4922
4920 * Manual: updated the Gnuplot section.
4923 * Manual: updated the Gnuplot section.
4921
4924
4922 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4925 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4923 a much better split of what goes in Runtime and what goes in
4926 a much better split of what goes in Runtime and what goes in
4924 Interactive.
4927 Interactive.
4925
4928
4926 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4929 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4927 being imported from iplib.
4930 being imported from iplib.
4928
4931
4929 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4932 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4930 for command-passing. Now the global Gnuplot instance is called
4933 for command-passing. Now the global Gnuplot instance is called
4931 'gp' instead of 'g', which was really a far too fragile and
4934 'gp' instead of 'g', which was really a far too fragile and
4932 common name.
4935 common name.
4933
4936
4934 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4937 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4935 bounding boxes generated by Gnuplot for square plots.
4938 bounding boxes generated by Gnuplot for square plots.
4936
4939
4937 * IPython/genutils.py (popkey): new function added. I should
4940 * IPython/genutils.py (popkey): new function added. I should
4938 suggest this on c.l.py as a dict method, it seems useful.
4941 suggest this on c.l.py as a dict method, it seems useful.
4939
4942
4940 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4943 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4941 to transparently handle PostScript generation. MUCH better than
4944 to transparently handle PostScript generation. MUCH better than
4942 the previous plot_eps/replot_eps (which I removed now). The code
4945 the previous plot_eps/replot_eps (which I removed now). The code
4943 is also fairly clean and well documented now (including
4946 is also fairly clean and well documented now (including
4944 docstrings).
4947 docstrings).
4945
4948
4946 2002-11-13 Fernando Perez <fperez@colorado.edu>
4949 2002-11-13 Fernando Perez <fperez@colorado.edu>
4947
4950
4948 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4951 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4949 (inconsistent with options).
4952 (inconsistent with options).
4950
4953
4951 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4954 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4952 manually disabled, I don't know why. Fixed it.
4955 manually disabled, I don't know why. Fixed it.
4953 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4956 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4954 eps output.
4957 eps output.
4955
4958
4956 2002-11-12 Fernando Perez <fperez@colorado.edu>
4959 2002-11-12 Fernando Perez <fperez@colorado.edu>
4957
4960
4958 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4961 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4959 don't propagate up to caller. Fixes crash reported by François
4962 don't propagate up to caller. Fixes crash reported by François
4960 Pinard.
4963 Pinard.
4961
4964
4962 2002-11-09 Fernando Perez <fperez@colorado.edu>
4965 2002-11-09 Fernando Perez <fperez@colorado.edu>
4963
4966
4964 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4967 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4965 history file for new users.
4968 history file for new users.
4966 (make_IPython): fixed bug where initial install would leave the
4969 (make_IPython): fixed bug where initial install would leave the
4967 user running in the .ipython dir.
4970 user running in the .ipython dir.
4968 (make_IPython): fixed bug where config dir .ipython would be
4971 (make_IPython): fixed bug where config dir .ipython would be
4969 created regardless of the given -ipythondir option. Thanks to Cory
4972 created regardless of the given -ipythondir option. Thanks to Cory
4970 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4973 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4971
4974
4972 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4975 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4973 type confirmations. Will need to use it in all of IPython's code
4976 type confirmations. Will need to use it in all of IPython's code
4974 consistently.
4977 consistently.
4975
4978
4976 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4979 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4977 context to print 31 lines instead of the default 5. This will make
4980 context to print 31 lines instead of the default 5. This will make
4978 the crash reports extremely detailed in case the problem is in
4981 the crash reports extremely detailed in case the problem is in
4979 libraries I don't have access to.
4982 libraries I don't have access to.
4980
4983
4981 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4984 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4982 line of defense' code to still crash, but giving users fair
4985 line of defense' code to still crash, but giving users fair
4983 warning. I don't want internal errors to go unreported: if there's
4986 warning. I don't want internal errors to go unreported: if there's
4984 an internal problem, IPython should crash and generate a full
4987 an internal problem, IPython should crash and generate a full
4985 report.
4988 report.
4986
4989
4987 2002-11-08 Fernando Perez <fperez@colorado.edu>
4990 2002-11-08 Fernando Perez <fperez@colorado.edu>
4988
4991
4989 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4992 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4990 otherwise uncaught exceptions which can appear if people set
4993 otherwise uncaught exceptions which can appear if people set
4991 sys.stdout to something badly broken. Thanks to a crash report
4994 sys.stdout to something badly broken. Thanks to a crash report
4992 from henni-AT-mail.brainbot.com.
4995 from henni-AT-mail.brainbot.com.
4993
4996
4994 2002-11-04 Fernando Perez <fperez@colorado.edu>
4997 2002-11-04 Fernando Perez <fperez@colorado.edu>
4995
4998
4996 * IPython/iplib.py (InteractiveShell.interact): added
4999 * IPython/iplib.py (InteractiveShell.interact): added
4997 __IPYTHON__active to the builtins. It's a flag which goes on when
5000 __IPYTHON__active to the builtins. It's a flag which goes on when
4998 the interaction starts and goes off again when it stops. This
5001 the interaction starts and goes off again when it stops. This
4999 allows embedding code to detect being inside IPython. Before this
5002 allows embedding code to detect being inside IPython. Before this
5000 was done via __IPYTHON__, but that only shows that an IPython
5003 was done via __IPYTHON__, but that only shows that an IPython
5001 instance has been created.
5004 instance has been created.
5002
5005
5003 * IPython/Magic.py (Magic.magic_env): I realized that in a
5006 * IPython/Magic.py (Magic.magic_env): I realized that in a
5004 UserDict, instance.data holds the data as a normal dict. So I
5007 UserDict, instance.data holds the data as a normal dict. So I
5005 modified @env to return os.environ.data instead of rebuilding a
5008 modified @env to return os.environ.data instead of rebuilding a
5006 dict by hand.
5009 dict by hand.
5007
5010
5008 2002-11-02 Fernando Perez <fperez@colorado.edu>
5011 2002-11-02 Fernando Perez <fperez@colorado.edu>
5009
5012
5010 * IPython/genutils.py (warn): changed so that level 1 prints no
5013 * IPython/genutils.py (warn): changed so that level 1 prints no
5011 header. Level 2 is now the default (with 'WARNING' header, as
5014 header. Level 2 is now the default (with 'WARNING' header, as
5012 before). I think I tracked all places where changes were needed in
5015 before). I think I tracked all places where changes were needed in
5013 IPython, but outside code using the old level numbering may have
5016 IPython, but outside code using the old level numbering may have
5014 broken.
5017 broken.
5015
5018
5016 * IPython/iplib.py (InteractiveShell.runcode): added this to
5019 * IPython/iplib.py (InteractiveShell.runcode): added this to
5017 handle the tracebacks in SystemExit traps correctly. The previous
5020 handle the tracebacks in SystemExit traps correctly. The previous
5018 code (through interact) was printing more of the stack than
5021 code (through interact) was printing more of the stack than
5019 necessary, showing IPython internal code to the user.
5022 necessary, showing IPython internal code to the user.
5020
5023
5021 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
5024 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
5022 default. Now that the default at the confirmation prompt is yes,
5025 default. Now that the default at the confirmation prompt is yes,
5023 it's not so intrusive. François' argument that ipython sessions
5026 it's not so intrusive. François' argument that ipython sessions
5024 tend to be complex enough not to lose them from an accidental C-d,
5027 tend to be complex enough not to lose them from an accidental C-d,
5025 is a valid one.
5028 is a valid one.
5026
5029
5027 * IPython/iplib.py (InteractiveShell.interact): added a
5030 * IPython/iplib.py (InteractiveShell.interact): added a
5028 showtraceback() call to the SystemExit trap, and modified the exit
5031 showtraceback() call to the SystemExit trap, and modified the exit
5029 confirmation to have yes as the default.
5032 confirmation to have yes as the default.
5030
5033
5031 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
5034 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
5032 this file. It's been gone from the code for a long time, this was
5035 this file. It's been gone from the code for a long time, this was
5033 simply leftover junk.
5036 simply leftover junk.
5034
5037
5035 2002-11-01 Fernando Perez <fperez@colorado.edu>
5038 2002-11-01 Fernando Perez <fperez@colorado.edu>
5036
5039
5037 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
5040 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
5038 added. If set, IPython now traps EOF and asks for
5041 added. If set, IPython now traps EOF and asks for
5039 confirmation. After a request by François Pinard.
5042 confirmation. After a request by François Pinard.
5040
5043
5041 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
5044 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
5042 of @abort, and with a new (better) mechanism for handling the
5045 of @abort, and with a new (better) mechanism for handling the
5043 exceptions.
5046 exceptions.
5044
5047
5045 2002-10-27 Fernando Perez <fperez@colorado.edu>
5048 2002-10-27 Fernando Perez <fperez@colorado.edu>
5046
5049
5047 * IPython/usage.py (__doc__): updated the --help information and
5050 * IPython/usage.py (__doc__): updated the --help information and
5048 the ipythonrc file to indicate that -log generates
5051 the ipythonrc file to indicate that -log generates
5049 ./ipython.log. Also fixed the corresponding info in @logstart.
5052 ./ipython.log. Also fixed the corresponding info in @logstart.
5050 This and several other fixes in the manuals thanks to reports by
5053 This and several other fixes in the manuals thanks to reports by
5051 François Pinard <pinard-AT-iro.umontreal.ca>.
5054 François Pinard <pinard-AT-iro.umontreal.ca>.
5052
5055
5053 * IPython/Logger.py (Logger.switch_log): Fixed error message to
5056 * IPython/Logger.py (Logger.switch_log): Fixed error message to
5054 refer to @logstart (instead of @log, which doesn't exist).
5057 refer to @logstart (instead of @log, which doesn't exist).
5055
5058
5056 * IPython/iplib.py (InteractiveShell._prefilter): fixed
5059 * IPython/iplib.py (InteractiveShell._prefilter): fixed
5057 AttributeError crash. Thanks to Christopher Armstrong
5060 AttributeError crash. Thanks to Christopher Armstrong
5058 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
5061 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
5059 introduced recently (in 0.2.14pre37) with the fix to the eval
5062 introduced recently (in 0.2.14pre37) with the fix to the eval
5060 problem mentioned below.
5063 problem mentioned below.
5061
5064
5062 2002-10-17 Fernando Perez <fperez@colorado.edu>
5065 2002-10-17 Fernando Perez <fperez@colorado.edu>
5063
5066
5064 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
5067 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
5065 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
5068 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
5066
5069
5067 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
5070 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
5068 this function to fix a problem reported by Alex Schmolck. He saw
5071 this function to fix a problem reported by Alex Schmolck. He saw
5069 it with list comprehensions and generators, which were getting
5072 it with list comprehensions and generators, which were getting
5070 called twice. The real problem was an 'eval' call in testing for
5073 called twice. The real problem was an 'eval' call in testing for
5071 automagic which was evaluating the input line silently.
5074 automagic which was evaluating the input line silently.
5072
5075
5073 This is a potentially very nasty bug, if the input has side
5076 This is a potentially very nasty bug, if the input has side
5074 effects which must not be repeated. The code is much cleaner now,
5077 effects which must not be repeated. The code is much cleaner now,
5075 without any blanket 'except' left and with a regexp test for
5078 without any blanket 'except' left and with a regexp test for
5076 actual function names.
5079 actual function names.
5077
5080
5078 But an eval remains, which I'm not fully comfortable with. I just
5081 But an eval remains, which I'm not fully comfortable with. I just
5079 don't know how to find out if an expression could be a callable in
5082 don't know how to find out if an expression could be a callable in
5080 the user's namespace without doing an eval on the string. However
5083 the user's namespace without doing an eval on the string. However
5081 that string is now much more strictly checked so that no code
5084 that string is now much more strictly checked so that no code
5082 slips by, so the eval should only happen for things that can
5085 slips by, so the eval should only happen for things that can
5083 really be only function/method names.
5086 really be only function/method names.
5084
5087
5085 2002-10-15 Fernando Perez <fperez@colorado.edu>
5088 2002-10-15 Fernando Perez <fperez@colorado.edu>
5086
5089
5087 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
5090 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
5088 OSX information to main manual, removed README_Mac_OSX file from
5091 OSX information to main manual, removed README_Mac_OSX file from
5089 distribution. Also updated credits for recent additions.
5092 distribution. Also updated credits for recent additions.
5090
5093
5091 2002-10-10 Fernando Perez <fperez@colorado.edu>
5094 2002-10-10 Fernando Perez <fperez@colorado.edu>
5092
5095
5093 * README_Mac_OSX: Added a README for Mac OSX users for fixing
5096 * README_Mac_OSX: Added a README for Mac OSX users for fixing
5094 terminal-related issues. Many thanks to Andrea Riciputi
5097 terminal-related issues. Many thanks to Andrea Riciputi
5095 <andrea.riciputi-AT-libero.it> for writing it.
5098 <andrea.riciputi-AT-libero.it> for writing it.
5096
5099
5097 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
5100 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
5098 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
5101 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
5099
5102
5100 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
5103 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
5101 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
5104 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
5102 <syver-en-AT-online.no> who both submitted patches for this problem.
5105 <syver-en-AT-online.no> who both submitted patches for this problem.
5103
5106
5104 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
5107 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
5105 global embedding to make sure that things don't overwrite user
5108 global embedding to make sure that things don't overwrite user
5106 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
5109 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
5107
5110
5108 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
5111 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
5109 compatibility. Thanks to Hayden Callow
5112 compatibility. Thanks to Hayden Callow
5110 <h.callow-AT-elec.canterbury.ac.nz>
5113 <h.callow-AT-elec.canterbury.ac.nz>
5111
5114
5112 2002-10-04 Fernando Perez <fperez@colorado.edu>
5115 2002-10-04 Fernando Perez <fperez@colorado.edu>
5113
5116
5114 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
5117 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
5115 Gnuplot.File objects.
5118 Gnuplot.File objects.
5116
5119
5117 2002-07-23 Fernando Perez <fperez@colorado.edu>
5120 2002-07-23 Fernando Perez <fperez@colorado.edu>
5118
5121
5119 * IPython/genutils.py (timing): Added timings() and timing() for
5122 * IPython/genutils.py (timing): Added timings() and timing() for
5120 quick access to the most commonly needed data, the execution
5123 quick access to the most commonly needed data, the execution
5121 times. Old timing() renamed to timings_out().
5124 times. Old timing() renamed to timings_out().
5122
5125
5123 2002-07-18 Fernando Perez <fperez@colorado.edu>
5126 2002-07-18 Fernando Perez <fperez@colorado.edu>
5124
5127
5125 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
5128 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
5126 bug with nested instances disrupting the parent's tab completion.
5129 bug with nested instances disrupting the parent's tab completion.
5127
5130
5128 * IPython/iplib.py (all_completions): Added Alex Schmolck's
5131 * IPython/iplib.py (all_completions): Added Alex Schmolck's
5129 all_completions code to begin the emacs integration.
5132 all_completions code to begin the emacs integration.
5130
5133
5131 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
5134 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
5132 argument to allow titling individual arrays when plotting.
5135 argument to allow titling individual arrays when plotting.
5133
5136
5134 2002-07-15 Fernando Perez <fperez@colorado.edu>
5137 2002-07-15 Fernando Perez <fperez@colorado.edu>
5135
5138
5136 * setup.py (make_shortcut): changed to retrieve the value of
5139 * setup.py (make_shortcut): changed to retrieve the value of
5137 'Program Files' directory from the registry (this value changes in
5140 'Program Files' directory from the registry (this value changes in
5138 non-english versions of Windows). Thanks to Thomas Fanslau
5141 non-english versions of Windows). Thanks to Thomas Fanslau
5139 <tfanslau-AT-gmx.de> for the report.
5142 <tfanslau-AT-gmx.de> for the report.
5140
5143
5141 2002-07-10 Fernando Perez <fperez@colorado.edu>
5144 2002-07-10 Fernando Perez <fperez@colorado.edu>
5142
5145
5143 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
5146 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
5144 a bug in pdb, which crashes if a line with only whitespace is
5147 a bug in pdb, which crashes if a line with only whitespace is
5145 entered. Bug report submitted to sourceforge.
5148 entered. Bug report submitted to sourceforge.
5146
5149
5147 2002-07-09 Fernando Perez <fperez@colorado.edu>
5150 2002-07-09 Fernando Perez <fperez@colorado.edu>
5148
5151
5149 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
5152 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
5150 reporting exceptions (it's a bug in inspect.py, I just set a
5153 reporting exceptions (it's a bug in inspect.py, I just set a
5151 workaround).
5154 workaround).
5152
5155
5153 2002-07-08 Fernando Perez <fperez@colorado.edu>
5156 2002-07-08 Fernando Perez <fperez@colorado.edu>
5154
5157
5155 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
5158 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
5156 __IPYTHON__ in __builtins__ to show up in user_ns.
5159 __IPYTHON__ in __builtins__ to show up in user_ns.
5157
5160
5158 2002-07-03 Fernando Perez <fperez@colorado.edu>
5161 2002-07-03 Fernando Perez <fperez@colorado.edu>
5159
5162
5160 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
5163 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
5161 name from @gp_set_instance to @gp_set_default.
5164 name from @gp_set_instance to @gp_set_default.
5162
5165
5163 * IPython/ipmaker.py (make_IPython): default editor value set to
5166 * IPython/ipmaker.py (make_IPython): default editor value set to
5164 '0' (a string), to match the rc file. Otherwise will crash when
5167 '0' (a string), to match the rc file. Otherwise will crash when
5165 .strip() is called on it.
5168 .strip() is called on it.
5166
5169
5167
5170
5168 2002-06-28 Fernando Perez <fperez@colorado.edu>
5171 2002-06-28 Fernando Perez <fperez@colorado.edu>
5169
5172
5170 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
5173 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
5171 of files in current directory when a file is executed via
5174 of files in current directory when a file is executed via
5172 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
5175 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
5173
5176
5174 * setup.py (manfiles): fix for rpm builds, submitted by RA
5177 * setup.py (manfiles): fix for rpm builds, submitted by RA
5175 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
5178 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
5176
5179
5177 * IPython/ipmaker.py (make_IPython): fixed lookup of default
5180 * IPython/ipmaker.py (make_IPython): fixed lookup of default
5178 editor when set to '0'. Problem was, '0' evaluates to True (it's a
5181 editor when set to '0'. Problem was, '0' evaluates to True (it's a
5179 string!). A. Schmolck caught this one.
5182 string!). A. Schmolck caught this one.
5180
5183
5181 2002-06-27 Fernando Perez <fperez@colorado.edu>
5184 2002-06-27 Fernando Perez <fperez@colorado.edu>
5182
5185
5183 * IPython/ipmaker.py (make_IPython): fixed bug when running user
5186 * IPython/ipmaker.py (make_IPython): fixed bug when running user
5184 defined files at the cmd line. __name__ wasn't being set to
5187 defined files at the cmd line. __name__ wasn't being set to
5185 __main__.
5188 __main__.
5186
5189
5187 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
5190 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
5188 regular lists and tuples besides Numeric arrays.
5191 regular lists and tuples besides Numeric arrays.
5189
5192
5190 * IPython/Prompts.py (CachedOutput.__call__): Added output
5193 * IPython/Prompts.py (CachedOutput.__call__): Added output
5191 supression for input ending with ';'. Similar to Mathematica and
5194 supression for input ending with ';'. Similar to Mathematica and
5192 Matlab. The _* vars and Out[] list are still updated, just like
5195 Matlab. The _* vars and Out[] list are still updated, just like
5193 Mathematica behaves.
5196 Mathematica behaves.
5194
5197
5195 2002-06-25 Fernando Perez <fperez@colorado.edu>
5198 2002-06-25 Fernando Perez <fperez@colorado.edu>
5196
5199
5197 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
5200 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
5198 .ini extensions for profiels under Windows.
5201 .ini extensions for profiels under Windows.
5199
5202
5200 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
5203 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
5201 string form. Fix contributed by Alexander Schmolck
5204 string form. Fix contributed by Alexander Schmolck
5202 <a.schmolck-AT-gmx.net>
5205 <a.schmolck-AT-gmx.net>
5203
5206
5204 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
5207 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
5205 pre-configured Gnuplot instance.
5208 pre-configured Gnuplot instance.
5206
5209
5207 2002-06-21 Fernando Perez <fperez@colorado.edu>
5210 2002-06-21 Fernando Perez <fperez@colorado.edu>
5208
5211
5209 * IPython/numutils.py (exp_safe): new function, works around the
5212 * IPython/numutils.py (exp_safe): new function, works around the
5210 underflow problems in Numeric.
5213 underflow problems in Numeric.
5211 (log2): New fn. Safe log in base 2: returns exact integer answer
5214 (log2): New fn. Safe log in base 2: returns exact integer answer
5212 for exact integer powers of 2.
5215 for exact integer powers of 2.
5213
5216
5214 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
5217 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
5215 properly.
5218 properly.
5216
5219
5217 2002-06-20 Fernando Perez <fperez@colorado.edu>
5220 2002-06-20 Fernando Perez <fperez@colorado.edu>
5218
5221
5219 * IPython/genutils.py (timing): new function like
5222 * IPython/genutils.py (timing): new function like
5220 Mathematica's. Similar to time_test, but returns more info.
5223 Mathematica's. Similar to time_test, but returns more info.
5221
5224
5222 2002-06-18 Fernando Perez <fperez@colorado.edu>
5225 2002-06-18 Fernando Perez <fperez@colorado.edu>
5223
5226
5224 * IPython/Magic.py (Magic.magic_save): modified @save and @r
5227 * IPython/Magic.py (Magic.magic_save): modified @save and @r
5225 according to Mike Heeter's suggestions.
5228 according to Mike Heeter's suggestions.
5226
5229
5227 2002-06-16 Fernando Perez <fperez@colorado.edu>
5230 2002-06-16 Fernando Perez <fperez@colorado.edu>
5228
5231
5229 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
5232 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
5230 system. GnuplotMagic is gone as a user-directory option. New files
5233 system. GnuplotMagic is gone as a user-directory option. New files
5231 make it easier to use all the gnuplot stuff both from external
5234 make it easier to use all the gnuplot stuff both from external
5232 programs as well as from IPython. Had to rewrite part of
5235 programs as well as from IPython. Had to rewrite part of
5233 hardcopy() b/c of a strange bug: often the ps files simply don't
5236 hardcopy() b/c of a strange bug: often the ps files simply don't
5234 get created, and require a repeat of the command (often several
5237 get created, and require a repeat of the command (often several
5235 times).
5238 times).
5236
5239
5237 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
5240 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
5238 resolve output channel at call time, so that if sys.stderr has
5241 resolve output channel at call time, so that if sys.stderr has
5239 been redirected by user this gets honored.
5242 been redirected by user this gets honored.
5240
5243
5241 2002-06-13 Fernando Perez <fperez@colorado.edu>
5244 2002-06-13 Fernando Perez <fperez@colorado.edu>
5242
5245
5243 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
5246 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
5244 IPShell. Kept a copy with the old names to avoid breaking people's
5247 IPShell. Kept a copy with the old names to avoid breaking people's
5245 embedded code.
5248 embedded code.
5246
5249
5247 * IPython/ipython: simplified it to the bare minimum after
5250 * IPython/ipython: simplified it to the bare minimum after
5248 Holger's suggestions. Added info about how to use it in
5251 Holger's suggestions. Added info about how to use it in
5249 PYTHONSTARTUP.
5252 PYTHONSTARTUP.
5250
5253
5251 * IPython/Shell.py (IPythonShell): changed the options passing
5254 * IPython/Shell.py (IPythonShell): changed the options passing
5252 from a string with funky %s replacements to a straight list. Maybe
5255 from a string with funky %s replacements to a straight list. Maybe
5253 a bit more typing, but it follows sys.argv conventions, so there's
5256 a bit more typing, but it follows sys.argv conventions, so there's
5254 less special-casing to remember.
5257 less special-casing to remember.
5255
5258
5256 2002-06-12 Fernando Perez <fperez@colorado.edu>
5259 2002-06-12 Fernando Perez <fperez@colorado.edu>
5257
5260
5258 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
5261 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
5259 command. Thanks to a suggestion by Mike Heeter.
5262 command. Thanks to a suggestion by Mike Heeter.
5260 (Magic.magic_pfile): added behavior to look at filenames if given
5263 (Magic.magic_pfile): added behavior to look at filenames if given
5261 arg is not a defined object.
5264 arg is not a defined object.
5262 (Magic.magic_save): New @save function to save code snippets. Also
5265 (Magic.magic_save): New @save function to save code snippets. Also
5263 a Mike Heeter idea.
5266 a Mike Heeter idea.
5264
5267
5265 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5268 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5266 plot() and replot(). Much more convenient now, especially for
5269 plot() and replot(). Much more convenient now, especially for
5267 interactive use.
5270 interactive use.
5268
5271
5269 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5272 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5270 filenames.
5273 filenames.
5271
5274
5272 2002-06-02 Fernando Perez <fperez@colorado.edu>
5275 2002-06-02 Fernando Perez <fperez@colorado.edu>
5273
5276
5274 * IPython/Struct.py (Struct.__init__): modified to admit
5277 * IPython/Struct.py (Struct.__init__): modified to admit
5275 initialization via another struct.
5278 initialization via another struct.
5276
5279
5277 * IPython/genutils.py (SystemExec.__init__): New stateful
5280 * IPython/genutils.py (SystemExec.__init__): New stateful
5278 interface to xsys and bq. Useful for writing system scripts.
5281 interface to xsys and bq. Useful for writing system scripts.
5279
5282
5280 2002-05-30 Fernando Perez <fperez@colorado.edu>
5283 2002-05-30 Fernando Perez <fperez@colorado.edu>
5281
5284
5282 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5285 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5283 documents. This will make the user download smaller (it's getting
5286 documents. This will make the user download smaller (it's getting
5284 too big).
5287 too big).
5285
5288
5286 2002-05-29 Fernando Perez <fperez@colorado.edu>
5289 2002-05-29 Fernando Perez <fperez@colorado.edu>
5287
5290
5288 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5291 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5289 fix problems with shelve and pickle. Seems to work, but I don't
5292 fix problems with shelve and pickle. Seems to work, but I don't
5290 know if corner cases break it. Thanks to Mike Heeter
5293 know if corner cases break it. Thanks to Mike Heeter
5291 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5294 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5292
5295
5293 2002-05-24 Fernando Perez <fperez@colorado.edu>
5296 2002-05-24 Fernando Perez <fperez@colorado.edu>
5294
5297
5295 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5298 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5296 macros having broken.
5299 macros having broken.
5297
5300
5298 2002-05-21 Fernando Perez <fperez@colorado.edu>
5301 2002-05-21 Fernando Perez <fperez@colorado.edu>
5299
5302
5300 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5303 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5301 introduced logging bug: all history before logging started was
5304 introduced logging bug: all history before logging started was
5302 being written one character per line! This came from the redesign
5305 being written one character per line! This came from the redesign
5303 of the input history as a special list which slices to strings,
5306 of the input history as a special list which slices to strings,
5304 not to lists.
5307 not to lists.
5305
5308
5306 2002-05-20 Fernando Perez <fperez@colorado.edu>
5309 2002-05-20 Fernando Perez <fperez@colorado.edu>
5307
5310
5308 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5311 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5309 be an attribute of all classes in this module. The design of these
5312 be an attribute of all classes in this module. The design of these
5310 classes needs some serious overhauling.
5313 classes needs some serious overhauling.
5311
5314
5312 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5315 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5313 which was ignoring '_' in option names.
5316 which was ignoring '_' in option names.
5314
5317
5315 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5318 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5316 'Verbose_novars' to 'Context' and made it the new default. It's a
5319 'Verbose_novars' to 'Context' and made it the new default. It's a
5317 bit more readable and also safer than verbose.
5320 bit more readable and also safer than verbose.
5318
5321
5319 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5322 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5320 triple-quoted strings.
5323 triple-quoted strings.
5321
5324
5322 * IPython/OInspect.py (__all__): new module exposing the object
5325 * IPython/OInspect.py (__all__): new module exposing the object
5323 introspection facilities. Now the corresponding magics are dummy
5326 introspection facilities. Now the corresponding magics are dummy
5324 wrappers around this. Having this module will make it much easier
5327 wrappers around this. Having this module will make it much easier
5325 to put these functions into our modified pdb.
5328 to put these functions into our modified pdb.
5326 This new object inspector system uses the new colorizing module,
5329 This new object inspector system uses the new colorizing module,
5327 so source code and other things are nicely syntax highlighted.
5330 so source code and other things are nicely syntax highlighted.
5328
5331
5329 2002-05-18 Fernando Perez <fperez@colorado.edu>
5332 2002-05-18 Fernando Perez <fperez@colorado.edu>
5330
5333
5331 * IPython/ColorANSI.py: Split the coloring tools into a separate
5334 * IPython/ColorANSI.py: Split the coloring tools into a separate
5332 module so I can use them in other code easier (they were part of
5335 module so I can use them in other code easier (they were part of
5333 ultraTB).
5336 ultraTB).
5334
5337
5335 2002-05-17 Fernando Perez <fperez@colorado.edu>
5338 2002-05-17 Fernando Perez <fperez@colorado.edu>
5336
5339
5337 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5340 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5338 fixed it to set the global 'g' also to the called instance, as
5341 fixed it to set the global 'g' also to the called instance, as
5339 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5342 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5340 user's 'g' variables).
5343 user's 'g' variables).
5341
5344
5342 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5345 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5343 global variables (aliases to _ih,_oh) so that users which expect
5346 global variables (aliases to _ih,_oh) so that users which expect
5344 In[5] or Out[7] to work aren't unpleasantly surprised.
5347 In[5] or Out[7] to work aren't unpleasantly surprised.
5345 (InputList.__getslice__): new class to allow executing slices of
5348 (InputList.__getslice__): new class to allow executing slices of
5346 input history directly. Very simple class, complements the use of
5349 input history directly. Very simple class, complements the use of
5347 macros.
5350 macros.
5348
5351
5349 2002-05-16 Fernando Perez <fperez@colorado.edu>
5352 2002-05-16 Fernando Perez <fperez@colorado.edu>
5350
5353
5351 * setup.py (docdirbase): make doc directory be just doc/IPython
5354 * setup.py (docdirbase): make doc directory be just doc/IPython
5352 without version numbers, it will reduce clutter for users.
5355 without version numbers, it will reduce clutter for users.
5353
5356
5354 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5357 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5355 execfile call to prevent possible memory leak. See for details:
5358 execfile call to prevent possible memory leak. See for details:
5356 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5359 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5357
5360
5358 2002-05-15 Fernando Perez <fperez@colorado.edu>
5361 2002-05-15 Fernando Perez <fperez@colorado.edu>
5359
5362
5360 * IPython/Magic.py (Magic.magic_psource): made the object
5363 * IPython/Magic.py (Magic.magic_psource): made the object
5361 introspection names be more standard: pdoc, pdef, pfile and
5364 introspection names be more standard: pdoc, pdef, pfile and
5362 psource. They all print/page their output, and it makes
5365 psource. They all print/page their output, and it makes
5363 remembering them easier. Kept old names for compatibility as
5366 remembering them easier. Kept old names for compatibility as
5364 aliases.
5367 aliases.
5365
5368
5366 2002-05-14 Fernando Perez <fperez@colorado.edu>
5369 2002-05-14 Fernando Perez <fperez@colorado.edu>
5367
5370
5368 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5371 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5369 what the mouse problem was. The trick is to use gnuplot with temp
5372 what the mouse problem was. The trick is to use gnuplot with temp
5370 files and NOT with pipes (for data communication), because having
5373 files and NOT with pipes (for data communication), because having
5371 both pipes and the mouse on is bad news.
5374 both pipes and the mouse on is bad news.
5372
5375
5373 2002-05-13 Fernando Perez <fperez@colorado.edu>
5376 2002-05-13 Fernando Perez <fperez@colorado.edu>
5374
5377
5375 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5378 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5376 bug. Information would be reported about builtins even when
5379 bug. Information would be reported about builtins even when
5377 user-defined functions overrode them.
5380 user-defined functions overrode them.
5378
5381
5379 2002-05-11 Fernando Perez <fperez@colorado.edu>
5382 2002-05-11 Fernando Perez <fperez@colorado.edu>
5380
5383
5381 * IPython/__init__.py (__all__): removed FlexCompleter from
5384 * IPython/__init__.py (__all__): removed FlexCompleter from
5382 __all__ so that things don't fail in platforms without readline.
5385 __all__ so that things don't fail in platforms without readline.
5383
5386
5384 2002-05-10 Fernando Perez <fperez@colorado.edu>
5387 2002-05-10 Fernando Perez <fperez@colorado.edu>
5385
5388
5386 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5389 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5387 it requires Numeric, effectively making Numeric a dependency for
5390 it requires Numeric, effectively making Numeric a dependency for
5388 IPython.
5391 IPython.
5389
5392
5390 * Released 0.2.13
5393 * Released 0.2.13
5391
5394
5392 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5395 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5393 profiler interface. Now all the major options from the profiler
5396 profiler interface. Now all the major options from the profiler
5394 module are directly supported in IPython, both for single
5397 module are directly supported in IPython, both for single
5395 expressions (@prun) and for full programs (@run -p).
5398 expressions (@prun) and for full programs (@run -p).
5396
5399
5397 2002-05-09 Fernando Perez <fperez@colorado.edu>
5400 2002-05-09 Fernando Perez <fperez@colorado.edu>
5398
5401
5399 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5402 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5400 magic properly formatted for screen.
5403 magic properly formatted for screen.
5401
5404
5402 * setup.py (make_shortcut): Changed things to put pdf version in
5405 * setup.py (make_shortcut): Changed things to put pdf version in
5403 doc/ instead of doc/manual (had to change lyxport a bit).
5406 doc/ instead of doc/manual (had to change lyxport a bit).
5404
5407
5405 * IPython/Magic.py (Profile.string_stats): made profile runs go
5408 * IPython/Magic.py (Profile.string_stats): made profile runs go
5406 through pager (they are long and a pager allows searching, saving,
5409 through pager (they are long and a pager allows searching, saving,
5407 etc.)
5410 etc.)
5408
5411
5409 2002-05-08 Fernando Perez <fperez@colorado.edu>
5412 2002-05-08 Fernando Perez <fperez@colorado.edu>
5410
5413
5411 * Released 0.2.12
5414 * Released 0.2.12
5412
5415
5413 2002-05-06 Fernando Perez <fperez@colorado.edu>
5416 2002-05-06 Fernando Perez <fperez@colorado.edu>
5414
5417
5415 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5418 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5416 introduced); 'hist n1 n2' was broken.
5419 introduced); 'hist n1 n2' was broken.
5417 (Magic.magic_pdb): added optional on/off arguments to @pdb
5420 (Magic.magic_pdb): added optional on/off arguments to @pdb
5418 (Magic.magic_run): added option -i to @run, which executes code in
5421 (Magic.magic_run): added option -i to @run, which executes code in
5419 the IPython namespace instead of a clean one. Also added @irun as
5422 the IPython namespace instead of a clean one. Also added @irun as
5420 an alias to @run -i.
5423 an alias to @run -i.
5421
5424
5422 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5425 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5423 fixed (it didn't really do anything, the namespaces were wrong).
5426 fixed (it didn't really do anything, the namespaces were wrong).
5424
5427
5425 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5428 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5426
5429
5427 * IPython/__init__.py (__all__): Fixed package namespace, now
5430 * IPython/__init__.py (__all__): Fixed package namespace, now
5428 'import IPython' does give access to IPython.<all> as
5431 'import IPython' does give access to IPython.<all> as
5429 expected. Also renamed __release__ to Release.
5432 expected. Also renamed __release__ to Release.
5430
5433
5431 * IPython/Debugger.py (__license__): created new Pdb class which
5434 * IPython/Debugger.py (__license__): created new Pdb class which
5432 functions like a drop-in for the normal pdb.Pdb but does NOT
5435 functions like a drop-in for the normal pdb.Pdb but does NOT
5433 import readline by default. This way it doesn't muck up IPython's
5436 import readline by default. This way it doesn't muck up IPython's
5434 readline handling, and now tab-completion finally works in the
5437 readline handling, and now tab-completion finally works in the
5435 debugger -- sort of. It completes things globally visible, but the
5438 debugger -- sort of. It completes things globally visible, but the
5436 completer doesn't track the stack as pdb walks it. That's a bit
5439 completer doesn't track the stack as pdb walks it. That's a bit
5437 tricky, and I'll have to implement it later.
5440 tricky, and I'll have to implement it later.
5438
5441
5439 2002-05-05 Fernando Perez <fperez@colorado.edu>
5442 2002-05-05 Fernando Perez <fperez@colorado.edu>
5440
5443
5441 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5444 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5442 magic docstrings when printed via ? (explicit \'s were being
5445 magic docstrings when printed via ? (explicit \'s were being
5443 printed).
5446 printed).
5444
5447
5445 * IPython/ipmaker.py (make_IPython): fixed namespace
5448 * IPython/ipmaker.py (make_IPython): fixed namespace
5446 identification bug. Now variables loaded via logs or command-line
5449 identification bug. Now variables loaded via logs or command-line
5447 files are recognized in the interactive namespace by @who.
5450 files are recognized in the interactive namespace by @who.
5448
5451
5449 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5452 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5450 log replay system stemming from the string form of Structs.
5453 log replay system stemming from the string form of Structs.
5451
5454
5452 * IPython/Magic.py (Macro.__init__): improved macros to properly
5455 * IPython/Magic.py (Macro.__init__): improved macros to properly
5453 handle magic commands in them.
5456 handle magic commands in them.
5454 (Magic.magic_logstart): usernames are now expanded so 'logstart
5457 (Magic.magic_logstart): usernames are now expanded so 'logstart
5455 ~/mylog' now works.
5458 ~/mylog' now works.
5456
5459
5457 * IPython/iplib.py (complete): fixed bug where paths starting with
5460 * IPython/iplib.py (complete): fixed bug where paths starting with
5458 '/' would be completed as magic names.
5461 '/' would be completed as magic names.
5459
5462
5460 2002-05-04 Fernando Perez <fperez@colorado.edu>
5463 2002-05-04 Fernando Perez <fperez@colorado.edu>
5461
5464
5462 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5465 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5463 allow running full programs under the profiler's control.
5466 allow running full programs under the profiler's control.
5464
5467
5465 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5468 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5466 mode to report exceptions verbosely but without formatting
5469 mode to report exceptions verbosely but without formatting
5467 variables. This addresses the issue of ipython 'freezing' (it's
5470 variables. This addresses the issue of ipython 'freezing' (it's
5468 not frozen, but caught in an expensive formatting loop) when huge
5471 not frozen, but caught in an expensive formatting loop) when huge
5469 variables are in the context of an exception.
5472 variables are in the context of an exception.
5470 (VerboseTB.text): Added '--->' markers at line where exception was
5473 (VerboseTB.text): Added '--->' markers at line where exception was
5471 triggered. Much clearer to read, especially in NoColor modes.
5474 triggered. Much clearer to read, especially in NoColor modes.
5472
5475
5473 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5476 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5474 implemented in reverse when changing to the new parse_options().
5477 implemented in reverse when changing to the new parse_options().
5475
5478
5476 2002-05-03 Fernando Perez <fperez@colorado.edu>
5479 2002-05-03 Fernando Perez <fperez@colorado.edu>
5477
5480
5478 * IPython/Magic.py (Magic.parse_options): new function so that
5481 * IPython/Magic.py (Magic.parse_options): new function so that
5479 magics can parse options easier.
5482 magics can parse options easier.
5480 (Magic.magic_prun): new function similar to profile.run(),
5483 (Magic.magic_prun): new function similar to profile.run(),
5481 suggested by Chris Hart.
5484 suggested by Chris Hart.
5482 (Magic.magic_cd): fixed behavior so that it only changes if
5485 (Magic.magic_cd): fixed behavior so that it only changes if
5483 directory actually is in history.
5486 directory actually is in history.
5484
5487
5485 * IPython/usage.py (__doc__): added information about potential
5488 * IPython/usage.py (__doc__): added information about potential
5486 slowness of Verbose exception mode when there are huge data
5489 slowness of Verbose exception mode when there are huge data
5487 structures to be formatted (thanks to Archie Paulson).
5490 structures to be formatted (thanks to Archie Paulson).
5488
5491
5489 * IPython/ipmaker.py (make_IPython): Changed default logging
5492 * IPython/ipmaker.py (make_IPython): Changed default logging
5490 (when simply called with -log) to use curr_dir/ipython.log in
5493 (when simply called with -log) to use curr_dir/ipython.log in
5491 rotate mode. Fixed crash which was occuring with -log before
5494 rotate mode. Fixed crash which was occuring with -log before
5492 (thanks to Jim Boyle).
5495 (thanks to Jim Boyle).
5493
5496
5494 2002-05-01 Fernando Perez <fperez@colorado.edu>
5497 2002-05-01 Fernando Perez <fperez@colorado.edu>
5495
5498
5496 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5499 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5497 was nasty -- though somewhat of a corner case).
5500 was nasty -- though somewhat of a corner case).
5498
5501
5499 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5502 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5500 text (was a bug).
5503 text (was a bug).
5501
5504
5502 2002-04-30 Fernando Perez <fperez@colorado.edu>
5505 2002-04-30 Fernando Perez <fperez@colorado.edu>
5503
5506
5504 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5507 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5505 a print after ^D or ^C from the user so that the In[] prompt
5508 a print after ^D or ^C from the user so that the In[] prompt
5506 doesn't over-run the gnuplot one.
5509 doesn't over-run the gnuplot one.
5507
5510
5508 2002-04-29 Fernando Perez <fperez@colorado.edu>
5511 2002-04-29 Fernando Perez <fperez@colorado.edu>
5509
5512
5510 * Released 0.2.10
5513 * Released 0.2.10
5511
5514
5512 * IPython/__release__.py (version): get date dynamically.
5515 * IPython/__release__.py (version): get date dynamically.
5513
5516
5514 * Misc. documentation updates thanks to Arnd's comments. Also ran
5517 * Misc. documentation updates thanks to Arnd's comments. Also ran
5515 a full spellcheck on the manual (hadn't been done in a while).
5518 a full spellcheck on the manual (hadn't been done in a while).
5516
5519
5517 2002-04-27 Fernando Perez <fperez@colorado.edu>
5520 2002-04-27 Fernando Perez <fperez@colorado.edu>
5518
5521
5519 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5522 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5520 starting a log in mid-session would reset the input history list.
5523 starting a log in mid-session would reset the input history list.
5521
5524
5522 2002-04-26 Fernando Perez <fperez@colorado.edu>
5525 2002-04-26 Fernando Perez <fperez@colorado.edu>
5523
5526
5524 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5527 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5525 all files were being included in an update. Now anything in
5528 all files were being included in an update. Now anything in
5526 UserConfig that matches [A-Za-z]*.py will go (this excludes
5529 UserConfig that matches [A-Za-z]*.py will go (this excludes
5527 __init__.py)
5530 __init__.py)
5528
5531
5529 2002-04-25 Fernando Perez <fperez@colorado.edu>
5532 2002-04-25 Fernando Perez <fperez@colorado.edu>
5530
5533
5531 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5534 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5532 to __builtins__ so that any form of embedded or imported code can
5535 to __builtins__ so that any form of embedded or imported code can
5533 test for being inside IPython.
5536 test for being inside IPython.
5534
5537
5535 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5538 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5536 changed to GnuplotMagic because it's now an importable module,
5539 changed to GnuplotMagic because it's now an importable module,
5537 this makes the name follow that of the standard Gnuplot module.
5540 this makes the name follow that of the standard Gnuplot module.
5538 GnuplotMagic can now be loaded at any time in mid-session.
5541 GnuplotMagic can now be loaded at any time in mid-session.
5539
5542
5540 2002-04-24 Fernando Perez <fperez@colorado.edu>
5543 2002-04-24 Fernando Perez <fperez@colorado.edu>
5541
5544
5542 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5545 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5543 the globals (IPython has its own namespace) and the
5546 the globals (IPython has its own namespace) and the
5544 PhysicalQuantity stuff is much better anyway.
5547 PhysicalQuantity stuff is much better anyway.
5545
5548
5546 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5549 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5547 embedding example to standard user directory for
5550 embedding example to standard user directory for
5548 distribution. Also put it in the manual.
5551 distribution. Also put it in the manual.
5549
5552
5550 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5553 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5551 instance as first argument (so it doesn't rely on some obscure
5554 instance as first argument (so it doesn't rely on some obscure
5552 hidden global).
5555 hidden global).
5553
5556
5554 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5557 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5555 delimiters. While it prevents ().TAB from working, it allows
5558 delimiters. While it prevents ().TAB from working, it allows
5556 completions in open (... expressions. This is by far a more common
5559 completions in open (... expressions. This is by far a more common
5557 case.
5560 case.
5558
5561
5559 2002-04-23 Fernando Perez <fperez@colorado.edu>
5562 2002-04-23 Fernando Perez <fperez@colorado.edu>
5560
5563
5561 * IPython/Extensions/InterpreterPasteInput.py: new
5564 * IPython/Extensions/InterpreterPasteInput.py: new
5562 syntax-processing module for pasting lines with >>> or ... at the
5565 syntax-processing module for pasting lines with >>> or ... at the
5563 start.
5566 start.
5564
5567
5565 * IPython/Extensions/PhysicalQ_Interactive.py
5568 * IPython/Extensions/PhysicalQ_Interactive.py
5566 (PhysicalQuantityInteractive.__int__): fixed to work with either
5569 (PhysicalQuantityInteractive.__int__): fixed to work with either
5567 Numeric or math.
5570 Numeric or math.
5568
5571
5569 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5572 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5570 provided profiles. Now we have:
5573 provided profiles. Now we have:
5571 -math -> math module as * and cmath with its own namespace.
5574 -math -> math module as * and cmath with its own namespace.
5572 -numeric -> Numeric as *, plus gnuplot & grace
5575 -numeric -> Numeric as *, plus gnuplot & grace
5573 -physics -> same as before
5576 -physics -> same as before
5574
5577
5575 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5578 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5576 user-defined magics wouldn't be found by @magic if they were
5579 user-defined magics wouldn't be found by @magic if they were
5577 defined as class methods. Also cleaned up the namespace search
5580 defined as class methods. Also cleaned up the namespace search
5578 logic and the string building (to use %s instead of many repeated
5581 logic and the string building (to use %s instead of many repeated
5579 string adds).
5582 string adds).
5580
5583
5581 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5584 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5582 of user-defined magics to operate with class methods (cleaner, in
5585 of user-defined magics to operate with class methods (cleaner, in
5583 line with the gnuplot code).
5586 line with the gnuplot code).
5584
5587
5585 2002-04-22 Fernando Perez <fperez@colorado.edu>
5588 2002-04-22 Fernando Perez <fperez@colorado.edu>
5586
5589
5587 * setup.py: updated dependency list so that manual is updated when
5590 * setup.py: updated dependency list so that manual is updated when
5588 all included files change.
5591 all included files change.
5589
5592
5590 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5593 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5591 the delimiter removal option (the fix is ugly right now).
5594 the delimiter removal option (the fix is ugly right now).
5592
5595
5593 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5596 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5594 all of the math profile (quicker loading, no conflict between
5597 all of the math profile (quicker loading, no conflict between
5595 g-9.8 and g-gnuplot).
5598 g-9.8 and g-gnuplot).
5596
5599
5597 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5600 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5598 name of post-mortem files to IPython_crash_report.txt.
5601 name of post-mortem files to IPython_crash_report.txt.
5599
5602
5600 * Cleanup/update of the docs. Added all the new readline info and
5603 * Cleanup/update of the docs. Added all the new readline info and
5601 formatted all lists as 'real lists'.
5604 formatted all lists as 'real lists'.
5602
5605
5603 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5606 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5604 tab-completion options, since the full readline parse_and_bind is
5607 tab-completion options, since the full readline parse_and_bind is
5605 now accessible.
5608 now accessible.
5606
5609
5607 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5610 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5608 handling of readline options. Now users can specify any string to
5611 handling of readline options. Now users can specify any string to
5609 be passed to parse_and_bind(), as well as the delimiters to be
5612 be passed to parse_and_bind(), as well as the delimiters to be
5610 removed.
5613 removed.
5611 (InteractiveShell.__init__): Added __name__ to the global
5614 (InteractiveShell.__init__): Added __name__ to the global
5612 namespace so that things like Itpl which rely on its existence
5615 namespace so that things like Itpl which rely on its existence
5613 don't crash.
5616 don't crash.
5614 (InteractiveShell._prefilter): Defined the default with a _ so
5617 (InteractiveShell._prefilter): Defined the default with a _ so
5615 that prefilter() is easier to override, while the default one
5618 that prefilter() is easier to override, while the default one
5616 remains available.
5619 remains available.
5617
5620
5618 2002-04-18 Fernando Perez <fperez@colorado.edu>
5621 2002-04-18 Fernando Perez <fperez@colorado.edu>
5619
5622
5620 * Added information about pdb in the docs.
5623 * Added information about pdb in the docs.
5621
5624
5622 2002-04-17 Fernando Perez <fperez@colorado.edu>
5625 2002-04-17 Fernando Perez <fperez@colorado.edu>
5623
5626
5624 * IPython/ipmaker.py (make_IPython): added rc_override option to
5627 * IPython/ipmaker.py (make_IPython): added rc_override option to
5625 allow passing config options at creation time which may override
5628 allow passing config options at creation time which may override
5626 anything set in the config files or command line. This is
5629 anything set in the config files or command line. This is
5627 particularly useful for configuring embedded instances.
5630 particularly useful for configuring embedded instances.
5628
5631
5629 2002-04-15 Fernando Perez <fperez@colorado.edu>
5632 2002-04-15 Fernando Perez <fperez@colorado.edu>
5630
5633
5631 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5634 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5632 crash embedded instances because of the input cache falling out of
5635 crash embedded instances because of the input cache falling out of
5633 sync with the output counter.
5636 sync with the output counter.
5634
5637
5635 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5638 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5636 mode which calls pdb after an uncaught exception in IPython itself.
5639 mode which calls pdb after an uncaught exception in IPython itself.
5637
5640
5638 2002-04-14 Fernando Perez <fperez@colorado.edu>
5641 2002-04-14 Fernando Perez <fperez@colorado.edu>
5639
5642
5640 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5643 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5641 readline, fix it back after each call.
5644 readline, fix it back after each call.
5642
5645
5643 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5646 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5644 method to force all access via __call__(), which guarantees that
5647 method to force all access via __call__(), which guarantees that
5645 traceback references are properly deleted.
5648 traceback references are properly deleted.
5646
5649
5647 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5650 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5648 improve printing when pprint is in use.
5651 improve printing when pprint is in use.
5649
5652
5650 2002-04-13 Fernando Perez <fperez@colorado.edu>
5653 2002-04-13 Fernando Perez <fperez@colorado.edu>
5651
5654
5652 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5655 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5653 exceptions aren't caught anymore. If the user triggers one, he
5656 exceptions aren't caught anymore. If the user triggers one, he
5654 should know why he's doing it and it should go all the way up,
5657 should know why he's doing it and it should go all the way up,
5655 just like any other exception. So now @abort will fully kill the
5658 just like any other exception. So now @abort will fully kill the
5656 embedded interpreter and the embedding code (unless that happens
5659 embedded interpreter and the embedding code (unless that happens
5657 to catch SystemExit).
5660 to catch SystemExit).
5658
5661
5659 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5662 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5660 and a debugger() method to invoke the interactive pdb debugger
5663 and a debugger() method to invoke the interactive pdb debugger
5661 after printing exception information. Also added the corresponding
5664 after printing exception information. Also added the corresponding
5662 -pdb option and @pdb magic to control this feature, and updated
5665 -pdb option and @pdb magic to control this feature, and updated
5663 the docs. After a suggestion from Christopher Hart
5666 the docs. After a suggestion from Christopher Hart
5664 (hart-AT-caltech.edu).
5667 (hart-AT-caltech.edu).
5665
5668
5666 2002-04-12 Fernando Perez <fperez@colorado.edu>
5669 2002-04-12 Fernando Perez <fperez@colorado.edu>
5667
5670
5668 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5671 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5669 the exception handlers defined by the user (not the CrashHandler)
5672 the exception handlers defined by the user (not the CrashHandler)
5670 so that user exceptions don't trigger an ipython bug report.
5673 so that user exceptions don't trigger an ipython bug report.
5671
5674
5672 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5675 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5673 configurable (it should have always been so).
5676 configurable (it should have always been so).
5674
5677
5675 2002-03-26 Fernando Perez <fperez@colorado.edu>
5678 2002-03-26 Fernando Perez <fperez@colorado.edu>
5676
5679
5677 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5680 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5678 and there to fix embedding namespace issues. This should all be
5681 and there to fix embedding namespace issues. This should all be
5679 done in a more elegant way.
5682 done in a more elegant way.
5680
5683
5681 2002-03-25 Fernando Perez <fperez@colorado.edu>
5684 2002-03-25 Fernando Perez <fperez@colorado.edu>
5682
5685
5683 * IPython/genutils.py (get_home_dir): Try to make it work under
5686 * IPython/genutils.py (get_home_dir): Try to make it work under
5684 win9x also.
5687 win9x also.
5685
5688
5686 2002-03-20 Fernando Perez <fperez@colorado.edu>
5689 2002-03-20 Fernando Perez <fperez@colorado.edu>
5687
5690
5688 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5691 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5689 sys.displayhook untouched upon __init__.
5692 sys.displayhook untouched upon __init__.
5690
5693
5691 2002-03-19 Fernando Perez <fperez@colorado.edu>
5694 2002-03-19 Fernando Perez <fperez@colorado.edu>
5692
5695
5693 * Released 0.2.9 (for embedding bug, basically).
5696 * Released 0.2.9 (for embedding bug, basically).
5694
5697
5695 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5698 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5696 exceptions so that enclosing shell's state can be restored.
5699 exceptions so that enclosing shell's state can be restored.
5697
5700
5698 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5701 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5699 naming conventions in the .ipython/ dir.
5702 naming conventions in the .ipython/ dir.
5700
5703
5701 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5704 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5702 from delimiters list so filenames with - in them get expanded.
5705 from delimiters list so filenames with - in them get expanded.
5703
5706
5704 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5707 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5705 sys.displayhook not being properly restored after an embedded call.
5708 sys.displayhook not being properly restored after an embedded call.
5706
5709
5707 2002-03-18 Fernando Perez <fperez@colorado.edu>
5710 2002-03-18 Fernando Perez <fperez@colorado.edu>
5708
5711
5709 * Released 0.2.8
5712 * Released 0.2.8
5710
5713
5711 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5714 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5712 some files weren't being included in a -upgrade.
5715 some files weren't being included in a -upgrade.
5713 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5716 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5714 on' so that the first tab completes.
5717 on' so that the first tab completes.
5715 (InteractiveShell.handle_magic): fixed bug with spaces around
5718 (InteractiveShell.handle_magic): fixed bug with spaces around
5716 quotes breaking many magic commands.
5719 quotes breaking many magic commands.
5717
5720
5718 * setup.py: added note about ignoring the syntax error messages at
5721 * setup.py: added note about ignoring the syntax error messages at
5719 installation.
5722 installation.
5720
5723
5721 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5724 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5722 streamlining the gnuplot interface, now there's only one magic @gp.
5725 streamlining the gnuplot interface, now there's only one magic @gp.
5723
5726
5724 2002-03-17 Fernando Perez <fperez@colorado.edu>
5727 2002-03-17 Fernando Perez <fperez@colorado.edu>
5725
5728
5726 * IPython/UserConfig/magic_gnuplot.py: new name for the
5729 * IPython/UserConfig/magic_gnuplot.py: new name for the
5727 example-magic_pm.py file. Much enhanced system, now with a shell
5730 example-magic_pm.py file. Much enhanced system, now with a shell
5728 for communicating directly with gnuplot, one command at a time.
5731 for communicating directly with gnuplot, one command at a time.
5729
5732
5730 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5733 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5731 setting __name__=='__main__'.
5734 setting __name__=='__main__'.
5732
5735
5733 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5736 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5734 mini-shell for accessing gnuplot from inside ipython. Should
5737 mini-shell for accessing gnuplot from inside ipython. Should
5735 extend it later for grace access too. Inspired by Arnd's
5738 extend it later for grace access too. Inspired by Arnd's
5736 suggestion.
5739 suggestion.
5737
5740
5738 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5741 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5739 calling magic functions with () in their arguments. Thanks to Arnd
5742 calling magic functions with () in their arguments. Thanks to Arnd
5740 Baecker for pointing this to me.
5743 Baecker for pointing this to me.
5741
5744
5742 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5745 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5743 infinitely for integer or complex arrays (only worked with floats).
5746 infinitely for integer or complex arrays (only worked with floats).
5744
5747
5745 2002-03-16 Fernando Perez <fperez@colorado.edu>
5748 2002-03-16 Fernando Perez <fperez@colorado.edu>
5746
5749
5747 * setup.py: Merged setup and setup_windows into a single script
5750 * setup.py: Merged setup and setup_windows into a single script
5748 which properly handles things for windows users.
5751 which properly handles things for windows users.
5749
5752
5750 2002-03-15 Fernando Perez <fperez@colorado.edu>
5753 2002-03-15 Fernando Perez <fperez@colorado.edu>
5751
5754
5752 * Big change to the manual: now the magics are all automatically
5755 * Big change to the manual: now the magics are all automatically
5753 documented. This information is generated from their docstrings
5756 documented. This information is generated from their docstrings
5754 and put in a latex file included by the manual lyx file. This way
5757 and put in a latex file included by the manual lyx file. This way
5755 we get always up to date information for the magics. The manual
5758 we get always up to date information for the magics. The manual
5756 now also has proper version information, also auto-synced.
5759 now also has proper version information, also auto-synced.
5757
5760
5758 For this to work, an undocumented --magic_docstrings option was added.
5761 For this to work, an undocumented --magic_docstrings option was added.
5759
5762
5760 2002-03-13 Fernando Perez <fperez@colorado.edu>
5763 2002-03-13 Fernando Perez <fperez@colorado.edu>
5761
5764
5762 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5765 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5763 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5766 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5764
5767
5765 2002-03-12 Fernando Perez <fperez@colorado.edu>
5768 2002-03-12 Fernando Perez <fperez@colorado.edu>
5766
5769
5767 * IPython/ultraTB.py (TermColors): changed color escapes again to
5770 * IPython/ultraTB.py (TermColors): changed color escapes again to
5768 fix the (old, reintroduced) line-wrapping bug. Basically, if
5771 fix the (old, reintroduced) line-wrapping bug. Basically, if
5769 \001..\002 aren't given in the color escapes, lines get wrapped
5772 \001..\002 aren't given in the color escapes, lines get wrapped
5770 weirdly. But giving those screws up old xterms and emacs terms. So
5773 weirdly. But giving those screws up old xterms and emacs terms. So
5771 I added some logic for emacs terms to be ok, but I can't identify old
5774 I added some logic for emacs terms to be ok, but I can't identify old
5772 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5775 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5773
5776
5774 2002-03-10 Fernando Perez <fperez@colorado.edu>
5777 2002-03-10 Fernando Perez <fperez@colorado.edu>
5775
5778
5776 * IPython/usage.py (__doc__): Various documentation cleanups and
5779 * IPython/usage.py (__doc__): Various documentation cleanups and
5777 updates, both in usage docstrings and in the manual.
5780 updates, both in usage docstrings and in the manual.
5778
5781
5779 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5782 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5780 handling of caching. Set minimum acceptabe value for having a
5783 handling of caching. Set minimum acceptabe value for having a
5781 cache at 20 values.
5784 cache at 20 values.
5782
5785
5783 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5786 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5784 install_first_time function to a method, renamed it and added an
5787 install_first_time function to a method, renamed it and added an
5785 'upgrade' mode. Now people can update their config directory with
5788 'upgrade' mode. Now people can update their config directory with
5786 a simple command line switch (-upgrade, also new).
5789 a simple command line switch (-upgrade, also new).
5787
5790
5788 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5791 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5789 @file (convenient for automagic users under Python >= 2.2).
5792 @file (convenient for automagic users under Python >= 2.2).
5790 Removed @files (it seemed more like a plural than an abbrev. of
5793 Removed @files (it seemed more like a plural than an abbrev. of
5791 'file show').
5794 'file show').
5792
5795
5793 * IPython/iplib.py (install_first_time): Fixed crash if there were
5796 * IPython/iplib.py (install_first_time): Fixed crash if there were
5794 backup files ('~') in .ipython/ install directory.
5797 backup files ('~') in .ipython/ install directory.
5795
5798
5796 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5799 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5797 system. Things look fine, but these changes are fairly
5800 system. Things look fine, but these changes are fairly
5798 intrusive. Test them for a few days.
5801 intrusive. Test them for a few days.
5799
5802
5800 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5803 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5801 the prompts system. Now all in/out prompt strings are user
5804 the prompts system. Now all in/out prompt strings are user
5802 controllable. This is particularly useful for embedding, as one
5805 controllable. This is particularly useful for embedding, as one
5803 can tag embedded instances with particular prompts.
5806 can tag embedded instances with particular prompts.
5804
5807
5805 Also removed global use of sys.ps1/2, which now allows nested
5808 Also removed global use of sys.ps1/2, which now allows nested
5806 embeddings without any problems. Added command-line options for
5809 embeddings without any problems. Added command-line options for
5807 the prompt strings.
5810 the prompt strings.
5808
5811
5809 2002-03-08 Fernando Perez <fperez@colorado.edu>
5812 2002-03-08 Fernando Perez <fperez@colorado.edu>
5810
5813
5811 * IPython/UserConfig/example-embed-short.py (ipshell): added
5814 * IPython/UserConfig/example-embed-short.py (ipshell): added
5812 example file with the bare minimum code for embedding.
5815 example file with the bare minimum code for embedding.
5813
5816
5814 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5817 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5815 functionality for the embeddable shell to be activated/deactivated
5818 functionality for the embeddable shell to be activated/deactivated
5816 either globally or at each call.
5819 either globally or at each call.
5817
5820
5818 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5821 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5819 rewriting the prompt with '--->' for auto-inputs with proper
5822 rewriting the prompt with '--->' for auto-inputs with proper
5820 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5823 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5821 this is handled by the prompts class itself, as it should.
5824 this is handled by the prompts class itself, as it should.
5822
5825
5823 2002-03-05 Fernando Perez <fperez@colorado.edu>
5826 2002-03-05 Fernando Perez <fperez@colorado.edu>
5824
5827
5825 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5828 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5826 @logstart to avoid name clashes with the math log function.
5829 @logstart to avoid name clashes with the math log function.
5827
5830
5828 * Big updates to X/Emacs section of the manual.
5831 * Big updates to X/Emacs section of the manual.
5829
5832
5830 * Removed ipython_emacs. Milan explained to me how to pass
5833 * Removed ipython_emacs. Milan explained to me how to pass
5831 arguments to ipython through Emacs. Some day I'm going to end up
5834 arguments to ipython through Emacs. Some day I'm going to end up
5832 learning some lisp...
5835 learning some lisp...
5833
5836
5834 2002-03-04 Fernando Perez <fperez@colorado.edu>
5837 2002-03-04 Fernando Perez <fperez@colorado.edu>
5835
5838
5836 * IPython/ipython_emacs: Created script to be used as the
5839 * IPython/ipython_emacs: Created script to be used as the
5837 py-python-command Emacs variable so we can pass IPython
5840 py-python-command Emacs variable so we can pass IPython
5838 parameters. I can't figure out how to tell Emacs directly to pass
5841 parameters. I can't figure out how to tell Emacs directly to pass
5839 parameters to IPython, so a dummy shell script will do it.
5842 parameters to IPython, so a dummy shell script will do it.
5840
5843
5841 Other enhancements made for things to work better under Emacs'
5844 Other enhancements made for things to work better under Emacs'
5842 various types of terminals. Many thanks to Milan Zamazal
5845 various types of terminals. Many thanks to Milan Zamazal
5843 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5846 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5844
5847
5845 2002-03-01 Fernando Perez <fperez@colorado.edu>
5848 2002-03-01 Fernando Perez <fperez@colorado.edu>
5846
5849
5847 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5850 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5848 that loading of readline is now optional. This gives better
5851 that loading of readline is now optional. This gives better
5849 control to emacs users.
5852 control to emacs users.
5850
5853
5851 * IPython/ultraTB.py (__date__): Modified color escape sequences
5854 * IPython/ultraTB.py (__date__): Modified color escape sequences
5852 and now things work fine under xterm and in Emacs' term buffers
5855 and now things work fine under xterm and in Emacs' term buffers
5853 (though not shell ones). Well, in emacs you get colors, but all
5856 (though not shell ones). Well, in emacs you get colors, but all
5854 seem to be 'light' colors (no difference between dark and light
5857 seem to be 'light' colors (no difference between dark and light
5855 ones). But the garbage chars are gone, and also in xterms. It
5858 ones). But the garbage chars are gone, and also in xterms. It
5856 seems that now I'm using 'cleaner' ansi sequences.
5859 seems that now I'm using 'cleaner' ansi sequences.
5857
5860
5858 2002-02-21 Fernando Perez <fperez@colorado.edu>
5861 2002-02-21 Fernando Perez <fperez@colorado.edu>
5859
5862
5860 * Released 0.2.7 (mainly to publish the scoping fix).
5863 * Released 0.2.7 (mainly to publish the scoping fix).
5861
5864
5862 * IPython/Logger.py (Logger.logstate): added. A corresponding
5865 * IPython/Logger.py (Logger.logstate): added. A corresponding
5863 @logstate magic was created.
5866 @logstate magic was created.
5864
5867
5865 * IPython/Magic.py: fixed nested scoping problem under Python
5868 * IPython/Magic.py: fixed nested scoping problem under Python
5866 2.1.x (automagic wasn't working).
5869 2.1.x (automagic wasn't working).
5867
5870
5868 2002-02-20 Fernando Perez <fperez@colorado.edu>
5871 2002-02-20 Fernando Perez <fperez@colorado.edu>
5869
5872
5870 * Released 0.2.6.
5873 * Released 0.2.6.
5871
5874
5872 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5875 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5873 option so that logs can come out without any headers at all.
5876 option so that logs can come out without any headers at all.
5874
5877
5875 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5878 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5876 SciPy.
5879 SciPy.
5877
5880
5878 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5881 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5879 that embedded IPython calls don't require vars() to be explicitly
5882 that embedded IPython calls don't require vars() to be explicitly
5880 passed. Now they are extracted from the caller's frame (code
5883 passed. Now they are extracted from the caller's frame (code
5881 snatched from Eric Jones' weave). Added better documentation to
5884 snatched from Eric Jones' weave). Added better documentation to
5882 the section on embedding and the example file.
5885 the section on embedding and the example file.
5883
5886
5884 * IPython/genutils.py (page): Changed so that under emacs, it just
5887 * IPython/genutils.py (page): Changed so that under emacs, it just
5885 prints the string. You can then page up and down in the emacs
5888 prints the string. You can then page up and down in the emacs
5886 buffer itself. This is how the builtin help() works.
5889 buffer itself. This is how the builtin help() works.
5887
5890
5888 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5891 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5889 macro scoping: macros need to be executed in the user's namespace
5892 macro scoping: macros need to be executed in the user's namespace
5890 to work as if they had been typed by the user.
5893 to work as if they had been typed by the user.
5891
5894
5892 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5895 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5893 execute automatically (no need to type 'exec...'). They then
5896 execute automatically (no need to type 'exec...'). They then
5894 behave like 'true macros'. The printing system was also modified
5897 behave like 'true macros'. The printing system was also modified
5895 for this to work.
5898 for this to work.
5896
5899
5897 2002-02-19 Fernando Perez <fperez@colorado.edu>
5900 2002-02-19 Fernando Perez <fperez@colorado.edu>
5898
5901
5899 * IPython/genutils.py (page_file): new function for paging files
5902 * IPython/genutils.py (page_file): new function for paging files
5900 in an OS-independent way. Also necessary for file viewing to work
5903 in an OS-independent way. Also necessary for file viewing to work
5901 well inside Emacs buffers.
5904 well inside Emacs buffers.
5902 (page): Added checks for being in an emacs buffer.
5905 (page): Added checks for being in an emacs buffer.
5903 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5906 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5904 same bug in iplib.
5907 same bug in iplib.
5905
5908
5906 2002-02-18 Fernando Perez <fperez@colorado.edu>
5909 2002-02-18 Fernando Perez <fperez@colorado.edu>
5907
5910
5908 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5911 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5909 of readline so that IPython can work inside an Emacs buffer.
5912 of readline so that IPython can work inside an Emacs buffer.
5910
5913
5911 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5914 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5912 method signatures (they weren't really bugs, but it looks cleaner
5915 method signatures (they weren't really bugs, but it looks cleaner
5913 and keeps PyChecker happy).
5916 and keeps PyChecker happy).
5914
5917
5915 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5918 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5916 for implementing various user-defined hooks. Currently only
5919 for implementing various user-defined hooks. Currently only
5917 display is done.
5920 display is done.
5918
5921
5919 * IPython/Prompts.py (CachedOutput._display): changed display
5922 * IPython/Prompts.py (CachedOutput._display): changed display
5920 functions so that they can be dynamically changed by users easily.
5923 functions so that they can be dynamically changed by users easily.
5921
5924
5922 * IPython/Extensions/numeric_formats.py (num_display): added an
5925 * IPython/Extensions/numeric_formats.py (num_display): added an
5923 extension for printing NumPy arrays in flexible manners. It
5926 extension for printing NumPy arrays in flexible manners. It
5924 doesn't do anything yet, but all the structure is in
5927 doesn't do anything yet, but all the structure is in
5925 place. Ultimately the plan is to implement output format control
5928 place. Ultimately the plan is to implement output format control
5926 like in Octave.
5929 like in Octave.
5927
5930
5928 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5931 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5929 methods are found at run-time by all the automatic machinery.
5932 methods are found at run-time by all the automatic machinery.
5930
5933
5931 2002-02-17 Fernando Perez <fperez@colorado.edu>
5934 2002-02-17 Fernando Perez <fperez@colorado.edu>
5932
5935
5933 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5936 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5934 whole file a little.
5937 whole file a little.
5935
5938
5936 * ToDo: closed this document. Now there's a new_design.lyx
5939 * ToDo: closed this document. Now there's a new_design.lyx
5937 document for all new ideas. Added making a pdf of it for the
5940 document for all new ideas. Added making a pdf of it for the
5938 end-user distro.
5941 end-user distro.
5939
5942
5940 * IPython/Logger.py (Logger.switch_log): Created this to replace
5943 * IPython/Logger.py (Logger.switch_log): Created this to replace
5941 logon() and logoff(). It also fixes a nasty crash reported by
5944 logon() and logoff(). It also fixes a nasty crash reported by
5942 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5945 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5943
5946
5944 * IPython/iplib.py (complete): got auto-completion to work with
5947 * IPython/iplib.py (complete): got auto-completion to work with
5945 automagic (I had wanted this for a long time).
5948 automagic (I had wanted this for a long time).
5946
5949
5947 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5950 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5948 to @file, since file() is now a builtin and clashes with automagic
5951 to @file, since file() is now a builtin and clashes with automagic
5949 for @file.
5952 for @file.
5950
5953
5951 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5954 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5952 of this was previously in iplib, which had grown to more than 2000
5955 of this was previously in iplib, which had grown to more than 2000
5953 lines, way too long. No new functionality, but it makes managing
5956 lines, way too long. No new functionality, but it makes managing
5954 the code a bit easier.
5957 the code a bit easier.
5955
5958
5956 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5959 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5957 information to crash reports.
5960 information to crash reports.
5958
5961
5959 2002-02-12 Fernando Perez <fperez@colorado.edu>
5962 2002-02-12 Fernando Perez <fperez@colorado.edu>
5960
5963
5961 * Released 0.2.5.
5964 * Released 0.2.5.
5962
5965
5963 2002-02-11 Fernando Perez <fperez@colorado.edu>
5966 2002-02-11 Fernando Perez <fperez@colorado.edu>
5964
5967
5965 * Wrote a relatively complete Windows installer. It puts
5968 * Wrote a relatively complete Windows installer. It puts
5966 everything in place, creates Start Menu entries and fixes the
5969 everything in place, creates Start Menu entries and fixes the
5967 color issues. Nothing fancy, but it works.
5970 color issues. Nothing fancy, but it works.
5968
5971
5969 2002-02-10 Fernando Perez <fperez@colorado.edu>
5972 2002-02-10 Fernando Perez <fperez@colorado.edu>
5970
5973
5971 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5974 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5972 os.path.expanduser() call so that we can type @run ~/myfile.py and
5975 os.path.expanduser() call so that we can type @run ~/myfile.py and
5973 have thigs work as expected.
5976 have thigs work as expected.
5974
5977
5975 * IPython/genutils.py (page): fixed exception handling so things
5978 * IPython/genutils.py (page): fixed exception handling so things
5976 work both in Unix and Windows correctly. Quitting a pager triggers
5979 work both in Unix and Windows correctly. Quitting a pager triggers
5977 an IOError/broken pipe in Unix, and in windows not finding a pager
5980 an IOError/broken pipe in Unix, and in windows not finding a pager
5978 is also an IOError, so I had to actually look at the return value
5981 is also an IOError, so I had to actually look at the return value
5979 of the exception, not just the exception itself. Should be ok now.
5982 of the exception, not just the exception itself. Should be ok now.
5980
5983
5981 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5984 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5982 modified to allow case-insensitive color scheme changes.
5985 modified to allow case-insensitive color scheme changes.
5983
5986
5984 2002-02-09 Fernando Perez <fperez@colorado.edu>
5987 2002-02-09 Fernando Perez <fperez@colorado.edu>
5985
5988
5986 * IPython/genutils.py (native_line_ends): new function to leave
5989 * IPython/genutils.py (native_line_ends): new function to leave
5987 user config files with os-native line-endings.
5990 user config files with os-native line-endings.
5988
5991
5989 * README and manual updates.
5992 * README and manual updates.
5990
5993
5991 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5994 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5992 instead of StringType to catch Unicode strings.
5995 instead of StringType to catch Unicode strings.
5993
5996
5994 * IPython/genutils.py (filefind): fixed bug for paths with
5997 * IPython/genutils.py (filefind): fixed bug for paths with
5995 embedded spaces (very common in Windows).
5998 embedded spaces (very common in Windows).
5996
5999
5997 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
6000 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5998 files under Windows, so that they get automatically associated
6001 files under Windows, so that they get automatically associated
5999 with a text editor. Windows makes it a pain to handle
6002 with a text editor. Windows makes it a pain to handle
6000 extension-less files.
6003 extension-less files.
6001
6004
6002 * IPython/iplib.py (InteractiveShell.init_readline): Made the
6005 * IPython/iplib.py (InteractiveShell.init_readline): Made the
6003 warning about readline only occur for Posix. In Windows there's no
6006 warning about readline only occur for Posix. In Windows there's no
6004 way to get readline, so why bother with the warning.
6007 way to get readline, so why bother with the warning.
6005
6008
6006 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
6009 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
6007 for __str__ instead of dir(self), since dir() changed in 2.2.
6010 for __str__ instead of dir(self), since dir() changed in 2.2.
6008
6011
6009 * Ported to Windows! Tested on XP, I suspect it should work fine
6012 * Ported to Windows! Tested on XP, I suspect it should work fine
6010 on NT/2000, but I don't think it will work on 98 et al. That
6013 on NT/2000, but I don't think it will work on 98 et al. That
6011 series of Windows is such a piece of junk anyway that I won't try
6014 series of Windows is such a piece of junk anyway that I won't try
6012 porting it there. The XP port was straightforward, showed a few
6015 porting it there. The XP port was straightforward, showed a few
6013 bugs here and there (fixed all), in particular some string
6016 bugs here and there (fixed all), in particular some string
6014 handling stuff which required considering Unicode strings (which
6017 handling stuff which required considering Unicode strings (which
6015 Windows uses). This is good, but hasn't been too tested :) No
6018 Windows uses). This is good, but hasn't been too tested :) No
6016 fancy installer yet, I'll put a note in the manual so people at
6019 fancy installer yet, I'll put a note in the manual so people at
6017 least make manually a shortcut.
6020 least make manually a shortcut.
6018
6021
6019 * IPython/iplib.py (Magic.magic_colors): Unified the color options
6022 * IPython/iplib.py (Magic.magic_colors): Unified the color options
6020 into a single one, "colors". This now controls both prompt and
6023 into a single one, "colors". This now controls both prompt and
6021 exception color schemes, and can be changed both at startup
6024 exception color schemes, and can be changed both at startup
6022 (either via command-line switches or via ipythonrc files) and at
6025 (either via command-line switches or via ipythonrc files) and at
6023 runtime, with @colors.
6026 runtime, with @colors.
6024 (Magic.magic_run): renamed @prun to @run and removed the old
6027 (Magic.magic_run): renamed @prun to @run and removed the old
6025 @run. The two were too similar to warrant keeping both.
6028 @run. The two were too similar to warrant keeping both.
6026
6029
6027 2002-02-03 Fernando Perez <fperez@colorado.edu>
6030 2002-02-03 Fernando Perez <fperez@colorado.edu>
6028
6031
6029 * IPython/iplib.py (install_first_time): Added comment on how to
6032 * IPython/iplib.py (install_first_time): Added comment on how to
6030 configure the color options for first-time users. Put a <return>
6033 configure the color options for first-time users. Put a <return>
6031 request at the end so that small-terminal users get a chance to
6034 request at the end so that small-terminal users get a chance to
6032 read the startup info.
6035 read the startup info.
6033
6036
6034 2002-01-23 Fernando Perez <fperez@colorado.edu>
6037 2002-01-23 Fernando Perez <fperez@colorado.edu>
6035
6038
6036 * IPython/iplib.py (CachedOutput.update): Changed output memory
6039 * IPython/iplib.py (CachedOutput.update): Changed output memory
6037 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
6040 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
6038 input history we still use _i. Did this b/c these variable are
6041 input history we still use _i. Did this b/c these variable are
6039 very commonly used in interactive work, so the less we need to
6042 very commonly used in interactive work, so the less we need to
6040 type the better off we are.
6043 type the better off we are.
6041 (Magic.magic_prun): updated @prun to better handle the namespaces
6044 (Magic.magic_prun): updated @prun to better handle the namespaces
6042 the file will run in, including a fix for __name__ not being set
6045 the file will run in, including a fix for __name__ not being set
6043 before.
6046 before.
6044
6047
6045 2002-01-20 Fernando Perez <fperez@colorado.edu>
6048 2002-01-20 Fernando Perez <fperez@colorado.edu>
6046
6049
6047 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
6050 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
6048 extra garbage for Python 2.2. Need to look more carefully into
6051 extra garbage for Python 2.2. Need to look more carefully into
6049 this later.
6052 this later.
6050
6053
6051 2002-01-19 Fernando Perez <fperez@colorado.edu>
6054 2002-01-19 Fernando Perez <fperez@colorado.edu>
6052
6055
6053 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
6056 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
6054 display SyntaxError exceptions properly formatted when they occur
6057 display SyntaxError exceptions properly formatted when they occur
6055 (they can be triggered by imported code).
6058 (they can be triggered by imported code).
6056
6059
6057 2002-01-18 Fernando Perez <fperez@colorado.edu>
6060 2002-01-18 Fernando Perez <fperez@colorado.edu>
6058
6061
6059 * IPython/iplib.py (InteractiveShell.safe_execfile): now
6062 * IPython/iplib.py (InteractiveShell.safe_execfile): now
6060 SyntaxError exceptions are reported nicely formatted, instead of
6063 SyntaxError exceptions are reported nicely formatted, instead of
6061 spitting out only offset information as before.
6064 spitting out only offset information as before.
6062 (Magic.magic_prun): Added the @prun function for executing
6065 (Magic.magic_prun): Added the @prun function for executing
6063 programs with command line args inside IPython.
6066 programs with command line args inside IPython.
6064
6067
6065 2002-01-16 Fernando Perez <fperez@colorado.edu>
6068 2002-01-16 Fernando Perez <fperez@colorado.edu>
6066
6069
6067 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
6070 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
6068 to *not* include the last item given in a range. This brings their
6071 to *not* include the last item given in a range. This brings their
6069 behavior in line with Python's slicing:
6072 behavior in line with Python's slicing:
6070 a[n1:n2] -> a[n1]...a[n2-1]
6073 a[n1:n2] -> a[n1]...a[n2-1]
6071 It may be a bit less convenient, but I prefer to stick to Python's
6074 It may be a bit less convenient, but I prefer to stick to Python's
6072 conventions *everywhere*, so users never have to wonder.
6075 conventions *everywhere*, so users never have to wonder.
6073 (Magic.magic_macro): Added @macro function to ease the creation of
6076 (Magic.magic_macro): Added @macro function to ease the creation of
6074 macros.
6077 macros.
6075
6078
6076 2002-01-05 Fernando Perez <fperez@colorado.edu>
6079 2002-01-05 Fernando Perez <fperez@colorado.edu>
6077
6080
6078 * Released 0.2.4.
6081 * Released 0.2.4.
6079
6082
6080 * IPython/iplib.py (Magic.magic_pdef):
6083 * IPython/iplib.py (Magic.magic_pdef):
6081 (InteractiveShell.safe_execfile): report magic lines and error
6084 (InteractiveShell.safe_execfile): report magic lines and error
6082 lines without line numbers so one can easily copy/paste them for
6085 lines without line numbers so one can easily copy/paste them for
6083 re-execution.
6086 re-execution.
6084
6087
6085 * Updated manual with recent changes.
6088 * Updated manual with recent changes.
6086
6089
6087 * IPython/iplib.py (Magic.magic_oinfo): added constructor
6090 * IPython/iplib.py (Magic.magic_oinfo): added constructor
6088 docstring printing when class? is called. Very handy for knowing
6091 docstring printing when class? is called. Very handy for knowing
6089 how to create class instances (as long as __init__ is well
6092 how to create class instances (as long as __init__ is well
6090 documented, of course :)
6093 documented, of course :)
6091 (Magic.magic_doc): print both class and constructor docstrings.
6094 (Magic.magic_doc): print both class and constructor docstrings.
6092 (Magic.magic_pdef): give constructor info if passed a class and
6095 (Magic.magic_pdef): give constructor info if passed a class and
6093 __call__ info for callable object instances.
6096 __call__ info for callable object instances.
6094
6097
6095 2002-01-04 Fernando Perez <fperez@colorado.edu>
6098 2002-01-04 Fernando Perez <fperez@colorado.edu>
6096
6099
6097 * Made deep_reload() off by default. It doesn't always work
6100 * Made deep_reload() off by default. It doesn't always work
6098 exactly as intended, so it's probably safer to have it off. It's
6101 exactly as intended, so it's probably safer to have it off. It's
6099 still available as dreload() anyway, so nothing is lost.
6102 still available as dreload() anyway, so nothing is lost.
6100
6103
6101 2002-01-02 Fernando Perez <fperez@colorado.edu>
6104 2002-01-02 Fernando Perez <fperez@colorado.edu>
6102
6105
6103 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
6106 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
6104 so I wanted an updated release).
6107 so I wanted an updated release).
6105
6108
6106 2001-12-27 Fernando Perez <fperez@colorado.edu>
6109 2001-12-27 Fernando Perez <fperez@colorado.edu>
6107
6110
6108 * IPython/iplib.py (InteractiveShell.interact): Added the original
6111 * IPython/iplib.py (InteractiveShell.interact): Added the original
6109 code from 'code.py' for this module in order to change the
6112 code from 'code.py' for this module in order to change the
6110 handling of a KeyboardInterrupt. This was necessary b/c otherwise
6113 handling of a KeyboardInterrupt. This was necessary b/c otherwise
6111 the history cache would break when the user hit Ctrl-C, and
6114 the history cache would break when the user hit Ctrl-C, and
6112 interact() offers no way to add any hooks to it.
6115 interact() offers no way to add any hooks to it.
6113
6116
6114 2001-12-23 Fernando Perez <fperez@colorado.edu>
6117 2001-12-23 Fernando Perez <fperez@colorado.edu>
6115
6118
6116 * setup.py: added check for 'MANIFEST' before trying to remove
6119 * setup.py: added check for 'MANIFEST' before trying to remove
6117 it. Thanks to Sean Reifschneider.
6120 it. Thanks to Sean Reifschneider.
6118
6121
6119 2001-12-22 Fernando Perez <fperez@colorado.edu>
6122 2001-12-22 Fernando Perez <fperez@colorado.edu>
6120
6123
6121 * Released 0.2.2.
6124 * Released 0.2.2.
6122
6125
6123 * Finished (reasonably) writing the manual. Later will add the
6126 * Finished (reasonably) writing the manual. Later will add the
6124 python-standard navigation stylesheets, but for the time being
6127 python-standard navigation stylesheets, but for the time being
6125 it's fairly complete. Distribution will include html and pdf
6128 it's fairly complete. Distribution will include html and pdf
6126 versions.
6129 versions.
6127
6130
6128 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
6131 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
6129 (MayaVi author).
6132 (MayaVi author).
6130
6133
6131 2001-12-21 Fernando Perez <fperez@colorado.edu>
6134 2001-12-21 Fernando Perez <fperez@colorado.edu>
6132
6135
6133 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
6136 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
6134 good public release, I think (with the manual and the distutils
6137 good public release, I think (with the manual and the distutils
6135 installer). The manual can use some work, but that can go
6138 installer). The manual can use some work, but that can go
6136 slowly. Otherwise I think it's quite nice for end users. Next
6139 slowly. Otherwise I think it's quite nice for end users. Next
6137 summer, rewrite the guts of it...
6140 summer, rewrite the guts of it...
6138
6141
6139 * Changed format of ipythonrc files to use whitespace as the
6142 * Changed format of ipythonrc files to use whitespace as the
6140 separator instead of an explicit '='. Cleaner.
6143 separator instead of an explicit '='. Cleaner.
6141
6144
6142 2001-12-20 Fernando Perez <fperez@colorado.edu>
6145 2001-12-20 Fernando Perez <fperez@colorado.edu>
6143
6146
6144 * Started a manual in LyX. For now it's just a quick merge of the
6147 * Started a manual in LyX. For now it's just a quick merge of the
6145 various internal docstrings and READMEs. Later it may grow into a
6148 various internal docstrings and READMEs. Later it may grow into a
6146 nice, full-blown manual.
6149 nice, full-blown manual.
6147
6150
6148 * Set up a distutils based installer. Installation should now be
6151 * Set up a distutils based installer. Installation should now be
6149 trivially simple for end-users.
6152 trivially simple for end-users.
6150
6153
6151 2001-12-11 Fernando Perez <fperez@colorado.edu>
6154 2001-12-11 Fernando Perez <fperez@colorado.edu>
6152
6155
6153 * Released 0.2.0. First public release, announced it at
6156 * Released 0.2.0. First public release, announced it at
6154 comp.lang.python. From now on, just bugfixes...
6157 comp.lang.python. From now on, just bugfixes...
6155
6158
6156 * Went through all the files, set copyright/license notices and
6159 * Went through all the files, set copyright/license notices and
6157 cleaned up things. Ready for release.
6160 cleaned up things. Ready for release.
6158
6161
6159 2001-12-10 Fernando Perez <fperez@colorado.edu>
6162 2001-12-10 Fernando Perez <fperez@colorado.edu>
6160
6163
6161 * Changed the first-time installer not to use tarfiles. It's more
6164 * Changed the first-time installer not to use tarfiles. It's more
6162 robust now and less unix-dependent. Also makes it easier for
6165 robust now and less unix-dependent. Also makes it easier for
6163 people to later upgrade versions.
6166 people to later upgrade versions.
6164
6167
6165 * Changed @exit to @abort to reflect the fact that it's pretty
6168 * Changed @exit to @abort to reflect the fact that it's pretty
6166 brutal (a sys.exit()). The difference between @abort and Ctrl-D
6169 brutal (a sys.exit()). The difference between @abort and Ctrl-D
6167 becomes significant only when IPyhton is embedded: in that case,
6170 becomes significant only when IPyhton is embedded: in that case,
6168 C-D closes IPython only, but @abort kills the enclosing program
6171 C-D closes IPython only, but @abort kills the enclosing program
6169 too (unless it had called IPython inside a try catching
6172 too (unless it had called IPython inside a try catching
6170 SystemExit).
6173 SystemExit).
6171
6174
6172 * Created Shell module which exposes the actuall IPython Shell
6175 * Created Shell module which exposes the actuall IPython Shell
6173 classes, currently the normal and the embeddable one. This at
6176 classes, currently the normal and the embeddable one. This at
6174 least offers a stable interface we won't need to change when
6177 least offers a stable interface we won't need to change when
6175 (later) the internals are rewritten. That rewrite will be confined
6178 (later) the internals are rewritten. That rewrite will be confined
6176 to iplib and ipmaker, but the Shell interface should remain as is.
6179 to iplib and ipmaker, but the Shell interface should remain as is.
6177
6180
6178 * Added embed module which offers an embeddable IPShell object,
6181 * Added embed module which offers an embeddable IPShell object,
6179 useful to fire up IPython *inside* a running program. Great for
6182 useful to fire up IPython *inside* a running program. Great for
6180 debugging or dynamical data analysis.
6183 debugging or dynamical data analysis.
6181
6184
6182 2001-12-08 Fernando Perez <fperez@colorado.edu>
6185 2001-12-08 Fernando Perez <fperez@colorado.edu>
6183
6186
6184 * Fixed small bug preventing seeing info from methods of defined
6187 * Fixed small bug preventing seeing info from methods of defined
6185 objects (incorrect namespace in _ofind()).
6188 objects (incorrect namespace in _ofind()).
6186
6189
6187 * Documentation cleanup. Moved the main usage docstrings to a
6190 * Documentation cleanup. Moved the main usage docstrings to a
6188 separate file, usage.py (cleaner to maintain, and hopefully in the
6191 separate file, usage.py (cleaner to maintain, and hopefully in the
6189 future some perlpod-like way of producing interactive, man and
6192 future some perlpod-like way of producing interactive, man and
6190 html docs out of it will be found).
6193 html docs out of it will be found).
6191
6194
6192 * Added @profile to see your profile at any time.
6195 * Added @profile to see your profile at any time.
6193
6196
6194 * Added @p as an alias for 'print'. It's especially convenient if
6197 * Added @p as an alias for 'print'. It's especially convenient if
6195 using automagic ('p x' prints x).
6198 using automagic ('p x' prints x).
6196
6199
6197 * Small cleanups and fixes after a pychecker run.
6200 * Small cleanups and fixes after a pychecker run.
6198
6201
6199 * Changed the @cd command to handle @cd - and @cd -<n> for
6202 * Changed the @cd command to handle @cd - and @cd -<n> for
6200 visiting any directory in _dh.
6203 visiting any directory in _dh.
6201
6204
6202 * Introduced _dh, a history of visited directories. @dhist prints
6205 * Introduced _dh, a history of visited directories. @dhist prints
6203 it out with numbers.
6206 it out with numbers.
6204
6207
6205 2001-12-07 Fernando Perez <fperez@colorado.edu>
6208 2001-12-07 Fernando Perez <fperez@colorado.edu>
6206
6209
6207 * Released 0.1.22
6210 * Released 0.1.22
6208
6211
6209 * Made initialization a bit more robust against invalid color
6212 * Made initialization a bit more robust against invalid color
6210 options in user input (exit, not traceback-crash).
6213 options in user input (exit, not traceback-crash).
6211
6214
6212 * Changed the bug crash reporter to write the report only in the
6215 * Changed the bug crash reporter to write the report only in the
6213 user's .ipython directory. That way IPython won't litter people's
6216 user's .ipython directory. That way IPython won't litter people's
6214 hard disks with crash files all over the place. Also print on
6217 hard disks with crash files all over the place. Also print on
6215 screen the necessary mail command.
6218 screen the necessary mail command.
6216
6219
6217 * With the new ultraTB, implemented LightBG color scheme for light
6220 * With the new ultraTB, implemented LightBG color scheme for light
6218 background terminals. A lot of people like white backgrounds, so I
6221 background terminals. A lot of people like white backgrounds, so I
6219 guess we should at least give them something readable.
6222 guess we should at least give them something readable.
6220
6223
6221 2001-12-06 Fernando Perez <fperez@colorado.edu>
6224 2001-12-06 Fernando Perez <fperez@colorado.edu>
6222
6225
6223 * Modified the structure of ultraTB. Now there's a proper class
6226 * Modified the structure of ultraTB. Now there's a proper class
6224 for tables of color schemes which allow adding schemes easily and
6227 for tables of color schemes which allow adding schemes easily and
6225 switching the active scheme without creating a new instance every
6228 switching the active scheme without creating a new instance every
6226 time (which was ridiculous). The syntax for creating new schemes
6229 time (which was ridiculous). The syntax for creating new schemes
6227 is also cleaner. I think ultraTB is finally done, with a clean
6230 is also cleaner. I think ultraTB is finally done, with a clean
6228 class structure. Names are also much cleaner (now there's proper
6231 class structure. Names are also much cleaner (now there's proper
6229 color tables, no need for every variable to also have 'color' in
6232 color tables, no need for every variable to also have 'color' in
6230 its name).
6233 its name).
6231
6234
6232 * Broke down genutils into separate files. Now genutils only
6235 * Broke down genutils into separate files. Now genutils only
6233 contains utility functions, and classes have been moved to their
6236 contains utility functions, and classes have been moved to their
6234 own files (they had enough independent functionality to warrant
6237 own files (they had enough independent functionality to warrant
6235 it): ConfigLoader, OutputTrap, Struct.
6238 it): ConfigLoader, OutputTrap, Struct.
6236
6239
6237 2001-12-05 Fernando Perez <fperez@colorado.edu>
6240 2001-12-05 Fernando Perez <fperez@colorado.edu>
6238
6241
6239 * IPython turns 21! Released version 0.1.21, as a candidate for
6242 * IPython turns 21! Released version 0.1.21, as a candidate for
6240 public consumption. If all goes well, release in a few days.
6243 public consumption. If all goes well, release in a few days.
6241
6244
6242 * Fixed path bug (files in Extensions/ directory wouldn't be found
6245 * Fixed path bug (files in Extensions/ directory wouldn't be found
6243 unless IPython/ was explicitly in sys.path).
6246 unless IPython/ was explicitly in sys.path).
6244
6247
6245 * Extended the FlexCompleter class as MagicCompleter to allow
6248 * Extended the FlexCompleter class as MagicCompleter to allow
6246 completion of @-starting lines.
6249 completion of @-starting lines.
6247
6250
6248 * Created __release__.py file as a central repository for release
6251 * Created __release__.py file as a central repository for release
6249 info that other files can read from.
6252 info that other files can read from.
6250
6253
6251 * Fixed small bug in logging: when logging was turned on in
6254 * Fixed small bug in logging: when logging was turned on in
6252 mid-session, old lines with special meanings (!@?) were being
6255 mid-session, old lines with special meanings (!@?) were being
6253 logged without the prepended comment, which is necessary since
6256 logged without the prepended comment, which is necessary since
6254 they are not truly valid python syntax. This should make session
6257 they are not truly valid python syntax. This should make session
6255 restores produce less errors.
6258 restores produce less errors.
6256
6259
6257 * The namespace cleanup forced me to make a FlexCompleter class
6260 * The namespace cleanup forced me to make a FlexCompleter class
6258 which is nothing but a ripoff of rlcompleter, but with selectable
6261 which is nothing but a ripoff of rlcompleter, but with selectable
6259 namespace (rlcompleter only works in __main__.__dict__). I'll try
6262 namespace (rlcompleter only works in __main__.__dict__). I'll try
6260 to submit a note to the authors to see if this change can be
6263 to submit a note to the authors to see if this change can be
6261 incorporated in future rlcompleter releases (Dec.6: done)
6264 incorporated in future rlcompleter releases (Dec.6: done)
6262
6265
6263 * More fixes to namespace handling. It was a mess! Now all
6266 * More fixes to namespace handling. It was a mess! Now all
6264 explicit references to __main__.__dict__ are gone (except when
6267 explicit references to __main__.__dict__ are gone (except when
6265 really needed) and everything is handled through the namespace
6268 really needed) and everything is handled through the namespace
6266 dicts in the IPython instance. We seem to be getting somewhere
6269 dicts in the IPython instance. We seem to be getting somewhere
6267 with this, finally...
6270 with this, finally...
6268
6271
6269 * Small documentation updates.
6272 * Small documentation updates.
6270
6273
6271 * Created the Extensions directory under IPython (with an
6274 * Created the Extensions directory under IPython (with an
6272 __init__.py). Put the PhysicalQ stuff there. This directory should
6275 __init__.py). Put the PhysicalQ stuff there. This directory should
6273 be used for all special-purpose extensions.
6276 be used for all special-purpose extensions.
6274
6277
6275 * File renaming:
6278 * File renaming:
6276 ipythonlib --> ipmaker
6279 ipythonlib --> ipmaker
6277 ipplib --> iplib
6280 ipplib --> iplib
6278 This makes a bit more sense in terms of what these files actually do.
6281 This makes a bit more sense in terms of what these files actually do.
6279
6282
6280 * Moved all the classes and functions in ipythonlib to ipplib, so
6283 * Moved all the classes and functions in ipythonlib to ipplib, so
6281 now ipythonlib only has make_IPython(). This will ease up its
6284 now ipythonlib only has make_IPython(). This will ease up its
6282 splitting in smaller functional chunks later.
6285 splitting in smaller functional chunks later.
6283
6286
6284 * Cleaned up (done, I think) output of @whos. Better column
6287 * Cleaned up (done, I think) output of @whos. Better column
6285 formatting, and now shows str(var) for as much as it can, which is
6288 formatting, and now shows str(var) for as much as it can, which is
6286 typically what one gets with a 'print var'.
6289 typically what one gets with a 'print var'.
6287
6290
6288 2001-12-04 Fernando Perez <fperez@colorado.edu>
6291 2001-12-04 Fernando Perez <fperez@colorado.edu>
6289
6292
6290 * Fixed namespace problems. Now builtin/IPyhton/user names get
6293 * Fixed namespace problems. Now builtin/IPyhton/user names get
6291 properly reported in their namespace. Internal namespace handling
6294 properly reported in their namespace. Internal namespace handling
6292 is finally getting decent (not perfect yet, but much better than
6295 is finally getting decent (not perfect yet, but much better than
6293 the ad-hoc mess we had).
6296 the ad-hoc mess we had).
6294
6297
6295 * Removed -exit option. If people just want to run a python
6298 * Removed -exit option. If people just want to run a python
6296 script, that's what the normal interpreter is for. Less
6299 script, that's what the normal interpreter is for. Less
6297 unnecessary options, less chances for bugs.
6300 unnecessary options, less chances for bugs.
6298
6301
6299 * Added a crash handler which generates a complete post-mortem if
6302 * Added a crash handler which generates a complete post-mortem if
6300 IPython crashes. This will help a lot in tracking bugs down the
6303 IPython crashes. This will help a lot in tracking bugs down the
6301 road.
6304 road.
6302
6305
6303 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6306 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6304 which were boud to functions being reassigned would bypass the
6307 which were boud to functions being reassigned would bypass the
6305 logger, breaking the sync of _il with the prompt counter. This
6308 logger, breaking the sync of _il with the prompt counter. This
6306 would then crash IPython later when a new line was logged.
6309 would then crash IPython later when a new line was logged.
6307
6310
6308 2001-12-02 Fernando Perez <fperez@colorado.edu>
6311 2001-12-02 Fernando Perez <fperez@colorado.edu>
6309
6312
6310 * Made IPython a package. This means people don't have to clutter
6313 * Made IPython a package. This means people don't have to clutter
6311 their sys.path with yet another directory. Changed the INSTALL
6314 their sys.path with yet another directory. Changed the INSTALL
6312 file accordingly.
6315 file accordingly.
6313
6316
6314 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6317 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6315 sorts its output (so @who shows it sorted) and @whos formats the
6318 sorts its output (so @who shows it sorted) and @whos formats the
6316 table according to the width of the first column. Nicer, easier to
6319 table according to the width of the first column. Nicer, easier to
6317 read. Todo: write a generic table_format() which takes a list of
6320 read. Todo: write a generic table_format() which takes a list of
6318 lists and prints it nicely formatted, with optional row/column
6321 lists and prints it nicely formatted, with optional row/column
6319 separators and proper padding and justification.
6322 separators and proper padding and justification.
6320
6323
6321 * Released 0.1.20
6324 * Released 0.1.20
6322
6325
6323 * Fixed bug in @log which would reverse the inputcache list (a
6326 * Fixed bug in @log which would reverse the inputcache list (a
6324 copy operation was missing).
6327 copy operation was missing).
6325
6328
6326 * Code cleanup. @config was changed to use page(). Better, since
6329 * Code cleanup. @config was changed to use page(). Better, since
6327 its output is always quite long.
6330 its output is always quite long.
6328
6331
6329 * Itpl is back as a dependency. I was having too many problems
6332 * Itpl is back as a dependency. I was having too many problems
6330 getting the parametric aliases to work reliably, and it's just
6333 getting the parametric aliases to work reliably, and it's just
6331 easier to code weird string operations with it than playing %()s
6334 easier to code weird string operations with it than playing %()s
6332 games. It's only ~6k, so I don't think it's too big a deal.
6335 games. It's only ~6k, so I don't think it's too big a deal.
6333
6336
6334 * Found (and fixed) a very nasty bug with history. !lines weren't
6337 * Found (and fixed) a very nasty bug with history. !lines weren't
6335 getting cached, and the out of sync caches would crash
6338 getting cached, and the out of sync caches would crash
6336 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6339 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6337 division of labor a bit better. Bug fixed, cleaner structure.
6340 division of labor a bit better. Bug fixed, cleaner structure.
6338
6341
6339 2001-12-01 Fernando Perez <fperez@colorado.edu>
6342 2001-12-01 Fernando Perez <fperez@colorado.edu>
6340
6343
6341 * Released 0.1.19
6344 * Released 0.1.19
6342
6345
6343 * Added option -n to @hist to prevent line number printing. Much
6346 * Added option -n to @hist to prevent line number printing. Much
6344 easier to copy/paste code this way.
6347 easier to copy/paste code this way.
6345
6348
6346 * Created global _il to hold the input list. Allows easy
6349 * Created global _il to hold the input list. Allows easy
6347 re-execution of blocks of code by slicing it (inspired by Janko's
6350 re-execution of blocks of code by slicing it (inspired by Janko's
6348 comment on 'macros').
6351 comment on 'macros').
6349
6352
6350 * Small fixes and doc updates.
6353 * Small fixes and doc updates.
6351
6354
6352 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6355 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6353 much too fragile with automagic. Handles properly multi-line
6356 much too fragile with automagic. Handles properly multi-line
6354 statements and takes parameters.
6357 statements and takes parameters.
6355
6358
6356 2001-11-30 Fernando Perez <fperez@colorado.edu>
6359 2001-11-30 Fernando Perez <fperez@colorado.edu>
6357
6360
6358 * Version 0.1.18 released.
6361 * Version 0.1.18 released.
6359
6362
6360 * Fixed nasty namespace bug in initial module imports.
6363 * Fixed nasty namespace bug in initial module imports.
6361
6364
6362 * Added copyright/license notes to all code files (except
6365 * Added copyright/license notes to all code files (except
6363 DPyGetOpt). For the time being, LGPL. That could change.
6366 DPyGetOpt). For the time being, LGPL. That could change.
6364
6367
6365 * Rewrote a much nicer README, updated INSTALL, cleaned up
6368 * Rewrote a much nicer README, updated INSTALL, cleaned up
6366 ipythonrc-* samples.
6369 ipythonrc-* samples.
6367
6370
6368 * Overall code/documentation cleanup. Basically ready for
6371 * Overall code/documentation cleanup. Basically ready for
6369 release. Only remaining thing: licence decision (LGPL?).
6372 release. Only remaining thing: licence decision (LGPL?).
6370
6373
6371 * Converted load_config to a class, ConfigLoader. Now recursion
6374 * Converted load_config to a class, ConfigLoader. Now recursion
6372 control is better organized. Doesn't include the same file twice.
6375 control is better organized. Doesn't include the same file twice.
6373
6376
6374 2001-11-29 Fernando Perez <fperez@colorado.edu>
6377 2001-11-29 Fernando Perez <fperez@colorado.edu>
6375
6378
6376 * Got input history working. Changed output history variables from
6379 * Got input history working. Changed output history variables from
6377 _p to _o so that _i is for input and _o for output. Just cleaner
6380 _p to _o so that _i is for input and _o for output. Just cleaner
6378 convention.
6381 convention.
6379
6382
6380 * Implemented parametric aliases. This pretty much allows the
6383 * Implemented parametric aliases. This pretty much allows the
6381 alias system to offer full-blown shell convenience, I think.
6384 alias system to offer full-blown shell convenience, I think.
6382
6385
6383 * Version 0.1.17 released, 0.1.18 opened.
6386 * Version 0.1.17 released, 0.1.18 opened.
6384
6387
6385 * dot_ipython/ipythonrc (alias): added documentation.
6388 * dot_ipython/ipythonrc (alias): added documentation.
6386 (xcolor): Fixed small bug (xcolors -> xcolor)
6389 (xcolor): Fixed small bug (xcolors -> xcolor)
6387
6390
6388 * Changed the alias system. Now alias is a magic command to define
6391 * Changed the alias system. Now alias is a magic command to define
6389 aliases just like the shell. Rationale: the builtin magics should
6392 aliases just like the shell. Rationale: the builtin magics should
6390 be there for things deeply connected to IPython's
6393 be there for things deeply connected to IPython's
6391 architecture. And this is a much lighter system for what I think
6394 architecture. And this is a much lighter system for what I think
6392 is the really important feature: allowing users to define quickly
6395 is the really important feature: allowing users to define quickly
6393 magics that will do shell things for them, so they can customize
6396 magics that will do shell things for them, so they can customize
6394 IPython easily to match their work habits. If someone is really
6397 IPython easily to match their work habits. If someone is really
6395 desperate to have another name for a builtin alias, they can
6398 desperate to have another name for a builtin alias, they can
6396 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6399 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6397 works.
6400 works.
6398
6401
6399 2001-11-28 Fernando Perez <fperez@colorado.edu>
6402 2001-11-28 Fernando Perez <fperez@colorado.edu>
6400
6403
6401 * Changed @file so that it opens the source file at the proper
6404 * Changed @file so that it opens the source file at the proper
6402 line. Since it uses less, if your EDITOR environment is
6405 line. Since it uses less, if your EDITOR environment is
6403 configured, typing v will immediately open your editor of choice
6406 configured, typing v will immediately open your editor of choice
6404 right at the line where the object is defined. Not as quick as
6407 right at the line where the object is defined. Not as quick as
6405 having a direct @edit command, but for all intents and purposes it
6408 having a direct @edit command, but for all intents and purposes it
6406 works. And I don't have to worry about writing @edit to deal with
6409 works. And I don't have to worry about writing @edit to deal with
6407 all the editors, less does that.
6410 all the editors, less does that.
6408
6411
6409 * Version 0.1.16 released, 0.1.17 opened.
6412 * Version 0.1.16 released, 0.1.17 opened.
6410
6413
6411 * Fixed some nasty bugs in the page/page_dumb combo that could
6414 * Fixed some nasty bugs in the page/page_dumb combo that could
6412 crash IPython.
6415 crash IPython.
6413
6416
6414 2001-11-27 Fernando Perez <fperez@colorado.edu>
6417 2001-11-27 Fernando Perez <fperez@colorado.edu>
6415
6418
6416 * Version 0.1.15 released, 0.1.16 opened.
6419 * Version 0.1.15 released, 0.1.16 opened.
6417
6420
6418 * Finally got ? and ?? to work for undefined things: now it's
6421 * Finally got ? and ?? to work for undefined things: now it's
6419 possible to type {}.get? and get information about the get method
6422 possible to type {}.get? and get information about the get method
6420 of dicts, or os.path? even if only os is defined (so technically
6423 of dicts, or os.path? even if only os is defined (so technically
6421 os.path isn't). Works at any level. For example, after import os,
6424 os.path isn't). Works at any level. For example, after import os,
6422 os?, os.path?, os.path.abspath? all work. This is great, took some
6425 os?, os.path?, os.path.abspath? all work. This is great, took some
6423 work in _ofind.
6426 work in _ofind.
6424
6427
6425 * Fixed more bugs with logging. The sanest way to do it was to add
6428 * Fixed more bugs with logging. The sanest way to do it was to add
6426 to @log a 'mode' parameter. Killed two in one shot (this mode
6429 to @log a 'mode' parameter. Killed two in one shot (this mode
6427 option was a request of Janko's). I think it's finally clean
6430 option was a request of Janko's). I think it's finally clean
6428 (famous last words).
6431 (famous last words).
6429
6432
6430 * Added a page_dumb() pager which does a decent job of paging on
6433 * Added a page_dumb() pager which does a decent job of paging on
6431 screen, if better things (like less) aren't available. One less
6434 screen, if better things (like less) aren't available. One less
6432 unix dependency (someday maybe somebody will port this to
6435 unix dependency (someday maybe somebody will port this to
6433 windows).
6436 windows).
6434
6437
6435 * Fixed problem in magic_log: would lock of logging out if log
6438 * Fixed problem in magic_log: would lock of logging out if log
6436 creation failed (because it would still think it had succeeded).
6439 creation failed (because it would still think it had succeeded).
6437
6440
6438 * Improved the page() function using curses to auto-detect screen
6441 * Improved the page() function using curses to auto-detect screen
6439 size. Now it can make a much better decision on whether to print
6442 size. Now it can make a much better decision on whether to print
6440 or page a string. Option screen_length was modified: a value 0
6443 or page a string. Option screen_length was modified: a value 0
6441 means auto-detect, and that's the default now.
6444 means auto-detect, and that's the default now.
6442
6445
6443 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6446 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6444 go out. I'll test it for a few days, then talk to Janko about
6447 go out. I'll test it for a few days, then talk to Janko about
6445 licences and announce it.
6448 licences and announce it.
6446
6449
6447 * Fixed the length of the auto-generated ---> prompt which appears
6450 * Fixed the length of the auto-generated ---> prompt which appears
6448 for auto-parens and auto-quotes. Getting this right isn't trivial,
6451 for auto-parens and auto-quotes. Getting this right isn't trivial,
6449 with all the color escapes, different prompt types and optional
6452 with all the color escapes, different prompt types and optional
6450 separators. But it seems to be working in all the combinations.
6453 separators. But it seems to be working in all the combinations.
6451
6454
6452 2001-11-26 Fernando Perez <fperez@colorado.edu>
6455 2001-11-26 Fernando Perez <fperez@colorado.edu>
6453
6456
6454 * Wrote a regexp filter to get option types from the option names
6457 * Wrote a regexp filter to get option types from the option names
6455 string. This eliminates the need to manually keep two duplicate
6458 string. This eliminates the need to manually keep two duplicate
6456 lists.
6459 lists.
6457
6460
6458 * Removed the unneeded check_option_names. Now options are handled
6461 * Removed the unneeded check_option_names. Now options are handled
6459 in a much saner manner and it's easy to visually check that things
6462 in a much saner manner and it's easy to visually check that things
6460 are ok.
6463 are ok.
6461
6464
6462 * Updated version numbers on all files I modified to carry a
6465 * Updated version numbers on all files I modified to carry a
6463 notice so Janko and Nathan have clear version markers.
6466 notice so Janko and Nathan have clear version markers.
6464
6467
6465 * Updated docstring for ultraTB with my changes. I should send
6468 * Updated docstring for ultraTB with my changes. I should send
6466 this to Nathan.
6469 this to Nathan.
6467
6470
6468 * Lots of small fixes. Ran everything through pychecker again.
6471 * Lots of small fixes. Ran everything through pychecker again.
6469
6472
6470 * Made loading of deep_reload an cmd line option. If it's not too
6473 * Made loading of deep_reload an cmd line option. If it's not too
6471 kosher, now people can just disable it. With -nodeep_reload it's
6474 kosher, now people can just disable it. With -nodeep_reload it's
6472 still available as dreload(), it just won't overwrite reload().
6475 still available as dreload(), it just won't overwrite reload().
6473
6476
6474 * Moved many options to the no| form (-opt and -noopt
6477 * Moved many options to the no| form (-opt and -noopt
6475 accepted). Cleaner.
6478 accepted). Cleaner.
6476
6479
6477 * Changed magic_log so that if called with no parameters, it uses
6480 * Changed magic_log so that if called with no parameters, it uses
6478 'rotate' mode. That way auto-generated logs aren't automatically
6481 'rotate' mode. That way auto-generated logs aren't automatically
6479 over-written. For normal logs, now a backup is made if it exists
6482 over-written. For normal logs, now a backup is made if it exists
6480 (only 1 level of backups). A new 'backup' mode was added to the
6483 (only 1 level of backups). A new 'backup' mode was added to the
6481 Logger class to support this. This was a request by Janko.
6484 Logger class to support this. This was a request by Janko.
6482
6485
6483 * Added @logoff/@logon to stop/restart an active log.
6486 * Added @logoff/@logon to stop/restart an active log.
6484
6487
6485 * Fixed a lot of bugs in log saving/replay. It was pretty
6488 * Fixed a lot of bugs in log saving/replay. It was pretty
6486 broken. Now special lines (!@,/) appear properly in the command
6489 broken. Now special lines (!@,/) appear properly in the command
6487 history after a log replay.
6490 history after a log replay.
6488
6491
6489 * Tried and failed to implement full session saving via pickle. My
6492 * Tried and failed to implement full session saving via pickle. My
6490 idea was to pickle __main__.__dict__, but modules can't be
6493 idea was to pickle __main__.__dict__, but modules can't be
6491 pickled. This would be a better alternative to replaying logs, but
6494 pickled. This would be a better alternative to replaying logs, but
6492 seems quite tricky to get to work. Changed -session to be called
6495 seems quite tricky to get to work. Changed -session to be called
6493 -logplay, which more accurately reflects what it does. And if we
6496 -logplay, which more accurately reflects what it does. And if we
6494 ever get real session saving working, -session is now available.
6497 ever get real session saving working, -session is now available.
6495
6498
6496 * Implemented color schemes for prompts also. As for tracebacks,
6499 * Implemented color schemes for prompts also. As for tracebacks,
6497 currently only NoColor and Linux are supported. But now the
6500 currently only NoColor and Linux are supported. But now the
6498 infrastructure is in place, based on a generic ColorScheme
6501 infrastructure is in place, based on a generic ColorScheme
6499 class. So writing and activating new schemes both for the prompts
6502 class. So writing and activating new schemes both for the prompts
6500 and the tracebacks should be straightforward.
6503 and the tracebacks should be straightforward.
6501
6504
6502 * Version 0.1.13 released, 0.1.14 opened.
6505 * Version 0.1.13 released, 0.1.14 opened.
6503
6506
6504 * Changed handling of options for output cache. Now counter is
6507 * Changed handling of options for output cache. Now counter is
6505 hardwired starting at 1 and one specifies the maximum number of
6508 hardwired starting at 1 and one specifies the maximum number of
6506 entries *in the outcache* (not the max prompt counter). This is
6509 entries *in the outcache* (not the max prompt counter). This is
6507 much better, since many statements won't increase the cache
6510 much better, since many statements won't increase the cache
6508 count. It also eliminated some confusing options, now there's only
6511 count. It also eliminated some confusing options, now there's only
6509 one: cache_size.
6512 one: cache_size.
6510
6513
6511 * Added 'alias' magic function and magic_alias option in the
6514 * Added 'alias' magic function and magic_alias option in the
6512 ipythonrc file. Now the user can easily define whatever names he
6515 ipythonrc file. Now the user can easily define whatever names he
6513 wants for the magic functions without having to play weird
6516 wants for the magic functions without having to play weird
6514 namespace games. This gives IPython a real shell-like feel.
6517 namespace games. This gives IPython a real shell-like feel.
6515
6518
6516 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6519 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6517 @ or not).
6520 @ or not).
6518
6521
6519 This was one of the last remaining 'visible' bugs (that I know
6522 This was one of the last remaining 'visible' bugs (that I know
6520 of). I think if I can clean up the session loading so it works
6523 of). I think if I can clean up the session loading so it works
6521 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6524 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6522 about licensing).
6525 about licensing).
6523
6526
6524 2001-11-25 Fernando Perez <fperez@colorado.edu>
6527 2001-11-25 Fernando Perez <fperez@colorado.edu>
6525
6528
6526 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6529 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6527 there's a cleaner distinction between what ? and ?? show.
6530 there's a cleaner distinction between what ? and ?? show.
6528
6531
6529 * Added screen_length option. Now the user can define his own
6532 * Added screen_length option. Now the user can define his own
6530 screen size for page() operations.
6533 screen size for page() operations.
6531
6534
6532 * Implemented magic shell-like functions with automatic code
6535 * Implemented magic shell-like functions with automatic code
6533 generation. Now adding another function is just a matter of adding
6536 generation. Now adding another function is just a matter of adding
6534 an entry to a dict, and the function is dynamically generated at
6537 an entry to a dict, and the function is dynamically generated at
6535 run-time. Python has some really cool features!
6538 run-time. Python has some really cool features!
6536
6539
6537 * Renamed many options to cleanup conventions a little. Now all
6540 * Renamed many options to cleanup conventions a little. Now all
6538 are lowercase, and only underscores where needed. Also in the code
6541 are lowercase, and only underscores where needed. Also in the code
6539 option name tables are clearer.
6542 option name tables are clearer.
6540
6543
6541 * Changed prompts a little. Now input is 'In [n]:' instead of
6544 * Changed prompts a little. Now input is 'In [n]:' instead of
6542 'In[n]:='. This allows it the numbers to be aligned with the
6545 'In[n]:='. This allows it the numbers to be aligned with the
6543 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6546 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6544 Python (it was a Mathematica thing). The '...' continuation prompt
6547 Python (it was a Mathematica thing). The '...' continuation prompt
6545 was also changed a little to align better.
6548 was also changed a little to align better.
6546
6549
6547 * Fixed bug when flushing output cache. Not all _p<n> variables
6550 * Fixed bug when flushing output cache. Not all _p<n> variables
6548 exist, so their deletion needs to be wrapped in a try:
6551 exist, so their deletion needs to be wrapped in a try:
6549
6552
6550 * Figured out how to properly use inspect.formatargspec() (it
6553 * Figured out how to properly use inspect.formatargspec() (it
6551 requires the args preceded by *). So I removed all the code from
6554 requires the args preceded by *). So I removed all the code from
6552 _get_pdef in Magic, which was just replicating that.
6555 _get_pdef in Magic, which was just replicating that.
6553
6556
6554 * Added test to prefilter to allow redefining magic function names
6557 * Added test to prefilter to allow redefining magic function names
6555 as variables. This is ok, since the @ form is always available,
6558 as variables. This is ok, since the @ form is always available,
6556 but whe should allow the user to define a variable called 'ls' if
6559 but whe should allow the user to define a variable called 'ls' if
6557 he needs it.
6560 he needs it.
6558
6561
6559 * Moved the ToDo information from README into a separate ToDo.
6562 * Moved the ToDo information from README into a separate ToDo.
6560
6563
6561 * General code cleanup and small bugfixes. I think it's close to a
6564 * General code cleanup and small bugfixes. I think it's close to a
6562 state where it can be released, obviously with a big 'beta'
6565 state where it can be released, obviously with a big 'beta'
6563 warning on it.
6566 warning on it.
6564
6567
6565 * Got the magic function split to work. Now all magics are defined
6568 * Got the magic function split to work. Now all magics are defined
6566 in a separate class. It just organizes things a bit, and now
6569 in a separate class. It just organizes things a bit, and now
6567 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6570 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6568 was too long).
6571 was too long).
6569
6572
6570 * Changed @clear to @reset to avoid potential confusions with
6573 * Changed @clear to @reset to avoid potential confusions with
6571 the shell command clear. Also renamed @cl to @clear, which does
6574 the shell command clear. Also renamed @cl to @clear, which does
6572 exactly what people expect it to from their shell experience.
6575 exactly what people expect it to from their shell experience.
6573
6576
6574 Added a check to the @reset command (since it's so
6577 Added a check to the @reset command (since it's so
6575 destructive, it's probably a good idea to ask for confirmation).
6578 destructive, it's probably a good idea to ask for confirmation).
6576 But now reset only works for full namespace resetting. Since the
6579 But now reset only works for full namespace resetting. Since the
6577 del keyword is already there for deleting a few specific
6580 del keyword is already there for deleting a few specific
6578 variables, I don't see the point of having a redundant magic
6581 variables, I don't see the point of having a redundant magic
6579 function for the same task.
6582 function for the same task.
6580
6583
6581 2001-11-24 Fernando Perez <fperez@colorado.edu>
6584 2001-11-24 Fernando Perez <fperez@colorado.edu>
6582
6585
6583 * Updated the builtin docs (esp. the ? ones).
6586 * Updated the builtin docs (esp. the ? ones).
6584
6587
6585 * Ran all the code through pychecker. Not terribly impressed with
6588 * Ran all the code through pychecker. Not terribly impressed with
6586 it: lots of spurious warnings and didn't really find anything of
6589 it: lots of spurious warnings and didn't really find anything of
6587 substance (just a few modules being imported and not used).
6590 substance (just a few modules being imported and not used).
6588
6591
6589 * Implemented the new ultraTB functionality into IPython. New
6592 * Implemented the new ultraTB functionality into IPython. New
6590 option: xcolors. This chooses color scheme. xmode now only selects
6593 option: xcolors. This chooses color scheme. xmode now only selects
6591 between Plain and Verbose. Better orthogonality.
6594 between Plain and Verbose. Better orthogonality.
6592
6595
6593 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6596 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6594 mode and color scheme for the exception handlers. Now it's
6597 mode and color scheme for the exception handlers. Now it's
6595 possible to have the verbose traceback with no coloring.
6598 possible to have the verbose traceback with no coloring.
6596
6599
6597 2001-11-23 Fernando Perez <fperez@colorado.edu>
6600 2001-11-23 Fernando Perez <fperez@colorado.edu>
6598
6601
6599 * Version 0.1.12 released, 0.1.13 opened.
6602 * Version 0.1.12 released, 0.1.13 opened.
6600
6603
6601 * Removed option to set auto-quote and auto-paren escapes by
6604 * Removed option to set auto-quote and auto-paren escapes by
6602 user. The chances of breaking valid syntax are just too high. If
6605 user. The chances of breaking valid syntax are just too high. If
6603 someone *really* wants, they can always dig into the code.
6606 someone *really* wants, they can always dig into the code.
6604
6607
6605 * Made prompt separators configurable.
6608 * Made prompt separators configurable.
6606
6609
6607 2001-11-22 Fernando Perez <fperez@colorado.edu>
6610 2001-11-22 Fernando Perez <fperez@colorado.edu>
6608
6611
6609 * Small bugfixes in many places.
6612 * Small bugfixes in many places.
6610
6613
6611 * Removed the MyCompleter class from ipplib. It seemed redundant
6614 * Removed the MyCompleter class from ipplib. It seemed redundant
6612 with the C-p,C-n history search functionality. Less code to
6615 with the C-p,C-n history search functionality. Less code to
6613 maintain.
6616 maintain.
6614
6617
6615 * Moved all the original ipython.py code into ipythonlib.py. Right
6618 * Moved all the original ipython.py code into ipythonlib.py. Right
6616 now it's just one big dump into a function called make_IPython, so
6619 now it's just one big dump into a function called make_IPython, so
6617 no real modularity has been gained. But at least it makes the
6620 no real modularity has been gained. But at least it makes the
6618 wrapper script tiny, and since ipythonlib is a module, it gets
6621 wrapper script tiny, and since ipythonlib is a module, it gets
6619 compiled and startup is much faster.
6622 compiled and startup is much faster.
6620
6623
6621 This is a reasobably 'deep' change, so we should test it for a
6624 This is a reasobably 'deep' change, so we should test it for a
6622 while without messing too much more with the code.
6625 while without messing too much more with the code.
6623
6626
6624 2001-11-21 Fernando Perez <fperez@colorado.edu>
6627 2001-11-21 Fernando Perez <fperez@colorado.edu>
6625
6628
6626 * Version 0.1.11 released, 0.1.12 opened for further work.
6629 * Version 0.1.11 released, 0.1.12 opened for further work.
6627
6630
6628 * Removed dependency on Itpl. It was only needed in one place. It
6631 * Removed dependency on Itpl. It was only needed in one place. It
6629 would be nice if this became part of python, though. It makes life
6632 would be nice if this became part of python, though. It makes life
6630 *a lot* easier in some cases.
6633 *a lot* easier in some cases.
6631
6634
6632 * Simplified the prefilter code a bit. Now all handlers are
6635 * Simplified the prefilter code a bit. Now all handlers are
6633 expected to explicitly return a value (at least a blank string).
6636 expected to explicitly return a value (at least a blank string).
6634
6637
6635 * Heavy edits in ipplib. Removed the help system altogether. Now
6638 * Heavy edits in ipplib. Removed the help system altogether. Now
6636 obj?/?? is used for inspecting objects, a magic @doc prints
6639 obj?/?? is used for inspecting objects, a magic @doc prints
6637 docstrings, and full-blown Python help is accessed via the 'help'
6640 docstrings, and full-blown Python help is accessed via the 'help'
6638 keyword. This cleans up a lot of code (less to maintain) and does
6641 keyword. This cleans up a lot of code (less to maintain) and does
6639 the job. Since 'help' is now a standard Python component, might as
6642 the job. Since 'help' is now a standard Python component, might as
6640 well use it and remove duplicate functionality.
6643 well use it and remove duplicate functionality.
6641
6644
6642 Also removed the option to use ipplib as a standalone program. By
6645 Also removed the option to use ipplib as a standalone program. By
6643 now it's too dependent on other parts of IPython to function alone.
6646 now it's too dependent on other parts of IPython to function alone.
6644
6647
6645 * Fixed bug in genutils.pager. It would crash if the pager was
6648 * Fixed bug in genutils.pager. It would crash if the pager was
6646 exited immediately after opening (broken pipe).
6649 exited immediately after opening (broken pipe).
6647
6650
6648 * Trimmed down the VerboseTB reporting a little. The header is
6651 * Trimmed down the VerboseTB reporting a little. The header is
6649 much shorter now and the repeated exception arguments at the end
6652 much shorter now and the repeated exception arguments at the end
6650 have been removed. For interactive use the old header seemed a bit
6653 have been removed. For interactive use the old header seemed a bit
6651 excessive.
6654 excessive.
6652
6655
6653 * Fixed small bug in output of @whos for variables with multi-word
6656 * Fixed small bug in output of @whos for variables with multi-word
6654 types (only first word was displayed).
6657 types (only first word was displayed).
6655
6658
6656 2001-11-17 Fernando Perez <fperez@colorado.edu>
6659 2001-11-17 Fernando Perez <fperez@colorado.edu>
6657
6660
6658 * Version 0.1.10 released, 0.1.11 opened for further work.
6661 * Version 0.1.10 released, 0.1.11 opened for further work.
6659
6662
6660 * Modified dirs and friends. dirs now *returns* the stack (not
6663 * Modified dirs and friends. dirs now *returns* the stack (not
6661 prints), so one can manipulate it as a variable. Convenient to
6664 prints), so one can manipulate it as a variable. Convenient to
6662 travel along many directories.
6665 travel along many directories.
6663
6666
6664 * Fixed bug in magic_pdef: would only work with functions with
6667 * Fixed bug in magic_pdef: would only work with functions with
6665 arguments with default values.
6668 arguments with default values.
6666
6669
6667 2001-11-14 Fernando Perez <fperez@colorado.edu>
6670 2001-11-14 Fernando Perez <fperez@colorado.edu>
6668
6671
6669 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6672 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6670 example with IPython. Various other minor fixes and cleanups.
6673 example with IPython. Various other minor fixes and cleanups.
6671
6674
6672 * Version 0.1.9 released, 0.1.10 opened for further work.
6675 * Version 0.1.9 released, 0.1.10 opened for further work.
6673
6676
6674 * Added sys.path to the list of directories searched in the
6677 * Added sys.path to the list of directories searched in the
6675 execfile= option. It used to be the current directory and the
6678 execfile= option. It used to be the current directory and the
6676 user's IPYTHONDIR only.
6679 user's IPYTHONDIR only.
6677
6680
6678 2001-11-13 Fernando Perez <fperez@colorado.edu>
6681 2001-11-13 Fernando Perez <fperez@colorado.edu>
6679
6682
6680 * Reinstated the raw_input/prefilter separation that Janko had
6683 * Reinstated the raw_input/prefilter separation that Janko had
6681 initially. This gives a more convenient setup for extending the
6684 initially. This gives a more convenient setup for extending the
6682 pre-processor from the outside: raw_input always gets a string,
6685 pre-processor from the outside: raw_input always gets a string,
6683 and prefilter has to process it. We can then redefine prefilter
6686 and prefilter has to process it. We can then redefine prefilter
6684 from the outside and implement extensions for special
6687 from the outside and implement extensions for special
6685 purposes.
6688 purposes.
6686
6689
6687 Today I got one for inputting PhysicalQuantity objects
6690 Today I got one for inputting PhysicalQuantity objects
6688 (from Scientific) without needing any function calls at
6691 (from Scientific) without needing any function calls at
6689 all. Extremely convenient, and it's all done as a user-level
6692 all. Extremely convenient, and it's all done as a user-level
6690 extension (no IPython code was touched). Now instead of:
6693 extension (no IPython code was touched). Now instead of:
6691 a = PhysicalQuantity(4.2,'m/s**2')
6694 a = PhysicalQuantity(4.2,'m/s**2')
6692 one can simply say
6695 one can simply say
6693 a = 4.2 m/s**2
6696 a = 4.2 m/s**2
6694 or even
6697 or even
6695 a = 4.2 m/s^2
6698 a = 4.2 m/s^2
6696
6699
6697 I use this, but it's also a proof of concept: IPython really is
6700 I use this, but it's also a proof of concept: IPython really is
6698 fully user-extensible, even at the level of the parsing of the
6701 fully user-extensible, even at the level of the parsing of the
6699 command line. It's not trivial, but it's perfectly doable.
6702 command line. It's not trivial, but it's perfectly doable.
6700
6703
6701 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6704 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6702 the problem of modules being loaded in the inverse order in which
6705 the problem of modules being loaded in the inverse order in which
6703 they were defined in
6706 they were defined in
6704
6707
6705 * Version 0.1.8 released, 0.1.9 opened for further work.
6708 * Version 0.1.8 released, 0.1.9 opened for further work.
6706
6709
6707 * Added magics pdef, source and file. They respectively show the
6710 * Added magics pdef, source and file. They respectively show the
6708 definition line ('prototype' in C), source code and full python
6711 definition line ('prototype' in C), source code and full python
6709 file for any callable object. The object inspector oinfo uses
6712 file for any callable object. The object inspector oinfo uses
6710 these to show the same information.
6713 these to show the same information.
6711
6714
6712 * Version 0.1.7 released, 0.1.8 opened for further work.
6715 * Version 0.1.7 released, 0.1.8 opened for further work.
6713
6716
6714 * Separated all the magic functions into a class called Magic. The
6717 * Separated all the magic functions into a class called Magic. The
6715 InteractiveShell class was becoming too big for Xemacs to handle
6718 InteractiveShell class was becoming too big for Xemacs to handle
6716 (de-indenting a line would lock it up for 10 seconds while it
6719 (de-indenting a line would lock it up for 10 seconds while it
6717 backtracked on the whole class!)
6720 backtracked on the whole class!)
6718
6721
6719 FIXME: didn't work. It can be done, but right now namespaces are
6722 FIXME: didn't work. It can be done, but right now namespaces are
6720 all messed up. Do it later (reverted it for now, so at least
6723 all messed up. Do it later (reverted it for now, so at least
6721 everything works as before).
6724 everything works as before).
6722
6725
6723 * Got the object introspection system (magic_oinfo) working! I
6726 * Got the object introspection system (magic_oinfo) working! I
6724 think this is pretty much ready for release to Janko, so he can
6727 think this is pretty much ready for release to Janko, so he can
6725 test it for a while and then announce it. Pretty much 100% of what
6728 test it for a while and then announce it. Pretty much 100% of what
6726 I wanted for the 'phase 1' release is ready. Happy, tired.
6729 I wanted for the 'phase 1' release is ready. Happy, tired.
6727
6730
6728 2001-11-12 Fernando Perez <fperez@colorado.edu>
6731 2001-11-12 Fernando Perez <fperez@colorado.edu>
6729
6732
6730 * Version 0.1.6 released, 0.1.7 opened for further work.
6733 * Version 0.1.6 released, 0.1.7 opened for further work.
6731
6734
6732 * Fixed bug in printing: it used to test for truth before
6735 * Fixed bug in printing: it used to test for truth before
6733 printing, so 0 wouldn't print. Now checks for None.
6736 printing, so 0 wouldn't print. Now checks for None.
6734
6737
6735 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6738 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6736 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6739 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6737 reaches by hand into the outputcache. Think of a better way to do
6740 reaches by hand into the outputcache. Think of a better way to do
6738 this later.
6741 this later.
6739
6742
6740 * Various small fixes thanks to Nathan's comments.
6743 * Various small fixes thanks to Nathan's comments.
6741
6744
6742 * Changed magic_pprint to magic_Pprint. This way it doesn't
6745 * Changed magic_pprint to magic_Pprint. This way it doesn't
6743 collide with pprint() and the name is consistent with the command
6746 collide with pprint() and the name is consistent with the command
6744 line option.
6747 line option.
6745
6748
6746 * Changed prompt counter behavior to be fully like
6749 * Changed prompt counter behavior to be fully like
6747 Mathematica's. That is, even input that doesn't return a result
6750 Mathematica's. That is, even input that doesn't return a result
6748 raises the prompt counter. The old behavior was kind of confusing
6751 raises the prompt counter. The old behavior was kind of confusing
6749 (getting the same prompt number several times if the operation
6752 (getting the same prompt number several times if the operation
6750 didn't return a result).
6753 didn't return a result).
6751
6754
6752 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6755 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6753
6756
6754 * Fixed -Classic mode (wasn't working anymore).
6757 * Fixed -Classic mode (wasn't working anymore).
6755
6758
6756 * Added colored prompts using Nathan's new code. Colors are
6759 * Added colored prompts using Nathan's new code. Colors are
6757 currently hardwired, they can be user-configurable. For
6760 currently hardwired, they can be user-configurable. For
6758 developers, they can be chosen in file ipythonlib.py, at the
6761 developers, they can be chosen in file ipythonlib.py, at the
6759 beginning of the CachedOutput class def.
6762 beginning of the CachedOutput class def.
6760
6763
6761 2001-11-11 Fernando Perez <fperez@colorado.edu>
6764 2001-11-11 Fernando Perez <fperez@colorado.edu>
6762
6765
6763 * Version 0.1.5 released, 0.1.6 opened for further work.
6766 * Version 0.1.5 released, 0.1.6 opened for further work.
6764
6767
6765 * Changed magic_env to *return* the environment as a dict (not to
6768 * Changed magic_env to *return* the environment as a dict (not to
6766 print it). This way it prints, but it can also be processed.
6769 print it). This way it prints, but it can also be processed.
6767
6770
6768 * Added Verbose exception reporting to interactive
6771 * Added Verbose exception reporting to interactive
6769 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6772 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6770 traceback. Had to make some changes to the ultraTB file. This is
6773 traceback. Had to make some changes to the ultraTB file. This is
6771 probably the last 'big' thing in my mental todo list. This ties
6774 probably the last 'big' thing in my mental todo list. This ties
6772 in with the next entry:
6775 in with the next entry:
6773
6776
6774 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6777 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6775 has to specify is Plain, Color or Verbose for all exception
6778 has to specify is Plain, Color or Verbose for all exception
6776 handling.
6779 handling.
6777
6780
6778 * Removed ShellServices option. All this can really be done via
6781 * Removed ShellServices option. All this can really be done via
6779 the magic system. It's easier to extend, cleaner and has automatic
6782 the magic system. It's easier to extend, cleaner and has automatic
6780 namespace protection and documentation.
6783 namespace protection and documentation.
6781
6784
6782 2001-11-09 Fernando Perez <fperez@colorado.edu>
6785 2001-11-09 Fernando Perez <fperez@colorado.edu>
6783
6786
6784 * Fixed bug in output cache flushing (missing parameter to
6787 * Fixed bug in output cache flushing (missing parameter to
6785 __init__). Other small bugs fixed (found using pychecker).
6788 __init__). Other small bugs fixed (found using pychecker).
6786
6789
6787 * Version 0.1.4 opened for bugfixing.
6790 * Version 0.1.4 opened for bugfixing.
6788
6791
6789 2001-11-07 Fernando Perez <fperez@colorado.edu>
6792 2001-11-07 Fernando Perez <fperez@colorado.edu>
6790
6793
6791 * Version 0.1.3 released, mainly because of the raw_input bug.
6794 * Version 0.1.3 released, mainly because of the raw_input bug.
6792
6795
6793 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6796 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6794 and when testing for whether things were callable, a call could
6797 and when testing for whether things were callable, a call could
6795 actually be made to certain functions. They would get called again
6798 actually be made to certain functions. They would get called again
6796 once 'really' executed, with a resulting double call. A disaster
6799 once 'really' executed, with a resulting double call. A disaster
6797 in many cases (list.reverse() would never work!).
6800 in many cases (list.reverse() would never work!).
6798
6801
6799 * Removed prefilter() function, moved its code to raw_input (which
6802 * Removed prefilter() function, moved its code to raw_input (which
6800 after all was just a near-empty caller for prefilter). This saves
6803 after all was just a near-empty caller for prefilter). This saves
6801 a function call on every prompt, and simplifies the class a tiny bit.
6804 a function call on every prompt, and simplifies the class a tiny bit.
6802
6805
6803 * Fix _ip to __ip name in magic example file.
6806 * Fix _ip to __ip name in magic example file.
6804
6807
6805 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6808 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6806 work with non-gnu versions of tar.
6809 work with non-gnu versions of tar.
6807
6810
6808 2001-11-06 Fernando Perez <fperez@colorado.edu>
6811 2001-11-06 Fernando Perez <fperez@colorado.edu>
6809
6812
6810 * Version 0.1.2. Just to keep track of the recent changes.
6813 * Version 0.1.2. Just to keep track of the recent changes.
6811
6814
6812 * Fixed nasty bug in output prompt routine. It used to check 'if
6815 * Fixed nasty bug in output prompt routine. It used to check 'if
6813 arg != None...'. Problem is, this fails if arg implements a
6816 arg != None...'. Problem is, this fails if arg implements a
6814 special comparison (__cmp__) which disallows comparing to
6817 special comparison (__cmp__) which disallows comparing to
6815 None. Found it when trying to use the PhysicalQuantity module from
6818 None. Found it when trying to use the PhysicalQuantity module from
6816 ScientificPython.
6819 ScientificPython.
6817
6820
6818 2001-11-05 Fernando Perez <fperez@colorado.edu>
6821 2001-11-05 Fernando Perez <fperez@colorado.edu>
6819
6822
6820 * Also added dirs. Now the pushd/popd/dirs family functions
6823 * Also added dirs. Now the pushd/popd/dirs family functions
6821 basically like the shell, with the added convenience of going home
6824 basically like the shell, with the added convenience of going home
6822 when called with no args.
6825 when called with no args.
6823
6826
6824 * pushd/popd slightly modified to mimic shell behavior more
6827 * pushd/popd slightly modified to mimic shell behavior more
6825 closely.
6828 closely.
6826
6829
6827 * Added env,pushd,popd from ShellServices as magic functions. I
6830 * Added env,pushd,popd from ShellServices as magic functions. I
6828 think the cleanest will be to port all desired functions from
6831 think the cleanest will be to port all desired functions from
6829 ShellServices as magics and remove ShellServices altogether. This
6832 ShellServices as magics and remove ShellServices altogether. This
6830 will provide a single, clean way of adding functionality
6833 will provide a single, clean way of adding functionality
6831 (shell-type or otherwise) to IP.
6834 (shell-type or otherwise) to IP.
6832
6835
6833 2001-11-04 Fernando Perez <fperez@colorado.edu>
6836 2001-11-04 Fernando Perez <fperez@colorado.edu>
6834
6837
6835 * Added .ipython/ directory to sys.path. This way users can keep
6838 * Added .ipython/ directory to sys.path. This way users can keep
6836 customizations there and access them via import.
6839 customizations there and access them via import.
6837
6840
6838 2001-11-03 Fernando Perez <fperez@colorado.edu>
6841 2001-11-03 Fernando Perez <fperez@colorado.edu>
6839
6842
6840 * Opened version 0.1.1 for new changes.
6843 * Opened version 0.1.1 for new changes.
6841
6844
6842 * Changed version number to 0.1.0: first 'public' release, sent to
6845 * Changed version number to 0.1.0: first 'public' release, sent to
6843 Nathan and Janko.
6846 Nathan and Janko.
6844
6847
6845 * Lots of small fixes and tweaks.
6848 * Lots of small fixes and tweaks.
6846
6849
6847 * Minor changes to whos format. Now strings are shown, snipped if
6850 * Minor changes to whos format. Now strings are shown, snipped if
6848 too long.
6851 too long.
6849
6852
6850 * Changed ShellServices to work on __main__ so they show up in @who
6853 * Changed ShellServices to work on __main__ so they show up in @who
6851
6854
6852 * Help also works with ? at the end of a line:
6855 * Help also works with ? at the end of a line:
6853 ?sin and sin?
6856 ?sin and sin?
6854 both produce the same effect. This is nice, as often I use the
6857 both produce the same effect. This is nice, as often I use the
6855 tab-complete to find the name of a method, but I used to then have
6858 tab-complete to find the name of a method, but I used to then have
6856 to go to the beginning of the line to put a ? if I wanted more
6859 to go to the beginning of the line to put a ? if I wanted more
6857 info. Now I can just add the ? and hit return. Convenient.
6860 info. Now I can just add the ? and hit return. Convenient.
6858
6861
6859 2001-11-02 Fernando Perez <fperez@colorado.edu>
6862 2001-11-02 Fernando Perez <fperez@colorado.edu>
6860
6863
6861 * Python version check (>=2.1) added.
6864 * Python version check (>=2.1) added.
6862
6865
6863 * Added LazyPython documentation. At this point the docs are quite
6866 * Added LazyPython documentation. At this point the docs are quite
6864 a mess. A cleanup is in order.
6867 a mess. A cleanup is in order.
6865
6868
6866 * Auto-installer created. For some bizarre reason, the zipfiles
6869 * Auto-installer created. For some bizarre reason, the zipfiles
6867 module isn't working on my system. So I made a tar version
6870 module isn't working on my system. So I made a tar version
6868 (hopefully the command line options in various systems won't kill
6871 (hopefully the command line options in various systems won't kill
6869 me).
6872 me).
6870
6873
6871 * Fixes to Struct in genutils. Now all dictionary-like methods are
6874 * Fixes to Struct in genutils. Now all dictionary-like methods are
6872 protected (reasonably).
6875 protected (reasonably).
6873
6876
6874 * Added pager function to genutils and changed ? to print usage
6877 * Added pager function to genutils and changed ? to print usage
6875 note through it (it was too long).
6878 note through it (it was too long).
6876
6879
6877 * Added the LazyPython functionality. Works great! I changed the
6880 * Added the LazyPython functionality. Works great! I changed the
6878 auto-quote escape to ';', it's on home row and next to '. But
6881 auto-quote escape to ';', it's on home row and next to '. But
6879 both auto-quote and auto-paren (still /) escapes are command-line
6882 both auto-quote and auto-paren (still /) escapes are command-line
6880 parameters.
6883 parameters.
6881
6884
6882
6885
6883 2001-11-01 Fernando Perez <fperez@colorado.edu>
6886 2001-11-01 Fernando Perez <fperez@colorado.edu>
6884
6887
6885 * Version changed to 0.0.7. Fairly large change: configuration now
6888 * Version changed to 0.0.7. Fairly large change: configuration now
6886 is all stored in a directory, by default .ipython. There, all
6889 is all stored in a directory, by default .ipython. There, all
6887 config files have normal looking names (not .names)
6890 config files have normal looking names (not .names)
6888
6891
6889 * Version 0.0.6 Released first to Lucas and Archie as a test
6892 * Version 0.0.6 Released first to Lucas and Archie as a test
6890 run. Since it's the first 'semi-public' release, change version to
6893 run. Since it's the first 'semi-public' release, change version to
6891 > 0.0.6 for any changes now.
6894 > 0.0.6 for any changes now.
6892
6895
6893 * Stuff I had put in the ipplib.py changelog:
6896 * Stuff I had put in the ipplib.py changelog:
6894
6897
6895 Changes to InteractiveShell:
6898 Changes to InteractiveShell:
6896
6899
6897 - Made the usage message a parameter.
6900 - Made the usage message a parameter.
6898
6901
6899 - Require the name of the shell variable to be given. It's a bit
6902 - Require the name of the shell variable to be given. It's a bit
6900 of a hack, but allows the name 'shell' not to be hardwired in the
6903 of a hack, but allows the name 'shell' not to be hardwired in the
6901 magic (@) handler, which is problematic b/c it requires
6904 magic (@) handler, which is problematic b/c it requires
6902 polluting the global namespace with 'shell'. This in turn is
6905 polluting the global namespace with 'shell'. This in turn is
6903 fragile: if a user redefines a variable called shell, things
6906 fragile: if a user redefines a variable called shell, things
6904 break.
6907 break.
6905
6908
6906 - magic @: all functions available through @ need to be defined
6909 - magic @: all functions available through @ need to be defined
6907 as magic_<name>, even though they can be called simply as
6910 as magic_<name>, even though they can be called simply as
6908 @<name>. This allows the special command @magic to gather
6911 @<name>. This allows the special command @magic to gather
6909 information automatically about all existing magic functions,
6912 information automatically about all existing magic functions,
6910 even if they are run-time user extensions, by parsing the shell
6913 even if they are run-time user extensions, by parsing the shell
6911 instance __dict__ looking for special magic_ names.
6914 instance __dict__ looking for special magic_ names.
6912
6915
6913 - mainloop: added *two* local namespace parameters. This allows
6916 - mainloop: added *two* local namespace parameters. This allows
6914 the class to differentiate between parameters which were there
6917 the class to differentiate between parameters which were there
6915 before and after command line initialization was processed. This
6918 before and after command line initialization was processed. This
6916 way, later @who can show things loaded at startup by the
6919 way, later @who can show things loaded at startup by the
6917 user. This trick was necessary to make session saving/reloading
6920 user. This trick was necessary to make session saving/reloading
6918 really work: ideally after saving/exiting/reloading a session,
6921 really work: ideally after saving/exiting/reloading a session,
6919 *everything* should look the same, including the output of @who. I
6922 *everything* should look the same, including the output of @who. I
6920 was only able to make this work with this double namespace
6923 was only able to make this work with this double namespace
6921 trick.
6924 trick.
6922
6925
6923 - added a header to the logfile which allows (almost) full
6926 - added a header to the logfile which allows (almost) full
6924 session restoring.
6927 session restoring.
6925
6928
6926 - prepend lines beginning with @ or !, with a and log
6929 - prepend lines beginning with @ or !, with a and log
6927 them. Why? !lines: may be useful to know what you did @lines:
6930 them. Why? !lines: may be useful to know what you did @lines:
6928 they may affect session state. So when restoring a session, at
6931 they may affect session state. So when restoring a session, at
6929 least inform the user of their presence. I couldn't quite get
6932 least inform the user of their presence. I couldn't quite get
6930 them to properly re-execute, but at least the user is warned.
6933 them to properly re-execute, but at least the user is warned.
6931
6934
6932 * Started ChangeLog.
6935 * Started ChangeLog.
General Comments 0
You need to be logged in to leave comments. Login now