##// END OF EJS Templates
Fix typo.
walter.doerwald -
Show More
@@ -1,6440 +1,6440 b''
1 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
1 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
2
2
3 * IPython/completer.py (IPCompleter.complete): extend the
3 * IPython/completer.py (IPCompleter.complete): extend the
4 complete() call API to support completions by other mechanisms
4 complete() call API to support completions by other mechanisms
5 than readline. Closes #109.
5 than readline. Closes #109.
6
6
7 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
7 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
8 protect against a bug in Python's execfile(). Closes #123.
8 protect against a bug in Python's execfile(). Closes #123.
9
9
10 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
10 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
11
11
12 * IPython/iplib.py (split_user_input): ensure that when splitting
12 * IPython/iplib.py (split_user_input): ensure that when splitting
13 user input, the part that can be treated as a python name is pure
13 user input, the part that can be treated as a python name is pure
14 ascii (Python identifiers MUST be pure ascii). Part of the
14 ascii (Python identifiers MUST be pure ascii). Part of the
15 ongoing Unicode support work.
15 ongoing Unicode support work.
16
16
17 * IPython/Prompts.py (prompt_specials_color): Add \N for the
17 * IPython/Prompts.py (prompt_specials_color): Add \N for the
18 actual prompt number, without any coloring. This allows users to
18 actual prompt number, without any coloring. This allows users to
19 produce numbered prompts with their own colors. Added after a
19 produce numbered prompts with their own colors. Added after a
20 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
20 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
21
21
22 2007-03-31 Walter Doerwald <walter@livinglogic.de>
22 2007-03-31 Walter Doerwald <walter@livinglogic.de>
23
23
24 * IPython/Extensions/igrid.py: Map the return key
24 * IPython/Extensions/igrid.py: Map the return key
25 to enter() and shift-return to enterattr().
25 to enter() and shift-return to enterattr().
26
26
27 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
27 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
28
28
29 * IPython/Magic.py (magic_psearch): add unicode support by
29 * IPython/Magic.py (magic_psearch): add unicode support by
30 encoding to ascii the input, since this routine also only deals
30 encoding to ascii the input, since this routine also only deals
31 with valid Python names. Fixes a bug reported by Stefan.
31 with valid Python names. Fixes a bug reported by Stefan.
32
32
33 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
33 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
34
34
35 * IPython/Magic.py (_inspect): convert unicode input into ascii
35 * IPython/Magic.py (_inspect): convert unicode input into ascii
36 before trying to evaluate it as a Python identifier. This fixes a
36 before trying to evaluate it as a Python identifier. This fixes a
37 problem that the new unicode support had introduced when analyzing
37 problem that the new unicode support had introduced when analyzing
38 long definition lines for functions.
38 long definition lines for functions.
39
39
40 2007-03-24 Walter Doerwald <walter@livinglogic.de>
40 2007-03-24 Walter Doerwald <walter@livinglogic.de>
41
41
42 * IPython/Extensions/igrid.py: Fix picking. Using
42 * IPython/Extensions/igrid.py: Fix picking. Using
43 igrid with wxPython 2.6 and -wthread should work now.
43 igrid with wxPython 2.6 and -wthread should work now.
44 igrid.display() simply tries to create a frame without
44 igrid.display() simply tries to create a frame without
45 an application. Only if this fails an application is created.
45 an application. Only if this fails an application is created.
46
46
47 2007-03-23 Walter Doerwald <walter@livinglogic.de>
47 2007-03-23 Walter Doerwald <walter@livinglogic.de>
48
48
49 * IPython/Extensions/path.py: Updated to version 2.2.
49 * IPython/Extensions/path.py: Updated to version 2.2.
50
50
51 2007-03-23 Ville Vainio <vivainio@gmail.com>
51 2007-03-23 Ville Vainio <vivainio@gmail.com>
52
52
53 * iplib.py: recursive alias expansion now works better, so that
53 * iplib.py: recursive alias expansion now works better, so that
54 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
54 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
55 doesn't trip up the process, if 'd' has been aliased to 'ls'.
55 doesn't trip up the process, if 'd' has been aliased to 'ls'.
56
56
57 * Extensions/ipy_gnuglobal.py added, provides %global magic
57 * Extensions/ipy_gnuglobal.py added, provides %global magic
58 for users of http://www.gnu.org/software/global
58 for users of http://www.gnu.org/software/global
59
59
60 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
60 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
61 Closes #52. Patch by Stefan van der Walt.
61 Closes #52. Patch by Stefan van der Walt.
62
62
63 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
63 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
64
64
65 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
65 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
66 respect the __file__ attribute when using %run. Thanks to a bug
66 respect the __file__ attribute when using %run. Thanks to a bug
67 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
67 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
68
68
69 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
69 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
70
70
71 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
71 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
72 input. Patch sent by Stefan.
72 input. Patch sent by Stefan.
73
73
74 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
74 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
75 * IPython/Extensions/ipy_stock_completer.py
75 * IPython/Extensions/ipy_stock_completer.py
76 shlex_split, fix bug in shlex_split. len function
76 shlex_split, fix bug in shlex_split. len function
77 call was missing in if statement. Caused shlex_split to
77 call was missing an if statement. Caused shlex_split to
78 sometimes return "" as last element.
78 sometimes return "" as last element.
79
79
80 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
80 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
81
81
82 * IPython/completer.py
82 * IPython/completer.py
83 (IPCompleter.file_matches.single_dir_expand): fix a problem
83 (IPCompleter.file_matches.single_dir_expand): fix a problem
84 reported by Stefan, where directories containign a single subdir
84 reported by Stefan, where directories containign a single subdir
85 would be completed too early.
85 would be completed too early.
86
86
87 * IPython/Shell.py (_load_pylab): Make the execution of 'from
87 * IPython/Shell.py (_load_pylab): Make the execution of 'from
88 pylab import *' when -pylab is given be optional. A new flag,
88 pylab import *' when -pylab is given be optional. A new flag,
89 pylab_import_all controls this behavior, the default is True for
89 pylab_import_all controls this behavior, the default is True for
90 backwards compatibility.
90 backwards compatibility.
91
91
92 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
92 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
93 modified) R. Bernstein's patch for fully syntax highlighted
93 modified) R. Bernstein's patch for fully syntax highlighted
94 tracebacks. The functionality is also available under ultraTB for
94 tracebacks. The functionality is also available under ultraTB for
95 non-ipython users (someone using ultraTB but outside an ipython
95 non-ipython users (someone using ultraTB but outside an ipython
96 session). They can select the color scheme by setting the
96 session). They can select the color scheme by setting the
97 module-level global DEFAULT_SCHEME. The highlight functionality
97 module-level global DEFAULT_SCHEME. The highlight functionality
98 also works when debugging.
98 also works when debugging.
99
99
100 * IPython/genutils.py (IOStream.close): small patch by
100 * IPython/genutils.py (IOStream.close): small patch by
101 R. Bernstein for improved pydb support.
101 R. Bernstein for improved pydb support.
102
102
103 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
103 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
104 DaveS <davls@telus.net> to improve support of debugging under
104 DaveS <davls@telus.net> to improve support of debugging under
105 NTEmacs, including improved pydb behavior.
105 NTEmacs, including improved pydb behavior.
106
106
107 * IPython/Magic.py (magic_prun): Fix saving of profile info for
107 * IPython/Magic.py (magic_prun): Fix saving of profile info for
108 Python 2.5, where the stats object API changed a little. Thanks
108 Python 2.5, where the stats object API changed a little. Thanks
109 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
109 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
110
110
111 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
111 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
112 Pernetty's patch to improve support for (X)Emacs under Win32.
112 Pernetty's patch to improve support for (X)Emacs under Win32.
113
113
114 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
114 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
115
115
116 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
116 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
117 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
117 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
118 a report by Nik Tautenhahn.
118 a report by Nik Tautenhahn.
119
119
120 2007-03-16 Walter Doerwald <walter@livinglogic.de>
120 2007-03-16 Walter Doerwald <walter@livinglogic.de>
121
121
122 * setup.py: Add the igrid help files to the list of data files
122 * setup.py: Add the igrid help files to the list of data files
123 to be installed alongside igrid.
123 to be installed alongside igrid.
124 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
124 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
125 Show the input object of the igrid browser as the window tile.
125 Show the input object of the igrid browser as the window tile.
126 Show the object the cursor is on in the statusbar.
126 Show the object the cursor is on in the statusbar.
127
127
128 2007-03-15 Ville Vainio <vivainio@gmail.com>
128 2007-03-15 Ville Vainio <vivainio@gmail.com>
129
129
130 * Extensions/ipy_stock_completers.py: Fixed exception
130 * Extensions/ipy_stock_completers.py: Fixed exception
131 on mismatching quotes in %run completer. Patch by
131 on mismatching quotes in %run completer. Patch by
132 JοΏ½rgen Stenarson. Closes #127.
132 JοΏ½rgen Stenarson. Closes #127.
133
133
134 2007-03-14 Ville Vainio <vivainio@gmail.com>
134 2007-03-14 Ville Vainio <vivainio@gmail.com>
135
135
136 * Extensions/ext_rehashdir.py: Do not do auto_alias
136 * Extensions/ext_rehashdir.py: Do not do auto_alias
137 in %rehashdir, it clobbers %store'd aliases.
137 in %rehashdir, it clobbers %store'd aliases.
138
138
139 * UserConfig/ipy_profile_sh.py: envpersist.py extension
139 * UserConfig/ipy_profile_sh.py: envpersist.py extension
140 (beefed up %env) imported for sh profile.
140 (beefed up %env) imported for sh profile.
141
141
142 2007-03-10 Walter Doerwald <walter@livinglogic.de>
142 2007-03-10 Walter Doerwald <walter@livinglogic.de>
143
143
144 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
144 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
145 as the default browser.
145 as the default browser.
146 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
146 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
147 As igrid displays all attributes it ever encounters, fetch() (which has
147 As igrid displays all attributes it ever encounters, fetch() (which has
148 been renamed to _fetch()) doesn't have to recalculate the display attributes
148 been renamed to _fetch()) doesn't have to recalculate the display attributes
149 every time a new item is fetched. This should speed up scrolling.
149 every time a new item is fetched. This should speed up scrolling.
150
150
151 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
151 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
152
152
153 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
153 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
154 Schmolck's recently reported tab-completion bug (my previous one
154 Schmolck's recently reported tab-completion bug (my previous one
155 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
155 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
156
156
157 2007-03-09 Walter Doerwald <walter@livinglogic.de>
157 2007-03-09 Walter Doerwald <walter@livinglogic.de>
158
158
159 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
159 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
160 Close help window if exiting igrid.
160 Close help window if exiting igrid.
161
161
162 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
162 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
163
163
164 * IPython/Extensions/ipy_defaults.py: Check if readline is available
164 * IPython/Extensions/ipy_defaults.py: Check if readline is available
165 before calling functions from readline.
165 before calling functions from readline.
166
166
167 2007-03-02 Walter Doerwald <walter@livinglogic.de>
167 2007-03-02 Walter Doerwald <walter@livinglogic.de>
168
168
169 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
169 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
170 igrid is a wxPython-based display object for ipipe. If your system has
170 igrid is a wxPython-based display object for ipipe. If your system has
171 wx installed igrid will be the default display. Without wx ipipe falls
171 wx installed igrid will be the default display. Without wx ipipe falls
172 back to ibrowse (which needs curses). If no curses is installed ipipe
172 back to ibrowse (which needs curses). If no curses is installed ipipe
173 falls back to idump.
173 falls back to idump.
174
174
175 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
175 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
176
176
177 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
177 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
178 my changes from yesterday, they introduced bugs. Will reactivate
178 my changes from yesterday, they introduced bugs. Will reactivate
179 once I get a correct solution, which will be much easier thanks to
179 once I get a correct solution, which will be much easier thanks to
180 Dan Milstein's new prefilter test suite.
180 Dan Milstein's new prefilter test suite.
181
181
182 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
182 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
183
183
184 * IPython/iplib.py (split_user_input): fix input splitting so we
184 * IPython/iplib.py (split_user_input): fix input splitting so we
185 don't attempt attribute accesses on things that can't possibly be
185 don't attempt attribute accesses on things that can't possibly be
186 valid Python attributes. After a bug report by Alex Schmolck.
186 valid Python attributes. After a bug report by Alex Schmolck.
187 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
187 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
188 %magic with explicit % prefix.
188 %magic with explicit % prefix.
189
189
190 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
190 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
191
191
192 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
192 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
193 avoid a DeprecationWarning from GTK.
193 avoid a DeprecationWarning from GTK.
194
194
195 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
195 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
196
196
197 * IPython/genutils.py (clock): I modified clock() to return total
197 * IPython/genutils.py (clock): I modified clock() to return total
198 time, user+system. This is a more commonly needed metric. I also
198 time, user+system. This is a more commonly needed metric. I also
199 introduced the new clocku/clocks to get only user/system time if
199 introduced the new clocku/clocks to get only user/system time if
200 one wants those instead.
200 one wants those instead.
201
201
202 ***WARNING: API CHANGE*** clock() used to return only user time,
202 ***WARNING: API CHANGE*** clock() used to return only user time,
203 so if you want exactly the same results as before, use clocku
203 so if you want exactly the same results as before, use clocku
204 instead.
204 instead.
205
205
206 2007-02-22 Ville Vainio <vivainio@gmail.com>
206 2007-02-22 Ville Vainio <vivainio@gmail.com>
207
207
208 * IPython/Extensions/ipy_p4.py: Extension for improved
208 * IPython/Extensions/ipy_p4.py: Extension for improved
209 p4 (perforce version control system) experience.
209 p4 (perforce version control system) experience.
210 Adds %p4 magic with p4 command completion and
210 Adds %p4 magic with p4 command completion and
211 automatic -G argument (marshall output as python dict)
211 automatic -G argument (marshall output as python dict)
212
212
213 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
213 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
214
214
215 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
215 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
216 stop marks.
216 stop marks.
217 (ClearingMixin): a simple mixin to easily make a Demo class clear
217 (ClearingMixin): a simple mixin to easily make a Demo class clear
218 the screen in between blocks and have empty marquees. The
218 the screen in between blocks and have empty marquees. The
219 ClearDemo and ClearIPDemo classes that use it are included.
219 ClearDemo and ClearIPDemo classes that use it are included.
220
220
221 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
221 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
222
222
223 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
223 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
224 protect against exceptions at Python shutdown time. Patch
224 protect against exceptions at Python shutdown time. Patch
225 sumbmitted to upstream.
225 sumbmitted to upstream.
226
226
227 2007-02-14 Walter Doerwald <walter@livinglogic.de>
227 2007-02-14 Walter Doerwald <walter@livinglogic.de>
228
228
229 * IPython/Extensions/ibrowse.py: If entering the first object level
229 * IPython/Extensions/ibrowse.py: If entering the first object level
230 (i.e. the object for which the browser has been started) fails,
230 (i.e. the object for which the browser has been started) fails,
231 now the error is raised directly (aborting the browser) instead of
231 now the error is raised directly (aborting the browser) instead of
232 running into an empty levels list later.
232 running into an empty levels list later.
233
233
234 2007-02-03 Walter Doerwald <walter@livinglogic.de>
234 2007-02-03 Walter Doerwald <walter@livinglogic.de>
235
235
236 * IPython/Extensions/ipipe.py: Add an xrepr implementation
236 * IPython/Extensions/ipipe.py: Add an xrepr implementation
237 for the noitem object.
237 for the noitem object.
238
238
239 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
239 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
240
240
241 * IPython/completer.py (Completer.attr_matches): Fix small
241 * IPython/completer.py (Completer.attr_matches): Fix small
242 tab-completion bug with Enthought Traits objects with units.
242 tab-completion bug with Enthought Traits objects with units.
243 Thanks to a bug report by Tom Denniston
243 Thanks to a bug report by Tom Denniston
244 <tom.denniston-AT-alum.dartmouth.org>.
244 <tom.denniston-AT-alum.dartmouth.org>.
245
245
246 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
246 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
247
247
248 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
248 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
249 bug where only .ipy or .py would be completed. Once the first
249 bug where only .ipy or .py would be completed. Once the first
250 argument to %run has been given, all completions are valid because
250 argument to %run has been given, all completions are valid because
251 they are the arguments to the script, which may well be non-python
251 they are the arguments to the script, which may well be non-python
252 filenames.
252 filenames.
253
253
254 * IPython/irunner.py (InteractiveRunner.run_source): major updates
254 * IPython/irunner.py (InteractiveRunner.run_source): major updates
255 to irunner to allow it to correctly support real doctesting of
255 to irunner to allow it to correctly support real doctesting of
256 out-of-process ipython code.
256 out-of-process ipython code.
257
257
258 * IPython/Magic.py (magic_cd): Make the setting of the terminal
258 * IPython/Magic.py (magic_cd): Make the setting of the terminal
259 title an option (-noterm_title) because it completely breaks
259 title an option (-noterm_title) because it completely breaks
260 doctesting.
260 doctesting.
261
261
262 * IPython/demo.py: fix IPythonDemo class that was not actually working.
262 * IPython/demo.py: fix IPythonDemo class that was not actually working.
263
263
264 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
264 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
265
265
266 * IPython/irunner.py (main): fix small bug where extensions were
266 * IPython/irunner.py (main): fix small bug where extensions were
267 not being correctly recognized.
267 not being correctly recognized.
268
268
269 2007-01-23 Walter Doerwald <walter@livinglogic.de>
269 2007-01-23 Walter Doerwald <walter@livinglogic.de>
270
270
271 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
271 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
272 a string containing a single line yields the string itself as the
272 a string containing a single line yields the string itself as the
273 only item.
273 only item.
274
274
275 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
275 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
276 object if it's the same as the one on the last level (This avoids
276 object if it's the same as the one on the last level (This avoids
277 infinite recursion for one line strings).
277 infinite recursion for one line strings).
278
278
279 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
279 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
280
280
281 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
281 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
282 all output streams before printing tracebacks. This ensures that
282 all output streams before printing tracebacks. This ensures that
283 user output doesn't end up interleaved with traceback output.
283 user output doesn't end up interleaved with traceback output.
284
284
285 2007-01-10 Ville Vainio <vivainio@gmail.com>
285 2007-01-10 Ville Vainio <vivainio@gmail.com>
286
286
287 * Extensions/envpersist.py: Turbocharged %env that remembers
287 * Extensions/envpersist.py: Turbocharged %env that remembers
288 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
288 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
289 "%env VISUAL=jed".
289 "%env VISUAL=jed".
290
290
291 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
291 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
292
292
293 * IPython/iplib.py (showtraceback): ensure that we correctly call
293 * IPython/iplib.py (showtraceback): ensure that we correctly call
294 custom handlers in all cases (some with pdb were slipping through,
294 custom handlers in all cases (some with pdb were slipping through,
295 but I'm not exactly sure why).
295 but I'm not exactly sure why).
296
296
297 * IPython/Debugger.py (Tracer.__init__): added new class to
297 * IPython/Debugger.py (Tracer.__init__): added new class to
298 support set_trace-like usage of IPython's enhanced debugger.
298 support set_trace-like usage of IPython's enhanced debugger.
299
299
300 2006-12-24 Ville Vainio <vivainio@gmail.com>
300 2006-12-24 Ville Vainio <vivainio@gmail.com>
301
301
302 * ipmaker.py: more informative message when ipy_user_conf
302 * ipmaker.py: more informative message when ipy_user_conf
303 import fails (suggest running %upgrade).
303 import fails (suggest running %upgrade).
304
304
305 * tools/run_ipy_in_profiler.py: Utility to see where
305 * tools/run_ipy_in_profiler.py: Utility to see where
306 the time during IPython startup is spent.
306 the time during IPython startup is spent.
307
307
308 2006-12-20 Ville Vainio <vivainio@gmail.com>
308 2006-12-20 Ville Vainio <vivainio@gmail.com>
309
309
310 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
310 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
311
311
312 * ipapi.py: Add new ipapi method, expand_alias.
312 * ipapi.py: Add new ipapi method, expand_alias.
313
313
314 * Release.py: Bump up version to 0.7.4.svn
314 * Release.py: Bump up version to 0.7.4.svn
315
315
316 2006-12-17 Ville Vainio <vivainio@gmail.com>
316 2006-12-17 Ville Vainio <vivainio@gmail.com>
317
317
318 * Extensions/jobctrl.py: Fixed &cmd arg arg...
318 * Extensions/jobctrl.py: Fixed &cmd arg arg...
319 to work properly on posix too
319 to work properly on posix too
320
320
321 * Release.py: Update revnum (version is still just 0.7.3).
321 * Release.py: Update revnum (version is still just 0.7.3).
322
322
323 2006-12-15 Ville Vainio <vivainio@gmail.com>
323 2006-12-15 Ville Vainio <vivainio@gmail.com>
324
324
325 * scripts/ipython_win_post_install: create ipython.py in
325 * scripts/ipython_win_post_install: create ipython.py in
326 prefix + "/scripts".
326 prefix + "/scripts".
327
327
328 * Release.py: Update version to 0.7.3.
328 * Release.py: Update version to 0.7.3.
329
329
330 2006-12-14 Ville Vainio <vivainio@gmail.com>
330 2006-12-14 Ville Vainio <vivainio@gmail.com>
331
331
332 * scripts/ipython_win_post_install: Overwrite old shortcuts
332 * scripts/ipython_win_post_install: Overwrite old shortcuts
333 if they already exist
333 if they already exist
334
334
335 * Release.py: release 0.7.3rc2
335 * Release.py: release 0.7.3rc2
336
336
337 2006-12-13 Ville Vainio <vivainio@gmail.com>
337 2006-12-13 Ville Vainio <vivainio@gmail.com>
338
338
339 * Branch and update Release.py for 0.7.3rc1
339 * Branch and update Release.py for 0.7.3rc1
340
340
341 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
341 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
342
342
343 * IPython/Shell.py (IPShellWX): update for current WX naming
343 * IPython/Shell.py (IPShellWX): update for current WX naming
344 conventions, to avoid a deprecation warning with current WX
344 conventions, to avoid a deprecation warning with current WX
345 versions. Thanks to a report by Danny Shevitz.
345 versions. Thanks to a report by Danny Shevitz.
346
346
347 2006-12-12 Ville Vainio <vivainio@gmail.com>
347 2006-12-12 Ville Vainio <vivainio@gmail.com>
348
348
349 * ipmaker.py: apply david cournapeau's patch to make
349 * ipmaker.py: apply david cournapeau's patch to make
350 import_some work properly even when ipythonrc does
350 import_some work properly even when ipythonrc does
351 import_some on empty list (it was an old bug!).
351 import_some on empty list (it was an old bug!).
352
352
353 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
353 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
354 Add deprecation note to ipythonrc and a url to wiki
354 Add deprecation note to ipythonrc and a url to wiki
355 in ipy_user_conf.py
355 in ipy_user_conf.py
356
356
357
357
358 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
358 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
359 as if it was typed on IPython command prompt, i.e.
359 as if it was typed on IPython command prompt, i.e.
360 as IPython script.
360 as IPython script.
361
361
362 * example-magic.py, magic_grepl.py: remove outdated examples
362 * example-magic.py, magic_grepl.py: remove outdated examples
363
363
364 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
364 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
365
365
366 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
366 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
367 is called before any exception has occurred.
367 is called before any exception has occurred.
368
368
369 2006-12-08 Ville Vainio <vivainio@gmail.com>
369 2006-12-08 Ville Vainio <vivainio@gmail.com>
370
370
371 * Extensions/ipy_stock_completers.py: fix cd completer
371 * Extensions/ipy_stock_completers.py: fix cd completer
372 to translate /'s to \'s again.
372 to translate /'s to \'s again.
373
373
374 * completer.py: prevent traceback on file completions w/
374 * completer.py: prevent traceback on file completions w/
375 backslash.
375 backslash.
376
376
377 * Release.py: Update release number to 0.7.3b3 for release
377 * Release.py: Update release number to 0.7.3b3 for release
378
378
379 2006-12-07 Ville Vainio <vivainio@gmail.com>
379 2006-12-07 Ville Vainio <vivainio@gmail.com>
380
380
381 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
381 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
382 while executing external code. Provides more shell-like behaviour
382 while executing external code. Provides more shell-like behaviour
383 and overall better response to ctrl + C / ctrl + break.
383 and overall better response to ctrl + C / ctrl + break.
384
384
385 * tools/make_tarball.py: new script to create tarball straight from svn
385 * tools/make_tarball.py: new script to create tarball straight from svn
386 (setup.py sdist doesn't work on win32).
386 (setup.py sdist doesn't work on win32).
387
387
388 * Extensions/ipy_stock_completers.py: fix cd completer to give up
388 * Extensions/ipy_stock_completers.py: fix cd completer to give up
389 on dirnames with spaces and use the default completer instead.
389 on dirnames with spaces and use the default completer instead.
390
390
391 * Revision.py: Change version to 0.7.3b2 for release.
391 * Revision.py: Change version to 0.7.3b2 for release.
392
392
393 2006-12-05 Ville Vainio <vivainio@gmail.com>
393 2006-12-05 Ville Vainio <vivainio@gmail.com>
394
394
395 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
395 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
396 pydb patch 4 (rm debug printing, py 2.5 checking)
396 pydb patch 4 (rm debug printing, py 2.5 checking)
397
397
398 2006-11-30 Walter Doerwald <walter@livinglogic.de>
398 2006-11-30 Walter Doerwald <walter@livinglogic.de>
399 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
399 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
400 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
400 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
401 "refreshfind" (mapped to "R") does the same but tries to go back to the same
401 "refreshfind" (mapped to "R") does the same but tries to go back to the same
402 object the cursor was on before the refresh. The command "markrange" is
402 object the cursor was on before the refresh. The command "markrange" is
403 mapped to "%" now.
403 mapped to "%" now.
404 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
404 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
405
405
406 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
406 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
407
407
408 * IPython/Magic.py (magic_debug): new %debug magic to activate the
408 * IPython/Magic.py (magic_debug): new %debug magic to activate the
409 interactive debugger on the last traceback, without having to call
409 interactive debugger on the last traceback, without having to call
410 %pdb and rerun your code. Made minor changes in various modules,
410 %pdb and rerun your code. Made minor changes in various modules,
411 should automatically recognize pydb if available.
411 should automatically recognize pydb if available.
412
412
413 2006-11-28 Ville Vainio <vivainio@gmail.com>
413 2006-11-28 Ville Vainio <vivainio@gmail.com>
414
414
415 * completer.py: If the text start with !, show file completions
415 * completer.py: If the text start with !, show file completions
416 properly. This helps when trying to complete command name
416 properly. This helps when trying to complete command name
417 for shell escapes.
417 for shell escapes.
418
418
419 2006-11-27 Ville Vainio <vivainio@gmail.com>
419 2006-11-27 Ville Vainio <vivainio@gmail.com>
420
420
421 * ipy_stock_completers.py: bzr completer submitted by Stefan van
421 * ipy_stock_completers.py: bzr completer submitted by Stefan van
422 der Walt. Clean up svn and hg completers by using a common
422 der Walt. Clean up svn and hg completers by using a common
423 vcs_completer.
423 vcs_completer.
424
424
425 2006-11-26 Ville Vainio <vivainio@gmail.com>
425 2006-11-26 Ville Vainio <vivainio@gmail.com>
426
426
427 * Remove ipconfig and %config; you should use _ip.options structure
427 * Remove ipconfig and %config; you should use _ip.options structure
428 directly instead!
428 directly instead!
429
429
430 * genutils.py: add wrap_deprecated function for deprecating callables
430 * genutils.py: add wrap_deprecated function for deprecating callables
431
431
432 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
432 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
433 _ip.system instead. ipalias is redundant.
433 _ip.system instead. ipalias is redundant.
434
434
435 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
435 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
436 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
436 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
437 explicit.
437 explicit.
438
438
439 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
439 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
440 completer. Try it by entering 'hg ' and pressing tab.
440 completer. Try it by entering 'hg ' and pressing tab.
441
441
442 * macro.py: Give Macro a useful __repr__ method
442 * macro.py: Give Macro a useful __repr__ method
443
443
444 * Magic.py: %whos abbreviates the typename of Macro for brevity.
444 * Magic.py: %whos abbreviates the typename of Macro for brevity.
445
445
446 2006-11-24 Walter Doerwald <walter@livinglogic.de>
446 2006-11-24 Walter Doerwald <walter@livinglogic.de>
447 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
447 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
448 we don't get a duplicate ipipe module, where registration of the xrepr
448 we don't get a duplicate ipipe module, where registration of the xrepr
449 implementation for Text is useless.
449 implementation for Text is useless.
450
450
451 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
451 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
452
452
453 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
453 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
454
454
455 2006-11-24 Ville Vainio <vivainio@gmail.com>
455 2006-11-24 Ville Vainio <vivainio@gmail.com>
456
456
457 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
457 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
458 try to use "cProfile" instead of the slower pure python
458 try to use "cProfile" instead of the slower pure python
459 "profile"
459 "profile"
460
460
461 2006-11-23 Ville Vainio <vivainio@gmail.com>
461 2006-11-23 Ville Vainio <vivainio@gmail.com>
462
462
463 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
463 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
464 Qt+IPython+Designer link in documentation.
464 Qt+IPython+Designer link in documentation.
465
465
466 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
466 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
467 correct Pdb object to %pydb.
467 correct Pdb object to %pydb.
468
468
469
469
470 2006-11-22 Walter Doerwald <walter@livinglogic.de>
470 2006-11-22 Walter Doerwald <walter@livinglogic.de>
471 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
471 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
472 generic xrepr(), otherwise the list implementation would kick in.
472 generic xrepr(), otherwise the list implementation would kick in.
473
473
474 2006-11-21 Ville Vainio <vivainio@gmail.com>
474 2006-11-21 Ville Vainio <vivainio@gmail.com>
475
475
476 * upgrade_dir.py: Now actually overwrites a nonmodified user file
476 * upgrade_dir.py: Now actually overwrites a nonmodified user file
477 with one from UserConfig.
477 with one from UserConfig.
478
478
479 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
479 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
480 it was missing which broke the sh profile.
480 it was missing which broke the sh profile.
481
481
482 * completer.py: file completer now uses explicit '/' instead
482 * completer.py: file completer now uses explicit '/' instead
483 of os.path.join, expansion of 'foo' was broken on win32
483 of os.path.join, expansion of 'foo' was broken on win32
484 if there was one directory with name 'foobar'.
484 if there was one directory with name 'foobar'.
485
485
486 * A bunch of patches from Kirill Smelkov:
486 * A bunch of patches from Kirill Smelkov:
487
487
488 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
488 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
489
489
490 * [patch 7/9] Implement %page -r (page in raw mode) -
490 * [patch 7/9] Implement %page -r (page in raw mode) -
491
491
492 * [patch 5/9] ScientificPython webpage has moved
492 * [patch 5/9] ScientificPython webpage has moved
493
493
494 * [patch 4/9] The manual mentions %ds, should be %dhist
494 * [patch 4/9] The manual mentions %ds, should be %dhist
495
495
496 * [patch 3/9] Kill old bits from %prun doc.
496 * [patch 3/9] Kill old bits from %prun doc.
497
497
498 * [patch 1/9] Fix typos here and there.
498 * [patch 1/9] Fix typos here and there.
499
499
500 2006-11-08 Ville Vainio <vivainio@gmail.com>
500 2006-11-08 Ville Vainio <vivainio@gmail.com>
501
501
502 * completer.py (attr_matches): catch all exceptions raised
502 * completer.py (attr_matches): catch all exceptions raised
503 by eval of expr with dots.
503 by eval of expr with dots.
504
504
505 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
505 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
506
506
507 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
507 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
508 input if it starts with whitespace. This allows you to paste
508 input if it starts with whitespace. This allows you to paste
509 indented input from any editor without manually having to type in
509 indented input from any editor without manually having to type in
510 the 'if 1:', which is convenient when working interactively.
510 the 'if 1:', which is convenient when working interactively.
511 Slightly modifed version of a patch by Bo Peng
511 Slightly modifed version of a patch by Bo Peng
512 <bpeng-AT-rice.edu>.
512 <bpeng-AT-rice.edu>.
513
513
514 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
514 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
515
515
516 * IPython/irunner.py (main): modified irunner so it automatically
516 * IPython/irunner.py (main): modified irunner so it automatically
517 recognizes the right runner to use based on the extension (.py for
517 recognizes the right runner to use based on the extension (.py for
518 python, .ipy for ipython and .sage for sage).
518 python, .ipy for ipython and .sage for sage).
519
519
520 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
520 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
521 visible in ipapi as ip.config(), to programatically control the
521 visible in ipapi as ip.config(), to programatically control the
522 internal rc object. There's an accompanying %config magic for
522 internal rc object. There's an accompanying %config magic for
523 interactive use, which has been enhanced to match the
523 interactive use, which has been enhanced to match the
524 funtionality in ipconfig.
524 funtionality in ipconfig.
525
525
526 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
526 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
527 so it's not just a toggle, it now takes an argument. Add support
527 so it's not just a toggle, it now takes an argument. Add support
528 for a customizable header when making system calls, as the new
528 for a customizable header when making system calls, as the new
529 system_header variable in the ipythonrc file.
529 system_header variable in the ipythonrc file.
530
530
531 2006-11-03 Walter Doerwald <walter@livinglogic.de>
531 2006-11-03 Walter Doerwald <walter@livinglogic.de>
532
532
533 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
533 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
534 generic functions (using Philip J. Eby's simplegeneric package).
534 generic functions (using Philip J. Eby's simplegeneric package).
535 This makes it possible to customize the display of third-party classes
535 This makes it possible to customize the display of third-party classes
536 without having to monkeypatch them. xiter() no longer supports a mode
536 without having to monkeypatch them. xiter() no longer supports a mode
537 argument and the XMode class has been removed. The same functionality can
537 argument and the XMode class has been removed. The same functionality can
538 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
538 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
539 One consequence of the switch to generic functions is that xrepr() and
539 One consequence of the switch to generic functions is that xrepr() and
540 xattrs() implementation must define the default value for the mode
540 xattrs() implementation must define the default value for the mode
541 argument themselves and xattrs() implementations must return real
541 argument themselves and xattrs() implementations must return real
542 descriptors.
542 descriptors.
543
543
544 * IPython/external: This new subpackage will contain all third-party
544 * IPython/external: This new subpackage will contain all third-party
545 packages that are bundled with IPython. (The first one is simplegeneric).
545 packages that are bundled with IPython. (The first one is simplegeneric).
546
546
547 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
547 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
548 directory which as been dropped in r1703.
548 directory which as been dropped in r1703.
549
549
550 * IPython/Extensions/ipipe.py (iless): Fixed.
550 * IPython/Extensions/ipipe.py (iless): Fixed.
551
551
552 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
552 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
553
553
554 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
554 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
555
555
556 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
556 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
557 handling in variable expansion so that shells and magics recognize
557 handling in variable expansion so that shells and magics recognize
558 function local scopes correctly. Bug reported by Brian.
558 function local scopes correctly. Bug reported by Brian.
559
559
560 * scripts/ipython: remove the very first entry in sys.path which
560 * scripts/ipython: remove the very first entry in sys.path which
561 Python auto-inserts for scripts, so that sys.path under IPython is
561 Python auto-inserts for scripts, so that sys.path under IPython is
562 as similar as possible to that under plain Python.
562 as similar as possible to that under plain Python.
563
563
564 * IPython/completer.py (IPCompleter.file_matches): Fix
564 * IPython/completer.py (IPCompleter.file_matches): Fix
565 tab-completion so that quotes are not closed unless the completion
565 tab-completion so that quotes are not closed unless the completion
566 is unambiguous. After a request by Stefan. Minor cleanups in
566 is unambiguous. After a request by Stefan. Minor cleanups in
567 ipy_stock_completers.
567 ipy_stock_completers.
568
568
569 2006-11-02 Ville Vainio <vivainio@gmail.com>
569 2006-11-02 Ville Vainio <vivainio@gmail.com>
570
570
571 * ipy_stock_completers.py: Add %run and %cd completers.
571 * ipy_stock_completers.py: Add %run and %cd completers.
572
572
573 * completer.py: Try running custom completer for both
573 * completer.py: Try running custom completer for both
574 "foo" and "%foo" if the command is just "foo". Ignore case
574 "foo" and "%foo" if the command is just "foo". Ignore case
575 when filtering possible completions.
575 when filtering possible completions.
576
576
577 * UserConfig/ipy_user_conf.py: install stock completers as default
577 * UserConfig/ipy_user_conf.py: install stock completers as default
578
578
579 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
579 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
580 simplified readline history save / restore through a wrapper
580 simplified readline history save / restore through a wrapper
581 function
581 function
582
582
583
583
584 2006-10-31 Ville Vainio <vivainio@gmail.com>
584 2006-10-31 Ville Vainio <vivainio@gmail.com>
585
585
586 * strdispatch.py, completer.py, ipy_stock_completers.py:
586 * strdispatch.py, completer.py, ipy_stock_completers.py:
587 Allow str_key ("command") in completer hooks. Implement
587 Allow str_key ("command") in completer hooks. Implement
588 trivial completer for 'import' (stdlib modules only). Rename
588 trivial completer for 'import' (stdlib modules only). Rename
589 ipy_linux_package_managers.py to ipy_stock_completers.py.
589 ipy_linux_package_managers.py to ipy_stock_completers.py.
590 SVN completer.
590 SVN completer.
591
591
592 * Extensions/ledit.py: %magic line editor for easily and
592 * Extensions/ledit.py: %magic line editor for easily and
593 incrementally manipulating lists of strings. The magic command
593 incrementally manipulating lists of strings. The magic command
594 name is %led.
594 name is %led.
595
595
596 2006-10-30 Ville Vainio <vivainio@gmail.com>
596 2006-10-30 Ville Vainio <vivainio@gmail.com>
597
597
598 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
598 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
599 Bernsteins's patches for pydb integration.
599 Bernsteins's patches for pydb integration.
600 http://bashdb.sourceforge.net/pydb/
600 http://bashdb.sourceforge.net/pydb/
601
601
602 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
602 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
603 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
603 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
604 custom completer hook to allow the users to implement their own
604 custom completer hook to allow the users to implement their own
605 completers. See ipy_linux_package_managers.py for example. The
605 completers. See ipy_linux_package_managers.py for example. The
606 hook name is 'complete_command'.
606 hook name is 'complete_command'.
607
607
608 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
608 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
609
609
610 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
610 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
611 Numeric leftovers.
611 Numeric leftovers.
612
612
613 * ipython.el (py-execute-region): apply Stefan's patch to fix
613 * ipython.el (py-execute-region): apply Stefan's patch to fix
614 garbled results if the python shell hasn't been previously started.
614 garbled results if the python shell hasn't been previously started.
615
615
616 * IPython/genutils.py (arg_split): moved to genutils, since it's a
616 * IPython/genutils.py (arg_split): moved to genutils, since it's a
617 pretty generic function and useful for other things.
617 pretty generic function and useful for other things.
618
618
619 * IPython/OInspect.py (getsource): Add customizable source
619 * IPython/OInspect.py (getsource): Add customizable source
620 extractor. After a request/patch form W. Stein (SAGE).
620 extractor. After a request/patch form W. Stein (SAGE).
621
621
622 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
622 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
623 window size to a more reasonable value from what pexpect does,
623 window size to a more reasonable value from what pexpect does,
624 since their choice causes wrapping bugs with long input lines.
624 since their choice causes wrapping bugs with long input lines.
625
625
626 2006-10-28 Ville Vainio <vivainio@gmail.com>
626 2006-10-28 Ville Vainio <vivainio@gmail.com>
627
627
628 * Magic.py (%run): Save and restore the readline history from
628 * Magic.py (%run): Save and restore the readline history from
629 file around %run commands to prevent side effects from
629 file around %run commands to prevent side effects from
630 %runned programs that might use readline (e.g. pydb).
630 %runned programs that might use readline (e.g. pydb).
631
631
632 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
632 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
633 invoking the pydb enhanced debugger.
633 invoking the pydb enhanced debugger.
634
634
635 2006-10-23 Walter Doerwald <walter@livinglogic.de>
635 2006-10-23 Walter Doerwald <walter@livinglogic.de>
636
636
637 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
637 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
638 call the base class method and propagate the return value to
638 call the base class method and propagate the return value to
639 ifile. This is now done by path itself.
639 ifile. This is now done by path itself.
640
640
641 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
641 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
642
642
643 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
643 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
644 api: set_crash_handler(), to expose the ability to change the
644 api: set_crash_handler(), to expose the ability to change the
645 internal crash handler.
645 internal crash handler.
646
646
647 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
647 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
648 the various parameters of the crash handler so that apps using
648 the various parameters of the crash handler so that apps using
649 IPython as their engine can customize crash handling. Ipmlemented
649 IPython as their engine can customize crash handling. Ipmlemented
650 at the request of SAGE.
650 at the request of SAGE.
651
651
652 2006-10-14 Ville Vainio <vivainio@gmail.com>
652 2006-10-14 Ville Vainio <vivainio@gmail.com>
653
653
654 * Magic.py, ipython.el: applied first "safe" part of Rocky
654 * Magic.py, ipython.el: applied first "safe" part of Rocky
655 Bernstein's patch set for pydb integration.
655 Bernstein's patch set for pydb integration.
656
656
657 * Magic.py (%unalias, %alias): %store'd aliases can now be
657 * Magic.py (%unalias, %alias): %store'd aliases can now be
658 removed with '%unalias'. %alias w/o args now shows most
658 removed with '%unalias'. %alias w/o args now shows most
659 interesting (stored / manually defined) aliases last
659 interesting (stored / manually defined) aliases last
660 where they catch the eye w/o scrolling.
660 where they catch the eye w/o scrolling.
661
661
662 * Magic.py (%rehashx), ext_rehashdir.py: files with
662 * Magic.py (%rehashx), ext_rehashdir.py: files with
663 'py' extension are always considered executable, even
663 'py' extension are always considered executable, even
664 when not in PATHEXT environment variable.
664 when not in PATHEXT environment variable.
665
665
666 2006-10-12 Ville Vainio <vivainio@gmail.com>
666 2006-10-12 Ville Vainio <vivainio@gmail.com>
667
667
668 * jobctrl.py: Add new "jobctrl" extension for spawning background
668 * jobctrl.py: Add new "jobctrl" extension for spawning background
669 processes with "&find /". 'import jobctrl' to try it out. Requires
669 processes with "&find /". 'import jobctrl' to try it out. Requires
670 'subprocess' module, standard in python 2.4+.
670 'subprocess' module, standard in python 2.4+.
671
671
672 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
672 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
673 so if foo -> bar and bar -> baz, then foo -> baz.
673 so if foo -> bar and bar -> baz, then foo -> baz.
674
674
675 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
675 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
676
676
677 * IPython/Magic.py (Magic.parse_options): add a new posix option
677 * IPython/Magic.py (Magic.parse_options): add a new posix option
678 to allow parsing of input args in magics that doesn't strip quotes
678 to allow parsing of input args in magics that doesn't strip quotes
679 (if posix=False). This also closes %timeit bug reported by
679 (if posix=False). This also closes %timeit bug reported by
680 Stefan.
680 Stefan.
681
681
682 2006-10-03 Ville Vainio <vivainio@gmail.com>
682 2006-10-03 Ville Vainio <vivainio@gmail.com>
683
683
684 * iplib.py (raw_input, interact): Return ValueError catching for
684 * iplib.py (raw_input, interact): Return ValueError catching for
685 raw_input. Fixes infinite loop for sys.stdin.close() or
685 raw_input. Fixes infinite loop for sys.stdin.close() or
686 sys.stdout.close().
686 sys.stdout.close().
687
687
688 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
688 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
689
689
690 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
690 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
691 to help in handling doctests. irunner is now pretty useful for
691 to help in handling doctests. irunner is now pretty useful for
692 running standalone scripts and simulate a full interactive session
692 running standalone scripts and simulate a full interactive session
693 in a format that can be then pasted as a doctest.
693 in a format that can be then pasted as a doctest.
694
694
695 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
695 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
696 on top of the default (useless) ones. This also fixes the nasty
696 on top of the default (useless) ones. This also fixes the nasty
697 way in which 2.5's Quitter() exits (reverted [1785]).
697 way in which 2.5's Quitter() exits (reverted [1785]).
698
698
699 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
699 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
700 2.5.
700 2.5.
701
701
702 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
702 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
703 color scheme is updated as well when color scheme is changed
703 color scheme is updated as well when color scheme is changed
704 interactively.
704 interactively.
705
705
706 2006-09-27 Ville Vainio <vivainio@gmail.com>
706 2006-09-27 Ville Vainio <vivainio@gmail.com>
707
707
708 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
708 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
709 infinite loop and just exit. It's a hack, but will do for a while.
709 infinite loop and just exit. It's a hack, but will do for a while.
710
710
711 2006-08-25 Walter Doerwald <walter@livinglogic.de>
711 2006-08-25 Walter Doerwald <walter@livinglogic.de>
712
712
713 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
713 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
714 the constructor, this makes it possible to get a list of only directories
714 the constructor, this makes it possible to get a list of only directories
715 or only files.
715 or only files.
716
716
717 2006-08-12 Ville Vainio <vivainio@gmail.com>
717 2006-08-12 Ville Vainio <vivainio@gmail.com>
718
718
719 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
719 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
720 they broke unittest
720 they broke unittest
721
721
722 2006-08-11 Ville Vainio <vivainio@gmail.com>
722 2006-08-11 Ville Vainio <vivainio@gmail.com>
723
723
724 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
724 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
725 by resolving issue properly, i.e. by inheriting FakeModule
725 by resolving issue properly, i.e. by inheriting FakeModule
726 from types.ModuleType. Pickling ipython interactive data
726 from types.ModuleType. Pickling ipython interactive data
727 should still work as usual (testing appreciated).
727 should still work as usual (testing appreciated).
728
728
729 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
729 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
730
730
731 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
731 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
732 running under python 2.3 with code from 2.4 to fix a bug with
732 running under python 2.3 with code from 2.4 to fix a bug with
733 help(). Reported by the Debian maintainers, Norbert Tretkowski
733 help(). Reported by the Debian maintainers, Norbert Tretkowski
734 <norbert-AT-tretkowski.de> and Alexandre Fayolle
734 <norbert-AT-tretkowski.de> and Alexandre Fayolle
735 <afayolle-AT-debian.org>.
735 <afayolle-AT-debian.org>.
736
736
737 2006-08-04 Walter Doerwald <walter@livinglogic.de>
737 2006-08-04 Walter Doerwald <walter@livinglogic.de>
738
738
739 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
739 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
740 (which was displaying "quit" twice).
740 (which was displaying "quit" twice).
741
741
742 2006-07-28 Walter Doerwald <walter@livinglogic.de>
742 2006-07-28 Walter Doerwald <walter@livinglogic.de>
743
743
744 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
744 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
745 the mode argument).
745 the mode argument).
746
746
747 2006-07-27 Walter Doerwald <walter@livinglogic.de>
747 2006-07-27 Walter Doerwald <walter@livinglogic.de>
748
748
749 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
749 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
750 not running under IPython.
750 not running under IPython.
751
751
752 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
752 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
753 and make it iterable (iterating over the attribute itself). Add two new
753 and make it iterable (iterating over the attribute itself). Add two new
754 magic strings for __xattrs__(): If the string starts with "-", the attribute
754 magic strings for __xattrs__(): If the string starts with "-", the attribute
755 will not be displayed in ibrowse's detail view (but it can still be
755 will not be displayed in ibrowse's detail view (but it can still be
756 iterated over). This makes it possible to add attributes that are large
756 iterated over). This makes it possible to add attributes that are large
757 lists or generator methods to the detail view. Replace magic attribute names
757 lists or generator methods to the detail view. Replace magic attribute names
758 and _attrname() and _getattr() with "descriptors": For each type of magic
758 and _attrname() and _getattr() with "descriptors": For each type of magic
759 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
759 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
760 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
760 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
761 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
761 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
762 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
762 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
763 are still supported.
763 are still supported.
764
764
765 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
765 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
766 fails in ibrowse.fetch(), the exception object is added as the last item
766 fails in ibrowse.fetch(), the exception object is added as the last item
767 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
767 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
768 a generator throws an exception midway through execution.
768 a generator throws an exception midway through execution.
769
769
770 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
770 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
771 encoding into methods.
771 encoding into methods.
772
772
773 2006-07-26 Ville Vainio <vivainio@gmail.com>
773 2006-07-26 Ville Vainio <vivainio@gmail.com>
774
774
775 * iplib.py: history now stores multiline input as single
775 * iplib.py: history now stores multiline input as single
776 history entries. Patch by Jorgen Cederlof.
776 history entries. Patch by Jorgen Cederlof.
777
777
778 2006-07-18 Walter Doerwald <walter@livinglogic.de>
778 2006-07-18 Walter Doerwald <walter@livinglogic.de>
779
779
780 * IPython/Extensions/ibrowse.py: Make cursor visible over
780 * IPython/Extensions/ibrowse.py: Make cursor visible over
781 non existing attributes.
781 non existing attributes.
782
782
783 2006-07-14 Walter Doerwald <walter@livinglogic.de>
783 2006-07-14 Walter Doerwald <walter@livinglogic.de>
784
784
785 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
785 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
786 error output of the running command doesn't mess up the screen.
786 error output of the running command doesn't mess up the screen.
787
787
788 2006-07-13 Walter Doerwald <walter@livinglogic.de>
788 2006-07-13 Walter Doerwald <walter@livinglogic.de>
789
789
790 * IPython/Extensions/ipipe.py (isort): Make isort usable without
790 * IPython/Extensions/ipipe.py (isort): Make isort usable without
791 argument. This sorts the items themselves.
791 argument. This sorts the items themselves.
792
792
793 2006-07-12 Walter Doerwald <walter@livinglogic.de>
793 2006-07-12 Walter Doerwald <walter@livinglogic.de>
794
794
795 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
795 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
796 Compile expression strings into code objects. This should speed
796 Compile expression strings into code objects. This should speed
797 up ifilter and friends somewhat.
797 up ifilter and friends somewhat.
798
798
799 2006-07-08 Ville Vainio <vivainio@gmail.com>
799 2006-07-08 Ville Vainio <vivainio@gmail.com>
800
800
801 * Magic.py: %cpaste now strips > from the beginning of lines
801 * Magic.py: %cpaste now strips > from the beginning of lines
802 to ease pasting quoted code from emails. Contributed by
802 to ease pasting quoted code from emails. Contributed by
803 Stefan van der Walt.
803 Stefan van der Walt.
804
804
805 2006-06-29 Ville Vainio <vivainio@gmail.com>
805 2006-06-29 Ville Vainio <vivainio@gmail.com>
806
806
807 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
807 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
808 mode, patch contributed by Darren Dale. NEEDS TESTING!
808 mode, patch contributed by Darren Dale. NEEDS TESTING!
809
809
810 2006-06-28 Walter Doerwald <walter@livinglogic.de>
810 2006-06-28 Walter Doerwald <walter@livinglogic.de>
811
811
812 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
812 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
813 a blue background. Fix fetching new display rows when the browser
813 a blue background. Fix fetching new display rows when the browser
814 scrolls more than a screenful (e.g. by using the goto command).
814 scrolls more than a screenful (e.g. by using the goto command).
815
815
816 2006-06-27 Ville Vainio <vivainio@gmail.com>
816 2006-06-27 Ville Vainio <vivainio@gmail.com>
817
817
818 * Magic.py (_inspect, _ofind) Apply David Huard's
818 * Magic.py (_inspect, _ofind) Apply David Huard's
819 patch for displaying the correct docstring for 'property'
819 patch for displaying the correct docstring for 'property'
820 attributes.
820 attributes.
821
821
822 2006-06-23 Walter Doerwald <walter@livinglogic.de>
822 2006-06-23 Walter Doerwald <walter@livinglogic.de>
823
823
824 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
824 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
825 commands into the methods implementing them.
825 commands into the methods implementing them.
826
826
827 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
827 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
828
828
829 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
829 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
830 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
830 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
831 autoindent support was authored by Jin Liu.
831 autoindent support was authored by Jin Liu.
832
832
833 2006-06-22 Walter Doerwald <walter@livinglogic.de>
833 2006-06-22 Walter Doerwald <walter@livinglogic.de>
834
834
835 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
835 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
836 for keymaps with a custom class that simplifies handling.
836 for keymaps with a custom class that simplifies handling.
837
837
838 2006-06-19 Walter Doerwald <walter@livinglogic.de>
838 2006-06-19 Walter Doerwald <walter@livinglogic.de>
839
839
840 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
840 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
841 resizing. This requires Python 2.5 to work.
841 resizing. This requires Python 2.5 to work.
842
842
843 2006-06-16 Walter Doerwald <walter@livinglogic.de>
843 2006-06-16 Walter Doerwald <walter@livinglogic.de>
844
844
845 * IPython/Extensions/ibrowse.py: Add two new commands to
845 * IPython/Extensions/ibrowse.py: Add two new commands to
846 ibrowse: "hideattr" (mapped to "h") hides the attribute under
846 ibrowse: "hideattr" (mapped to "h") hides the attribute under
847 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
847 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
848 attributes again. Remapped the help command to "?". Display
848 attributes again. Remapped the help command to "?". Display
849 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
849 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
850 as keys for the "home" and "end" commands. Add three new commands
850 as keys for the "home" and "end" commands. Add three new commands
851 to the input mode for "find" and friends: "delend" (CTRL-K)
851 to the input mode for "find" and friends: "delend" (CTRL-K)
852 deletes to the end of line. "incsearchup" searches upwards in the
852 deletes to the end of line. "incsearchup" searches upwards in the
853 command history for an input that starts with the text before the cursor.
853 command history for an input that starts with the text before the cursor.
854 "incsearchdown" does the same downwards. Removed a bogus mapping of
854 "incsearchdown" does the same downwards. Removed a bogus mapping of
855 the x key to "delete".
855 the x key to "delete".
856
856
857 2006-06-15 Ville Vainio <vivainio@gmail.com>
857 2006-06-15 Ville Vainio <vivainio@gmail.com>
858
858
859 * iplib.py, hooks.py: Added new generate_prompt hook that can be
859 * iplib.py, hooks.py: Added new generate_prompt hook that can be
860 used to create prompts dynamically, instead of the "old" way of
860 used to create prompts dynamically, instead of the "old" way of
861 assigning "magic" strings to prompt_in1 and prompt_in2. The old
861 assigning "magic" strings to prompt_in1 and prompt_in2. The old
862 way still works (it's invoked by the default hook), of course.
862 way still works (it's invoked by the default hook), of course.
863
863
864 * Prompts.py: added generate_output_prompt hook for altering output
864 * Prompts.py: added generate_output_prompt hook for altering output
865 prompt
865 prompt
866
866
867 * Release.py: Changed version string to 0.7.3.svn.
867 * Release.py: Changed version string to 0.7.3.svn.
868
868
869 2006-06-15 Walter Doerwald <walter@livinglogic.de>
869 2006-06-15 Walter Doerwald <walter@livinglogic.de>
870
870
871 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
871 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
872 the call to fetch() always tries to fetch enough data for at least one
872 the call to fetch() always tries to fetch enough data for at least one
873 full screen. This makes it possible to simply call moveto(0,0,True) in
873 full screen. This makes it possible to simply call moveto(0,0,True) in
874 the constructor. Fix typos and removed the obsolete goto attribute.
874 the constructor. Fix typos and removed the obsolete goto attribute.
875
875
876 2006-06-12 Ville Vainio <vivainio@gmail.com>
876 2006-06-12 Ville Vainio <vivainio@gmail.com>
877
877
878 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
878 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
879 allowing $variable interpolation within multiline statements,
879 allowing $variable interpolation within multiline statements,
880 though so far only with "sh" profile for a testing period.
880 though so far only with "sh" profile for a testing period.
881 The patch also enables splitting long commands with \ but it
881 The patch also enables splitting long commands with \ but it
882 doesn't work properly yet.
882 doesn't work properly yet.
883
883
884 2006-06-12 Walter Doerwald <walter@livinglogic.de>
884 2006-06-12 Walter Doerwald <walter@livinglogic.de>
885
885
886 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
886 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
887 input history and the position of the cursor in the input history for
887 input history and the position of the cursor in the input history for
888 the find, findbackwards and goto command.
888 the find, findbackwards and goto command.
889
889
890 2006-06-10 Walter Doerwald <walter@livinglogic.de>
890 2006-06-10 Walter Doerwald <walter@livinglogic.de>
891
891
892 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
892 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
893 implements the basic functionality of browser commands that require
893 implements the basic functionality of browser commands that require
894 input. Reimplement the goto, find and findbackwards commands as
894 input. Reimplement the goto, find and findbackwards commands as
895 subclasses of _CommandInput. Add an input history and keymaps to those
895 subclasses of _CommandInput. Add an input history and keymaps to those
896 commands. Add "\r" as a keyboard shortcut for the enterdefault and
896 commands. Add "\r" as a keyboard shortcut for the enterdefault and
897 execute commands.
897 execute commands.
898
898
899 2006-06-07 Ville Vainio <vivainio@gmail.com>
899 2006-06-07 Ville Vainio <vivainio@gmail.com>
900
900
901 * iplib.py: ipython mybatch.ipy exits ipython immediately after
901 * iplib.py: ipython mybatch.ipy exits ipython immediately after
902 running the batch files instead of leaving the session open.
902 running the batch files instead of leaving the session open.
903
903
904 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
904 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
905
905
906 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
906 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
907 the original fix was incomplete. Patch submitted by W. Maier.
907 the original fix was incomplete. Patch submitted by W. Maier.
908
908
909 2006-06-07 Ville Vainio <vivainio@gmail.com>
909 2006-06-07 Ville Vainio <vivainio@gmail.com>
910
910
911 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
911 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
912 Confirmation prompts can be supressed by 'quiet' option.
912 Confirmation prompts can be supressed by 'quiet' option.
913 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
913 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
914
914
915 2006-06-06 *** Released version 0.7.2
915 2006-06-06 *** Released version 0.7.2
916
916
917 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
917 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
918
918
919 * IPython/Release.py (version): Made 0.7.2 final for release.
919 * IPython/Release.py (version): Made 0.7.2 final for release.
920 Repo tagged and release cut.
920 Repo tagged and release cut.
921
921
922 2006-06-05 Ville Vainio <vivainio@gmail.com>
922 2006-06-05 Ville Vainio <vivainio@gmail.com>
923
923
924 * Magic.py (magic_rehashx): Honor no_alias list earlier in
924 * Magic.py (magic_rehashx): Honor no_alias list earlier in
925 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
925 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
926
926
927 * upgrade_dir.py: try import 'path' module a bit harder
927 * upgrade_dir.py: try import 'path' module a bit harder
928 (for %upgrade)
928 (for %upgrade)
929
929
930 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
930 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
931
931
932 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
932 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
933 instead of looping 20 times.
933 instead of looping 20 times.
934
934
935 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
935 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
936 correctly at initialization time. Bug reported by Krishna Mohan
936 correctly at initialization time. Bug reported by Krishna Mohan
937 Gundu <gkmohan-AT-gmail.com> on the user list.
937 Gundu <gkmohan-AT-gmail.com> on the user list.
938
938
939 * IPython/Release.py (version): Mark 0.7.2 version to start
939 * IPython/Release.py (version): Mark 0.7.2 version to start
940 testing for release on 06/06.
940 testing for release on 06/06.
941
941
942 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
942 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
943
943
944 * scripts/irunner: thin script interface so users don't have to
944 * scripts/irunner: thin script interface so users don't have to
945 find the module and call it as an executable, since modules rarely
945 find the module and call it as an executable, since modules rarely
946 live in people's PATH.
946 live in people's PATH.
947
947
948 * IPython/irunner.py (InteractiveRunner.__init__): added
948 * IPython/irunner.py (InteractiveRunner.__init__): added
949 delaybeforesend attribute to control delays with newer versions of
949 delaybeforesend attribute to control delays with newer versions of
950 pexpect. Thanks to detailed help from pexpect's author, Noah
950 pexpect. Thanks to detailed help from pexpect's author, Noah
951 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
951 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
952 correctly (it works in NoColor mode).
952 correctly (it works in NoColor mode).
953
953
954 * IPython/iplib.py (handle_normal): fix nasty crash reported on
954 * IPython/iplib.py (handle_normal): fix nasty crash reported on
955 SAGE list, from improper log() calls.
955 SAGE list, from improper log() calls.
956
956
957 2006-05-31 Ville Vainio <vivainio@gmail.com>
957 2006-05-31 Ville Vainio <vivainio@gmail.com>
958
958
959 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
959 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
960 with args in parens to work correctly with dirs that have spaces.
960 with args in parens to work correctly with dirs that have spaces.
961
961
962 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
962 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
963
963
964 * IPython/Logger.py (Logger.logstart): add option to log raw input
964 * IPython/Logger.py (Logger.logstart): add option to log raw input
965 instead of the processed one. A -r flag was added to the
965 instead of the processed one. A -r flag was added to the
966 %logstart magic used for controlling logging.
966 %logstart magic used for controlling logging.
967
967
968 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
968 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
969
969
970 * IPython/iplib.py (InteractiveShell.__init__): add check for the
970 * IPython/iplib.py (InteractiveShell.__init__): add check for the
971 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
971 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
972 recognize the option. After a bug report by Will Maier. This
972 recognize the option. After a bug report by Will Maier. This
973 closes #64 (will do it after confirmation from W. Maier).
973 closes #64 (will do it after confirmation from W. Maier).
974
974
975 * IPython/irunner.py: New module to run scripts as if manually
975 * IPython/irunner.py: New module to run scripts as if manually
976 typed into an interactive environment, based on pexpect. After a
976 typed into an interactive environment, based on pexpect. After a
977 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
977 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
978 ipython-user list. Simple unittests in the tests/ directory.
978 ipython-user list. Simple unittests in the tests/ directory.
979
979
980 * tools/release: add Will Maier, OpenBSD port maintainer, to
980 * tools/release: add Will Maier, OpenBSD port maintainer, to
981 recepients list. We are now officially part of the OpenBSD ports:
981 recepients list. We are now officially part of the OpenBSD ports:
982 http://www.openbsd.org/ports.html ! Many thanks to Will for the
982 http://www.openbsd.org/ports.html ! Many thanks to Will for the
983 work.
983 work.
984
984
985 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
985 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
986
986
987 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
987 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
988 so that it doesn't break tkinter apps.
988 so that it doesn't break tkinter apps.
989
989
990 * IPython/iplib.py (_prefilter): fix bug where aliases would
990 * IPython/iplib.py (_prefilter): fix bug where aliases would
991 shadow variables when autocall was fully off. Reported by SAGE
991 shadow variables when autocall was fully off. Reported by SAGE
992 author William Stein.
992 author William Stein.
993
993
994 * IPython/OInspect.py (Inspector.__init__): add a flag to control
994 * IPython/OInspect.py (Inspector.__init__): add a flag to control
995 at what detail level strings are computed when foo? is requested.
995 at what detail level strings are computed when foo? is requested.
996 This allows users to ask for example that the string form of an
996 This allows users to ask for example that the string form of an
997 object is only computed when foo?? is called, or even never, by
997 object is only computed when foo?? is called, or even never, by
998 setting the object_info_string_level >= 2 in the configuration
998 setting the object_info_string_level >= 2 in the configuration
999 file. This new option has been added and documented. After a
999 file. This new option has been added and documented. After a
1000 request by SAGE to be able to control the printing of very large
1000 request by SAGE to be able to control the printing of very large
1001 objects more easily.
1001 objects more easily.
1002
1002
1003 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1003 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1004
1004
1005 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1005 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1006 from sys.argv, to be 100% consistent with how Python itself works
1006 from sys.argv, to be 100% consistent with how Python itself works
1007 (as seen for example with python -i file.py). After a bug report
1007 (as seen for example with python -i file.py). After a bug report
1008 by Jeffrey Collins.
1008 by Jeffrey Collins.
1009
1009
1010 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1010 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1011 nasty bug which was preventing custom namespaces with -pylab,
1011 nasty bug which was preventing custom namespaces with -pylab,
1012 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1012 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1013 compatibility (long gone from mpl).
1013 compatibility (long gone from mpl).
1014
1014
1015 * IPython/ipapi.py (make_session): name change: create->make. We
1015 * IPython/ipapi.py (make_session): name change: create->make. We
1016 use make in other places (ipmaker,...), it's shorter and easier to
1016 use make in other places (ipmaker,...), it's shorter and easier to
1017 type and say, etc. I'm trying to clean things before 0.7.2 so
1017 type and say, etc. I'm trying to clean things before 0.7.2 so
1018 that I can keep things stable wrt to ipapi in the chainsaw branch.
1018 that I can keep things stable wrt to ipapi in the chainsaw branch.
1019
1019
1020 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1020 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1021 python-mode recognizes our debugger mode. Add support for
1021 python-mode recognizes our debugger mode. Add support for
1022 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1022 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1023 <m.liu.jin-AT-gmail.com> originally written by
1023 <m.liu.jin-AT-gmail.com> originally written by
1024 doxgen-AT-newsmth.net (with minor modifications for xemacs
1024 doxgen-AT-newsmth.net (with minor modifications for xemacs
1025 compatibility)
1025 compatibility)
1026
1026
1027 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1027 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1028 tracebacks when walking the stack so that the stack tracking system
1028 tracebacks when walking the stack so that the stack tracking system
1029 in emacs' python-mode can identify the frames correctly.
1029 in emacs' python-mode can identify the frames correctly.
1030
1030
1031 * IPython/ipmaker.py (make_IPython): make the internal (and
1031 * IPython/ipmaker.py (make_IPython): make the internal (and
1032 default config) autoedit_syntax value false by default. Too many
1032 default config) autoedit_syntax value false by default. Too many
1033 users have complained to me (both on and off-list) about problems
1033 users have complained to me (both on and off-list) about problems
1034 with this option being on by default, so I'm making it default to
1034 with this option being on by default, so I'm making it default to
1035 off. It can still be enabled by anyone via the usual mechanisms.
1035 off. It can still be enabled by anyone via the usual mechanisms.
1036
1036
1037 * IPython/completer.py (Completer.attr_matches): add support for
1037 * IPython/completer.py (Completer.attr_matches): add support for
1038 PyCrust-style _getAttributeNames magic method. Patch contributed
1038 PyCrust-style _getAttributeNames magic method. Patch contributed
1039 by <mscott-AT-goldenspud.com>. Closes #50.
1039 by <mscott-AT-goldenspud.com>. Closes #50.
1040
1040
1041 * IPython/iplib.py (InteractiveShell.__init__): remove the
1041 * IPython/iplib.py (InteractiveShell.__init__): remove the
1042 deletion of exit/quit from __builtin__, which can break
1042 deletion of exit/quit from __builtin__, which can break
1043 third-party tools like the Zope debugging console. The
1043 third-party tools like the Zope debugging console. The
1044 %exit/%quit magics remain. In general, it's probably a good idea
1044 %exit/%quit magics remain. In general, it's probably a good idea
1045 not to delete anything from __builtin__, since we never know what
1045 not to delete anything from __builtin__, since we never know what
1046 that will break. In any case, python now (for 2.5) will support
1046 that will break. In any case, python now (for 2.5) will support
1047 'real' exit/quit, so this issue is moot. Closes #55.
1047 'real' exit/quit, so this issue is moot. Closes #55.
1048
1048
1049 * IPython/genutils.py (with_obj): rename the 'with' function to
1049 * IPython/genutils.py (with_obj): rename the 'with' function to
1050 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1050 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1051 becomes a language keyword. Closes #53.
1051 becomes a language keyword. Closes #53.
1052
1052
1053 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1053 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1054 __file__ attribute to this so it fools more things into thinking
1054 __file__ attribute to this so it fools more things into thinking
1055 it is a real module. Closes #59.
1055 it is a real module. Closes #59.
1056
1056
1057 * IPython/Magic.py (magic_edit): add -n option to open the editor
1057 * IPython/Magic.py (magic_edit): add -n option to open the editor
1058 at a specific line number. After a patch by Stefan van der Walt.
1058 at a specific line number. After a patch by Stefan van der Walt.
1059
1059
1060 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1060 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1061
1061
1062 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1062 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1063 reason the file could not be opened. After automatic crash
1063 reason the file could not be opened. After automatic crash
1064 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1064 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1065 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1065 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1066 (_should_recompile): Don't fire editor if using %bg, since there
1066 (_should_recompile): Don't fire editor if using %bg, since there
1067 is no file in the first place. From the same report as above.
1067 is no file in the first place. From the same report as above.
1068 (raw_input): protect against faulty third-party prefilters. After
1068 (raw_input): protect against faulty third-party prefilters. After
1069 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1069 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1070 while running under SAGE.
1070 while running under SAGE.
1071
1071
1072 2006-05-23 Ville Vainio <vivainio@gmail.com>
1072 2006-05-23 Ville Vainio <vivainio@gmail.com>
1073
1073
1074 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1074 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1075 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1075 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1076 now returns None (again), unless dummy is specifically allowed by
1076 now returns None (again), unless dummy is specifically allowed by
1077 ipapi.get(allow_dummy=True).
1077 ipapi.get(allow_dummy=True).
1078
1078
1079 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1079 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1080
1080
1081 * IPython: remove all 2.2-compatibility objects and hacks from
1081 * IPython: remove all 2.2-compatibility objects and hacks from
1082 everywhere, since we only support 2.3 at this point. Docs
1082 everywhere, since we only support 2.3 at this point. Docs
1083 updated.
1083 updated.
1084
1084
1085 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1085 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1086 Anything requiring extra validation can be turned into a Python
1086 Anything requiring extra validation can be turned into a Python
1087 property in the future. I used a property for the db one b/c
1087 property in the future. I used a property for the db one b/c
1088 there was a nasty circularity problem with the initialization
1088 there was a nasty circularity problem with the initialization
1089 order, which right now I don't have time to clean up.
1089 order, which right now I don't have time to clean up.
1090
1090
1091 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1091 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1092 another locking bug reported by Jorgen. I'm not 100% sure though,
1092 another locking bug reported by Jorgen. I'm not 100% sure though,
1093 so more testing is needed...
1093 so more testing is needed...
1094
1094
1095 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1095 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1096
1096
1097 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1097 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1098 local variables from any routine in user code (typically executed
1098 local variables from any routine in user code (typically executed
1099 with %run) directly into the interactive namespace. Very useful
1099 with %run) directly into the interactive namespace. Very useful
1100 when doing complex debugging.
1100 when doing complex debugging.
1101 (IPythonNotRunning): Changed the default None object to a dummy
1101 (IPythonNotRunning): Changed the default None object to a dummy
1102 whose attributes can be queried as well as called without
1102 whose attributes can be queried as well as called without
1103 exploding, to ease writing code which works transparently both in
1103 exploding, to ease writing code which works transparently both in
1104 and out of ipython and uses some of this API.
1104 and out of ipython and uses some of this API.
1105
1105
1106 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1106 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1107
1107
1108 * IPython/hooks.py (result_display): Fix the fact that our display
1108 * IPython/hooks.py (result_display): Fix the fact that our display
1109 hook was using str() instead of repr(), as the default python
1109 hook was using str() instead of repr(), as the default python
1110 console does. This had gone unnoticed b/c it only happened if
1110 console does. This had gone unnoticed b/c it only happened if
1111 %Pprint was off, but the inconsistency was there.
1111 %Pprint was off, but the inconsistency was there.
1112
1112
1113 2006-05-15 Ville Vainio <vivainio@gmail.com>
1113 2006-05-15 Ville Vainio <vivainio@gmail.com>
1114
1114
1115 * Oinspect.py: Only show docstring for nonexisting/binary files
1115 * Oinspect.py: Only show docstring for nonexisting/binary files
1116 when doing object??, closing ticket #62
1116 when doing object??, closing ticket #62
1117
1117
1118 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1118 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1119
1119
1120 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1120 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1121 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1121 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1122 was being released in a routine which hadn't checked if it had
1122 was being released in a routine which hadn't checked if it had
1123 been the one to acquire it.
1123 been the one to acquire it.
1124
1124
1125 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1125 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1126
1126
1127 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1127 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1128
1128
1129 2006-04-11 Ville Vainio <vivainio@gmail.com>
1129 2006-04-11 Ville Vainio <vivainio@gmail.com>
1130
1130
1131 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1131 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1132 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1132 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1133 prefilters, allowing stuff like magics and aliases in the file.
1133 prefilters, allowing stuff like magics and aliases in the file.
1134
1134
1135 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1135 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1136 added. Supported now are "%clear in" and "%clear out" (clear input and
1136 added. Supported now are "%clear in" and "%clear out" (clear input and
1137 output history, respectively). Also fixed CachedOutput.flush to
1137 output history, respectively). Also fixed CachedOutput.flush to
1138 properly flush the output cache.
1138 properly flush the output cache.
1139
1139
1140 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1140 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1141 half-success (and fail explicitly).
1141 half-success (and fail explicitly).
1142
1142
1143 2006-03-28 Ville Vainio <vivainio@gmail.com>
1143 2006-03-28 Ville Vainio <vivainio@gmail.com>
1144
1144
1145 * iplib.py: Fix quoting of aliases so that only argless ones
1145 * iplib.py: Fix quoting of aliases so that only argless ones
1146 are quoted
1146 are quoted
1147
1147
1148 2006-03-28 Ville Vainio <vivainio@gmail.com>
1148 2006-03-28 Ville Vainio <vivainio@gmail.com>
1149
1149
1150 * iplib.py: Quote aliases with spaces in the name.
1150 * iplib.py: Quote aliases with spaces in the name.
1151 "c:\program files\blah\bin" is now legal alias target.
1151 "c:\program files\blah\bin" is now legal alias target.
1152
1152
1153 * ext_rehashdir.py: Space no longer allowed as arg
1153 * ext_rehashdir.py: Space no longer allowed as arg
1154 separator, since space is legal in path names.
1154 separator, since space is legal in path names.
1155
1155
1156 2006-03-16 Ville Vainio <vivainio@gmail.com>
1156 2006-03-16 Ville Vainio <vivainio@gmail.com>
1157
1157
1158 * upgrade_dir.py: Take path.py from Extensions, correcting
1158 * upgrade_dir.py: Take path.py from Extensions, correcting
1159 %upgrade magic
1159 %upgrade magic
1160
1160
1161 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1161 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1162
1162
1163 * hooks.py: Only enclose editor binary in quotes if legal and
1163 * hooks.py: Only enclose editor binary in quotes if legal and
1164 necessary (space in the name, and is an existing file). Fixes a bug
1164 necessary (space in the name, and is an existing file). Fixes a bug
1165 reported by Zachary Pincus.
1165 reported by Zachary Pincus.
1166
1166
1167 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1167 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1168
1168
1169 * Manual: thanks to a tip on proper color handling for Emacs, by
1169 * Manual: thanks to a tip on proper color handling for Emacs, by
1170 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1170 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1171
1171
1172 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1172 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1173 by applying the provided patch. Thanks to Liu Jin
1173 by applying the provided patch. Thanks to Liu Jin
1174 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1174 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1175 XEmacs/Linux, I'm trusting the submitter that it actually helps
1175 XEmacs/Linux, I'm trusting the submitter that it actually helps
1176 under win32/GNU Emacs. Will revisit if any problems are reported.
1176 under win32/GNU Emacs. Will revisit if any problems are reported.
1177
1177
1178 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1178 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1179
1179
1180 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1180 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1181 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1181 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1182
1182
1183 2006-03-12 Ville Vainio <vivainio@gmail.com>
1183 2006-03-12 Ville Vainio <vivainio@gmail.com>
1184
1184
1185 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1185 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1186 Torsten Marek.
1186 Torsten Marek.
1187
1187
1188 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1188 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1189
1189
1190 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1190 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1191 line ranges works again.
1191 line ranges works again.
1192
1192
1193 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1193 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1194
1194
1195 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1195 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1196 and friends, after a discussion with Zach Pincus on ipython-user.
1196 and friends, after a discussion with Zach Pincus on ipython-user.
1197 I'm not 100% sure, but after thinking about it quite a bit, it may
1197 I'm not 100% sure, but after thinking about it quite a bit, it may
1198 be OK. Testing with the multithreaded shells didn't reveal any
1198 be OK. Testing with the multithreaded shells didn't reveal any
1199 problems, but let's keep an eye out.
1199 problems, but let's keep an eye out.
1200
1200
1201 In the process, I fixed a few things which were calling
1201 In the process, I fixed a few things which were calling
1202 self.InteractiveTB() directly (like safe_execfile), which is a
1202 self.InteractiveTB() directly (like safe_execfile), which is a
1203 mistake: ALL exception reporting should be done by calling
1203 mistake: ALL exception reporting should be done by calling
1204 self.showtraceback(), which handles state and tab-completion and
1204 self.showtraceback(), which handles state and tab-completion and
1205 more.
1205 more.
1206
1206
1207 2006-03-01 Ville Vainio <vivainio@gmail.com>
1207 2006-03-01 Ville Vainio <vivainio@gmail.com>
1208
1208
1209 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1209 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1210 To use, do "from ipipe import *".
1210 To use, do "from ipipe import *".
1211
1211
1212 2006-02-24 Ville Vainio <vivainio@gmail.com>
1212 2006-02-24 Ville Vainio <vivainio@gmail.com>
1213
1213
1214 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1214 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1215 "cleanly" and safely than the older upgrade mechanism.
1215 "cleanly" and safely than the older upgrade mechanism.
1216
1216
1217 2006-02-21 Ville Vainio <vivainio@gmail.com>
1217 2006-02-21 Ville Vainio <vivainio@gmail.com>
1218
1218
1219 * Magic.py: %save works again.
1219 * Magic.py: %save works again.
1220
1220
1221 2006-02-15 Ville Vainio <vivainio@gmail.com>
1221 2006-02-15 Ville Vainio <vivainio@gmail.com>
1222
1222
1223 * Magic.py: %Pprint works again
1223 * Magic.py: %Pprint works again
1224
1224
1225 * Extensions/ipy_sane_defaults.py: Provide everything provided
1225 * Extensions/ipy_sane_defaults.py: Provide everything provided
1226 in default ipythonrc, to make it possible to have a completely empty
1226 in default ipythonrc, to make it possible to have a completely empty
1227 ipythonrc (and thus completely rc-file free configuration)
1227 ipythonrc (and thus completely rc-file free configuration)
1228
1228
1229 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1229 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1230
1230
1231 * IPython/hooks.py (editor): quote the call to the editor command,
1231 * IPython/hooks.py (editor): quote the call to the editor command,
1232 to allow commands with spaces in them. Problem noted by watching
1232 to allow commands with spaces in them. Problem noted by watching
1233 Ian Oswald's video about textpad under win32 at
1233 Ian Oswald's video about textpad under win32 at
1234 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1234 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1235
1235
1236 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1236 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1237 describing magics (we haven't used @ for a loong time).
1237 describing magics (we haven't used @ for a loong time).
1238
1238
1239 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1239 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1240 contributed by marienz to close
1240 contributed by marienz to close
1241 http://www.scipy.net/roundup/ipython/issue53.
1241 http://www.scipy.net/roundup/ipython/issue53.
1242
1242
1243 2006-02-10 Ville Vainio <vivainio@gmail.com>
1243 2006-02-10 Ville Vainio <vivainio@gmail.com>
1244
1244
1245 * genutils.py: getoutput now works in win32 too
1245 * genutils.py: getoutput now works in win32 too
1246
1246
1247 * completer.py: alias and magic completion only invoked
1247 * completer.py: alias and magic completion only invoked
1248 at the first "item" in the line, to avoid "cd %store"
1248 at the first "item" in the line, to avoid "cd %store"
1249 nonsense.
1249 nonsense.
1250
1250
1251 2006-02-09 Ville Vainio <vivainio@gmail.com>
1251 2006-02-09 Ville Vainio <vivainio@gmail.com>
1252
1252
1253 * test/*: Added a unit testing framework (finally).
1253 * test/*: Added a unit testing framework (finally).
1254 '%run runtests.py' to run test_*.
1254 '%run runtests.py' to run test_*.
1255
1255
1256 * ipapi.py: Exposed runlines and set_custom_exc
1256 * ipapi.py: Exposed runlines and set_custom_exc
1257
1257
1258 2006-02-07 Ville Vainio <vivainio@gmail.com>
1258 2006-02-07 Ville Vainio <vivainio@gmail.com>
1259
1259
1260 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1260 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1261 instead use "f(1 2)" as before.
1261 instead use "f(1 2)" as before.
1262
1262
1263 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1263 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1264
1264
1265 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1265 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1266 facilities, for demos processed by the IPython input filter
1266 facilities, for demos processed by the IPython input filter
1267 (IPythonDemo), and for running a script one-line-at-a-time as a
1267 (IPythonDemo), and for running a script one-line-at-a-time as a
1268 demo, both for pure Python (LineDemo) and for IPython-processed
1268 demo, both for pure Python (LineDemo) and for IPython-processed
1269 input (IPythonLineDemo). After a request by Dave Kohel, from the
1269 input (IPythonLineDemo). After a request by Dave Kohel, from the
1270 SAGE team.
1270 SAGE team.
1271 (Demo.edit): added an edit() method to the demo objects, to edit
1271 (Demo.edit): added an edit() method to the demo objects, to edit
1272 the in-memory copy of the last executed block.
1272 the in-memory copy of the last executed block.
1273
1273
1274 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1274 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1275 processing to %edit, %macro and %save. These commands can now be
1275 processing to %edit, %macro and %save. These commands can now be
1276 invoked on the unprocessed input as it was typed by the user
1276 invoked on the unprocessed input as it was typed by the user
1277 (without any prefilters applied). After requests by the SAGE team
1277 (without any prefilters applied). After requests by the SAGE team
1278 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1278 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1279
1279
1280 2006-02-01 Ville Vainio <vivainio@gmail.com>
1280 2006-02-01 Ville Vainio <vivainio@gmail.com>
1281
1281
1282 * setup.py, eggsetup.py: easy_install ipython==dev works
1282 * setup.py, eggsetup.py: easy_install ipython==dev works
1283 correctly now (on Linux)
1283 correctly now (on Linux)
1284
1284
1285 * ipy_user_conf,ipmaker: user config changes, removed spurious
1285 * ipy_user_conf,ipmaker: user config changes, removed spurious
1286 warnings
1286 warnings
1287
1287
1288 * iplib: if rc.banner is string, use it as is.
1288 * iplib: if rc.banner is string, use it as is.
1289
1289
1290 * Magic: %pycat accepts a string argument and pages it's contents.
1290 * Magic: %pycat accepts a string argument and pages it's contents.
1291
1291
1292
1292
1293 2006-01-30 Ville Vainio <vivainio@gmail.com>
1293 2006-01-30 Ville Vainio <vivainio@gmail.com>
1294
1294
1295 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1295 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1296 Now %store and bookmarks work through PickleShare, meaning that
1296 Now %store and bookmarks work through PickleShare, meaning that
1297 concurrent access is possible and all ipython sessions see the
1297 concurrent access is possible and all ipython sessions see the
1298 same database situation all the time, instead of snapshot of
1298 same database situation all the time, instead of snapshot of
1299 the situation when the session was started. Hence, %bookmark
1299 the situation when the session was started. Hence, %bookmark
1300 results are immediately accessible from othes sessions. The database
1300 results are immediately accessible from othes sessions. The database
1301 is also available for use by user extensions. See:
1301 is also available for use by user extensions. See:
1302 http://www.python.org/pypi/pickleshare
1302 http://www.python.org/pypi/pickleshare
1303
1303
1304 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1304 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1305
1305
1306 * aliases can now be %store'd
1306 * aliases can now be %store'd
1307
1307
1308 * path.py moved to Extensions so that pickleshare does not need
1308 * path.py moved to Extensions so that pickleshare does not need
1309 IPython-specific import. Extensions added to pythonpath right
1309 IPython-specific import. Extensions added to pythonpath right
1310 at __init__.
1310 at __init__.
1311
1311
1312 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1312 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1313 called with _ip.system and the pre-transformed command string.
1313 called with _ip.system and the pre-transformed command string.
1314
1314
1315 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1315 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1316
1316
1317 * IPython/iplib.py (interact): Fix that we were not catching
1317 * IPython/iplib.py (interact): Fix that we were not catching
1318 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1318 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1319 logic here had to change, but it's fixed now.
1319 logic here had to change, but it's fixed now.
1320
1320
1321 2006-01-29 Ville Vainio <vivainio@gmail.com>
1321 2006-01-29 Ville Vainio <vivainio@gmail.com>
1322
1322
1323 * iplib.py: Try to import pyreadline on Windows.
1323 * iplib.py: Try to import pyreadline on Windows.
1324
1324
1325 2006-01-27 Ville Vainio <vivainio@gmail.com>
1325 2006-01-27 Ville Vainio <vivainio@gmail.com>
1326
1326
1327 * iplib.py: Expose ipapi as _ip in builtin namespace.
1327 * iplib.py: Expose ipapi as _ip in builtin namespace.
1328 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1328 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1329 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1329 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1330 syntax now produce _ip.* variant of the commands.
1330 syntax now produce _ip.* variant of the commands.
1331
1331
1332 * "_ip.options().autoedit_syntax = 2" automatically throws
1332 * "_ip.options().autoedit_syntax = 2" automatically throws
1333 user to editor for syntax error correction without prompting.
1333 user to editor for syntax error correction without prompting.
1334
1334
1335 2006-01-27 Ville Vainio <vivainio@gmail.com>
1335 2006-01-27 Ville Vainio <vivainio@gmail.com>
1336
1336
1337 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1337 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1338 'ipython' at argv[0]) executed through command line.
1338 'ipython' at argv[0]) executed through command line.
1339 NOTE: this DEPRECATES calling ipython with multiple scripts
1339 NOTE: this DEPRECATES calling ipython with multiple scripts
1340 ("ipython a.py b.py c.py")
1340 ("ipython a.py b.py c.py")
1341
1341
1342 * iplib.py, hooks.py: Added configurable input prefilter,
1342 * iplib.py, hooks.py: Added configurable input prefilter,
1343 named 'input_prefilter'. See ext_rescapture.py for example
1343 named 'input_prefilter'. See ext_rescapture.py for example
1344 usage.
1344 usage.
1345
1345
1346 * ext_rescapture.py, Magic.py: Better system command output capture
1346 * ext_rescapture.py, Magic.py: Better system command output capture
1347 through 'var = !ls' (deprecates user-visible %sc). Same notation
1347 through 'var = !ls' (deprecates user-visible %sc). Same notation
1348 applies for magics, 'var = %alias' assigns alias list to var.
1348 applies for magics, 'var = %alias' assigns alias list to var.
1349
1349
1350 * ipapi.py: added meta() for accessing extension-usable data store.
1350 * ipapi.py: added meta() for accessing extension-usable data store.
1351
1351
1352 * iplib.py: added InteractiveShell.getapi(). New magics should be
1352 * iplib.py: added InteractiveShell.getapi(). New magics should be
1353 written doing self.getapi() instead of using the shell directly.
1353 written doing self.getapi() instead of using the shell directly.
1354
1354
1355 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1355 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1356 %store foo >> ~/myfoo.txt to store variables to files (in clean
1356 %store foo >> ~/myfoo.txt to store variables to files (in clean
1357 textual form, not a restorable pickle).
1357 textual form, not a restorable pickle).
1358
1358
1359 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1359 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1360
1360
1361 * usage.py, Magic.py: added %quickref
1361 * usage.py, Magic.py: added %quickref
1362
1362
1363 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1363 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1364
1364
1365 * GetoptErrors when invoking magics etc. with wrong args
1365 * GetoptErrors when invoking magics etc. with wrong args
1366 are now more helpful:
1366 are now more helpful:
1367 GetoptError: option -l not recognized (allowed: "qb" )
1367 GetoptError: option -l not recognized (allowed: "qb" )
1368
1368
1369 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1369 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1370
1370
1371 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1371 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1372 computationally intensive blocks don't appear to stall the demo.
1372 computationally intensive blocks don't appear to stall the demo.
1373
1373
1374 2006-01-24 Ville Vainio <vivainio@gmail.com>
1374 2006-01-24 Ville Vainio <vivainio@gmail.com>
1375
1375
1376 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1376 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1377 value to manipulate resulting history entry.
1377 value to manipulate resulting history entry.
1378
1378
1379 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1379 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1380 to instance methods of IPApi class, to make extending an embedded
1380 to instance methods of IPApi class, to make extending an embedded
1381 IPython feasible. See ext_rehashdir.py for example usage.
1381 IPython feasible. See ext_rehashdir.py for example usage.
1382
1382
1383 * Merged 1071-1076 from branches/0.7.1
1383 * Merged 1071-1076 from branches/0.7.1
1384
1384
1385
1385
1386 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1386 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1387
1387
1388 * tools/release (daystamp): Fix build tools to use the new
1388 * tools/release (daystamp): Fix build tools to use the new
1389 eggsetup.py script to build lightweight eggs.
1389 eggsetup.py script to build lightweight eggs.
1390
1390
1391 * Applied changesets 1062 and 1064 before 0.7.1 release.
1391 * Applied changesets 1062 and 1064 before 0.7.1 release.
1392
1392
1393 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1393 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1394 see the raw input history (without conversions like %ls ->
1394 see the raw input history (without conversions like %ls ->
1395 ipmagic("ls")). After a request from W. Stein, SAGE
1395 ipmagic("ls")). After a request from W. Stein, SAGE
1396 (http://modular.ucsd.edu/sage) developer. This information is
1396 (http://modular.ucsd.edu/sage) developer. This information is
1397 stored in the input_hist_raw attribute of the IPython instance, so
1397 stored in the input_hist_raw attribute of the IPython instance, so
1398 developers can access it if needed (it's an InputList instance).
1398 developers can access it if needed (it's an InputList instance).
1399
1399
1400 * Versionstring = 0.7.2.svn
1400 * Versionstring = 0.7.2.svn
1401
1401
1402 * eggsetup.py: A separate script for constructing eggs, creates
1402 * eggsetup.py: A separate script for constructing eggs, creates
1403 proper launch scripts even on Windows (an .exe file in
1403 proper launch scripts even on Windows (an .exe file in
1404 \python24\scripts).
1404 \python24\scripts).
1405
1405
1406 * ipapi.py: launch_new_instance, launch entry point needed for the
1406 * ipapi.py: launch_new_instance, launch entry point needed for the
1407 egg.
1407 egg.
1408
1408
1409 2006-01-23 Ville Vainio <vivainio@gmail.com>
1409 2006-01-23 Ville Vainio <vivainio@gmail.com>
1410
1410
1411 * Added %cpaste magic for pasting python code
1411 * Added %cpaste magic for pasting python code
1412
1412
1413 2006-01-22 Ville Vainio <vivainio@gmail.com>
1413 2006-01-22 Ville Vainio <vivainio@gmail.com>
1414
1414
1415 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1415 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1416
1416
1417 * Versionstring = 0.7.2.svn
1417 * Versionstring = 0.7.2.svn
1418
1418
1419 * eggsetup.py: A separate script for constructing eggs, creates
1419 * eggsetup.py: A separate script for constructing eggs, creates
1420 proper launch scripts even on Windows (an .exe file in
1420 proper launch scripts even on Windows (an .exe file in
1421 \python24\scripts).
1421 \python24\scripts).
1422
1422
1423 * ipapi.py: launch_new_instance, launch entry point needed for the
1423 * ipapi.py: launch_new_instance, launch entry point needed for the
1424 egg.
1424 egg.
1425
1425
1426 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1426 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1427
1427
1428 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1428 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1429 %pfile foo would print the file for foo even if it was a binary.
1429 %pfile foo would print the file for foo even if it was a binary.
1430 Now, extensions '.so' and '.dll' are skipped.
1430 Now, extensions '.so' and '.dll' are skipped.
1431
1431
1432 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1432 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1433 bug, where macros would fail in all threaded modes. I'm not 100%
1433 bug, where macros would fail in all threaded modes. I'm not 100%
1434 sure, so I'm going to put out an rc instead of making a release
1434 sure, so I'm going to put out an rc instead of making a release
1435 today, and wait for feedback for at least a few days.
1435 today, and wait for feedback for at least a few days.
1436
1436
1437 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1437 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1438 it...) the handling of pasting external code with autoindent on.
1438 it...) the handling of pasting external code with autoindent on.
1439 To get out of a multiline input, the rule will appear for most
1439 To get out of a multiline input, the rule will appear for most
1440 users unchanged: two blank lines or change the indent level
1440 users unchanged: two blank lines or change the indent level
1441 proposed by IPython. But there is a twist now: you can
1441 proposed by IPython. But there is a twist now: you can
1442 add/subtract only *one or two spaces*. If you add/subtract three
1442 add/subtract only *one or two spaces*. If you add/subtract three
1443 or more (unless you completely delete the line), IPython will
1443 or more (unless you completely delete the line), IPython will
1444 accept that line, and you'll need to enter a second one of pure
1444 accept that line, and you'll need to enter a second one of pure
1445 whitespace. I know it sounds complicated, but I can't find a
1445 whitespace. I know it sounds complicated, but I can't find a
1446 different solution that covers all the cases, with the right
1446 different solution that covers all the cases, with the right
1447 heuristics. Hopefully in actual use, nobody will really notice
1447 heuristics. Hopefully in actual use, nobody will really notice
1448 all these strange rules and things will 'just work'.
1448 all these strange rules and things will 'just work'.
1449
1449
1450 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1450 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1451
1451
1452 * IPython/iplib.py (interact): catch exceptions which can be
1452 * IPython/iplib.py (interact): catch exceptions which can be
1453 triggered asynchronously by signal handlers. Thanks to an
1453 triggered asynchronously by signal handlers. Thanks to an
1454 automatic crash report, submitted by Colin Kingsley
1454 automatic crash report, submitted by Colin Kingsley
1455 <tercel-AT-gentoo.org>.
1455 <tercel-AT-gentoo.org>.
1456
1456
1457 2006-01-20 Ville Vainio <vivainio@gmail.com>
1457 2006-01-20 Ville Vainio <vivainio@gmail.com>
1458
1458
1459 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1459 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1460 (%rehashdir, very useful, try it out) of how to extend ipython
1460 (%rehashdir, very useful, try it out) of how to extend ipython
1461 with new magics. Also added Extensions dir to pythonpath to make
1461 with new magics. Also added Extensions dir to pythonpath to make
1462 importing extensions easy.
1462 importing extensions easy.
1463
1463
1464 * %store now complains when trying to store interactively declared
1464 * %store now complains when trying to store interactively declared
1465 classes / instances of those classes.
1465 classes / instances of those classes.
1466
1466
1467 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1467 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1468 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1468 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1469 if they exist, and ipy_user_conf.py with some defaults is created for
1469 if they exist, and ipy_user_conf.py with some defaults is created for
1470 the user.
1470 the user.
1471
1471
1472 * Startup rehashing done by the config file, not InterpreterExec.
1472 * Startup rehashing done by the config file, not InterpreterExec.
1473 This means system commands are available even without selecting the
1473 This means system commands are available even without selecting the
1474 pysh profile. It's the sensible default after all.
1474 pysh profile. It's the sensible default after all.
1475
1475
1476 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1476 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1477
1477
1478 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1478 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1479 multiline code with autoindent on working. But I am really not
1479 multiline code with autoindent on working. But I am really not
1480 sure, so this needs more testing. Will commit a debug-enabled
1480 sure, so this needs more testing. Will commit a debug-enabled
1481 version for now, while I test it some more, so that Ville and
1481 version for now, while I test it some more, so that Ville and
1482 others may also catch any problems. Also made
1482 others may also catch any problems. Also made
1483 self.indent_current_str() a method, to ensure that there's no
1483 self.indent_current_str() a method, to ensure that there's no
1484 chance of the indent space count and the corresponding string
1484 chance of the indent space count and the corresponding string
1485 falling out of sync. All code needing the string should just call
1485 falling out of sync. All code needing the string should just call
1486 the method.
1486 the method.
1487
1487
1488 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1488 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1489
1489
1490 * IPython/Magic.py (magic_edit): fix check for when users don't
1490 * IPython/Magic.py (magic_edit): fix check for when users don't
1491 save their output files, the try/except was in the wrong section.
1491 save their output files, the try/except was in the wrong section.
1492
1492
1493 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1493 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1494
1494
1495 * IPython/Magic.py (magic_run): fix __file__ global missing from
1495 * IPython/Magic.py (magic_run): fix __file__ global missing from
1496 script's namespace when executed via %run. After a report by
1496 script's namespace when executed via %run. After a report by
1497 Vivian.
1497 Vivian.
1498
1498
1499 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1499 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1500 when using python 2.4. The parent constructor changed in 2.4, and
1500 when using python 2.4. The parent constructor changed in 2.4, and
1501 we need to track it directly (we can't call it, as it messes up
1501 we need to track it directly (we can't call it, as it messes up
1502 readline and tab-completion inside our pdb would stop working).
1502 readline and tab-completion inside our pdb would stop working).
1503 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1503 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1504
1504
1505 2006-01-16 Ville Vainio <vivainio@gmail.com>
1505 2006-01-16 Ville Vainio <vivainio@gmail.com>
1506
1506
1507 * Ipython/magic.py: Reverted back to old %edit functionality
1507 * Ipython/magic.py: Reverted back to old %edit functionality
1508 that returns file contents on exit.
1508 that returns file contents on exit.
1509
1509
1510 * IPython/path.py: Added Jason Orendorff's "path" module to
1510 * IPython/path.py: Added Jason Orendorff's "path" module to
1511 IPython tree, http://www.jorendorff.com/articles/python/path/.
1511 IPython tree, http://www.jorendorff.com/articles/python/path/.
1512 You can get path objects conveniently through %sc, and !!, e.g.:
1512 You can get path objects conveniently through %sc, and !!, e.g.:
1513 sc files=ls
1513 sc files=ls
1514 for p in files.paths: # or files.p
1514 for p in files.paths: # or files.p
1515 print p,p.mtime
1515 print p,p.mtime
1516
1516
1517 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1517 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1518 now work again without considering the exclusion regexp -
1518 now work again without considering the exclusion regexp -
1519 hence, things like ',foo my/path' turn to 'foo("my/path")'
1519 hence, things like ',foo my/path' turn to 'foo("my/path")'
1520 instead of syntax error.
1520 instead of syntax error.
1521
1521
1522
1522
1523 2006-01-14 Ville Vainio <vivainio@gmail.com>
1523 2006-01-14 Ville Vainio <vivainio@gmail.com>
1524
1524
1525 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1525 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1526 ipapi decorators for python 2.4 users, options() provides access to rc
1526 ipapi decorators for python 2.4 users, options() provides access to rc
1527 data.
1527 data.
1528
1528
1529 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1529 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1530 as path separators (even on Linux ;-). Space character after
1530 as path separators (even on Linux ;-). Space character after
1531 backslash (as yielded by tab completer) is still space;
1531 backslash (as yielded by tab completer) is still space;
1532 "%cd long\ name" works as expected.
1532 "%cd long\ name" works as expected.
1533
1533
1534 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1534 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1535 as "chain of command", with priority. API stays the same,
1535 as "chain of command", with priority. API stays the same,
1536 TryNext exception raised by a hook function signals that
1536 TryNext exception raised by a hook function signals that
1537 current hook failed and next hook should try handling it, as
1537 current hook failed and next hook should try handling it, as
1538 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1538 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1539 requested configurable display hook, which is now implemented.
1539 requested configurable display hook, which is now implemented.
1540
1540
1541 2006-01-13 Ville Vainio <vivainio@gmail.com>
1541 2006-01-13 Ville Vainio <vivainio@gmail.com>
1542
1542
1543 * IPython/platutils*.py: platform specific utility functions,
1543 * IPython/platutils*.py: platform specific utility functions,
1544 so far only set_term_title is implemented (change terminal
1544 so far only set_term_title is implemented (change terminal
1545 label in windowing systems). %cd now changes the title to
1545 label in windowing systems). %cd now changes the title to
1546 current dir.
1546 current dir.
1547
1547
1548 * IPython/Release.py: Added myself to "authors" list,
1548 * IPython/Release.py: Added myself to "authors" list,
1549 had to create new files.
1549 had to create new files.
1550
1550
1551 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1551 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1552 shell escape; not a known bug but had potential to be one in the
1552 shell escape; not a known bug but had potential to be one in the
1553 future.
1553 future.
1554
1554
1555 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1555 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1556 extension API for IPython! See the module for usage example. Fix
1556 extension API for IPython! See the module for usage example. Fix
1557 OInspect for docstring-less magic functions.
1557 OInspect for docstring-less magic functions.
1558
1558
1559
1559
1560 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1560 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1561
1561
1562 * IPython/iplib.py (raw_input): temporarily deactivate all
1562 * IPython/iplib.py (raw_input): temporarily deactivate all
1563 attempts at allowing pasting of code with autoindent on. It
1563 attempts at allowing pasting of code with autoindent on. It
1564 introduced bugs (reported by Prabhu) and I can't seem to find a
1564 introduced bugs (reported by Prabhu) and I can't seem to find a
1565 robust combination which works in all cases. Will have to revisit
1565 robust combination which works in all cases. Will have to revisit
1566 later.
1566 later.
1567
1567
1568 * IPython/genutils.py: remove isspace() function. We've dropped
1568 * IPython/genutils.py: remove isspace() function. We've dropped
1569 2.2 compatibility, so it's OK to use the string method.
1569 2.2 compatibility, so it's OK to use the string method.
1570
1570
1571 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1571 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1572
1572
1573 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1573 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1574 matching what NOT to autocall on, to include all python binary
1574 matching what NOT to autocall on, to include all python binary
1575 operators (including things like 'and', 'or', 'is' and 'in').
1575 operators (including things like 'and', 'or', 'is' and 'in').
1576 Prompted by a bug report on 'foo & bar', but I realized we had
1576 Prompted by a bug report on 'foo & bar', but I realized we had
1577 many more potential bug cases with other operators. The regexp is
1577 many more potential bug cases with other operators. The regexp is
1578 self.re_exclude_auto, it's fairly commented.
1578 self.re_exclude_auto, it's fairly commented.
1579
1579
1580 2006-01-12 Ville Vainio <vivainio@gmail.com>
1580 2006-01-12 Ville Vainio <vivainio@gmail.com>
1581
1581
1582 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1582 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1583 Prettified and hardened string/backslash quoting with ipsystem(),
1583 Prettified and hardened string/backslash quoting with ipsystem(),
1584 ipalias() and ipmagic(). Now even \ characters are passed to
1584 ipalias() and ipmagic(). Now even \ characters are passed to
1585 %magics, !shell escapes and aliases exactly as they are in the
1585 %magics, !shell escapes and aliases exactly as they are in the
1586 ipython command line. Should improve backslash experience,
1586 ipython command line. Should improve backslash experience,
1587 particularly in Windows (path delimiter for some commands that
1587 particularly in Windows (path delimiter for some commands that
1588 won't understand '/'), but Unix benefits as well (regexps). %cd
1588 won't understand '/'), but Unix benefits as well (regexps). %cd
1589 magic still doesn't support backslash path delimiters, though. Also
1589 magic still doesn't support backslash path delimiters, though. Also
1590 deleted all pretense of supporting multiline command strings in
1590 deleted all pretense of supporting multiline command strings in
1591 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1591 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1592
1592
1593 * doc/build_doc_instructions.txt added. Documentation on how to
1593 * doc/build_doc_instructions.txt added. Documentation on how to
1594 use doc/update_manual.py, added yesterday. Both files contributed
1594 use doc/update_manual.py, added yesterday. Both files contributed
1595 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1595 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1596 doc/*.sh for deprecation at a later date.
1596 doc/*.sh for deprecation at a later date.
1597
1597
1598 * /ipython.py Added ipython.py to root directory for
1598 * /ipython.py Added ipython.py to root directory for
1599 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1599 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1600 ipython.py) and development convenience (no need to keep doing
1600 ipython.py) and development convenience (no need to keep doing
1601 "setup.py install" between changes).
1601 "setup.py install" between changes).
1602
1602
1603 * Made ! and !! shell escapes work (again) in multiline expressions:
1603 * Made ! and !! shell escapes work (again) in multiline expressions:
1604 if 1:
1604 if 1:
1605 !ls
1605 !ls
1606 !!ls
1606 !!ls
1607
1607
1608 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1608 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1609
1609
1610 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1610 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1611 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1611 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1612 module in case-insensitive installation. Was causing crashes
1612 module in case-insensitive installation. Was causing crashes
1613 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1613 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1614
1614
1615 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1615 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1616 <marienz-AT-gentoo.org>, closes
1616 <marienz-AT-gentoo.org>, closes
1617 http://www.scipy.net/roundup/ipython/issue51.
1617 http://www.scipy.net/roundup/ipython/issue51.
1618
1618
1619 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1619 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1620
1620
1621 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1621 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1622 problem of excessive CPU usage under *nix and keyboard lag under
1622 problem of excessive CPU usage under *nix and keyboard lag under
1623 win32.
1623 win32.
1624
1624
1625 2006-01-10 *** Released version 0.7.0
1625 2006-01-10 *** Released version 0.7.0
1626
1626
1627 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1627 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1628
1628
1629 * IPython/Release.py (revision): tag version number to 0.7.0,
1629 * IPython/Release.py (revision): tag version number to 0.7.0,
1630 ready for release.
1630 ready for release.
1631
1631
1632 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1632 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1633 it informs the user of the name of the temp. file used. This can
1633 it informs the user of the name of the temp. file used. This can
1634 help if you decide later to reuse that same file, so you know
1634 help if you decide later to reuse that same file, so you know
1635 where to copy the info from.
1635 where to copy the info from.
1636
1636
1637 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1637 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1638
1638
1639 * setup_bdist_egg.py: little script to build an egg. Added
1639 * setup_bdist_egg.py: little script to build an egg. Added
1640 support in the release tools as well.
1640 support in the release tools as well.
1641
1641
1642 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1642 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1643
1643
1644 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1644 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1645 version selection (new -wxversion command line and ipythonrc
1645 version selection (new -wxversion command line and ipythonrc
1646 parameter). Patch contributed by Arnd Baecker
1646 parameter). Patch contributed by Arnd Baecker
1647 <arnd.baecker-AT-web.de>.
1647 <arnd.baecker-AT-web.de>.
1648
1648
1649 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1649 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1650 embedded instances, for variables defined at the interactive
1650 embedded instances, for variables defined at the interactive
1651 prompt of the embedded ipython. Reported by Arnd.
1651 prompt of the embedded ipython. Reported by Arnd.
1652
1652
1653 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1653 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1654 it can be used as a (stateful) toggle, or with a direct parameter.
1654 it can be used as a (stateful) toggle, or with a direct parameter.
1655
1655
1656 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1656 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1657 could be triggered in certain cases and cause the traceback
1657 could be triggered in certain cases and cause the traceback
1658 printer not to work.
1658 printer not to work.
1659
1659
1660 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1660 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1661
1661
1662 * IPython/iplib.py (_should_recompile): Small fix, closes
1662 * IPython/iplib.py (_should_recompile): Small fix, closes
1663 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1663 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1664
1664
1665 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1665 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1666
1666
1667 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1667 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1668 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1668 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1669 Moad for help with tracking it down.
1669 Moad for help with tracking it down.
1670
1670
1671 * IPython/iplib.py (handle_auto): fix autocall handling for
1671 * IPython/iplib.py (handle_auto): fix autocall handling for
1672 objects which support BOTH __getitem__ and __call__ (so that f [x]
1672 objects which support BOTH __getitem__ and __call__ (so that f [x]
1673 is left alone, instead of becoming f([x]) automatically).
1673 is left alone, instead of becoming f([x]) automatically).
1674
1674
1675 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1675 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1676 Ville's patch.
1676 Ville's patch.
1677
1677
1678 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1678 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1679
1679
1680 * IPython/iplib.py (handle_auto): changed autocall semantics to
1680 * IPython/iplib.py (handle_auto): changed autocall semantics to
1681 include 'smart' mode, where the autocall transformation is NOT
1681 include 'smart' mode, where the autocall transformation is NOT
1682 applied if there are no arguments on the line. This allows you to
1682 applied if there are no arguments on the line. This allows you to
1683 just type 'foo' if foo is a callable to see its internal form,
1683 just type 'foo' if foo is a callable to see its internal form,
1684 instead of having it called with no arguments (typically a
1684 instead of having it called with no arguments (typically a
1685 mistake). The old 'full' autocall still exists: for that, you
1685 mistake). The old 'full' autocall still exists: for that, you
1686 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1686 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1687
1687
1688 * IPython/completer.py (Completer.attr_matches): add
1688 * IPython/completer.py (Completer.attr_matches): add
1689 tab-completion support for Enthoughts' traits. After a report by
1689 tab-completion support for Enthoughts' traits. After a report by
1690 Arnd and a patch by Prabhu.
1690 Arnd and a patch by Prabhu.
1691
1691
1692 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1692 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1693
1693
1694 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1694 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1695 Schmolck's patch to fix inspect.getinnerframes().
1695 Schmolck's patch to fix inspect.getinnerframes().
1696
1696
1697 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1697 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1698 for embedded instances, regarding handling of namespaces and items
1698 for embedded instances, regarding handling of namespaces and items
1699 added to the __builtin__ one. Multiple embedded instances and
1699 added to the __builtin__ one. Multiple embedded instances and
1700 recursive embeddings should work better now (though I'm not sure
1700 recursive embeddings should work better now (though I'm not sure
1701 I've got all the corner cases fixed, that code is a bit of a brain
1701 I've got all the corner cases fixed, that code is a bit of a brain
1702 twister).
1702 twister).
1703
1703
1704 * IPython/Magic.py (magic_edit): added support to edit in-memory
1704 * IPython/Magic.py (magic_edit): added support to edit in-memory
1705 macros (automatically creates the necessary temp files). %edit
1705 macros (automatically creates the necessary temp files). %edit
1706 also doesn't return the file contents anymore, it's just noise.
1706 also doesn't return the file contents anymore, it's just noise.
1707
1707
1708 * IPython/completer.py (Completer.attr_matches): revert change to
1708 * IPython/completer.py (Completer.attr_matches): revert change to
1709 complete only on attributes listed in __all__. I realized it
1709 complete only on attributes listed in __all__. I realized it
1710 cripples the tab-completion system as a tool for exploring the
1710 cripples the tab-completion system as a tool for exploring the
1711 internals of unknown libraries (it renders any non-__all__
1711 internals of unknown libraries (it renders any non-__all__
1712 attribute off-limits). I got bit by this when trying to see
1712 attribute off-limits). I got bit by this when trying to see
1713 something inside the dis module.
1713 something inside the dis module.
1714
1714
1715 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1715 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1716
1716
1717 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1717 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1718 namespace for users and extension writers to hold data in. This
1718 namespace for users and extension writers to hold data in. This
1719 follows the discussion in
1719 follows the discussion in
1720 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1720 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1721
1721
1722 * IPython/completer.py (IPCompleter.complete): small patch to help
1722 * IPython/completer.py (IPCompleter.complete): small patch to help
1723 tab-completion under Emacs, after a suggestion by John Barnard
1723 tab-completion under Emacs, after a suggestion by John Barnard
1724 <barnarj-AT-ccf.org>.
1724 <barnarj-AT-ccf.org>.
1725
1725
1726 * IPython/Magic.py (Magic.extract_input_slices): added support for
1726 * IPython/Magic.py (Magic.extract_input_slices): added support for
1727 the slice notation in magics to use N-M to represent numbers N...M
1727 the slice notation in magics to use N-M to represent numbers N...M
1728 (closed endpoints). This is used by %macro and %save.
1728 (closed endpoints). This is used by %macro and %save.
1729
1729
1730 * IPython/completer.py (Completer.attr_matches): for modules which
1730 * IPython/completer.py (Completer.attr_matches): for modules which
1731 define __all__, complete only on those. After a patch by Jeffrey
1731 define __all__, complete only on those. After a patch by Jeffrey
1732 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1732 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1733 speed up this routine.
1733 speed up this routine.
1734
1734
1735 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1735 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1736 don't know if this is the end of it, but the behavior now is
1736 don't know if this is the end of it, but the behavior now is
1737 certainly much more correct. Note that coupled with macros,
1737 certainly much more correct. Note that coupled with macros,
1738 slightly surprising (at first) behavior may occur: a macro will in
1738 slightly surprising (at first) behavior may occur: a macro will in
1739 general expand to multiple lines of input, so upon exiting, the
1739 general expand to multiple lines of input, so upon exiting, the
1740 in/out counters will both be bumped by the corresponding amount
1740 in/out counters will both be bumped by the corresponding amount
1741 (as if the macro's contents had been typed interactively). Typing
1741 (as if the macro's contents had been typed interactively). Typing
1742 %hist will reveal the intermediate (silently processed) lines.
1742 %hist will reveal the intermediate (silently processed) lines.
1743
1743
1744 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1744 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1745 pickle to fail (%run was overwriting __main__ and not restoring
1745 pickle to fail (%run was overwriting __main__ and not restoring
1746 it, but pickle relies on __main__ to operate).
1746 it, but pickle relies on __main__ to operate).
1747
1747
1748 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1748 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1749 using properties, but forgot to make the main InteractiveShell
1749 using properties, but forgot to make the main InteractiveShell
1750 class a new-style class. Properties fail silently, and
1750 class a new-style class. Properties fail silently, and
1751 mysteriously, with old-style class (getters work, but
1751 mysteriously, with old-style class (getters work, but
1752 setters don't do anything).
1752 setters don't do anything).
1753
1753
1754 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1754 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1755
1755
1756 * IPython/Magic.py (magic_history): fix history reporting bug (I
1756 * IPython/Magic.py (magic_history): fix history reporting bug (I
1757 know some nasties are still there, I just can't seem to find a
1757 know some nasties are still there, I just can't seem to find a
1758 reproducible test case to track them down; the input history is
1758 reproducible test case to track them down; the input history is
1759 falling out of sync...)
1759 falling out of sync...)
1760
1760
1761 * IPython/iplib.py (handle_shell_escape): fix bug where both
1761 * IPython/iplib.py (handle_shell_escape): fix bug where both
1762 aliases and system accesses where broken for indented code (such
1762 aliases and system accesses where broken for indented code (such
1763 as loops).
1763 as loops).
1764
1764
1765 * IPython/genutils.py (shell): fix small but critical bug for
1765 * IPython/genutils.py (shell): fix small but critical bug for
1766 win32 system access.
1766 win32 system access.
1767
1767
1768 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1768 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1769
1769
1770 * IPython/iplib.py (showtraceback): remove use of the
1770 * IPython/iplib.py (showtraceback): remove use of the
1771 sys.last_{type/value/traceback} structures, which are non
1771 sys.last_{type/value/traceback} structures, which are non
1772 thread-safe.
1772 thread-safe.
1773 (_prefilter): change control flow to ensure that we NEVER
1773 (_prefilter): change control flow to ensure that we NEVER
1774 introspect objects when autocall is off. This will guarantee that
1774 introspect objects when autocall is off. This will guarantee that
1775 having an input line of the form 'x.y', where access to attribute
1775 having an input line of the form 'x.y', where access to attribute
1776 'y' has side effects, doesn't trigger the side effect TWICE. It
1776 'y' has side effects, doesn't trigger the side effect TWICE. It
1777 is important to note that, with autocall on, these side effects
1777 is important to note that, with autocall on, these side effects
1778 can still happen.
1778 can still happen.
1779 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1779 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1780 trio. IPython offers these three kinds of special calls which are
1780 trio. IPython offers these three kinds of special calls which are
1781 not python code, and it's a good thing to have their call method
1781 not python code, and it's a good thing to have their call method
1782 be accessible as pure python functions (not just special syntax at
1782 be accessible as pure python functions (not just special syntax at
1783 the command line). It gives us a better internal implementation
1783 the command line). It gives us a better internal implementation
1784 structure, as well as exposing these for user scripting more
1784 structure, as well as exposing these for user scripting more
1785 cleanly.
1785 cleanly.
1786
1786
1787 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1787 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1788 file. Now that they'll be more likely to be used with the
1788 file. Now that they'll be more likely to be used with the
1789 persistance system (%store), I want to make sure their module path
1789 persistance system (%store), I want to make sure their module path
1790 doesn't change in the future, so that we don't break things for
1790 doesn't change in the future, so that we don't break things for
1791 users' persisted data.
1791 users' persisted data.
1792
1792
1793 * IPython/iplib.py (autoindent_update): move indentation
1793 * IPython/iplib.py (autoindent_update): move indentation
1794 management into the _text_ processing loop, not the keyboard
1794 management into the _text_ processing loop, not the keyboard
1795 interactive one. This is necessary to correctly process non-typed
1795 interactive one. This is necessary to correctly process non-typed
1796 multiline input (such as macros).
1796 multiline input (such as macros).
1797
1797
1798 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1798 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1799 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1799 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1800 which was producing problems in the resulting manual.
1800 which was producing problems in the resulting manual.
1801 (magic_whos): improve reporting of instances (show their class,
1801 (magic_whos): improve reporting of instances (show their class,
1802 instead of simply printing 'instance' which isn't terribly
1802 instead of simply printing 'instance' which isn't terribly
1803 informative).
1803 informative).
1804
1804
1805 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1805 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1806 (minor mods) to support network shares under win32.
1806 (minor mods) to support network shares under win32.
1807
1807
1808 * IPython/winconsole.py (get_console_size): add new winconsole
1808 * IPython/winconsole.py (get_console_size): add new winconsole
1809 module and fixes to page_dumb() to improve its behavior under
1809 module and fixes to page_dumb() to improve its behavior under
1810 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1810 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1811
1811
1812 * IPython/Magic.py (Macro): simplified Macro class to just
1812 * IPython/Magic.py (Macro): simplified Macro class to just
1813 subclass list. We've had only 2.2 compatibility for a very long
1813 subclass list. We've had only 2.2 compatibility for a very long
1814 time, yet I was still avoiding subclassing the builtin types. No
1814 time, yet I was still avoiding subclassing the builtin types. No
1815 more (I'm also starting to use properties, though I won't shift to
1815 more (I'm also starting to use properties, though I won't shift to
1816 2.3-specific features quite yet).
1816 2.3-specific features quite yet).
1817 (magic_store): added Ville's patch for lightweight variable
1817 (magic_store): added Ville's patch for lightweight variable
1818 persistence, after a request on the user list by Matt Wilkie
1818 persistence, after a request on the user list by Matt Wilkie
1819 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1819 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1820 details.
1820 details.
1821
1821
1822 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1822 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1823 changed the default logfile name from 'ipython.log' to
1823 changed the default logfile name from 'ipython.log' to
1824 'ipython_log.py'. These logs are real python files, and now that
1824 'ipython_log.py'. These logs are real python files, and now that
1825 we have much better multiline support, people are more likely to
1825 we have much better multiline support, people are more likely to
1826 want to use them as such. Might as well name them correctly.
1826 want to use them as such. Might as well name them correctly.
1827
1827
1828 * IPython/Magic.py: substantial cleanup. While we can't stop
1828 * IPython/Magic.py: substantial cleanup. While we can't stop
1829 using magics as mixins, due to the existing customizations 'out
1829 using magics as mixins, due to the existing customizations 'out
1830 there' which rely on the mixin naming conventions, at least I
1830 there' which rely on the mixin naming conventions, at least I
1831 cleaned out all cross-class name usage. So once we are OK with
1831 cleaned out all cross-class name usage. So once we are OK with
1832 breaking compatibility, the two systems can be separated.
1832 breaking compatibility, the two systems can be separated.
1833
1833
1834 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1834 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1835 anymore, and the class is a fair bit less hideous as well. New
1835 anymore, and the class is a fair bit less hideous as well. New
1836 features were also introduced: timestamping of input, and logging
1836 features were also introduced: timestamping of input, and logging
1837 of output results. These are user-visible with the -t and -o
1837 of output results. These are user-visible with the -t and -o
1838 options to %logstart. Closes
1838 options to %logstart. Closes
1839 http://www.scipy.net/roundup/ipython/issue11 and a request by
1839 http://www.scipy.net/roundup/ipython/issue11 and a request by
1840 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1840 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1841
1841
1842 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1842 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1843
1843
1844 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1844 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1845 better handle backslashes in paths. See the thread 'More Windows
1845 better handle backslashes in paths. See the thread 'More Windows
1846 questions part 2 - \/ characters revisited' on the iypthon user
1846 questions part 2 - \/ characters revisited' on the iypthon user
1847 list:
1847 list:
1848 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1848 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1849
1849
1850 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1850 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1851
1851
1852 (InteractiveShell.__init__): change threaded shells to not use the
1852 (InteractiveShell.__init__): change threaded shells to not use the
1853 ipython crash handler. This was causing more problems than not,
1853 ipython crash handler. This was causing more problems than not,
1854 as exceptions in the main thread (GUI code, typically) would
1854 as exceptions in the main thread (GUI code, typically) would
1855 always show up as a 'crash', when they really weren't.
1855 always show up as a 'crash', when they really weren't.
1856
1856
1857 The colors and exception mode commands (%colors/%xmode) have been
1857 The colors and exception mode commands (%colors/%xmode) have been
1858 synchronized to also take this into account, so users can get
1858 synchronized to also take this into account, so users can get
1859 verbose exceptions for their threaded code as well. I also added
1859 verbose exceptions for their threaded code as well. I also added
1860 support for activating pdb inside this exception handler as well,
1860 support for activating pdb inside this exception handler as well,
1861 so now GUI authors can use IPython's enhanced pdb at runtime.
1861 so now GUI authors can use IPython's enhanced pdb at runtime.
1862
1862
1863 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1863 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1864 true by default, and add it to the shipped ipythonrc file. Since
1864 true by default, and add it to the shipped ipythonrc file. Since
1865 this asks the user before proceeding, I think it's OK to make it
1865 this asks the user before proceeding, I think it's OK to make it
1866 true by default.
1866 true by default.
1867
1867
1868 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1868 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1869 of the previous special-casing of input in the eval loop. I think
1869 of the previous special-casing of input in the eval loop. I think
1870 this is cleaner, as they really are commands and shouldn't have
1870 this is cleaner, as they really are commands and shouldn't have
1871 a special role in the middle of the core code.
1871 a special role in the middle of the core code.
1872
1872
1873 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1873 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1874
1874
1875 * IPython/iplib.py (edit_syntax_error): added support for
1875 * IPython/iplib.py (edit_syntax_error): added support for
1876 automatically reopening the editor if the file had a syntax error
1876 automatically reopening the editor if the file had a syntax error
1877 in it. Thanks to scottt who provided the patch at:
1877 in it. Thanks to scottt who provided the patch at:
1878 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1878 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1879 version committed).
1879 version committed).
1880
1880
1881 * IPython/iplib.py (handle_normal): add suport for multi-line
1881 * IPython/iplib.py (handle_normal): add suport for multi-line
1882 input with emtpy lines. This fixes
1882 input with emtpy lines. This fixes
1883 http://www.scipy.net/roundup/ipython/issue43 and a similar
1883 http://www.scipy.net/roundup/ipython/issue43 and a similar
1884 discussion on the user list.
1884 discussion on the user list.
1885
1885
1886 WARNING: a behavior change is necessarily introduced to support
1886 WARNING: a behavior change is necessarily introduced to support
1887 blank lines: now a single blank line with whitespace does NOT
1887 blank lines: now a single blank line with whitespace does NOT
1888 break the input loop, which means that when autoindent is on, by
1888 break the input loop, which means that when autoindent is on, by
1889 default hitting return on the next (indented) line does NOT exit.
1889 default hitting return on the next (indented) line does NOT exit.
1890
1890
1891 Instead, to exit a multiline input you can either have:
1891 Instead, to exit a multiline input you can either have:
1892
1892
1893 - TWO whitespace lines (just hit return again), or
1893 - TWO whitespace lines (just hit return again), or
1894 - a single whitespace line of a different length than provided
1894 - a single whitespace line of a different length than provided
1895 by the autoindent (add or remove a space).
1895 by the autoindent (add or remove a space).
1896
1896
1897 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1897 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1898 module to better organize all readline-related functionality.
1898 module to better organize all readline-related functionality.
1899 I've deleted FlexCompleter and put all completion clases here.
1899 I've deleted FlexCompleter and put all completion clases here.
1900
1900
1901 * IPython/iplib.py (raw_input): improve indentation management.
1901 * IPython/iplib.py (raw_input): improve indentation management.
1902 It is now possible to paste indented code with autoindent on, and
1902 It is now possible to paste indented code with autoindent on, and
1903 the code is interpreted correctly (though it still looks bad on
1903 the code is interpreted correctly (though it still looks bad on
1904 screen, due to the line-oriented nature of ipython).
1904 screen, due to the line-oriented nature of ipython).
1905 (MagicCompleter.complete): change behavior so that a TAB key on an
1905 (MagicCompleter.complete): change behavior so that a TAB key on an
1906 otherwise empty line actually inserts a tab, instead of completing
1906 otherwise empty line actually inserts a tab, instead of completing
1907 on the entire global namespace. This makes it easier to use the
1907 on the entire global namespace. This makes it easier to use the
1908 TAB key for indentation. After a request by Hans Meine
1908 TAB key for indentation. After a request by Hans Meine
1909 <hans_meine-AT-gmx.net>
1909 <hans_meine-AT-gmx.net>
1910 (_prefilter): add support so that typing plain 'exit' or 'quit'
1910 (_prefilter): add support so that typing plain 'exit' or 'quit'
1911 does a sensible thing. Originally I tried to deviate as little as
1911 does a sensible thing. Originally I tried to deviate as little as
1912 possible from the default python behavior, but even that one may
1912 possible from the default python behavior, but even that one may
1913 change in this direction (thread on python-dev to that effect).
1913 change in this direction (thread on python-dev to that effect).
1914 Regardless, ipython should do the right thing even if CPython's
1914 Regardless, ipython should do the right thing even if CPython's
1915 '>>>' prompt doesn't.
1915 '>>>' prompt doesn't.
1916 (InteractiveShell): removed subclassing code.InteractiveConsole
1916 (InteractiveShell): removed subclassing code.InteractiveConsole
1917 class. By now we'd overridden just about all of its methods: I've
1917 class. By now we'd overridden just about all of its methods: I've
1918 copied the remaining two over, and now ipython is a standalone
1918 copied the remaining two over, and now ipython is a standalone
1919 class. This will provide a clearer picture for the chainsaw
1919 class. This will provide a clearer picture for the chainsaw
1920 branch refactoring.
1920 branch refactoring.
1921
1921
1922 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
1922 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
1923
1923
1924 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
1924 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
1925 failures for objects which break when dir() is called on them.
1925 failures for objects which break when dir() is called on them.
1926
1926
1927 * IPython/FlexCompleter.py (Completer.__init__): Added support for
1927 * IPython/FlexCompleter.py (Completer.__init__): Added support for
1928 distinct local and global namespaces in the completer API. This
1928 distinct local and global namespaces in the completer API. This
1929 change allows us to properly handle completion with distinct
1929 change allows us to properly handle completion with distinct
1930 scopes, including in embedded instances (this had never really
1930 scopes, including in embedded instances (this had never really
1931 worked correctly).
1931 worked correctly).
1932
1932
1933 Note: this introduces a change in the constructor for
1933 Note: this introduces a change in the constructor for
1934 MagicCompleter, as a new global_namespace parameter is now the
1934 MagicCompleter, as a new global_namespace parameter is now the
1935 second argument (the others were bumped one position).
1935 second argument (the others were bumped one position).
1936
1936
1937 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
1937 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
1938
1938
1939 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1939 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1940 embedded instances (which can be done now thanks to Vivian's
1940 embedded instances (which can be done now thanks to Vivian's
1941 frame-handling fixes for pdb).
1941 frame-handling fixes for pdb).
1942 (InteractiveShell.__init__): Fix namespace handling problem in
1942 (InteractiveShell.__init__): Fix namespace handling problem in
1943 embedded instances. We were overwriting __main__ unconditionally,
1943 embedded instances. We were overwriting __main__ unconditionally,
1944 and this should only be done for 'full' (non-embedded) IPython;
1944 and this should only be done for 'full' (non-embedded) IPython;
1945 embedded instances must respect the caller's __main__. Thanks to
1945 embedded instances must respect the caller's __main__. Thanks to
1946 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
1946 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
1947
1947
1948 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
1948 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
1949
1949
1950 * setup.py: added download_url to setup(). This registers the
1950 * setup.py: added download_url to setup(). This registers the
1951 download address at PyPI, which is not only useful to humans
1951 download address at PyPI, which is not only useful to humans
1952 browsing the site, but is also picked up by setuptools (the Eggs
1952 browsing the site, but is also picked up by setuptools (the Eggs
1953 machinery). Thanks to Ville and R. Kern for the info/discussion
1953 machinery). Thanks to Ville and R. Kern for the info/discussion
1954 on this.
1954 on this.
1955
1955
1956 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
1956 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
1957
1957
1958 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
1958 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
1959 This brings a lot of nice functionality to the pdb mode, which now
1959 This brings a lot of nice functionality to the pdb mode, which now
1960 has tab-completion, syntax highlighting, and better stack handling
1960 has tab-completion, syntax highlighting, and better stack handling
1961 than before. Many thanks to Vivian De Smedt
1961 than before. Many thanks to Vivian De Smedt
1962 <vivian-AT-vdesmedt.com> for the original patches.
1962 <vivian-AT-vdesmedt.com> for the original patches.
1963
1963
1964 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
1964 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
1965
1965
1966 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
1966 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
1967 sequence to consistently accept the banner argument. The
1967 sequence to consistently accept the banner argument. The
1968 inconsistency was tripping SAGE, thanks to Gary Zablackis
1968 inconsistency was tripping SAGE, thanks to Gary Zablackis
1969 <gzabl-AT-yahoo.com> for the report.
1969 <gzabl-AT-yahoo.com> for the report.
1970
1970
1971 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1971 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1972
1972
1973 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1973 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1974 Fix bug where a naked 'alias' call in the ipythonrc file would
1974 Fix bug where a naked 'alias' call in the ipythonrc file would
1975 cause a crash. Bug reported by Jorgen Stenarson.
1975 cause a crash. Bug reported by Jorgen Stenarson.
1976
1976
1977 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1977 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1978
1978
1979 * IPython/ipmaker.py (make_IPython): cleanups which should improve
1979 * IPython/ipmaker.py (make_IPython): cleanups which should improve
1980 startup time.
1980 startup time.
1981
1981
1982 * IPython/iplib.py (runcode): my globals 'fix' for embedded
1982 * IPython/iplib.py (runcode): my globals 'fix' for embedded
1983 instances had introduced a bug with globals in normal code. Now
1983 instances had introduced a bug with globals in normal code. Now
1984 it's working in all cases.
1984 it's working in all cases.
1985
1985
1986 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
1986 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
1987 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
1987 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
1988 has been introduced to set the default case sensitivity of the
1988 has been introduced to set the default case sensitivity of the
1989 searches. Users can still select either mode at runtime on a
1989 searches. Users can still select either mode at runtime on a
1990 per-search basis.
1990 per-search basis.
1991
1991
1992 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
1992 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
1993
1993
1994 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
1994 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
1995 attributes in wildcard searches for subclasses. Modified version
1995 attributes in wildcard searches for subclasses. Modified version
1996 of a patch by Jorgen.
1996 of a patch by Jorgen.
1997
1997
1998 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
1998 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
1999
1999
2000 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2000 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2001 embedded instances. I added a user_global_ns attribute to the
2001 embedded instances. I added a user_global_ns attribute to the
2002 InteractiveShell class to handle this.
2002 InteractiveShell class to handle this.
2003
2003
2004 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2004 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2005
2005
2006 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2006 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2007 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2007 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2008 (reported under win32, but may happen also in other platforms).
2008 (reported under win32, but may happen also in other platforms).
2009 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2009 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2010
2010
2011 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2011 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2012
2012
2013 * IPython/Magic.py (magic_psearch): new support for wildcard
2013 * IPython/Magic.py (magic_psearch): new support for wildcard
2014 patterns. Now, typing ?a*b will list all names which begin with a
2014 patterns. Now, typing ?a*b will list all names which begin with a
2015 and end in b, for example. The %psearch magic has full
2015 and end in b, for example. The %psearch magic has full
2016 docstrings. Many thanks to JΓΆrgen Stenarson
2016 docstrings. Many thanks to JΓΆrgen Stenarson
2017 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2017 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2018 implementing this functionality.
2018 implementing this functionality.
2019
2019
2020 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2020 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2021
2021
2022 * Manual: fixed long-standing annoyance of double-dashes (as in
2022 * Manual: fixed long-standing annoyance of double-dashes (as in
2023 --prefix=~, for example) being stripped in the HTML version. This
2023 --prefix=~, for example) being stripped in the HTML version. This
2024 is a latex2html bug, but a workaround was provided. Many thanks
2024 is a latex2html bug, but a workaround was provided. Many thanks
2025 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2025 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2026 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2026 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2027 rolling. This seemingly small issue had tripped a number of users
2027 rolling. This seemingly small issue had tripped a number of users
2028 when first installing, so I'm glad to see it gone.
2028 when first installing, so I'm glad to see it gone.
2029
2029
2030 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2030 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2031
2031
2032 * IPython/Extensions/numeric_formats.py: fix missing import,
2032 * IPython/Extensions/numeric_formats.py: fix missing import,
2033 reported by Stephen Walton.
2033 reported by Stephen Walton.
2034
2034
2035 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2035 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2036
2036
2037 * IPython/demo.py: finish demo module, fully documented now.
2037 * IPython/demo.py: finish demo module, fully documented now.
2038
2038
2039 * IPython/genutils.py (file_read): simple little utility to read a
2039 * IPython/genutils.py (file_read): simple little utility to read a
2040 file and ensure it's closed afterwards.
2040 file and ensure it's closed afterwards.
2041
2041
2042 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2042 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2043
2043
2044 * IPython/demo.py (Demo.__init__): added support for individually
2044 * IPython/demo.py (Demo.__init__): added support for individually
2045 tagging blocks for automatic execution.
2045 tagging blocks for automatic execution.
2046
2046
2047 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2047 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2048 syntax-highlighted python sources, requested by John.
2048 syntax-highlighted python sources, requested by John.
2049
2049
2050 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2050 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2051
2051
2052 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2052 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2053 finishing.
2053 finishing.
2054
2054
2055 * IPython/genutils.py (shlex_split): moved from Magic to here,
2055 * IPython/genutils.py (shlex_split): moved from Magic to here,
2056 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2056 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2057
2057
2058 * IPython/demo.py (Demo.__init__): added support for silent
2058 * IPython/demo.py (Demo.__init__): added support for silent
2059 blocks, improved marks as regexps, docstrings written.
2059 blocks, improved marks as regexps, docstrings written.
2060 (Demo.__init__): better docstring, added support for sys.argv.
2060 (Demo.__init__): better docstring, added support for sys.argv.
2061
2061
2062 * IPython/genutils.py (marquee): little utility used by the demo
2062 * IPython/genutils.py (marquee): little utility used by the demo
2063 code, handy in general.
2063 code, handy in general.
2064
2064
2065 * IPython/demo.py (Demo.__init__): new class for interactive
2065 * IPython/demo.py (Demo.__init__): new class for interactive
2066 demos. Not documented yet, I just wrote it in a hurry for
2066 demos. Not documented yet, I just wrote it in a hurry for
2067 scipy'05. Will docstring later.
2067 scipy'05. Will docstring later.
2068
2068
2069 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2069 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2070
2070
2071 * IPython/Shell.py (sigint_handler): Drastic simplification which
2071 * IPython/Shell.py (sigint_handler): Drastic simplification which
2072 also seems to make Ctrl-C work correctly across threads! This is
2072 also seems to make Ctrl-C work correctly across threads! This is
2073 so simple, that I can't beleive I'd missed it before. Needs more
2073 so simple, that I can't beleive I'd missed it before. Needs more
2074 testing, though.
2074 testing, though.
2075 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2075 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2076 like this before...
2076 like this before...
2077
2077
2078 * IPython/genutils.py (get_home_dir): add protection against
2078 * IPython/genutils.py (get_home_dir): add protection against
2079 non-dirs in win32 registry.
2079 non-dirs in win32 registry.
2080
2080
2081 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2081 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2082 bug where dict was mutated while iterating (pysh crash).
2082 bug where dict was mutated while iterating (pysh crash).
2083
2083
2084 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2084 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2085
2085
2086 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2086 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2087 spurious newlines added by this routine. After a report by
2087 spurious newlines added by this routine. After a report by
2088 F. Mantegazza.
2088 F. Mantegazza.
2089
2089
2090 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2090 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2091
2091
2092 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2092 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2093 calls. These were a leftover from the GTK 1.x days, and can cause
2093 calls. These were a leftover from the GTK 1.x days, and can cause
2094 problems in certain cases (after a report by John Hunter).
2094 problems in certain cases (after a report by John Hunter).
2095
2095
2096 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2096 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2097 os.getcwd() fails at init time. Thanks to patch from David Remahl
2097 os.getcwd() fails at init time. Thanks to patch from David Remahl
2098 <chmod007-AT-mac.com>.
2098 <chmod007-AT-mac.com>.
2099 (InteractiveShell.__init__): prevent certain special magics from
2099 (InteractiveShell.__init__): prevent certain special magics from
2100 being shadowed by aliases. Closes
2100 being shadowed by aliases. Closes
2101 http://www.scipy.net/roundup/ipython/issue41.
2101 http://www.scipy.net/roundup/ipython/issue41.
2102
2102
2103 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2103 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2104
2104
2105 * IPython/iplib.py (InteractiveShell.complete): Added new
2105 * IPython/iplib.py (InteractiveShell.complete): Added new
2106 top-level completion method to expose the completion mechanism
2106 top-level completion method to expose the completion mechanism
2107 beyond readline-based environments.
2107 beyond readline-based environments.
2108
2108
2109 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2109 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2110
2110
2111 * tools/ipsvnc (svnversion): fix svnversion capture.
2111 * tools/ipsvnc (svnversion): fix svnversion capture.
2112
2112
2113 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2113 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2114 attribute to self, which was missing. Before, it was set by a
2114 attribute to self, which was missing. Before, it was set by a
2115 routine which in certain cases wasn't being called, so the
2115 routine which in certain cases wasn't being called, so the
2116 instance could end up missing the attribute. This caused a crash.
2116 instance could end up missing the attribute. This caused a crash.
2117 Closes http://www.scipy.net/roundup/ipython/issue40.
2117 Closes http://www.scipy.net/roundup/ipython/issue40.
2118
2118
2119 2005-08-16 Fernando Perez <fperez@colorado.edu>
2119 2005-08-16 Fernando Perez <fperez@colorado.edu>
2120
2120
2121 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2121 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2122 contains non-string attribute. Closes
2122 contains non-string attribute. Closes
2123 http://www.scipy.net/roundup/ipython/issue38.
2123 http://www.scipy.net/roundup/ipython/issue38.
2124
2124
2125 2005-08-14 Fernando Perez <fperez@colorado.edu>
2125 2005-08-14 Fernando Perez <fperez@colorado.edu>
2126
2126
2127 * tools/ipsvnc: Minor improvements, to add changeset info.
2127 * tools/ipsvnc: Minor improvements, to add changeset info.
2128
2128
2129 2005-08-12 Fernando Perez <fperez@colorado.edu>
2129 2005-08-12 Fernando Perez <fperez@colorado.edu>
2130
2130
2131 * IPython/iplib.py (runsource): remove self.code_to_run_src
2131 * IPython/iplib.py (runsource): remove self.code_to_run_src
2132 attribute. I realized this is nothing more than
2132 attribute. I realized this is nothing more than
2133 '\n'.join(self.buffer), and having the same data in two different
2133 '\n'.join(self.buffer), and having the same data in two different
2134 places is just asking for synchronization bugs. This may impact
2134 places is just asking for synchronization bugs. This may impact
2135 people who have custom exception handlers, so I need to warn
2135 people who have custom exception handlers, so I need to warn
2136 ipython-dev about it (F. Mantegazza may use them).
2136 ipython-dev about it (F. Mantegazza may use them).
2137
2137
2138 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2138 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2139
2139
2140 * IPython/genutils.py: fix 2.2 compatibility (generators)
2140 * IPython/genutils.py: fix 2.2 compatibility (generators)
2141
2141
2142 2005-07-18 Fernando Perez <fperez@colorado.edu>
2142 2005-07-18 Fernando Perez <fperez@colorado.edu>
2143
2143
2144 * IPython/genutils.py (get_home_dir): fix to help users with
2144 * IPython/genutils.py (get_home_dir): fix to help users with
2145 invalid $HOME under win32.
2145 invalid $HOME under win32.
2146
2146
2147 2005-07-17 Fernando Perez <fperez@colorado.edu>
2147 2005-07-17 Fernando Perez <fperez@colorado.edu>
2148
2148
2149 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2149 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2150 some old hacks and clean up a bit other routines; code should be
2150 some old hacks and clean up a bit other routines; code should be
2151 simpler and a bit faster.
2151 simpler and a bit faster.
2152
2152
2153 * IPython/iplib.py (interact): removed some last-resort attempts
2153 * IPython/iplib.py (interact): removed some last-resort attempts
2154 to survive broken stdout/stderr. That code was only making it
2154 to survive broken stdout/stderr. That code was only making it
2155 harder to abstract out the i/o (necessary for gui integration),
2155 harder to abstract out the i/o (necessary for gui integration),
2156 and the crashes it could prevent were extremely rare in practice
2156 and the crashes it could prevent were extremely rare in practice
2157 (besides being fully user-induced in a pretty violent manner).
2157 (besides being fully user-induced in a pretty violent manner).
2158
2158
2159 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2159 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2160 Nothing major yet, but the code is simpler to read; this should
2160 Nothing major yet, but the code is simpler to read; this should
2161 make it easier to do more serious modifications in the future.
2161 make it easier to do more serious modifications in the future.
2162
2162
2163 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2163 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2164 which broke in .15 (thanks to a report by Ville).
2164 which broke in .15 (thanks to a report by Ville).
2165
2165
2166 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2166 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2167 be quite correct, I know next to nothing about unicode). This
2167 be quite correct, I know next to nothing about unicode). This
2168 will allow unicode strings to be used in prompts, amongst other
2168 will allow unicode strings to be used in prompts, amongst other
2169 cases. It also will prevent ipython from crashing when unicode
2169 cases. It also will prevent ipython from crashing when unicode
2170 shows up unexpectedly in many places. If ascii encoding fails, we
2170 shows up unexpectedly in many places. If ascii encoding fails, we
2171 assume utf_8. Currently the encoding is not a user-visible
2171 assume utf_8. Currently the encoding is not a user-visible
2172 setting, though it could be made so if there is demand for it.
2172 setting, though it could be made so if there is demand for it.
2173
2173
2174 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2174 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2175
2175
2176 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2176 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2177
2177
2178 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2178 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2179
2179
2180 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2180 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2181 code can work transparently for 2.2/2.3.
2181 code can work transparently for 2.2/2.3.
2182
2182
2183 2005-07-16 Fernando Perez <fperez@colorado.edu>
2183 2005-07-16 Fernando Perez <fperez@colorado.edu>
2184
2184
2185 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2185 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2186 out of the color scheme table used for coloring exception
2186 out of the color scheme table used for coloring exception
2187 tracebacks. This allows user code to add new schemes at runtime.
2187 tracebacks. This allows user code to add new schemes at runtime.
2188 This is a minimally modified version of the patch at
2188 This is a minimally modified version of the patch at
2189 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2189 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2190 for the contribution.
2190 for the contribution.
2191
2191
2192 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2192 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2193 slightly modified version of the patch in
2193 slightly modified version of the patch in
2194 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2194 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2195 to remove the previous try/except solution (which was costlier).
2195 to remove the previous try/except solution (which was costlier).
2196 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2196 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2197
2197
2198 2005-06-08 Fernando Perez <fperez@colorado.edu>
2198 2005-06-08 Fernando Perez <fperez@colorado.edu>
2199
2199
2200 * IPython/iplib.py (write/write_err): Add methods to abstract all
2200 * IPython/iplib.py (write/write_err): Add methods to abstract all
2201 I/O a bit more.
2201 I/O a bit more.
2202
2202
2203 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2203 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2204 warning, reported by Aric Hagberg, fix by JD Hunter.
2204 warning, reported by Aric Hagberg, fix by JD Hunter.
2205
2205
2206 2005-06-02 *** Released version 0.6.15
2206 2005-06-02 *** Released version 0.6.15
2207
2207
2208 2005-06-01 Fernando Perez <fperez@colorado.edu>
2208 2005-06-01 Fernando Perez <fperez@colorado.edu>
2209
2209
2210 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2210 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2211 tab-completion of filenames within open-quoted strings. Note that
2211 tab-completion of filenames within open-quoted strings. Note that
2212 this requires that in ~/.ipython/ipythonrc, users change the
2212 this requires that in ~/.ipython/ipythonrc, users change the
2213 readline delimiters configuration to read:
2213 readline delimiters configuration to read:
2214
2214
2215 readline_remove_delims -/~
2215 readline_remove_delims -/~
2216
2216
2217
2217
2218 2005-05-31 *** Released version 0.6.14
2218 2005-05-31 *** Released version 0.6.14
2219
2219
2220 2005-05-29 Fernando Perez <fperez@colorado.edu>
2220 2005-05-29 Fernando Perez <fperez@colorado.edu>
2221
2221
2222 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2222 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2223 with files not on the filesystem. Reported by Eliyahu Sandler
2223 with files not on the filesystem. Reported by Eliyahu Sandler
2224 <eli@gondolin.net>
2224 <eli@gondolin.net>
2225
2225
2226 2005-05-22 Fernando Perez <fperez@colorado.edu>
2226 2005-05-22 Fernando Perez <fperez@colorado.edu>
2227
2227
2228 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2228 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2229 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2229 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2230
2230
2231 2005-05-19 Fernando Perez <fperez@colorado.edu>
2231 2005-05-19 Fernando Perez <fperez@colorado.edu>
2232
2232
2233 * IPython/iplib.py (safe_execfile): close a file which could be
2233 * IPython/iplib.py (safe_execfile): close a file which could be
2234 left open (causing problems in win32, which locks open files).
2234 left open (causing problems in win32, which locks open files).
2235 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2235 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2236
2236
2237 2005-05-18 Fernando Perez <fperez@colorado.edu>
2237 2005-05-18 Fernando Perez <fperez@colorado.edu>
2238
2238
2239 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2239 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2240 keyword arguments correctly to safe_execfile().
2240 keyword arguments correctly to safe_execfile().
2241
2241
2242 2005-05-13 Fernando Perez <fperez@colorado.edu>
2242 2005-05-13 Fernando Perez <fperez@colorado.edu>
2243
2243
2244 * ipython.1: Added info about Qt to manpage, and threads warning
2244 * ipython.1: Added info about Qt to manpage, and threads warning
2245 to usage page (invoked with --help).
2245 to usage page (invoked with --help).
2246
2246
2247 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2247 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2248 new matcher (it goes at the end of the priority list) to do
2248 new matcher (it goes at the end of the priority list) to do
2249 tab-completion on named function arguments. Submitted by George
2249 tab-completion on named function arguments. Submitted by George
2250 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2250 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2251 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2251 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2252 for more details.
2252 for more details.
2253
2253
2254 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2254 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2255 SystemExit exceptions in the script being run. Thanks to a report
2255 SystemExit exceptions in the script being run. Thanks to a report
2256 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2256 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2257 producing very annoying behavior when running unit tests.
2257 producing very annoying behavior when running unit tests.
2258
2258
2259 2005-05-12 Fernando Perez <fperez@colorado.edu>
2259 2005-05-12 Fernando Perez <fperez@colorado.edu>
2260
2260
2261 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2261 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2262 which I'd broken (again) due to a changed regexp. In the process,
2262 which I'd broken (again) due to a changed regexp. In the process,
2263 added ';' as an escape to auto-quote the whole line without
2263 added ';' as an escape to auto-quote the whole line without
2264 splitting its arguments. Thanks to a report by Jerry McRae
2264 splitting its arguments. Thanks to a report by Jerry McRae
2265 <qrs0xyc02-AT-sneakemail.com>.
2265 <qrs0xyc02-AT-sneakemail.com>.
2266
2266
2267 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2267 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2268 possible crashes caused by a TokenError. Reported by Ed Schofield
2268 possible crashes caused by a TokenError. Reported by Ed Schofield
2269 <schofield-AT-ftw.at>.
2269 <schofield-AT-ftw.at>.
2270
2270
2271 2005-05-06 Fernando Perez <fperez@colorado.edu>
2271 2005-05-06 Fernando Perez <fperez@colorado.edu>
2272
2272
2273 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2273 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2274
2274
2275 2005-04-29 Fernando Perez <fperez@colorado.edu>
2275 2005-04-29 Fernando Perez <fperez@colorado.edu>
2276
2276
2277 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2277 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2278 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2278 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2279 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2279 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2280 which provides support for Qt interactive usage (similar to the
2280 which provides support for Qt interactive usage (similar to the
2281 existing one for WX and GTK). This had been often requested.
2281 existing one for WX and GTK). This had been often requested.
2282
2282
2283 2005-04-14 *** Released version 0.6.13
2283 2005-04-14 *** Released version 0.6.13
2284
2284
2285 2005-04-08 Fernando Perez <fperez@colorado.edu>
2285 2005-04-08 Fernando Perez <fperez@colorado.edu>
2286
2286
2287 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2287 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2288 from _ofind, which gets called on almost every input line. Now,
2288 from _ofind, which gets called on almost every input line. Now,
2289 we only try to get docstrings if they are actually going to be
2289 we only try to get docstrings if they are actually going to be
2290 used (the overhead of fetching unnecessary docstrings can be
2290 used (the overhead of fetching unnecessary docstrings can be
2291 noticeable for certain objects, such as Pyro proxies).
2291 noticeable for certain objects, such as Pyro proxies).
2292
2292
2293 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2293 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2294 for completers. For some reason I had been passing them the state
2294 for completers. For some reason I had been passing them the state
2295 variable, which completers never actually need, and was in
2295 variable, which completers never actually need, and was in
2296 conflict with the rlcompleter API. Custom completers ONLY need to
2296 conflict with the rlcompleter API. Custom completers ONLY need to
2297 take the text parameter.
2297 take the text parameter.
2298
2298
2299 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2299 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2300 work correctly in pysh. I've also moved all the logic which used
2300 work correctly in pysh. I've also moved all the logic which used
2301 to be in pysh.py here, which will prevent problems with future
2301 to be in pysh.py here, which will prevent problems with future
2302 upgrades. However, this time I must warn users to update their
2302 upgrades. However, this time I must warn users to update their
2303 pysh profile to include the line
2303 pysh profile to include the line
2304
2304
2305 import_all IPython.Extensions.InterpreterExec
2305 import_all IPython.Extensions.InterpreterExec
2306
2306
2307 because otherwise things won't work for them. They MUST also
2307 because otherwise things won't work for them. They MUST also
2308 delete pysh.py and the line
2308 delete pysh.py and the line
2309
2309
2310 execfile pysh.py
2310 execfile pysh.py
2311
2311
2312 from their ipythonrc-pysh.
2312 from their ipythonrc-pysh.
2313
2313
2314 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2314 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2315 robust in the face of objects whose dir() returns non-strings
2315 robust in the face of objects whose dir() returns non-strings
2316 (which it shouldn't, but some broken libs like ITK do). Thanks to
2316 (which it shouldn't, but some broken libs like ITK do). Thanks to
2317 a patch by John Hunter (implemented differently, though). Also
2317 a patch by John Hunter (implemented differently, though). Also
2318 minor improvements by using .extend instead of + on lists.
2318 minor improvements by using .extend instead of + on lists.
2319
2319
2320 * pysh.py:
2320 * pysh.py:
2321
2321
2322 2005-04-06 Fernando Perez <fperez@colorado.edu>
2322 2005-04-06 Fernando Perez <fperez@colorado.edu>
2323
2323
2324 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2324 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2325 by default, so that all users benefit from it. Those who don't
2325 by default, so that all users benefit from it. Those who don't
2326 want it can still turn it off.
2326 want it can still turn it off.
2327
2327
2328 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2328 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2329 config file, I'd forgotten about this, so users were getting it
2329 config file, I'd forgotten about this, so users were getting it
2330 off by default.
2330 off by default.
2331
2331
2332 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2332 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2333 consistency. Now magics can be called in multiline statements,
2333 consistency. Now magics can be called in multiline statements,
2334 and python variables can be expanded in magic calls via $var.
2334 and python variables can be expanded in magic calls via $var.
2335 This makes the magic system behave just like aliases or !system
2335 This makes the magic system behave just like aliases or !system
2336 calls.
2336 calls.
2337
2337
2338 2005-03-28 Fernando Perez <fperez@colorado.edu>
2338 2005-03-28 Fernando Perez <fperez@colorado.edu>
2339
2339
2340 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2340 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2341 expensive string additions for building command. Add support for
2341 expensive string additions for building command. Add support for
2342 trailing ';' when autocall is used.
2342 trailing ';' when autocall is used.
2343
2343
2344 2005-03-26 Fernando Perez <fperez@colorado.edu>
2344 2005-03-26 Fernando Perez <fperez@colorado.edu>
2345
2345
2346 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2346 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2347 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2347 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2348 ipython.el robust against prompts with any number of spaces
2348 ipython.el robust against prompts with any number of spaces
2349 (including 0) after the ':' character.
2349 (including 0) after the ':' character.
2350
2350
2351 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2351 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2352 continuation prompt, which misled users to think the line was
2352 continuation prompt, which misled users to think the line was
2353 already indented. Closes debian Bug#300847, reported to me by
2353 already indented. Closes debian Bug#300847, reported to me by
2354 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2354 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2355
2355
2356 2005-03-23 Fernando Perez <fperez@colorado.edu>
2356 2005-03-23 Fernando Perez <fperez@colorado.edu>
2357
2357
2358 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2358 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2359 properly aligned if they have embedded newlines.
2359 properly aligned if they have embedded newlines.
2360
2360
2361 * IPython/iplib.py (runlines): Add a public method to expose
2361 * IPython/iplib.py (runlines): Add a public method to expose
2362 IPython's code execution machinery, so that users can run strings
2362 IPython's code execution machinery, so that users can run strings
2363 as if they had been typed at the prompt interactively.
2363 as if they had been typed at the prompt interactively.
2364 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2364 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2365 methods which can call the system shell, but with python variable
2365 methods which can call the system shell, but with python variable
2366 expansion. The three such methods are: __IPYTHON__.system,
2366 expansion. The three such methods are: __IPYTHON__.system,
2367 .getoutput and .getoutputerror. These need to be documented in a
2367 .getoutput and .getoutputerror. These need to be documented in a
2368 'public API' section (to be written) of the manual.
2368 'public API' section (to be written) of the manual.
2369
2369
2370 2005-03-20 Fernando Perez <fperez@colorado.edu>
2370 2005-03-20 Fernando Perez <fperez@colorado.edu>
2371
2371
2372 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2372 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2373 for custom exception handling. This is quite powerful, and it
2373 for custom exception handling. This is quite powerful, and it
2374 allows for user-installable exception handlers which can trap
2374 allows for user-installable exception handlers which can trap
2375 custom exceptions at runtime and treat them separately from
2375 custom exceptions at runtime and treat them separately from
2376 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2376 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2377 Mantegazza <mantegazza-AT-ill.fr>.
2377 Mantegazza <mantegazza-AT-ill.fr>.
2378 (InteractiveShell.set_custom_completer): public API function to
2378 (InteractiveShell.set_custom_completer): public API function to
2379 add new completers at runtime.
2379 add new completers at runtime.
2380
2380
2381 2005-03-19 Fernando Perez <fperez@colorado.edu>
2381 2005-03-19 Fernando Perez <fperez@colorado.edu>
2382
2382
2383 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2383 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2384 allow objects which provide their docstrings via non-standard
2384 allow objects which provide their docstrings via non-standard
2385 mechanisms (like Pyro proxies) to still be inspected by ipython's
2385 mechanisms (like Pyro proxies) to still be inspected by ipython's
2386 ? system.
2386 ? system.
2387
2387
2388 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2388 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2389 automatic capture system. I tried quite hard to make it work
2389 automatic capture system. I tried quite hard to make it work
2390 reliably, and simply failed. I tried many combinations with the
2390 reliably, and simply failed. I tried many combinations with the
2391 subprocess module, but eventually nothing worked in all needed
2391 subprocess module, but eventually nothing worked in all needed
2392 cases (not blocking stdin for the child, duplicating stdout
2392 cases (not blocking stdin for the child, duplicating stdout
2393 without blocking, etc). The new %sc/%sx still do capture to these
2393 without blocking, etc). The new %sc/%sx still do capture to these
2394 magical list/string objects which make shell use much more
2394 magical list/string objects which make shell use much more
2395 conveninent, so not all is lost.
2395 conveninent, so not all is lost.
2396
2396
2397 XXX - FIX MANUAL for the change above!
2397 XXX - FIX MANUAL for the change above!
2398
2398
2399 (runsource): I copied code.py's runsource() into ipython to modify
2399 (runsource): I copied code.py's runsource() into ipython to modify
2400 it a bit. Now the code object and source to be executed are
2400 it a bit. Now the code object and source to be executed are
2401 stored in ipython. This makes this info accessible to third-party
2401 stored in ipython. This makes this info accessible to third-party
2402 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2402 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2403 Mantegazza <mantegazza-AT-ill.fr>.
2403 Mantegazza <mantegazza-AT-ill.fr>.
2404
2404
2405 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2405 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2406 history-search via readline (like C-p/C-n). I'd wanted this for a
2406 history-search via readline (like C-p/C-n). I'd wanted this for a
2407 long time, but only recently found out how to do it. For users
2407 long time, but only recently found out how to do it. For users
2408 who already have their ipythonrc files made and want this, just
2408 who already have their ipythonrc files made and want this, just
2409 add:
2409 add:
2410
2410
2411 readline_parse_and_bind "\e[A": history-search-backward
2411 readline_parse_and_bind "\e[A": history-search-backward
2412 readline_parse_and_bind "\e[B": history-search-forward
2412 readline_parse_and_bind "\e[B": history-search-forward
2413
2413
2414 2005-03-18 Fernando Perez <fperez@colorado.edu>
2414 2005-03-18 Fernando Perez <fperez@colorado.edu>
2415
2415
2416 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2416 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2417 LSString and SList classes which allow transparent conversions
2417 LSString and SList classes which allow transparent conversions
2418 between list mode and whitespace-separated string.
2418 between list mode and whitespace-separated string.
2419 (magic_r): Fix recursion problem in %r.
2419 (magic_r): Fix recursion problem in %r.
2420
2420
2421 * IPython/genutils.py (LSString): New class to be used for
2421 * IPython/genutils.py (LSString): New class to be used for
2422 automatic storage of the results of all alias/system calls in _o
2422 automatic storage of the results of all alias/system calls in _o
2423 and _e (stdout/err). These provide a .l/.list attribute which
2423 and _e (stdout/err). These provide a .l/.list attribute which
2424 does automatic splitting on newlines. This means that for most
2424 does automatic splitting on newlines. This means that for most
2425 uses, you'll never need to do capturing of output with %sc/%sx
2425 uses, you'll never need to do capturing of output with %sc/%sx
2426 anymore, since ipython keeps this always done for you. Note that
2426 anymore, since ipython keeps this always done for you. Note that
2427 only the LAST results are stored, the _o/e variables are
2427 only the LAST results are stored, the _o/e variables are
2428 overwritten on each call. If you need to save their contents
2428 overwritten on each call. If you need to save their contents
2429 further, simply bind them to any other name.
2429 further, simply bind them to any other name.
2430
2430
2431 2005-03-17 Fernando Perez <fperez@colorado.edu>
2431 2005-03-17 Fernando Perez <fperez@colorado.edu>
2432
2432
2433 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2433 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2434 prompt namespace handling.
2434 prompt namespace handling.
2435
2435
2436 2005-03-16 Fernando Perez <fperez@colorado.edu>
2436 2005-03-16 Fernando Perez <fperez@colorado.edu>
2437
2437
2438 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2438 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2439 classic prompts to be '>>> ' (final space was missing, and it
2439 classic prompts to be '>>> ' (final space was missing, and it
2440 trips the emacs python mode).
2440 trips the emacs python mode).
2441 (BasePrompt.__str__): Added safe support for dynamic prompt
2441 (BasePrompt.__str__): Added safe support for dynamic prompt
2442 strings. Now you can set your prompt string to be '$x', and the
2442 strings. Now you can set your prompt string to be '$x', and the
2443 value of x will be printed from your interactive namespace. The
2443 value of x will be printed from your interactive namespace. The
2444 interpolation syntax includes the full Itpl support, so
2444 interpolation syntax includes the full Itpl support, so
2445 ${foo()+x+bar()} is a valid prompt string now, and the function
2445 ${foo()+x+bar()} is a valid prompt string now, and the function
2446 calls will be made at runtime.
2446 calls will be made at runtime.
2447
2447
2448 2005-03-15 Fernando Perez <fperez@colorado.edu>
2448 2005-03-15 Fernando Perez <fperez@colorado.edu>
2449
2449
2450 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2450 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2451 avoid name clashes in pylab. %hist still works, it just forwards
2451 avoid name clashes in pylab. %hist still works, it just forwards
2452 the call to %history.
2452 the call to %history.
2453
2453
2454 2005-03-02 *** Released version 0.6.12
2454 2005-03-02 *** Released version 0.6.12
2455
2455
2456 2005-03-02 Fernando Perez <fperez@colorado.edu>
2456 2005-03-02 Fernando Perez <fperez@colorado.edu>
2457
2457
2458 * IPython/iplib.py (handle_magic): log magic calls properly as
2458 * IPython/iplib.py (handle_magic): log magic calls properly as
2459 ipmagic() function calls.
2459 ipmagic() function calls.
2460
2460
2461 * IPython/Magic.py (magic_time): Improved %time to support
2461 * IPython/Magic.py (magic_time): Improved %time to support
2462 statements and provide wall-clock as well as CPU time.
2462 statements and provide wall-clock as well as CPU time.
2463
2463
2464 2005-02-27 Fernando Perez <fperez@colorado.edu>
2464 2005-02-27 Fernando Perez <fperez@colorado.edu>
2465
2465
2466 * IPython/hooks.py: New hooks module, to expose user-modifiable
2466 * IPython/hooks.py: New hooks module, to expose user-modifiable
2467 IPython functionality in a clean manner. For now only the editor
2467 IPython functionality in a clean manner. For now only the editor
2468 hook is actually written, and other thigns which I intend to turn
2468 hook is actually written, and other thigns which I intend to turn
2469 into proper hooks aren't yet there. The display and prefilter
2469 into proper hooks aren't yet there. The display and prefilter
2470 stuff, for example, should be hooks. But at least now the
2470 stuff, for example, should be hooks. But at least now the
2471 framework is in place, and the rest can be moved here with more
2471 framework is in place, and the rest can be moved here with more
2472 time later. IPython had had a .hooks variable for a long time for
2472 time later. IPython had had a .hooks variable for a long time for
2473 this purpose, but I'd never actually used it for anything.
2473 this purpose, but I'd never actually used it for anything.
2474
2474
2475 2005-02-26 Fernando Perez <fperez@colorado.edu>
2475 2005-02-26 Fernando Perez <fperez@colorado.edu>
2476
2476
2477 * IPython/ipmaker.py (make_IPython): make the default ipython
2477 * IPython/ipmaker.py (make_IPython): make the default ipython
2478 directory be called _ipython under win32, to follow more the
2478 directory be called _ipython under win32, to follow more the
2479 naming peculiarities of that platform (where buggy software like
2479 naming peculiarities of that platform (where buggy software like
2480 Visual Sourcesafe breaks with .named directories). Reported by
2480 Visual Sourcesafe breaks with .named directories). Reported by
2481 Ville Vainio.
2481 Ville Vainio.
2482
2482
2483 2005-02-23 Fernando Perez <fperez@colorado.edu>
2483 2005-02-23 Fernando Perez <fperez@colorado.edu>
2484
2484
2485 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2485 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2486 auto_aliases for win32 which were causing problems. Users can
2486 auto_aliases for win32 which were causing problems. Users can
2487 define the ones they personally like.
2487 define the ones they personally like.
2488
2488
2489 2005-02-21 Fernando Perez <fperez@colorado.edu>
2489 2005-02-21 Fernando Perez <fperez@colorado.edu>
2490
2490
2491 * IPython/Magic.py (magic_time): new magic to time execution of
2491 * IPython/Magic.py (magic_time): new magic to time execution of
2492 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2492 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2493
2493
2494 2005-02-19 Fernando Perez <fperez@colorado.edu>
2494 2005-02-19 Fernando Perez <fperez@colorado.edu>
2495
2495
2496 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2496 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2497 into keys (for prompts, for example).
2497 into keys (for prompts, for example).
2498
2498
2499 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2499 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2500 prompts in case users want them. This introduces a small behavior
2500 prompts in case users want them. This introduces a small behavior
2501 change: ipython does not automatically add a space to all prompts
2501 change: ipython does not automatically add a space to all prompts
2502 anymore. To get the old prompts with a space, users should add it
2502 anymore. To get the old prompts with a space, users should add it
2503 manually to their ipythonrc file, so for example prompt_in1 should
2503 manually to their ipythonrc file, so for example prompt_in1 should
2504 now read 'In [\#]: ' instead of 'In [\#]:'.
2504 now read 'In [\#]: ' instead of 'In [\#]:'.
2505 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2505 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2506 file) to control left-padding of secondary prompts.
2506 file) to control left-padding of secondary prompts.
2507
2507
2508 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2508 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2509 the profiler can't be imported. Fix for Debian, which removed
2509 the profiler can't be imported. Fix for Debian, which removed
2510 profile.py because of License issues. I applied a slightly
2510 profile.py because of License issues. I applied a slightly
2511 modified version of the original Debian patch at
2511 modified version of the original Debian patch at
2512 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2512 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2513
2513
2514 2005-02-17 Fernando Perez <fperez@colorado.edu>
2514 2005-02-17 Fernando Perez <fperez@colorado.edu>
2515
2515
2516 * IPython/genutils.py (native_line_ends): Fix bug which would
2516 * IPython/genutils.py (native_line_ends): Fix bug which would
2517 cause improper line-ends under win32 b/c I was not opening files
2517 cause improper line-ends under win32 b/c I was not opening files
2518 in binary mode. Bug report and fix thanks to Ville.
2518 in binary mode. Bug report and fix thanks to Ville.
2519
2519
2520 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2520 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2521 trying to catch spurious foo[1] autocalls. My fix actually broke
2521 trying to catch spurious foo[1] autocalls. My fix actually broke
2522 ',/' autoquote/call with explicit escape (bad regexp).
2522 ',/' autoquote/call with explicit escape (bad regexp).
2523
2523
2524 2005-02-15 *** Released version 0.6.11
2524 2005-02-15 *** Released version 0.6.11
2525
2525
2526 2005-02-14 Fernando Perez <fperez@colorado.edu>
2526 2005-02-14 Fernando Perez <fperez@colorado.edu>
2527
2527
2528 * IPython/background_jobs.py: New background job management
2528 * IPython/background_jobs.py: New background job management
2529 subsystem. This is implemented via a new set of classes, and
2529 subsystem. This is implemented via a new set of classes, and
2530 IPython now provides a builtin 'jobs' object for background job
2530 IPython now provides a builtin 'jobs' object for background job
2531 execution. A convenience %bg magic serves as a lightweight
2531 execution. A convenience %bg magic serves as a lightweight
2532 frontend for starting the more common type of calls. This was
2532 frontend for starting the more common type of calls. This was
2533 inspired by discussions with B. Granger and the BackgroundCommand
2533 inspired by discussions with B. Granger and the BackgroundCommand
2534 class described in the book Python Scripting for Computational
2534 class described in the book Python Scripting for Computational
2535 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2535 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2536 (although ultimately no code from this text was used, as IPython's
2536 (although ultimately no code from this text was used, as IPython's
2537 system is a separate implementation).
2537 system is a separate implementation).
2538
2538
2539 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2539 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2540 to control the completion of single/double underscore names
2540 to control the completion of single/double underscore names
2541 separately. As documented in the example ipytonrc file, the
2541 separately. As documented in the example ipytonrc file, the
2542 readline_omit__names variable can now be set to 2, to omit even
2542 readline_omit__names variable can now be set to 2, to omit even
2543 single underscore names. Thanks to a patch by Brian Wong
2543 single underscore names. Thanks to a patch by Brian Wong
2544 <BrianWong-AT-AirgoNetworks.Com>.
2544 <BrianWong-AT-AirgoNetworks.Com>.
2545 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2545 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2546 be autocalled as foo([1]) if foo were callable. A problem for
2546 be autocalled as foo([1]) if foo were callable. A problem for
2547 things which are both callable and implement __getitem__.
2547 things which are both callable and implement __getitem__.
2548 (init_readline): Fix autoindentation for win32. Thanks to a patch
2548 (init_readline): Fix autoindentation for win32. Thanks to a patch
2549 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2549 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2550
2550
2551 2005-02-12 Fernando Perez <fperez@colorado.edu>
2551 2005-02-12 Fernando Perez <fperez@colorado.edu>
2552
2552
2553 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2553 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2554 which I had written long ago to sort out user error messages which
2554 which I had written long ago to sort out user error messages which
2555 may occur during startup. This seemed like a good idea initially,
2555 may occur during startup. This seemed like a good idea initially,
2556 but it has proven a disaster in retrospect. I don't want to
2556 but it has proven a disaster in retrospect. I don't want to
2557 change much code for now, so my fix is to set the internal 'debug'
2557 change much code for now, so my fix is to set the internal 'debug'
2558 flag to true everywhere, whose only job was precisely to control
2558 flag to true everywhere, whose only job was precisely to control
2559 this subsystem. This closes issue 28 (as well as avoiding all
2559 this subsystem. This closes issue 28 (as well as avoiding all
2560 sorts of strange hangups which occur from time to time).
2560 sorts of strange hangups which occur from time to time).
2561
2561
2562 2005-02-07 Fernando Perez <fperez@colorado.edu>
2562 2005-02-07 Fernando Perez <fperez@colorado.edu>
2563
2563
2564 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2564 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2565 previous call produced a syntax error.
2565 previous call produced a syntax error.
2566
2566
2567 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2567 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2568 classes without constructor.
2568 classes without constructor.
2569
2569
2570 2005-02-06 Fernando Perez <fperez@colorado.edu>
2570 2005-02-06 Fernando Perez <fperez@colorado.edu>
2571
2571
2572 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2572 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2573 completions with the results of each matcher, so we return results
2573 completions with the results of each matcher, so we return results
2574 to the user from all namespaces. This breaks with ipython
2574 to the user from all namespaces. This breaks with ipython
2575 tradition, but I think it's a nicer behavior. Now you get all
2575 tradition, but I think it's a nicer behavior. Now you get all
2576 possible completions listed, from all possible namespaces (python,
2576 possible completions listed, from all possible namespaces (python,
2577 filesystem, magics...) After a request by John Hunter
2577 filesystem, magics...) After a request by John Hunter
2578 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2578 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2579
2579
2580 2005-02-05 Fernando Perez <fperez@colorado.edu>
2580 2005-02-05 Fernando Perez <fperez@colorado.edu>
2581
2581
2582 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2582 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2583 the call had quote characters in it (the quotes were stripped).
2583 the call had quote characters in it (the quotes were stripped).
2584
2584
2585 2005-01-31 Fernando Perez <fperez@colorado.edu>
2585 2005-01-31 Fernando Perez <fperez@colorado.edu>
2586
2586
2587 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2587 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2588 Itpl.itpl() to make the code more robust against psyco
2588 Itpl.itpl() to make the code more robust against psyco
2589 optimizations.
2589 optimizations.
2590
2590
2591 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2591 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2592 of causing an exception. Quicker, cleaner.
2592 of causing an exception. Quicker, cleaner.
2593
2593
2594 2005-01-28 Fernando Perez <fperez@colorado.edu>
2594 2005-01-28 Fernando Perez <fperez@colorado.edu>
2595
2595
2596 * scripts/ipython_win_post_install.py (install): hardcode
2596 * scripts/ipython_win_post_install.py (install): hardcode
2597 sys.prefix+'python.exe' as the executable path. It turns out that
2597 sys.prefix+'python.exe' as the executable path. It turns out that
2598 during the post-installation run, sys.executable resolves to the
2598 during the post-installation run, sys.executable resolves to the
2599 name of the binary installer! I should report this as a distutils
2599 name of the binary installer! I should report this as a distutils
2600 bug, I think. I updated the .10 release with this tiny fix, to
2600 bug, I think. I updated the .10 release with this tiny fix, to
2601 avoid annoying the lists further.
2601 avoid annoying the lists further.
2602
2602
2603 2005-01-27 *** Released version 0.6.10
2603 2005-01-27 *** Released version 0.6.10
2604
2604
2605 2005-01-27 Fernando Perez <fperez@colorado.edu>
2605 2005-01-27 Fernando Perez <fperez@colorado.edu>
2606
2606
2607 * IPython/numutils.py (norm): Added 'inf' as optional name for
2607 * IPython/numutils.py (norm): Added 'inf' as optional name for
2608 L-infinity norm, included references to mathworld.com for vector
2608 L-infinity norm, included references to mathworld.com for vector
2609 norm definitions.
2609 norm definitions.
2610 (amin/amax): added amin/amax for array min/max. Similar to what
2610 (amin/amax): added amin/amax for array min/max. Similar to what
2611 pylab ships with after the recent reorganization of names.
2611 pylab ships with after the recent reorganization of names.
2612 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2612 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2613
2613
2614 * ipython.el: committed Alex's recent fixes and improvements.
2614 * ipython.el: committed Alex's recent fixes and improvements.
2615 Tested with python-mode from CVS, and it looks excellent. Since
2615 Tested with python-mode from CVS, and it looks excellent. Since
2616 python-mode hasn't released anything in a while, I'm temporarily
2616 python-mode hasn't released anything in a while, I'm temporarily
2617 putting a copy of today's CVS (v 4.70) of python-mode in:
2617 putting a copy of today's CVS (v 4.70) of python-mode in:
2618 http://ipython.scipy.org/tmp/python-mode.el
2618 http://ipython.scipy.org/tmp/python-mode.el
2619
2619
2620 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2620 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2621 sys.executable for the executable name, instead of assuming it's
2621 sys.executable for the executable name, instead of assuming it's
2622 called 'python.exe' (the post-installer would have produced broken
2622 called 'python.exe' (the post-installer would have produced broken
2623 setups on systems with a differently named python binary).
2623 setups on systems with a differently named python binary).
2624
2624
2625 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2625 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2626 references to os.linesep, to make the code more
2626 references to os.linesep, to make the code more
2627 platform-independent. This is also part of the win32 coloring
2627 platform-independent. This is also part of the win32 coloring
2628 fixes.
2628 fixes.
2629
2629
2630 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2630 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2631 lines, which actually cause coloring bugs because the length of
2631 lines, which actually cause coloring bugs because the length of
2632 the line is very difficult to correctly compute with embedded
2632 the line is very difficult to correctly compute with embedded
2633 escapes. This was the source of all the coloring problems under
2633 escapes. This was the source of all the coloring problems under
2634 Win32. I think that _finally_, Win32 users have a properly
2634 Win32. I think that _finally_, Win32 users have a properly
2635 working ipython in all respects. This would never have happened
2635 working ipython in all respects. This would never have happened
2636 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2636 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2637
2637
2638 2005-01-26 *** Released version 0.6.9
2638 2005-01-26 *** Released version 0.6.9
2639
2639
2640 2005-01-25 Fernando Perez <fperez@colorado.edu>
2640 2005-01-25 Fernando Perez <fperez@colorado.edu>
2641
2641
2642 * setup.py: finally, we have a true Windows installer, thanks to
2642 * setup.py: finally, we have a true Windows installer, thanks to
2643 the excellent work of Viktor Ransmayr
2643 the excellent work of Viktor Ransmayr
2644 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2644 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2645 Windows users. The setup routine is quite a bit cleaner thanks to
2645 Windows users. The setup routine is quite a bit cleaner thanks to
2646 this, and the post-install script uses the proper functions to
2646 this, and the post-install script uses the proper functions to
2647 allow a clean de-installation using the standard Windows Control
2647 allow a clean de-installation using the standard Windows Control
2648 Panel.
2648 Panel.
2649
2649
2650 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2650 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2651 environment variable under all OSes (including win32) if
2651 environment variable under all OSes (including win32) if
2652 available. This will give consistency to win32 users who have set
2652 available. This will give consistency to win32 users who have set
2653 this variable for any reason. If os.environ['HOME'] fails, the
2653 this variable for any reason. If os.environ['HOME'] fails, the
2654 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2654 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2655
2655
2656 2005-01-24 Fernando Perez <fperez@colorado.edu>
2656 2005-01-24 Fernando Perez <fperez@colorado.edu>
2657
2657
2658 * IPython/numutils.py (empty_like): add empty_like(), similar to
2658 * IPython/numutils.py (empty_like): add empty_like(), similar to
2659 zeros_like() but taking advantage of the new empty() Numeric routine.
2659 zeros_like() but taking advantage of the new empty() Numeric routine.
2660
2660
2661 2005-01-23 *** Released version 0.6.8
2661 2005-01-23 *** Released version 0.6.8
2662
2662
2663 2005-01-22 Fernando Perez <fperez@colorado.edu>
2663 2005-01-22 Fernando Perez <fperez@colorado.edu>
2664
2664
2665 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2665 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2666 automatic show() calls. After discussing things with JDH, it
2666 automatic show() calls. After discussing things with JDH, it
2667 turns out there are too many corner cases where this can go wrong.
2667 turns out there are too many corner cases where this can go wrong.
2668 It's best not to try to be 'too smart', and simply have ipython
2668 It's best not to try to be 'too smart', and simply have ipython
2669 reproduce as much as possible the default behavior of a normal
2669 reproduce as much as possible the default behavior of a normal
2670 python shell.
2670 python shell.
2671
2671
2672 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2672 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2673 line-splitting regexp and _prefilter() to avoid calling getattr()
2673 line-splitting regexp and _prefilter() to avoid calling getattr()
2674 on assignments. This closes
2674 on assignments. This closes
2675 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2675 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2676 readline uses getattr(), so a simple <TAB> keypress is still
2676 readline uses getattr(), so a simple <TAB> keypress is still
2677 enough to trigger getattr() calls on an object.
2677 enough to trigger getattr() calls on an object.
2678
2678
2679 2005-01-21 Fernando Perez <fperez@colorado.edu>
2679 2005-01-21 Fernando Perez <fperez@colorado.edu>
2680
2680
2681 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2681 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2682 docstring under pylab so it doesn't mask the original.
2682 docstring under pylab so it doesn't mask the original.
2683
2683
2684 2005-01-21 *** Released version 0.6.7
2684 2005-01-21 *** Released version 0.6.7
2685
2685
2686 2005-01-21 Fernando Perez <fperez@colorado.edu>
2686 2005-01-21 Fernando Perez <fperez@colorado.edu>
2687
2687
2688 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2688 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2689 signal handling for win32 users in multithreaded mode.
2689 signal handling for win32 users in multithreaded mode.
2690
2690
2691 2005-01-17 Fernando Perez <fperez@colorado.edu>
2691 2005-01-17 Fernando Perez <fperez@colorado.edu>
2692
2692
2693 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2693 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2694 instances with no __init__. After a crash report by Norbert Nemec
2694 instances with no __init__. After a crash report by Norbert Nemec
2695 <Norbert-AT-nemec-online.de>.
2695 <Norbert-AT-nemec-online.de>.
2696
2696
2697 2005-01-14 Fernando Perez <fperez@colorado.edu>
2697 2005-01-14 Fernando Perez <fperez@colorado.edu>
2698
2698
2699 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2699 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2700 names for verbose exceptions, when multiple dotted names and the
2700 names for verbose exceptions, when multiple dotted names and the
2701 'parent' object were present on the same line.
2701 'parent' object were present on the same line.
2702
2702
2703 2005-01-11 Fernando Perez <fperez@colorado.edu>
2703 2005-01-11 Fernando Perez <fperez@colorado.edu>
2704
2704
2705 * IPython/genutils.py (flag_calls): new utility to trap and flag
2705 * IPython/genutils.py (flag_calls): new utility to trap and flag
2706 calls in functions. I need it to clean up matplotlib support.
2706 calls in functions. I need it to clean up matplotlib support.
2707 Also removed some deprecated code in genutils.
2707 Also removed some deprecated code in genutils.
2708
2708
2709 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2709 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2710 that matplotlib scripts called with %run, which don't call show()
2710 that matplotlib scripts called with %run, which don't call show()
2711 themselves, still have their plotting windows open.
2711 themselves, still have their plotting windows open.
2712
2712
2713 2005-01-05 Fernando Perez <fperez@colorado.edu>
2713 2005-01-05 Fernando Perez <fperez@colorado.edu>
2714
2714
2715 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2715 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2716 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2716 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2717
2717
2718 2004-12-19 Fernando Perez <fperez@colorado.edu>
2718 2004-12-19 Fernando Perez <fperez@colorado.edu>
2719
2719
2720 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2720 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2721 parent_runcode, which was an eyesore. The same result can be
2721 parent_runcode, which was an eyesore. The same result can be
2722 obtained with Python's regular superclass mechanisms.
2722 obtained with Python's regular superclass mechanisms.
2723
2723
2724 2004-12-17 Fernando Perez <fperez@colorado.edu>
2724 2004-12-17 Fernando Perez <fperez@colorado.edu>
2725
2725
2726 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2726 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2727 reported by Prabhu.
2727 reported by Prabhu.
2728 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2728 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2729 sys.stderr) instead of explicitly calling sys.stderr. This helps
2729 sys.stderr) instead of explicitly calling sys.stderr. This helps
2730 maintain our I/O abstractions clean, for future GUI embeddings.
2730 maintain our I/O abstractions clean, for future GUI embeddings.
2731
2731
2732 * IPython/genutils.py (info): added new utility for sys.stderr
2732 * IPython/genutils.py (info): added new utility for sys.stderr
2733 unified info message handling (thin wrapper around warn()).
2733 unified info message handling (thin wrapper around warn()).
2734
2734
2735 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2735 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2736 composite (dotted) names on verbose exceptions.
2736 composite (dotted) names on verbose exceptions.
2737 (VerboseTB.nullrepr): harden against another kind of errors which
2737 (VerboseTB.nullrepr): harden against another kind of errors which
2738 Python's inspect module can trigger, and which were crashing
2738 Python's inspect module can trigger, and which were crashing
2739 IPython. Thanks to a report by Marco Lombardi
2739 IPython. Thanks to a report by Marco Lombardi
2740 <mlombard-AT-ma010192.hq.eso.org>.
2740 <mlombard-AT-ma010192.hq.eso.org>.
2741
2741
2742 2004-12-13 *** Released version 0.6.6
2742 2004-12-13 *** Released version 0.6.6
2743
2743
2744 2004-12-12 Fernando Perez <fperez@colorado.edu>
2744 2004-12-12 Fernando Perez <fperez@colorado.edu>
2745
2745
2746 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2746 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2747 generated by pygtk upon initialization if it was built without
2747 generated by pygtk upon initialization if it was built without
2748 threads (for matplotlib users). After a crash reported by
2748 threads (for matplotlib users). After a crash reported by
2749 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2749 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2750
2750
2751 * IPython/ipmaker.py (make_IPython): fix small bug in the
2751 * IPython/ipmaker.py (make_IPython): fix small bug in the
2752 import_some parameter for multiple imports.
2752 import_some parameter for multiple imports.
2753
2753
2754 * IPython/iplib.py (ipmagic): simplified the interface of
2754 * IPython/iplib.py (ipmagic): simplified the interface of
2755 ipmagic() to take a single string argument, just as it would be
2755 ipmagic() to take a single string argument, just as it would be
2756 typed at the IPython cmd line.
2756 typed at the IPython cmd line.
2757 (ipalias): Added new ipalias() with an interface identical to
2757 (ipalias): Added new ipalias() with an interface identical to
2758 ipmagic(). This completes exposing a pure python interface to the
2758 ipmagic(). This completes exposing a pure python interface to the
2759 alias and magic system, which can be used in loops or more complex
2759 alias and magic system, which can be used in loops or more complex
2760 code where IPython's automatic line mangling is not active.
2760 code where IPython's automatic line mangling is not active.
2761
2761
2762 * IPython/genutils.py (timing): changed interface of timing to
2762 * IPython/genutils.py (timing): changed interface of timing to
2763 simply run code once, which is the most common case. timings()
2763 simply run code once, which is the most common case. timings()
2764 remains unchanged, for the cases where you want multiple runs.
2764 remains unchanged, for the cases where you want multiple runs.
2765
2765
2766 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2766 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2767 bug where Python2.2 crashes with exec'ing code which does not end
2767 bug where Python2.2 crashes with exec'ing code which does not end
2768 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2768 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2769 before.
2769 before.
2770
2770
2771 2004-12-10 Fernando Perez <fperez@colorado.edu>
2771 2004-12-10 Fernando Perez <fperez@colorado.edu>
2772
2772
2773 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2773 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2774 -t to -T, to accomodate the new -t flag in %run (the %run and
2774 -t to -T, to accomodate the new -t flag in %run (the %run and
2775 %prun options are kind of intermixed, and it's not easy to change
2775 %prun options are kind of intermixed, and it's not easy to change
2776 this with the limitations of python's getopt).
2776 this with the limitations of python's getopt).
2777
2777
2778 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2778 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2779 the execution of scripts. It's not as fine-tuned as timeit.py,
2779 the execution of scripts. It's not as fine-tuned as timeit.py,
2780 but it works from inside ipython (and under 2.2, which lacks
2780 but it works from inside ipython (and under 2.2, which lacks
2781 timeit.py). Optionally a number of runs > 1 can be given for
2781 timeit.py). Optionally a number of runs > 1 can be given for
2782 timing very short-running code.
2782 timing very short-running code.
2783
2783
2784 * IPython/genutils.py (uniq_stable): new routine which returns a
2784 * IPython/genutils.py (uniq_stable): new routine which returns a
2785 list of unique elements in any iterable, but in stable order of
2785 list of unique elements in any iterable, but in stable order of
2786 appearance. I needed this for the ultraTB fixes, and it's a handy
2786 appearance. I needed this for the ultraTB fixes, and it's a handy
2787 utility.
2787 utility.
2788
2788
2789 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2789 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2790 dotted names in Verbose exceptions. This had been broken since
2790 dotted names in Verbose exceptions. This had been broken since
2791 the very start, now x.y will properly be printed in a Verbose
2791 the very start, now x.y will properly be printed in a Verbose
2792 traceback, instead of x being shown and y appearing always as an
2792 traceback, instead of x being shown and y appearing always as an
2793 'undefined global'. Getting this to work was a bit tricky,
2793 'undefined global'. Getting this to work was a bit tricky,
2794 because by default python tokenizers are stateless. Saved by
2794 because by default python tokenizers are stateless. Saved by
2795 python's ability to easily add a bit of state to an arbitrary
2795 python's ability to easily add a bit of state to an arbitrary
2796 function (without needing to build a full-blown callable object).
2796 function (without needing to build a full-blown callable object).
2797
2797
2798 Also big cleanup of this code, which had horrendous runtime
2798 Also big cleanup of this code, which had horrendous runtime
2799 lookups of zillions of attributes for colorization. Moved all
2799 lookups of zillions of attributes for colorization. Moved all
2800 this code into a few templates, which make it cleaner and quicker.
2800 this code into a few templates, which make it cleaner and quicker.
2801
2801
2802 Printout quality was also improved for Verbose exceptions: one
2802 Printout quality was also improved for Verbose exceptions: one
2803 variable per line, and memory addresses are printed (this can be
2803 variable per line, and memory addresses are printed (this can be
2804 quite handy in nasty debugging situations, which is what Verbose
2804 quite handy in nasty debugging situations, which is what Verbose
2805 is for).
2805 is for).
2806
2806
2807 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2807 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2808 the command line as scripts to be loaded by embedded instances.
2808 the command line as scripts to be loaded by embedded instances.
2809 Doing so has the potential for an infinite recursion if there are
2809 Doing so has the potential for an infinite recursion if there are
2810 exceptions thrown in the process. This fixes a strange crash
2810 exceptions thrown in the process. This fixes a strange crash
2811 reported by Philippe MULLER <muller-AT-irit.fr>.
2811 reported by Philippe MULLER <muller-AT-irit.fr>.
2812
2812
2813 2004-12-09 Fernando Perez <fperez@colorado.edu>
2813 2004-12-09 Fernando Perez <fperez@colorado.edu>
2814
2814
2815 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2815 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2816 to reflect new names in matplotlib, which now expose the
2816 to reflect new names in matplotlib, which now expose the
2817 matlab-compatible interface via a pylab module instead of the
2817 matlab-compatible interface via a pylab module instead of the
2818 'matlab' name. The new code is backwards compatible, so users of
2818 'matlab' name. The new code is backwards compatible, so users of
2819 all matplotlib versions are OK. Patch by J. Hunter.
2819 all matplotlib versions are OK. Patch by J. Hunter.
2820
2820
2821 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2821 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2822 of __init__ docstrings for instances (class docstrings are already
2822 of __init__ docstrings for instances (class docstrings are already
2823 automatically printed). Instances with customized docstrings
2823 automatically printed). Instances with customized docstrings
2824 (indep. of the class) are also recognized and all 3 separate
2824 (indep. of the class) are also recognized and all 3 separate
2825 docstrings are printed (instance, class, constructor). After some
2825 docstrings are printed (instance, class, constructor). After some
2826 comments/suggestions by J. Hunter.
2826 comments/suggestions by J. Hunter.
2827
2827
2828 2004-12-05 Fernando Perez <fperez@colorado.edu>
2828 2004-12-05 Fernando Perez <fperez@colorado.edu>
2829
2829
2830 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2830 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2831 warnings when tab-completion fails and triggers an exception.
2831 warnings when tab-completion fails and triggers an exception.
2832
2832
2833 2004-12-03 Fernando Perez <fperez@colorado.edu>
2833 2004-12-03 Fernando Perez <fperez@colorado.edu>
2834
2834
2835 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2835 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2836 be triggered when using 'run -p'. An incorrect option flag was
2836 be triggered when using 'run -p'. An incorrect option flag was
2837 being set ('d' instead of 'D').
2837 being set ('d' instead of 'D').
2838 (manpage): fix missing escaped \- sign.
2838 (manpage): fix missing escaped \- sign.
2839
2839
2840 2004-11-30 *** Released version 0.6.5
2840 2004-11-30 *** Released version 0.6.5
2841
2841
2842 2004-11-30 Fernando Perez <fperez@colorado.edu>
2842 2004-11-30 Fernando Perez <fperez@colorado.edu>
2843
2843
2844 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2844 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2845 setting with -d option.
2845 setting with -d option.
2846
2846
2847 * setup.py (docfiles): Fix problem where the doc glob I was using
2847 * setup.py (docfiles): Fix problem where the doc glob I was using
2848 was COMPLETELY BROKEN. It was giving the right files by pure
2848 was COMPLETELY BROKEN. It was giving the right files by pure
2849 accident, but failed once I tried to include ipython.el. Note:
2849 accident, but failed once I tried to include ipython.el. Note:
2850 glob() does NOT allow you to do exclusion on multiple endings!
2850 glob() does NOT allow you to do exclusion on multiple endings!
2851
2851
2852 2004-11-29 Fernando Perez <fperez@colorado.edu>
2852 2004-11-29 Fernando Perez <fperez@colorado.edu>
2853
2853
2854 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2854 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2855 the manpage as the source. Better formatting & consistency.
2855 the manpage as the source. Better formatting & consistency.
2856
2856
2857 * IPython/Magic.py (magic_run): Added new -d option, to run
2857 * IPython/Magic.py (magic_run): Added new -d option, to run
2858 scripts under the control of the python pdb debugger. Note that
2858 scripts under the control of the python pdb debugger. Note that
2859 this required changing the %prun option -d to -D, to avoid a clash
2859 this required changing the %prun option -d to -D, to avoid a clash
2860 (since %run must pass options to %prun, and getopt is too dumb to
2860 (since %run must pass options to %prun, and getopt is too dumb to
2861 handle options with string values with embedded spaces). Thanks
2861 handle options with string values with embedded spaces). Thanks
2862 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2862 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2863 (magic_who_ls): added type matching to %who and %whos, so that one
2863 (magic_who_ls): added type matching to %who and %whos, so that one
2864 can filter their output to only include variables of certain
2864 can filter their output to only include variables of certain
2865 types. Another suggestion by Matthew.
2865 types. Another suggestion by Matthew.
2866 (magic_whos): Added memory summaries in kb and Mb for arrays.
2866 (magic_whos): Added memory summaries in kb and Mb for arrays.
2867 (magic_who): Improve formatting (break lines every 9 vars).
2867 (magic_who): Improve formatting (break lines every 9 vars).
2868
2868
2869 2004-11-28 Fernando Perez <fperez@colorado.edu>
2869 2004-11-28 Fernando Perez <fperez@colorado.edu>
2870
2870
2871 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2871 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2872 cache when empty lines were present.
2872 cache when empty lines were present.
2873
2873
2874 2004-11-24 Fernando Perez <fperez@colorado.edu>
2874 2004-11-24 Fernando Perez <fperez@colorado.edu>
2875
2875
2876 * IPython/usage.py (__doc__): document the re-activated threading
2876 * IPython/usage.py (__doc__): document the re-activated threading
2877 options for WX and GTK.
2877 options for WX and GTK.
2878
2878
2879 2004-11-23 Fernando Perez <fperez@colorado.edu>
2879 2004-11-23 Fernando Perez <fperez@colorado.edu>
2880
2880
2881 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2881 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2882 the -wthread and -gthread options, along with a new -tk one to try
2882 the -wthread and -gthread options, along with a new -tk one to try
2883 and coordinate Tk threading with wx/gtk. The tk support is very
2883 and coordinate Tk threading with wx/gtk. The tk support is very
2884 platform dependent, since it seems to require Tcl and Tk to be
2884 platform dependent, since it seems to require Tcl and Tk to be
2885 built with threads (Fedora1/2 appears NOT to have it, but in
2885 built with threads (Fedora1/2 appears NOT to have it, but in
2886 Prabhu's Debian boxes it works OK). But even with some Tk
2886 Prabhu's Debian boxes it works OK). But even with some Tk
2887 limitations, this is a great improvement.
2887 limitations, this is a great improvement.
2888
2888
2889 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2889 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2890 info in user prompts. Patch by Prabhu.
2890 info in user prompts. Patch by Prabhu.
2891
2891
2892 2004-11-18 Fernando Perez <fperez@colorado.edu>
2892 2004-11-18 Fernando Perez <fperez@colorado.edu>
2893
2893
2894 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2894 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2895 EOFErrors and bail, to avoid infinite loops if a non-terminating
2895 EOFErrors and bail, to avoid infinite loops if a non-terminating
2896 file is fed into ipython. Patch submitted in issue 19 by user,
2896 file is fed into ipython. Patch submitted in issue 19 by user,
2897 many thanks.
2897 many thanks.
2898
2898
2899 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2899 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2900 autoquote/parens in continuation prompts, which can cause lots of
2900 autoquote/parens in continuation prompts, which can cause lots of
2901 problems. Closes roundup issue 20.
2901 problems. Closes roundup issue 20.
2902
2902
2903 2004-11-17 Fernando Perez <fperez@colorado.edu>
2903 2004-11-17 Fernando Perez <fperez@colorado.edu>
2904
2904
2905 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2905 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2906 reported as debian bug #280505. I'm not sure my local changelog
2906 reported as debian bug #280505. I'm not sure my local changelog
2907 entry has the proper debian format (Jack?).
2907 entry has the proper debian format (Jack?).
2908
2908
2909 2004-11-08 *** Released version 0.6.4
2909 2004-11-08 *** Released version 0.6.4
2910
2910
2911 2004-11-08 Fernando Perez <fperez@colorado.edu>
2911 2004-11-08 Fernando Perez <fperez@colorado.edu>
2912
2912
2913 * IPython/iplib.py (init_readline): Fix exit message for Windows
2913 * IPython/iplib.py (init_readline): Fix exit message for Windows
2914 when readline is active. Thanks to a report by Eric Jones
2914 when readline is active. Thanks to a report by Eric Jones
2915 <eric-AT-enthought.com>.
2915 <eric-AT-enthought.com>.
2916
2916
2917 2004-11-07 Fernando Perez <fperez@colorado.edu>
2917 2004-11-07 Fernando Perez <fperez@colorado.edu>
2918
2918
2919 * IPython/genutils.py (page): Add a trap for OSError exceptions,
2919 * IPython/genutils.py (page): Add a trap for OSError exceptions,
2920 sometimes seen by win2k/cygwin users.
2920 sometimes seen by win2k/cygwin users.
2921
2921
2922 2004-11-06 Fernando Perez <fperez@colorado.edu>
2922 2004-11-06 Fernando Perez <fperez@colorado.edu>
2923
2923
2924 * IPython/iplib.py (interact): Change the handling of %Exit from
2924 * IPython/iplib.py (interact): Change the handling of %Exit from
2925 trying to propagate a SystemExit to an internal ipython flag.
2925 trying to propagate a SystemExit to an internal ipython flag.
2926 This is less elegant than using Python's exception mechanism, but
2926 This is less elegant than using Python's exception mechanism, but
2927 I can't get that to work reliably with threads, so under -pylab
2927 I can't get that to work reliably with threads, so under -pylab
2928 %Exit was hanging IPython. Cross-thread exception handling is
2928 %Exit was hanging IPython. Cross-thread exception handling is
2929 really a bitch. Thaks to a bug report by Stephen Walton
2929 really a bitch. Thaks to a bug report by Stephen Walton
2930 <stephen.walton-AT-csun.edu>.
2930 <stephen.walton-AT-csun.edu>.
2931
2931
2932 2004-11-04 Fernando Perez <fperez@colorado.edu>
2932 2004-11-04 Fernando Perez <fperez@colorado.edu>
2933
2933
2934 * IPython/iplib.py (raw_input_original): store a pointer to the
2934 * IPython/iplib.py (raw_input_original): store a pointer to the
2935 true raw_input to harden against code which can modify it
2935 true raw_input to harden against code which can modify it
2936 (wx.py.PyShell does this and would otherwise crash ipython).
2936 (wx.py.PyShell does this and would otherwise crash ipython).
2937 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
2937 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
2938
2938
2939 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
2939 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
2940 Ctrl-C problem, which does not mess up the input line.
2940 Ctrl-C problem, which does not mess up the input line.
2941
2941
2942 2004-11-03 Fernando Perez <fperez@colorado.edu>
2942 2004-11-03 Fernando Perez <fperez@colorado.edu>
2943
2943
2944 * IPython/Release.py: Changed licensing to BSD, in all files.
2944 * IPython/Release.py: Changed licensing to BSD, in all files.
2945 (name): lowercase name for tarball/RPM release.
2945 (name): lowercase name for tarball/RPM release.
2946
2946
2947 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
2947 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
2948 use throughout ipython.
2948 use throughout ipython.
2949
2949
2950 * IPython/Magic.py (Magic._ofind): Switch to using the new
2950 * IPython/Magic.py (Magic._ofind): Switch to using the new
2951 OInspect.getdoc() function.
2951 OInspect.getdoc() function.
2952
2952
2953 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
2953 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
2954 of the line currently being canceled via Ctrl-C. It's extremely
2954 of the line currently being canceled via Ctrl-C. It's extremely
2955 ugly, but I don't know how to do it better (the problem is one of
2955 ugly, but I don't know how to do it better (the problem is one of
2956 handling cross-thread exceptions).
2956 handling cross-thread exceptions).
2957
2957
2958 2004-10-28 Fernando Perez <fperez@colorado.edu>
2958 2004-10-28 Fernando Perez <fperez@colorado.edu>
2959
2959
2960 * IPython/Shell.py (signal_handler): add signal handlers to trap
2960 * IPython/Shell.py (signal_handler): add signal handlers to trap
2961 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
2961 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
2962 report by Francesc Alted.
2962 report by Francesc Alted.
2963
2963
2964 2004-10-21 Fernando Perez <fperez@colorado.edu>
2964 2004-10-21 Fernando Perez <fperez@colorado.edu>
2965
2965
2966 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
2966 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
2967 to % for pysh syntax extensions.
2967 to % for pysh syntax extensions.
2968
2968
2969 2004-10-09 Fernando Perez <fperez@colorado.edu>
2969 2004-10-09 Fernando Perez <fperez@colorado.edu>
2970
2970
2971 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
2971 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
2972 arrays to print a more useful summary, without calling str(arr).
2972 arrays to print a more useful summary, without calling str(arr).
2973 This avoids the problem of extremely lengthy computations which
2973 This avoids the problem of extremely lengthy computations which
2974 occur if arr is large, and appear to the user as a system lockup
2974 occur if arr is large, and appear to the user as a system lockup
2975 with 100% cpu activity. After a suggestion by Kristian Sandberg
2975 with 100% cpu activity. After a suggestion by Kristian Sandberg
2976 <Kristian.Sandberg@colorado.edu>.
2976 <Kristian.Sandberg@colorado.edu>.
2977 (Magic.__init__): fix bug in global magic escapes not being
2977 (Magic.__init__): fix bug in global magic escapes not being
2978 correctly set.
2978 correctly set.
2979
2979
2980 2004-10-08 Fernando Perez <fperez@colorado.edu>
2980 2004-10-08 Fernando Perez <fperez@colorado.edu>
2981
2981
2982 * IPython/Magic.py (__license__): change to absolute imports of
2982 * IPython/Magic.py (__license__): change to absolute imports of
2983 ipython's own internal packages, to start adapting to the absolute
2983 ipython's own internal packages, to start adapting to the absolute
2984 import requirement of PEP-328.
2984 import requirement of PEP-328.
2985
2985
2986 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
2986 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
2987 files, and standardize author/license marks through the Release
2987 files, and standardize author/license marks through the Release
2988 module instead of having per/file stuff (except for files with
2988 module instead of having per/file stuff (except for files with
2989 particular licenses, like the MIT/PSF-licensed codes).
2989 particular licenses, like the MIT/PSF-licensed codes).
2990
2990
2991 * IPython/Debugger.py: remove dead code for python 2.1
2991 * IPython/Debugger.py: remove dead code for python 2.1
2992
2992
2993 2004-10-04 Fernando Perez <fperez@colorado.edu>
2993 2004-10-04 Fernando Perez <fperez@colorado.edu>
2994
2994
2995 * IPython/iplib.py (ipmagic): New function for accessing magics
2995 * IPython/iplib.py (ipmagic): New function for accessing magics
2996 via a normal python function call.
2996 via a normal python function call.
2997
2997
2998 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
2998 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
2999 from '@' to '%', to accomodate the new @decorator syntax of python
2999 from '@' to '%', to accomodate the new @decorator syntax of python
3000 2.4.
3000 2.4.
3001
3001
3002 2004-09-29 Fernando Perez <fperez@colorado.edu>
3002 2004-09-29 Fernando Perez <fperez@colorado.edu>
3003
3003
3004 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3004 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3005 matplotlib.use to prevent running scripts which try to switch
3005 matplotlib.use to prevent running scripts which try to switch
3006 interactive backends from within ipython. This will just crash
3006 interactive backends from within ipython. This will just crash
3007 the python interpreter, so we can't allow it (but a detailed error
3007 the python interpreter, so we can't allow it (but a detailed error
3008 is given to the user).
3008 is given to the user).
3009
3009
3010 2004-09-28 Fernando Perez <fperez@colorado.edu>
3010 2004-09-28 Fernando Perez <fperez@colorado.edu>
3011
3011
3012 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3012 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3013 matplotlib-related fixes so that using @run with non-matplotlib
3013 matplotlib-related fixes so that using @run with non-matplotlib
3014 scripts doesn't pop up spurious plot windows. This requires
3014 scripts doesn't pop up spurious plot windows. This requires
3015 matplotlib >= 0.63, where I had to make some changes as well.
3015 matplotlib >= 0.63, where I had to make some changes as well.
3016
3016
3017 * IPython/ipmaker.py (make_IPython): update version requirement to
3017 * IPython/ipmaker.py (make_IPython): update version requirement to
3018 python 2.2.
3018 python 2.2.
3019
3019
3020 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3020 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3021 banner arg for embedded customization.
3021 banner arg for embedded customization.
3022
3022
3023 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3023 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3024 explicit uses of __IP as the IPython's instance name. Now things
3024 explicit uses of __IP as the IPython's instance name. Now things
3025 are properly handled via the shell.name value. The actual code
3025 are properly handled via the shell.name value. The actual code
3026 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3026 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3027 is much better than before. I'll clean things completely when the
3027 is much better than before. I'll clean things completely when the
3028 magic stuff gets a real overhaul.
3028 magic stuff gets a real overhaul.
3029
3029
3030 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3030 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3031 minor changes to debian dir.
3031 minor changes to debian dir.
3032
3032
3033 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3033 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3034 pointer to the shell itself in the interactive namespace even when
3034 pointer to the shell itself in the interactive namespace even when
3035 a user-supplied dict is provided. This is needed for embedding
3035 a user-supplied dict is provided. This is needed for embedding
3036 purposes (found by tests with Michel Sanner).
3036 purposes (found by tests with Michel Sanner).
3037
3037
3038 2004-09-27 Fernando Perez <fperez@colorado.edu>
3038 2004-09-27 Fernando Perez <fperez@colorado.edu>
3039
3039
3040 * IPython/UserConfig/ipythonrc: remove []{} from
3040 * IPython/UserConfig/ipythonrc: remove []{} from
3041 readline_remove_delims, so that things like [modname.<TAB> do
3041 readline_remove_delims, so that things like [modname.<TAB> do
3042 proper completion. This disables [].TAB, but that's a less common
3042 proper completion. This disables [].TAB, but that's a less common
3043 case than module names in list comprehensions, for example.
3043 case than module names in list comprehensions, for example.
3044 Thanks to a report by Andrea Riciputi.
3044 Thanks to a report by Andrea Riciputi.
3045
3045
3046 2004-09-09 Fernando Perez <fperez@colorado.edu>
3046 2004-09-09 Fernando Perez <fperez@colorado.edu>
3047
3047
3048 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3048 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3049 blocking problems in win32 and osx. Fix by John.
3049 blocking problems in win32 and osx. Fix by John.
3050
3050
3051 2004-09-08 Fernando Perez <fperez@colorado.edu>
3051 2004-09-08 Fernando Perez <fperez@colorado.edu>
3052
3052
3053 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3053 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3054 for Win32 and OSX. Fix by John Hunter.
3054 for Win32 and OSX. Fix by John Hunter.
3055
3055
3056 2004-08-30 *** Released version 0.6.3
3056 2004-08-30 *** Released version 0.6.3
3057
3057
3058 2004-08-30 Fernando Perez <fperez@colorado.edu>
3058 2004-08-30 Fernando Perez <fperez@colorado.edu>
3059
3059
3060 * setup.py (isfile): Add manpages to list of dependent files to be
3060 * setup.py (isfile): Add manpages to list of dependent files to be
3061 updated.
3061 updated.
3062
3062
3063 2004-08-27 Fernando Perez <fperez@colorado.edu>
3063 2004-08-27 Fernando Perez <fperez@colorado.edu>
3064
3064
3065 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3065 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3066 for now. They don't really work with standalone WX/GTK code
3066 for now. They don't really work with standalone WX/GTK code
3067 (though matplotlib IS working fine with both of those backends).
3067 (though matplotlib IS working fine with both of those backends).
3068 This will neeed much more testing. I disabled most things with
3068 This will neeed much more testing. I disabled most things with
3069 comments, so turning it back on later should be pretty easy.
3069 comments, so turning it back on later should be pretty easy.
3070
3070
3071 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3071 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3072 autocalling of expressions like r'foo', by modifying the line
3072 autocalling of expressions like r'foo', by modifying the line
3073 split regexp. Closes
3073 split regexp. Closes
3074 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3074 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3075 Riley <ipythonbugs-AT-sabi.net>.
3075 Riley <ipythonbugs-AT-sabi.net>.
3076 (InteractiveShell.mainloop): honor --nobanner with banner
3076 (InteractiveShell.mainloop): honor --nobanner with banner
3077 extensions.
3077 extensions.
3078
3078
3079 * IPython/Shell.py: Significant refactoring of all classes, so
3079 * IPython/Shell.py: Significant refactoring of all classes, so
3080 that we can really support ALL matplotlib backends and threading
3080 that we can really support ALL matplotlib backends and threading
3081 models (John spotted a bug with Tk which required this). Now we
3081 models (John spotted a bug with Tk which required this). Now we
3082 should support single-threaded, WX-threads and GTK-threads, both
3082 should support single-threaded, WX-threads and GTK-threads, both
3083 for generic code and for matplotlib.
3083 for generic code and for matplotlib.
3084
3084
3085 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3085 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3086 -pylab, to simplify things for users. Will also remove the pylab
3086 -pylab, to simplify things for users. Will also remove the pylab
3087 profile, since now all of matplotlib configuration is directly
3087 profile, since now all of matplotlib configuration is directly
3088 handled here. This also reduces startup time.
3088 handled here. This also reduces startup time.
3089
3089
3090 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3090 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3091 shell wasn't being correctly called. Also in IPShellWX.
3091 shell wasn't being correctly called. Also in IPShellWX.
3092
3092
3093 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3093 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3094 fine-tune banner.
3094 fine-tune banner.
3095
3095
3096 * IPython/numutils.py (spike): Deprecate these spike functions,
3096 * IPython/numutils.py (spike): Deprecate these spike functions,
3097 delete (long deprecated) gnuplot_exec handler.
3097 delete (long deprecated) gnuplot_exec handler.
3098
3098
3099 2004-08-26 Fernando Perez <fperez@colorado.edu>
3099 2004-08-26 Fernando Perez <fperez@colorado.edu>
3100
3100
3101 * ipython.1: Update for threading options, plus some others which
3101 * ipython.1: Update for threading options, plus some others which
3102 were missing.
3102 were missing.
3103
3103
3104 * IPython/ipmaker.py (__call__): Added -wthread option for
3104 * IPython/ipmaker.py (__call__): Added -wthread option for
3105 wxpython thread handling. Make sure threading options are only
3105 wxpython thread handling. Make sure threading options are only
3106 valid at the command line.
3106 valid at the command line.
3107
3107
3108 * scripts/ipython: moved shell selection into a factory function
3108 * scripts/ipython: moved shell selection into a factory function
3109 in Shell.py, to keep the starter script to a minimum.
3109 in Shell.py, to keep the starter script to a minimum.
3110
3110
3111 2004-08-25 Fernando Perez <fperez@colorado.edu>
3111 2004-08-25 Fernando Perez <fperez@colorado.edu>
3112
3112
3113 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3113 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3114 John. Along with some recent changes he made to matplotlib, the
3114 John. Along with some recent changes he made to matplotlib, the
3115 next versions of both systems should work very well together.
3115 next versions of both systems should work very well together.
3116
3116
3117 2004-08-24 Fernando Perez <fperez@colorado.edu>
3117 2004-08-24 Fernando Perez <fperez@colorado.edu>
3118
3118
3119 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3119 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3120 tried to switch the profiling to using hotshot, but I'm getting
3120 tried to switch the profiling to using hotshot, but I'm getting
3121 strange errors from prof.runctx() there. I may be misreading the
3121 strange errors from prof.runctx() there. I may be misreading the
3122 docs, but it looks weird. For now the profiling code will
3122 docs, but it looks weird. For now the profiling code will
3123 continue to use the standard profiler.
3123 continue to use the standard profiler.
3124
3124
3125 2004-08-23 Fernando Perez <fperez@colorado.edu>
3125 2004-08-23 Fernando Perez <fperez@colorado.edu>
3126
3126
3127 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3127 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3128 threaded shell, by John Hunter. It's not quite ready yet, but
3128 threaded shell, by John Hunter. It's not quite ready yet, but
3129 close.
3129 close.
3130
3130
3131 2004-08-22 Fernando Perez <fperez@colorado.edu>
3131 2004-08-22 Fernando Perez <fperez@colorado.edu>
3132
3132
3133 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3133 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3134 in Magic and ultraTB.
3134 in Magic and ultraTB.
3135
3135
3136 * ipython.1: document threading options in manpage.
3136 * ipython.1: document threading options in manpage.
3137
3137
3138 * scripts/ipython: Changed name of -thread option to -gthread,
3138 * scripts/ipython: Changed name of -thread option to -gthread,
3139 since this is GTK specific. I want to leave the door open for a
3139 since this is GTK specific. I want to leave the door open for a
3140 -wthread option for WX, which will most likely be necessary. This
3140 -wthread option for WX, which will most likely be necessary. This
3141 change affects usage and ipmaker as well.
3141 change affects usage and ipmaker as well.
3142
3142
3143 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3143 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3144 handle the matplotlib shell issues. Code by John Hunter
3144 handle the matplotlib shell issues. Code by John Hunter
3145 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3145 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3146 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3146 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3147 broken (and disabled for end users) for now, but it puts the
3147 broken (and disabled for end users) for now, but it puts the
3148 infrastructure in place.
3148 infrastructure in place.
3149
3149
3150 2004-08-21 Fernando Perez <fperez@colorado.edu>
3150 2004-08-21 Fernando Perez <fperez@colorado.edu>
3151
3151
3152 * ipythonrc-pylab: Add matplotlib support.
3152 * ipythonrc-pylab: Add matplotlib support.
3153
3153
3154 * matplotlib_config.py: new files for matplotlib support, part of
3154 * matplotlib_config.py: new files for matplotlib support, part of
3155 the pylab profile.
3155 the pylab profile.
3156
3156
3157 * IPython/usage.py (__doc__): documented the threading options.
3157 * IPython/usage.py (__doc__): documented the threading options.
3158
3158
3159 2004-08-20 Fernando Perez <fperez@colorado.edu>
3159 2004-08-20 Fernando Perez <fperez@colorado.edu>
3160
3160
3161 * ipython: Modified the main calling routine to handle the -thread
3161 * ipython: Modified the main calling routine to handle the -thread
3162 and -mpthread options. This needs to be done as a top-level hack,
3162 and -mpthread options. This needs to be done as a top-level hack,
3163 because it determines which class to instantiate for IPython
3163 because it determines which class to instantiate for IPython
3164 itself.
3164 itself.
3165
3165
3166 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3166 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3167 classes to support multithreaded GTK operation without blocking,
3167 classes to support multithreaded GTK operation without blocking,
3168 and matplotlib with all backends. This is a lot of still very
3168 and matplotlib with all backends. This is a lot of still very
3169 experimental code, and threads are tricky. So it may still have a
3169 experimental code, and threads are tricky. So it may still have a
3170 few rough edges... This code owes a lot to
3170 few rough edges... This code owes a lot to
3171 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3171 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3172 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3172 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3173 to John Hunter for all the matplotlib work.
3173 to John Hunter for all the matplotlib work.
3174
3174
3175 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3175 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3176 options for gtk thread and matplotlib support.
3176 options for gtk thread and matplotlib support.
3177
3177
3178 2004-08-16 Fernando Perez <fperez@colorado.edu>
3178 2004-08-16 Fernando Perez <fperez@colorado.edu>
3179
3179
3180 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3180 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3181 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3181 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3182 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3182 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3183
3183
3184 2004-08-11 Fernando Perez <fperez@colorado.edu>
3184 2004-08-11 Fernando Perez <fperez@colorado.edu>
3185
3185
3186 * setup.py (isfile): Fix build so documentation gets updated for
3186 * setup.py (isfile): Fix build so documentation gets updated for
3187 rpms (it was only done for .tgz builds).
3187 rpms (it was only done for .tgz builds).
3188
3188
3189 2004-08-10 Fernando Perez <fperez@colorado.edu>
3189 2004-08-10 Fernando Perez <fperez@colorado.edu>
3190
3190
3191 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3191 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3192
3192
3193 * iplib.py : Silence syntax error exceptions in tab-completion.
3193 * iplib.py : Silence syntax error exceptions in tab-completion.
3194
3194
3195 2004-08-05 Fernando Perez <fperez@colorado.edu>
3195 2004-08-05 Fernando Perez <fperez@colorado.edu>
3196
3196
3197 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3197 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3198 'color off' mark for continuation prompts. This was causing long
3198 'color off' mark for continuation prompts. This was causing long
3199 continuation lines to mis-wrap.
3199 continuation lines to mis-wrap.
3200
3200
3201 2004-08-01 Fernando Perez <fperez@colorado.edu>
3201 2004-08-01 Fernando Perez <fperez@colorado.edu>
3202
3202
3203 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3203 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3204 for building ipython to be a parameter. All this is necessary
3204 for building ipython to be a parameter. All this is necessary
3205 right now to have a multithreaded version, but this insane
3205 right now to have a multithreaded version, but this insane
3206 non-design will be cleaned up soon. For now, it's a hack that
3206 non-design will be cleaned up soon. For now, it's a hack that
3207 works.
3207 works.
3208
3208
3209 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3209 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3210 args in various places. No bugs so far, but it's a dangerous
3210 args in various places. No bugs so far, but it's a dangerous
3211 practice.
3211 practice.
3212
3212
3213 2004-07-31 Fernando Perez <fperez@colorado.edu>
3213 2004-07-31 Fernando Perez <fperez@colorado.edu>
3214
3214
3215 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3215 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3216 fix completion of files with dots in their names under most
3216 fix completion of files with dots in their names under most
3217 profiles (pysh was OK because the completion order is different).
3217 profiles (pysh was OK because the completion order is different).
3218
3218
3219 2004-07-27 Fernando Perez <fperez@colorado.edu>
3219 2004-07-27 Fernando Perez <fperez@colorado.edu>
3220
3220
3221 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3221 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3222 keywords manually, b/c the one in keyword.py was removed in python
3222 keywords manually, b/c the one in keyword.py was removed in python
3223 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3223 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3224 This is NOT a bug under python 2.3 and earlier.
3224 This is NOT a bug under python 2.3 and earlier.
3225
3225
3226 2004-07-26 Fernando Perez <fperez@colorado.edu>
3226 2004-07-26 Fernando Perez <fperez@colorado.edu>
3227
3227
3228 * IPython/ultraTB.py (VerboseTB.text): Add another
3228 * IPython/ultraTB.py (VerboseTB.text): Add another
3229 linecache.checkcache() call to try to prevent inspect.py from
3229 linecache.checkcache() call to try to prevent inspect.py from
3230 crashing under python 2.3. I think this fixes
3230 crashing under python 2.3. I think this fixes
3231 http://www.scipy.net/roundup/ipython/issue17.
3231 http://www.scipy.net/roundup/ipython/issue17.
3232
3232
3233 2004-07-26 *** Released version 0.6.2
3233 2004-07-26 *** Released version 0.6.2
3234
3234
3235 2004-07-26 Fernando Perez <fperez@colorado.edu>
3235 2004-07-26 Fernando Perez <fperez@colorado.edu>
3236
3236
3237 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3237 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3238 fail for any number.
3238 fail for any number.
3239 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3239 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3240 empty bookmarks.
3240 empty bookmarks.
3241
3241
3242 2004-07-26 *** Released version 0.6.1
3242 2004-07-26 *** Released version 0.6.1
3243
3243
3244 2004-07-26 Fernando Perez <fperez@colorado.edu>
3244 2004-07-26 Fernando Perez <fperez@colorado.edu>
3245
3245
3246 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3246 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3247
3247
3248 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3248 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3249 escaping '()[]{}' in filenames.
3249 escaping '()[]{}' in filenames.
3250
3250
3251 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3251 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3252 Python 2.2 users who lack a proper shlex.split.
3252 Python 2.2 users who lack a proper shlex.split.
3253
3253
3254 2004-07-19 Fernando Perez <fperez@colorado.edu>
3254 2004-07-19 Fernando Perez <fperez@colorado.edu>
3255
3255
3256 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3256 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3257 for reading readline's init file. I follow the normal chain:
3257 for reading readline's init file. I follow the normal chain:
3258 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3258 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3259 report by Mike Heeter. This closes
3259 report by Mike Heeter. This closes
3260 http://www.scipy.net/roundup/ipython/issue16.
3260 http://www.scipy.net/roundup/ipython/issue16.
3261
3261
3262 2004-07-18 Fernando Perez <fperez@colorado.edu>
3262 2004-07-18 Fernando Perez <fperez@colorado.edu>
3263
3263
3264 * IPython/iplib.py (__init__): Add better handling of '\' under
3264 * IPython/iplib.py (__init__): Add better handling of '\' under
3265 Win32 for filenames. After a patch by Ville.
3265 Win32 for filenames. After a patch by Ville.
3266
3266
3267 2004-07-17 Fernando Perez <fperez@colorado.edu>
3267 2004-07-17 Fernando Perez <fperez@colorado.edu>
3268
3268
3269 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3269 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3270 autocalling would be triggered for 'foo is bar' if foo is
3270 autocalling would be triggered for 'foo is bar' if foo is
3271 callable. I also cleaned up the autocall detection code to use a
3271 callable. I also cleaned up the autocall detection code to use a
3272 regexp, which is faster. Bug reported by Alexander Schmolck.
3272 regexp, which is faster. Bug reported by Alexander Schmolck.
3273
3273
3274 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3274 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3275 '?' in them would confuse the help system. Reported by Alex
3275 '?' in them would confuse the help system. Reported by Alex
3276 Schmolck.
3276 Schmolck.
3277
3277
3278 2004-07-16 Fernando Perez <fperez@colorado.edu>
3278 2004-07-16 Fernando Perez <fperez@colorado.edu>
3279
3279
3280 * IPython/GnuplotInteractive.py (__all__): added plot2.
3280 * IPython/GnuplotInteractive.py (__all__): added plot2.
3281
3281
3282 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3282 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3283 plotting dictionaries, lists or tuples of 1d arrays.
3283 plotting dictionaries, lists or tuples of 1d arrays.
3284
3284
3285 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3285 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3286 optimizations.
3286 optimizations.
3287
3287
3288 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3288 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3289 the information which was there from Janko's original IPP code:
3289 the information which was there from Janko's original IPP code:
3290
3290
3291 03.05.99 20:53 porto.ifm.uni-kiel.de
3291 03.05.99 20:53 porto.ifm.uni-kiel.de
3292 --Started changelog.
3292 --Started changelog.
3293 --make clear do what it say it does
3293 --make clear do what it say it does
3294 --added pretty output of lines from inputcache
3294 --added pretty output of lines from inputcache
3295 --Made Logger a mixin class, simplifies handling of switches
3295 --Made Logger a mixin class, simplifies handling of switches
3296 --Added own completer class. .string<TAB> expands to last history
3296 --Added own completer class. .string<TAB> expands to last history
3297 line which starts with string. The new expansion is also present
3297 line which starts with string. The new expansion is also present
3298 with Ctrl-r from the readline library. But this shows, who this
3298 with Ctrl-r from the readline library. But this shows, who this
3299 can be done for other cases.
3299 can be done for other cases.
3300 --Added convention that all shell functions should accept a
3300 --Added convention that all shell functions should accept a
3301 parameter_string This opens the door for different behaviour for
3301 parameter_string This opens the door for different behaviour for
3302 each function. @cd is a good example of this.
3302 each function. @cd is a good example of this.
3303
3303
3304 04.05.99 12:12 porto.ifm.uni-kiel.de
3304 04.05.99 12:12 porto.ifm.uni-kiel.de
3305 --added logfile rotation
3305 --added logfile rotation
3306 --added new mainloop method which freezes first the namespace
3306 --added new mainloop method which freezes first the namespace
3307
3307
3308 07.05.99 21:24 porto.ifm.uni-kiel.de
3308 07.05.99 21:24 porto.ifm.uni-kiel.de
3309 --added the docreader classes. Now there is a help system.
3309 --added the docreader classes. Now there is a help system.
3310 -This is only a first try. Currently it's not easy to put new
3310 -This is only a first try. Currently it's not easy to put new
3311 stuff in the indices. But this is the way to go. Info would be
3311 stuff in the indices. But this is the way to go. Info would be
3312 better, but HTML is every where and not everybody has an info
3312 better, but HTML is every where and not everybody has an info
3313 system installed and it's not so easy to change html-docs to info.
3313 system installed and it's not so easy to change html-docs to info.
3314 --added global logfile option
3314 --added global logfile option
3315 --there is now a hook for object inspection method pinfo needs to
3315 --there is now a hook for object inspection method pinfo needs to
3316 be provided for this. Can be reached by two '??'.
3316 be provided for this. Can be reached by two '??'.
3317
3317
3318 08.05.99 20:51 porto.ifm.uni-kiel.de
3318 08.05.99 20:51 porto.ifm.uni-kiel.de
3319 --added a README
3319 --added a README
3320 --bug in rc file. Something has changed so functions in the rc
3320 --bug in rc file. Something has changed so functions in the rc
3321 file need to reference the shell and not self. Not clear if it's a
3321 file need to reference the shell and not self. Not clear if it's a
3322 bug or feature.
3322 bug or feature.
3323 --changed rc file for new behavior
3323 --changed rc file for new behavior
3324
3324
3325 2004-07-15 Fernando Perez <fperez@colorado.edu>
3325 2004-07-15 Fernando Perez <fperez@colorado.edu>
3326
3326
3327 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3327 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3328 cache was falling out of sync in bizarre manners when multi-line
3328 cache was falling out of sync in bizarre manners when multi-line
3329 input was present. Minor optimizations and cleanup.
3329 input was present. Minor optimizations and cleanup.
3330
3330
3331 (Logger): Remove old Changelog info for cleanup. This is the
3331 (Logger): Remove old Changelog info for cleanup. This is the
3332 information which was there from Janko's original code:
3332 information which was there from Janko's original code:
3333
3333
3334 Changes to Logger: - made the default log filename a parameter
3334 Changes to Logger: - made the default log filename a parameter
3335
3335
3336 - put a check for lines beginning with !@? in log(). Needed
3336 - put a check for lines beginning with !@? in log(). Needed
3337 (even if the handlers properly log their lines) for mid-session
3337 (even if the handlers properly log their lines) for mid-session
3338 logging activation to work properly. Without this, lines logged
3338 logging activation to work properly. Without this, lines logged
3339 in mid session, which get read from the cache, would end up
3339 in mid session, which get read from the cache, would end up
3340 'bare' (with !@? in the open) in the log. Now they are caught
3340 'bare' (with !@? in the open) in the log. Now they are caught
3341 and prepended with a #.
3341 and prepended with a #.
3342
3342
3343 * IPython/iplib.py (InteractiveShell.init_readline): added check
3343 * IPython/iplib.py (InteractiveShell.init_readline): added check
3344 in case MagicCompleter fails to be defined, so we don't crash.
3344 in case MagicCompleter fails to be defined, so we don't crash.
3345
3345
3346 2004-07-13 Fernando Perez <fperez@colorado.edu>
3346 2004-07-13 Fernando Perez <fperez@colorado.edu>
3347
3347
3348 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3348 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3349 of EPS if the requested filename ends in '.eps'.
3349 of EPS if the requested filename ends in '.eps'.
3350
3350
3351 2004-07-04 Fernando Perez <fperez@colorado.edu>
3351 2004-07-04 Fernando Perez <fperez@colorado.edu>
3352
3352
3353 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3353 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3354 escaping of quotes when calling the shell.
3354 escaping of quotes when calling the shell.
3355
3355
3356 2004-07-02 Fernando Perez <fperez@colorado.edu>
3356 2004-07-02 Fernando Perez <fperez@colorado.edu>
3357
3357
3358 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3358 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3359 gettext not working because we were clobbering '_'. Fixes
3359 gettext not working because we were clobbering '_'. Fixes
3360 http://www.scipy.net/roundup/ipython/issue6.
3360 http://www.scipy.net/roundup/ipython/issue6.
3361
3361
3362 2004-07-01 Fernando Perez <fperez@colorado.edu>
3362 2004-07-01 Fernando Perez <fperez@colorado.edu>
3363
3363
3364 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3364 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3365 into @cd. Patch by Ville.
3365 into @cd. Patch by Ville.
3366
3366
3367 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3367 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3368 new function to store things after ipmaker runs. Patch by Ville.
3368 new function to store things after ipmaker runs. Patch by Ville.
3369 Eventually this will go away once ipmaker is removed and the class
3369 Eventually this will go away once ipmaker is removed and the class
3370 gets cleaned up, but for now it's ok. Key functionality here is
3370 gets cleaned up, but for now it's ok. Key functionality here is
3371 the addition of the persistent storage mechanism, a dict for
3371 the addition of the persistent storage mechanism, a dict for
3372 keeping data across sessions (for now just bookmarks, but more can
3372 keeping data across sessions (for now just bookmarks, but more can
3373 be implemented later).
3373 be implemented later).
3374
3374
3375 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3375 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3376 persistent across sections. Patch by Ville, I modified it
3376 persistent across sections. Patch by Ville, I modified it
3377 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3377 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3378 added a '-l' option to list all bookmarks.
3378 added a '-l' option to list all bookmarks.
3379
3379
3380 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3380 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3381 center for cleanup. Registered with atexit.register(). I moved
3381 center for cleanup. Registered with atexit.register(). I moved
3382 here the old exit_cleanup(). After a patch by Ville.
3382 here the old exit_cleanup(). After a patch by Ville.
3383
3383
3384 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3384 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3385 characters in the hacked shlex_split for python 2.2.
3385 characters in the hacked shlex_split for python 2.2.
3386
3386
3387 * IPython/iplib.py (file_matches): more fixes to filenames with
3387 * IPython/iplib.py (file_matches): more fixes to filenames with
3388 whitespace in them. It's not perfect, but limitations in python's
3388 whitespace in them. It's not perfect, but limitations in python's
3389 readline make it impossible to go further.
3389 readline make it impossible to go further.
3390
3390
3391 2004-06-29 Fernando Perez <fperez@colorado.edu>
3391 2004-06-29 Fernando Perez <fperez@colorado.edu>
3392
3392
3393 * IPython/iplib.py (file_matches): escape whitespace correctly in
3393 * IPython/iplib.py (file_matches): escape whitespace correctly in
3394 filename completions. Bug reported by Ville.
3394 filename completions. Bug reported by Ville.
3395
3395
3396 2004-06-28 Fernando Perez <fperez@colorado.edu>
3396 2004-06-28 Fernando Perez <fperez@colorado.edu>
3397
3397
3398 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3398 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3399 the history file will be called 'history-PROFNAME' (or just
3399 the history file will be called 'history-PROFNAME' (or just
3400 'history' if no profile is loaded). I was getting annoyed at
3400 'history' if no profile is loaded). I was getting annoyed at
3401 getting my Numerical work history clobbered by pysh sessions.
3401 getting my Numerical work history clobbered by pysh sessions.
3402
3402
3403 * IPython/iplib.py (InteractiveShell.__init__): Internal
3403 * IPython/iplib.py (InteractiveShell.__init__): Internal
3404 getoutputerror() function so that we can honor the system_verbose
3404 getoutputerror() function so that we can honor the system_verbose
3405 flag for _all_ system calls. I also added escaping of #
3405 flag for _all_ system calls. I also added escaping of #
3406 characters here to avoid confusing Itpl.
3406 characters here to avoid confusing Itpl.
3407
3407
3408 * IPython/Magic.py (shlex_split): removed call to shell in
3408 * IPython/Magic.py (shlex_split): removed call to shell in
3409 parse_options and replaced it with shlex.split(). The annoying
3409 parse_options and replaced it with shlex.split(). The annoying
3410 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3410 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3411 to backport it from 2.3, with several frail hacks (the shlex
3411 to backport it from 2.3, with several frail hacks (the shlex
3412 module is rather limited in 2.2). Thanks to a suggestion by Ville
3412 module is rather limited in 2.2). Thanks to a suggestion by Ville
3413 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3413 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3414 problem.
3414 problem.
3415
3415
3416 (Magic.magic_system_verbose): new toggle to print the actual
3416 (Magic.magic_system_verbose): new toggle to print the actual
3417 system calls made by ipython. Mainly for debugging purposes.
3417 system calls made by ipython. Mainly for debugging purposes.
3418
3418
3419 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3419 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3420 doesn't support persistence. Reported (and fix suggested) by
3420 doesn't support persistence. Reported (and fix suggested) by
3421 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3421 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3422
3422
3423 2004-06-26 Fernando Perez <fperez@colorado.edu>
3423 2004-06-26 Fernando Perez <fperez@colorado.edu>
3424
3424
3425 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3425 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3426 continue prompts.
3426 continue prompts.
3427
3427
3428 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3428 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3429 function (basically a big docstring) and a few more things here to
3429 function (basically a big docstring) and a few more things here to
3430 speedup startup. pysh.py is now very lightweight. We want because
3430 speedup startup. pysh.py is now very lightweight. We want because
3431 it gets execfile'd, while InterpreterExec gets imported, so
3431 it gets execfile'd, while InterpreterExec gets imported, so
3432 byte-compilation saves time.
3432 byte-compilation saves time.
3433
3433
3434 2004-06-25 Fernando Perez <fperez@colorado.edu>
3434 2004-06-25 Fernando Perez <fperez@colorado.edu>
3435
3435
3436 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3436 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3437 -NUM', which was recently broken.
3437 -NUM', which was recently broken.
3438
3438
3439 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3439 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3440 in multi-line input (but not !!, which doesn't make sense there).
3440 in multi-line input (but not !!, which doesn't make sense there).
3441
3441
3442 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3442 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3443 It's just too useful, and people can turn it off in the less
3443 It's just too useful, and people can turn it off in the less
3444 common cases where it's a problem.
3444 common cases where it's a problem.
3445
3445
3446 2004-06-24 Fernando Perez <fperez@colorado.edu>
3446 2004-06-24 Fernando Perez <fperez@colorado.edu>
3447
3447
3448 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3448 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3449 special syntaxes (like alias calling) is now allied in multi-line
3449 special syntaxes (like alias calling) is now allied in multi-line
3450 input. This is still _very_ experimental, but it's necessary for
3450 input. This is still _very_ experimental, but it's necessary for
3451 efficient shell usage combining python looping syntax with system
3451 efficient shell usage combining python looping syntax with system
3452 calls. For now it's restricted to aliases, I don't think it
3452 calls. For now it's restricted to aliases, I don't think it
3453 really even makes sense to have this for magics.
3453 really even makes sense to have this for magics.
3454
3454
3455 2004-06-23 Fernando Perez <fperez@colorado.edu>
3455 2004-06-23 Fernando Perez <fperez@colorado.edu>
3456
3456
3457 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3457 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3458 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3458 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3459
3459
3460 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3460 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3461 extensions under Windows (after code sent by Gary Bishop). The
3461 extensions under Windows (after code sent by Gary Bishop). The
3462 extensions considered 'executable' are stored in IPython's rc
3462 extensions considered 'executable' are stored in IPython's rc
3463 structure as win_exec_ext.
3463 structure as win_exec_ext.
3464
3464
3465 * IPython/genutils.py (shell): new function, like system() but
3465 * IPython/genutils.py (shell): new function, like system() but
3466 without return value. Very useful for interactive shell work.
3466 without return value. Very useful for interactive shell work.
3467
3467
3468 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3468 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3469 delete aliases.
3469 delete aliases.
3470
3470
3471 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3471 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3472 sure that the alias table doesn't contain python keywords.
3472 sure that the alias table doesn't contain python keywords.
3473
3473
3474 2004-06-21 Fernando Perez <fperez@colorado.edu>
3474 2004-06-21 Fernando Perez <fperez@colorado.edu>
3475
3475
3476 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3476 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3477 non-existent items are found in $PATH. Reported by Thorsten.
3477 non-existent items are found in $PATH. Reported by Thorsten.
3478
3478
3479 2004-06-20 Fernando Perez <fperez@colorado.edu>
3479 2004-06-20 Fernando Perez <fperez@colorado.edu>
3480
3480
3481 * IPython/iplib.py (complete): modified the completer so that the
3481 * IPython/iplib.py (complete): modified the completer so that the
3482 order of priorities can be easily changed at runtime.
3482 order of priorities can be easily changed at runtime.
3483
3483
3484 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3484 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3485 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3485 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3486
3486
3487 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3487 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3488 expand Python variables prepended with $ in all system calls. The
3488 expand Python variables prepended with $ in all system calls. The
3489 same was done to InteractiveShell.handle_shell_escape. Now all
3489 same was done to InteractiveShell.handle_shell_escape. Now all
3490 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3490 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3491 expansion of python variables and expressions according to the
3491 expansion of python variables and expressions according to the
3492 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3492 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3493
3493
3494 Though PEP-215 has been rejected, a similar (but simpler) one
3494 Though PEP-215 has been rejected, a similar (but simpler) one
3495 seems like it will go into Python 2.4, PEP-292 -
3495 seems like it will go into Python 2.4, PEP-292 -
3496 http://www.python.org/peps/pep-0292.html.
3496 http://www.python.org/peps/pep-0292.html.
3497
3497
3498 I'll keep the full syntax of PEP-215, since IPython has since the
3498 I'll keep the full syntax of PEP-215, since IPython has since the
3499 start used Ka-Ping Yee's reference implementation discussed there
3499 start used Ka-Ping Yee's reference implementation discussed there
3500 (Itpl), and I actually like the powerful semantics it offers.
3500 (Itpl), and I actually like the powerful semantics it offers.
3501
3501
3502 In order to access normal shell variables, the $ has to be escaped
3502 In order to access normal shell variables, the $ has to be escaped
3503 via an extra $. For example:
3503 via an extra $. For example:
3504
3504
3505 In [7]: PATH='a python variable'
3505 In [7]: PATH='a python variable'
3506
3506
3507 In [8]: !echo $PATH
3507 In [8]: !echo $PATH
3508 a python variable
3508 a python variable
3509
3509
3510 In [9]: !echo $$PATH
3510 In [9]: !echo $$PATH
3511 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3511 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3512
3512
3513 (Magic.parse_options): escape $ so the shell doesn't evaluate
3513 (Magic.parse_options): escape $ so the shell doesn't evaluate
3514 things prematurely.
3514 things prematurely.
3515
3515
3516 * IPython/iplib.py (InteractiveShell.call_alias): added the
3516 * IPython/iplib.py (InteractiveShell.call_alias): added the
3517 ability for aliases to expand python variables via $.
3517 ability for aliases to expand python variables via $.
3518
3518
3519 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3519 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3520 system, now there's a @rehash/@rehashx pair of magics. These work
3520 system, now there's a @rehash/@rehashx pair of magics. These work
3521 like the csh rehash command, and can be invoked at any time. They
3521 like the csh rehash command, and can be invoked at any time. They
3522 build a table of aliases to everything in the user's $PATH
3522 build a table of aliases to everything in the user's $PATH
3523 (@rehash uses everything, @rehashx is slower but only adds
3523 (@rehash uses everything, @rehashx is slower but only adds
3524 executable files). With this, the pysh.py-based shell profile can
3524 executable files). With this, the pysh.py-based shell profile can
3525 now simply call rehash upon startup, and full access to all
3525 now simply call rehash upon startup, and full access to all
3526 programs in the user's path is obtained.
3526 programs in the user's path is obtained.
3527
3527
3528 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3528 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3529 functionality is now fully in place. I removed the old dynamic
3529 functionality is now fully in place. I removed the old dynamic
3530 code generation based approach, in favor of a much lighter one
3530 code generation based approach, in favor of a much lighter one
3531 based on a simple dict. The advantage is that this allows me to
3531 based on a simple dict. The advantage is that this allows me to
3532 now have thousands of aliases with negligible cost (unthinkable
3532 now have thousands of aliases with negligible cost (unthinkable
3533 with the old system).
3533 with the old system).
3534
3534
3535 2004-06-19 Fernando Perez <fperez@colorado.edu>
3535 2004-06-19 Fernando Perez <fperez@colorado.edu>
3536
3536
3537 * IPython/iplib.py (__init__): extended MagicCompleter class to
3537 * IPython/iplib.py (__init__): extended MagicCompleter class to
3538 also complete (last in priority) on user aliases.
3538 also complete (last in priority) on user aliases.
3539
3539
3540 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3540 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3541 call to eval.
3541 call to eval.
3542 (ItplNS.__init__): Added a new class which functions like Itpl,
3542 (ItplNS.__init__): Added a new class which functions like Itpl,
3543 but allows configuring the namespace for the evaluation to occur
3543 but allows configuring the namespace for the evaluation to occur
3544 in.
3544 in.
3545
3545
3546 2004-06-18 Fernando Perez <fperez@colorado.edu>
3546 2004-06-18 Fernando Perez <fperez@colorado.edu>
3547
3547
3548 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3548 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3549 better message when 'exit' or 'quit' are typed (a common newbie
3549 better message when 'exit' or 'quit' are typed (a common newbie
3550 confusion).
3550 confusion).
3551
3551
3552 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3552 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3553 check for Windows users.
3553 check for Windows users.
3554
3554
3555 * IPython/iplib.py (InteractiveShell.user_setup): removed
3555 * IPython/iplib.py (InteractiveShell.user_setup): removed
3556 disabling of colors for Windows. I'll test at runtime and issue a
3556 disabling of colors for Windows. I'll test at runtime and issue a
3557 warning if Gary's readline isn't found, as to nudge users to
3557 warning if Gary's readline isn't found, as to nudge users to
3558 download it.
3558 download it.
3559
3559
3560 2004-06-16 Fernando Perez <fperez@colorado.edu>
3560 2004-06-16 Fernando Perez <fperez@colorado.edu>
3561
3561
3562 * IPython/genutils.py (Stream.__init__): changed to print errors
3562 * IPython/genutils.py (Stream.__init__): changed to print errors
3563 to sys.stderr. I had a circular dependency here. Now it's
3563 to sys.stderr. I had a circular dependency here. Now it's
3564 possible to run ipython as IDLE's shell (consider this pre-alpha,
3564 possible to run ipython as IDLE's shell (consider this pre-alpha,
3565 since true stdout things end up in the starting terminal instead
3565 since true stdout things end up in the starting terminal instead
3566 of IDLE's out).
3566 of IDLE's out).
3567
3567
3568 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3568 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3569 users who haven't # updated their prompt_in2 definitions. Remove
3569 users who haven't # updated their prompt_in2 definitions. Remove
3570 eventually.
3570 eventually.
3571 (multiple_replace): added credit to original ASPN recipe.
3571 (multiple_replace): added credit to original ASPN recipe.
3572
3572
3573 2004-06-15 Fernando Perez <fperez@colorado.edu>
3573 2004-06-15 Fernando Perez <fperez@colorado.edu>
3574
3574
3575 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3575 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3576 list of auto-defined aliases.
3576 list of auto-defined aliases.
3577
3577
3578 2004-06-13 Fernando Perez <fperez@colorado.edu>
3578 2004-06-13 Fernando Perez <fperez@colorado.edu>
3579
3579
3580 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3580 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3581 install was really requested (so setup.py can be used for other
3581 install was really requested (so setup.py can be used for other
3582 things under Windows).
3582 things under Windows).
3583
3583
3584 2004-06-10 Fernando Perez <fperez@colorado.edu>
3584 2004-06-10 Fernando Perez <fperez@colorado.edu>
3585
3585
3586 * IPython/Logger.py (Logger.create_log): Manually remove any old
3586 * IPython/Logger.py (Logger.create_log): Manually remove any old
3587 backup, since os.remove may fail under Windows. Fixes bug
3587 backup, since os.remove may fail under Windows. Fixes bug
3588 reported by Thorsten.
3588 reported by Thorsten.
3589
3589
3590 2004-06-09 Fernando Perez <fperez@colorado.edu>
3590 2004-06-09 Fernando Perez <fperez@colorado.edu>
3591
3591
3592 * examples/example-embed.py: fixed all references to %n (replaced
3592 * examples/example-embed.py: fixed all references to %n (replaced
3593 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3593 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3594 for all examples and the manual as well.
3594 for all examples and the manual as well.
3595
3595
3596 2004-06-08 Fernando Perez <fperez@colorado.edu>
3596 2004-06-08 Fernando Perez <fperez@colorado.edu>
3597
3597
3598 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3598 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3599 alignment and color management. All 3 prompt subsystems now
3599 alignment and color management. All 3 prompt subsystems now
3600 inherit from BasePrompt.
3600 inherit from BasePrompt.
3601
3601
3602 * tools/release: updates for windows installer build and tag rpms
3602 * tools/release: updates for windows installer build and tag rpms
3603 with python version (since paths are fixed).
3603 with python version (since paths are fixed).
3604
3604
3605 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3605 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3606 which will become eventually obsolete. Also fixed the default
3606 which will become eventually obsolete. Also fixed the default
3607 prompt_in2 to use \D, so at least new users start with the correct
3607 prompt_in2 to use \D, so at least new users start with the correct
3608 defaults.
3608 defaults.
3609 WARNING: Users with existing ipythonrc files will need to apply
3609 WARNING: Users with existing ipythonrc files will need to apply
3610 this fix manually!
3610 this fix manually!
3611
3611
3612 * setup.py: make windows installer (.exe). This is finally the
3612 * setup.py: make windows installer (.exe). This is finally the
3613 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3613 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3614 which I hadn't included because it required Python 2.3 (or recent
3614 which I hadn't included because it required Python 2.3 (or recent
3615 distutils).
3615 distutils).
3616
3616
3617 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3617 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3618 usage of new '\D' escape.
3618 usage of new '\D' escape.
3619
3619
3620 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3620 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3621 lacks os.getuid())
3621 lacks os.getuid())
3622 (CachedOutput.set_colors): Added the ability to turn coloring
3622 (CachedOutput.set_colors): Added the ability to turn coloring
3623 on/off with @colors even for manually defined prompt colors. It
3623 on/off with @colors even for manually defined prompt colors. It
3624 uses a nasty global, but it works safely and via the generic color
3624 uses a nasty global, but it works safely and via the generic color
3625 handling mechanism.
3625 handling mechanism.
3626 (Prompt2.__init__): Introduced new escape '\D' for continuation
3626 (Prompt2.__init__): Introduced new escape '\D' for continuation
3627 prompts. It represents the counter ('\#') as dots.
3627 prompts. It represents the counter ('\#') as dots.
3628 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3628 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3629 need to update their ipythonrc files and replace '%n' with '\D' in
3629 need to update their ipythonrc files and replace '%n' with '\D' in
3630 their prompt_in2 settings everywhere. Sorry, but there's
3630 their prompt_in2 settings everywhere. Sorry, but there's
3631 otherwise no clean way to get all prompts to properly align. The
3631 otherwise no clean way to get all prompts to properly align. The
3632 ipythonrc shipped with IPython has been updated.
3632 ipythonrc shipped with IPython has been updated.
3633
3633
3634 2004-06-07 Fernando Perez <fperez@colorado.edu>
3634 2004-06-07 Fernando Perez <fperez@colorado.edu>
3635
3635
3636 * setup.py (isfile): Pass local_icons option to latex2html, so the
3636 * setup.py (isfile): Pass local_icons option to latex2html, so the
3637 resulting HTML file is self-contained. Thanks to
3637 resulting HTML file is self-contained. Thanks to
3638 dryice-AT-liu.com.cn for the tip.
3638 dryice-AT-liu.com.cn for the tip.
3639
3639
3640 * pysh.py: I created a new profile 'shell', which implements a
3640 * pysh.py: I created a new profile 'shell', which implements a
3641 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3641 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3642 system shell, nor will it become one anytime soon. It's mainly
3642 system shell, nor will it become one anytime soon. It's mainly
3643 meant to illustrate the use of the new flexible bash-like prompts.
3643 meant to illustrate the use of the new flexible bash-like prompts.
3644 I guess it could be used by hardy souls for true shell management,
3644 I guess it could be used by hardy souls for true shell management,
3645 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3645 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3646 profile. This uses the InterpreterExec extension provided by
3646 profile. This uses the InterpreterExec extension provided by
3647 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3647 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3648
3648
3649 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3649 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3650 auto-align itself with the length of the previous input prompt
3650 auto-align itself with the length of the previous input prompt
3651 (taking into account the invisible color escapes).
3651 (taking into account the invisible color escapes).
3652 (CachedOutput.__init__): Large restructuring of this class. Now
3652 (CachedOutput.__init__): Large restructuring of this class. Now
3653 all three prompts (primary1, primary2, output) are proper objects,
3653 all three prompts (primary1, primary2, output) are proper objects,
3654 managed by the 'parent' CachedOutput class. The code is still a
3654 managed by the 'parent' CachedOutput class. The code is still a
3655 bit hackish (all prompts share state via a pointer to the cache),
3655 bit hackish (all prompts share state via a pointer to the cache),
3656 but it's overall far cleaner than before.
3656 but it's overall far cleaner than before.
3657
3657
3658 * IPython/genutils.py (getoutputerror): modified to add verbose,
3658 * IPython/genutils.py (getoutputerror): modified to add verbose,
3659 debug and header options. This makes the interface of all getout*
3659 debug and header options. This makes the interface of all getout*
3660 functions uniform.
3660 functions uniform.
3661 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3661 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3662
3662
3663 * IPython/Magic.py (Magic.default_option): added a function to
3663 * IPython/Magic.py (Magic.default_option): added a function to
3664 allow registering default options for any magic command. This
3664 allow registering default options for any magic command. This
3665 makes it easy to have profiles which customize the magics globally
3665 makes it easy to have profiles which customize the magics globally
3666 for a certain use. The values set through this function are
3666 for a certain use. The values set through this function are
3667 picked up by the parse_options() method, which all magics should
3667 picked up by the parse_options() method, which all magics should
3668 use to parse their options.
3668 use to parse their options.
3669
3669
3670 * IPython/genutils.py (warn): modified the warnings framework to
3670 * IPython/genutils.py (warn): modified the warnings framework to
3671 use the Term I/O class. I'm trying to slowly unify all of
3671 use the Term I/O class. I'm trying to slowly unify all of
3672 IPython's I/O operations to pass through Term.
3672 IPython's I/O operations to pass through Term.
3673
3673
3674 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3674 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3675 the secondary prompt to correctly match the length of the primary
3675 the secondary prompt to correctly match the length of the primary
3676 one for any prompt. Now multi-line code will properly line up
3676 one for any prompt. Now multi-line code will properly line up
3677 even for path dependent prompts, such as the new ones available
3677 even for path dependent prompts, such as the new ones available
3678 via the prompt_specials.
3678 via the prompt_specials.
3679
3679
3680 2004-06-06 Fernando Perez <fperez@colorado.edu>
3680 2004-06-06 Fernando Perez <fperez@colorado.edu>
3681
3681
3682 * IPython/Prompts.py (prompt_specials): Added the ability to have
3682 * IPython/Prompts.py (prompt_specials): Added the ability to have
3683 bash-like special sequences in the prompts, which get
3683 bash-like special sequences in the prompts, which get
3684 automatically expanded. Things like hostname, current working
3684 automatically expanded. Things like hostname, current working
3685 directory and username are implemented already, but it's easy to
3685 directory and username are implemented already, but it's easy to
3686 add more in the future. Thanks to a patch by W.J. van der Laan
3686 add more in the future. Thanks to a patch by W.J. van der Laan
3687 <gnufnork-AT-hetdigitalegat.nl>
3687 <gnufnork-AT-hetdigitalegat.nl>
3688 (prompt_specials): Added color support for prompt strings, so
3688 (prompt_specials): Added color support for prompt strings, so
3689 users can define arbitrary color setups for their prompts.
3689 users can define arbitrary color setups for their prompts.
3690
3690
3691 2004-06-05 Fernando Perez <fperez@colorado.edu>
3691 2004-06-05 Fernando Perez <fperez@colorado.edu>
3692
3692
3693 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3693 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3694 code to load Gary Bishop's readline and configure it
3694 code to load Gary Bishop's readline and configure it
3695 automatically. Thanks to Gary for help on this.
3695 automatically. Thanks to Gary for help on this.
3696
3696
3697 2004-06-01 Fernando Perez <fperez@colorado.edu>
3697 2004-06-01 Fernando Perez <fperez@colorado.edu>
3698
3698
3699 * IPython/Logger.py (Logger.create_log): fix bug for logging
3699 * IPython/Logger.py (Logger.create_log): fix bug for logging
3700 with no filename (previous fix was incomplete).
3700 with no filename (previous fix was incomplete).
3701
3701
3702 2004-05-25 Fernando Perez <fperez@colorado.edu>
3702 2004-05-25 Fernando Perez <fperez@colorado.edu>
3703
3703
3704 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3704 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3705 parens would get passed to the shell.
3705 parens would get passed to the shell.
3706
3706
3707 2004-05-20 Fernando Perez <fperez@colorado.edu>
3707 2004-05-20 Fernando Perez <fperez@colorado.edu>
3708
3708
3709 * IPython/Magic.py (Magic.magic_prun): changed default profile
3709 * IPython/Magic.py (Magic.magic_prun): changed default profile
3710 sort order to 'time' (the more common profiling need).
3710 sort order to 'time' (the more common profiling need).
3711
3711
3712 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3712 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3713 so that source code shown is guaranteed in sync with the file on
3713 so that source code shown is guaranteed in sync with the file on
3714 disk (also changed in psource). Similar fix to the one for
3714 disk (also changed in psource). Similar fix to the one for
3715 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3715 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3716 <yann.ledu-AT-noos.fr>.
3716 <yann.ledu-AT-noos.fr>.
3717
3717
3718 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3718 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3719 with a single option would not be correctly parsed. Closes
3719 with a single option would not be correctly parsed. Closes
3720 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3720 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3721 introduced in 0.6.0 (on 2004-05-06).
3721 introduced in 0.6.0 (on 2004-05-06).
3722
3722
3723 2004-05-13 *** Released version 0.6.0
3723 2004-05-13 *** Released version 0.6.0
3724
3724
3725 2004-05-13 Fernando Perez <fperez@colorado.edu>
3725 2004-05-13 Fernando Perez <fperez@colorado.edu>
3726
3726
3727 * debian/: Added debian/ directory to CVS, so that debian support
3727 * debian/: Added debian/ directory to CVS, so that debian support
3728 is publicly accessible. The debian package is maintained by Jack
3728 is publicly accessible. The debian package is maintained by Jack
3729 Moffit <jack-AT-xiph.org>.
3729 Moffit <jack-AT-xiph.org>.
3730
3730
3731 * Documentation: included the notes about an ipython-based system
3731 * Documentation: included the notes about an ipython-based system
3732 shell (the hypothetical 'pysh') into the new_design.pdf document,
3732 shell (the hypothetical 'pysh') into the new_design.pdf document,
3733 so that these ideas get distributed to users along with the
3733 so that these ideas get distributed to users along with the
3734 official documentation.
3734 official documentation.
3735
3735
3736 2004-05-10 Fernando Perez <fperez@colorado.edu>
3736 2004-05-10 Fernando Perez <fperez@colorado.edu>
3737
3737
3738 * IPython/Logger.py (Logger.create_log): fix recently introduced
3738 * IPython/Logger.py (Logger.create_log): fix recently introduced
3739 bug (misindented line) where logstart would fail when not given an
3739 bug (misindented line) where logstart would fail when not given an
3740 explicit filename.
3740 explicit filename.
3741
3741
3742 2004-05-09 Fernando Perez <fperez@colorado.edu>
3742 2004-05-09 Fernando Perez <fperez@colorado.edu>
3743
3743
3744 * IPython/Magic.py (Magic.parse_options): skip system call when
3744 * IPython/Magic.py (Magic.parse_options): skip system call when
3745 there are no options to look for. Faster, cleaner for the common
3745 there are no options to look for. Faster, cleaner for the common
3746 case.
3746 case.
3747
3747
3748 * Documentation: many updates to the manual: describing Windows
3748 * Documentation: many updates to the manual: describing Windows
3749 support better, Gnuplot updates, credits, misc small stuff. Also
3749 support better, Gnuplot updates, credits, misc small stuff. Also
3750 updated the new_design doc a bit.
3750 updated the new_design doc a bit.
3751
3751
3752 2004-05-06 *** Released version 0.6.0.rc1
3752 2004-05-06 *** Released version 0.6.0.rc1
3753
3753
3754 2004-05-06 Fernando Perez <fperez@colorado.edu>
3754 2004-05-06 Fernando Perez <fperez@colorado.edu>
3755
3755
3756 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3756 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3757 operations to use the vastly more efficient list/''.join() method.
3757 operations to use the vastly more efficient list/''.join() method.
3758 (FormattedTB.text): Fix
3758 (FormattedTB.text): Fix
3759 http://www.scipy.net/roundup/ipython/issue12 - exception source
3759 http://www.scipy.net/roundup/ipython/issue12 - exception source
3760 extract not updated after reload. Thanks to Mike Salib
3760 extract not updated after reload. Thanks to Mike Salib
3761 <msalib-AT-mit.edu> for pinning the source of the problem.
3761 <msalib-AT-mit.edu> for pinning the source of the problem.
3762 Fortunately, the solution works inside ipython and doesn't require
3762 Fortunately, the solution works inside ipython and doesn't require
3763 any changes to python proper.
3763 any changes to python proper.
3764
3764
3765 * IPython/Magic.py (Magic.parse_options): Improved to process the
3765 * IPython/Magic.py (Magic.parse_options): Improved to process the
3766 argument list as a true shell would (by actually using the
3766 argument list as a true shell would (by actually using the
3767 underlying system shell). This way, all @magics automatically get
3767 underlying system shell). This way, all @magics automatically get
3768 shell expansion for variables. Thanks to a comment by Alex
3768 shell expansion for variables. Thanks to a comment by Alex
3769 Schmolck.
3769 Schmolck.
3770
3770
3771 2004-04-04 Fernando Perez <fperez@colorado.edu>
3771 2004-04-04 Fernando Perez <fperez@colorado.edu>
3772
3772
3773 * IPython/iplib.py (InteractiveShell.interact): Added a special
3773 * IPython/iplib.py (InteractiveShell.interact): Added a special
3774 trap for a debugger quit exception, which is basically impossible
3774 trap for a debugger quit exception, which is basically impossible
3775 to handle by normal mechanisms, given what pdb does to the stack.
3775 to handle by normal mechanisms, given what pdb does to the stack.
3776 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3776 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3777
3777
3778 2004-04-03 Fernando Perez <fperez@colorado.edu>
3778 2004-04-03 Fernando Perez <fperez@colorado.edu>
3779
3779
3780 * IPython/genutils.py (Term): Standardized the names of the Term
3780 * IPython/genutils.py (Term): Standardized the names of the Term
3781 class streams to cin/cout/cerr, following C++ naming conventions
3781 class streams to cin/cout/cerr, following C++ naming conventions
3782 (I can't use in/out/err because 'in' is not a valid attribute
3782 (I can't use in/out/err because 'in' is not a valid attribute
3783 name).
3783 name).
3784
3784
3785 * IPython/iplib.py (InteractiveShell.interact): don't increment
3785 * IPython/iplib.py (InteractiveShell.interact): don't increment
3786 the prompt if there's no user input. By Daniel 'Dang' Griffith
3786 the prompt if there's no user input. By Daniel 'Dang' Griffith
3787 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3787 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3788 Francois Pinard.
3788 Francois Pinard.
3789
3789
3790 2004-04-02 Fernando Perez <fperez@colorado.edu>
3790 2004-04-02 Fernando Perez <fperez@colorado.edu>
3791
3791
3792 * IPython/genutils.py (Stream.__init__): Modified to survive at
3792 * IPython/genutils.py (Stream.__init__): Modified to survive at
3793 least importing in contexts where stdin/out/err aren't true file
3793 least importing in contexts where stdin/out/err aren't true file
3794 objects, such as PyCrust (they lack fileno() and mode). However,
3794 objects, such as PyCrust (they lack fileno() and mode). However,
3795 the recovery facilities which rely on these things existing will
3795 the recovery facilities which rely on these things existing will
3796 not work.
3796 not work.
3797
3797
3798 2004-04-01 Fernando Perez <fperez@colorado.edu>
3798 2004-04-01 Fernando Perez <fperez@colorado.edu>
3799
3799
3800 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3800 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3801 use the new getoutputerror() function, so it properly
3801 use the new getoutputerror() function, so it properly
3802 distinguishes stdout/err.
3802 distinguishes stdout/err.
3803
3803
3804 * IPython/genutils.py (getoutputerror): added a function to
3804 * IPython/genutils.py (getoutputerror): added a function to
3805 capture separately the standard output and error of a command.
3805 capture separately the standard output and error of a command.
3806 After a comment from dang on the mailing lists. This code is
3806 After a comment from dang on the mailing lists. This code is
3807 basically a modified version of commands.getstatusoutput(), from
3807 basically a modified version of commands.getstatusoutput(), from
3808 the standard library.
3808 the standard library.
3809
3809
3810 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3810 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3811 '!!' as a special syntax (shorthand) to access @sx.
3811 '!!' as a special syntax (shorthand) to access @sx.
3812
3812
3813 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3813 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3814 command and return its output as a list split on '\n'.
3814 command and return its output as a list split on '\n'.
3815
3815
3816 2004-03-31 Fernando Perez <fperez@colorado.edu>
3816 2004-03-31 Fernando Perez <fperez@colorado.edu>
3817
3817
3818 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3818 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3819 method to dictionaries used as FakeModule instances if they lack
3819 method to dictionaries used as FakeModule instances if they lack
3820 it. At least pydoc in python2.3 breaks for runtime-defined
3820 it. At least pydoc in python2.3 breaks for runtime-defined
3821 functions without this hack. At some point I need to _really_
3821 functions without this hack. At some point I need to _really_
3822 understand what FakeModule is doing, because it's a gross hack.
3822 understand what FakeModule is doing, because it's a gross hack.
3823 But it solves Arnd's problem for now...
3823 But it solves Arnd's problem for now...
3824
3824
3825 2004-02-27 Fernando Perez <fperez@colorado.edu>
3825 2004-02-27 Fernando Perez <fperez@colorado.edu>
3826
3826
3827 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3827 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3828 mode would behave erratically. Also increased the number of
3828 mode would behave erratically. Also increased the number of
3829 possible logs in rotate mod to 999. Thanks to Rod Holland
3829 possible logs in rotate mod to 999. Thanks to Rod Holland
3830 <rhh@StructureLABS.com> for the report and fixes.
3830 <rhh@StructureLABS.com> for the report and fixes.
3831
3831
3832 2004-02-26 Fernando Perez <fperez@colorado.edu>
3832 2004-02-26 Fernando Perez <fperez@colorado.edu>
3833
3833
3834 * IPython/genutils.py (page): Check that the curses module really
3834 * IPython/genutils.py (page): Check that the curses module really
3835 has the initscr attribute before trying to use it. For some
3835 has the initscr attribute before trying to use it. For some
3836 reason, the Solaris curses module is missing this. I think this
3836 reason, the Solaris curses module is missing this. I think this
3837 should be considered a Solaris python bug, but I'm not sure.
3837 should be considered a Solaris python bug, but I'm not sure.
3838
3838
3839 2004-01-17 Fernando Perez <fperez@colorado.edu>
3839 2004-01-17 Fernando Perez <fperez@colorado.edu>
3840
3840
3841 * IPython/genutils.py (Stream.__init__): Changes to try to make
3841 * IPython/genutils.py (Stream.__init__): Changes to try to make
3842 ipython robust against stdin/out/err being closed by the user.
3842 ipython robust against stdin/out/err being closed by the user.
3843 This is 'user error' (and blocks a normal python session, at least
3843 This is 'user error' (and blocks a normal python session, at least
3844 the stdout case). However, Ipython should be able to survive such
3844 the stdout case). However, Ipython should be able to survive such
3845 instances of abuse as gracefully as possible. To simplify the
3845 instances of abuse as gracefully as possible. To simplify the
3846 coding and maintain compatibility with Gary Bishop's Term
3846 coding and maintain compatibility with Gary Bishop's Term
3847 contributions, I've made use of classmethods for this. I think
3847 contributions, I've made use of classmethods for this. I think
3848 this introduces a dependency on python 2.2.
3848 this introduces a dependency on python 2.2.
3849
3849
3850 2004-01-13 Fernando Perez <fperez@colorado.edu>
3850 2004-01-13 Fernando Perez <fperez@colorado.edu>
3851
3851
3852 * IPython/numutils.py (exp_safe): simplified the code a bit and
3852 * IPython/numutils.py (exp_safe): simplified the code a bit and
3853 removed the need for importing the kinds module altogether.
3853 removed the need for importing the kinds module altogether.
3854
3854
3855 2004-01-06 Fernando Perez <fperez@colorado.edu>
3855 2004-01-06 Fernando Perez <fperez@colorado.edu>
3856
3856
3857 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3857 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3858 a magic function instead, after some community feedback. No
3858 a magic function instead, after some community feedback. No
3859 special syntax will exist for it, but its name is deliberately
3859 special syntax will exist for it, but its name is deliberately
3860 very short.
3860 very short.
3861
3861
3862 2003-12-20 Fernando Perez <fperez@colorado.edu>
3862 2003-12-20 Fernando Perez <fperez@colorado.edu>
3863
3863
3864 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3864 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3865 new functionality, to automagically assign the result of a shell
3865 new functionality, to automagically assign the result of a shell
3866 command to a variable. I'll solicit some community feedback on
3866 command to a variable. I'll solicit some community feedback on
3867 this before making it permanent.
3867 this before making it permanent.
3868
3868
3869 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3869 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3870 requested about callables for which inspect couldn't obtain a
3870 requested about callables for which inspect couldn't obtain a
3871 proper argspec. Thanks to a crash report sent by Etienne
3871 proper argspec. Thanks to a crash report sent by Etienne
3872 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3872 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3873
3873
3874 2003-12-09 Fernando Perez <fperez@colorado.edu>
3874 2003-12-09 Fernando Perez <fperez@colorado.edu>
3875
3875
3876 * IPython/genutils.py (page): patch for the pager to work across
3876 * IPython/genutils.py (page): patch for the pager to work across
3877 various versions of Windows. By Gary Bishop.
3877 various versions of Windows. By Gary Bishop.
3878
3878
3879 2003-12-04 Fernando Perez <fperez@colorado.edu>
3879 2003-12-04 Fernando Perez <fperez@colorado.edu>
3880
3880
3881 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3881 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3882 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3882 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3883 While I tested this and it looks ok, there may still be corner
3883 While I tested this and it looks ok, there may still be corner
3884 cases I've missed.
3884 cases I've missed.
3885
3885
3886 2003-12-01 Fernando Perez <fperez@colorado.edu>
3886 2003-12-01 Fernando Perez <fperez@colorado.edu>
3887
3887
3888 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3888 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3889 where a line like 'p,q=1,2' would fail because the automagic
3889 where a line like 'p,q=1,2' would fail because the automagic
3890 system would be triggered for @p.
3890 system would be triggered for @p.
3891
3891
3892 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3892 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3893 cleanups, code unmodified.
3893 cleanups, code unmodified.
3894
3894
3895 * IPython/genutils.py (Term): added a class for IPython to handle
3895 * IPython/genutils.py (Term): added a class for IPython to handle
3896 output. In most cases it will just be a proxy for stdout/err, but
3896 output. In most cases it will just be a proxy for stdout/err, but
3897 having this allows modifications to be made for some platforms,
3897 having this allows modifications to be made for some platforms,
3898 such as handling color escapes under Windows. All of this code
3898 such as handling color escapes under Windows. All of this code
3899 was contributed by Gary Bishop, with minor modifications by me.
3899 was contributed by Gary Bishop, with minor modifications by me.
3900 The actual changes affect many files.
3900 The actual changes affect many files.
3901
3901
3902 2003-11-30 Fernando Perez <fperez@colorado.edu>
3902 2003-11-30 Fernando Perez <fperez@colorado.edu>
3903
3903
3904 * IPython/iplib.py (file_matches): new completion code, courtesy
3904 * IPython/iplib.py (file_matches): new completion code, courtesy
3905 of Jeff Collins. This enables filename completion again under
3905 of Jeff Collins. This enables filename completion again under
3906 python 2.3, which disabled it at the C level.
3906 python 2.3, which disabled it at the C level.
3907
3907
3908 2003-11-11 Fernando Perez <fperez@colorado.edu>
3908 2003-11-11 Fernando Perez <fperez@colorado.edu>
3909
3909
3910 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
3910 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
3911 for Numeric.array(map(...)), but often convenient.
3911 for Numeric.array(map(...)), but often convenient.
3912
3912
3913 2003-11-05 Fernando Perez <fperez@colorado.edu>
3913 2003-11-05 Fernando Perez <fperez@colorado.edu>
3914
3914
3915 * IPython/numutils.py (frange): Changed a call from int() to
3915 * IPython/numutils.py (frange): Changed a call from int() to
3916 int(round()) to prevent a problem reported with arange() in the
3916 int(round()) to prevent a problem reported with arange() in the
3917 numpy list.
3917 numpy list.
3918
3918
3919 2003-10-06 Fernando Perez <fperez@colorado.edu>
3919 2003-10-06 Fernando Perez <fperez@colorado.edu>
3920
3920
3921 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
3921 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
3922 prevent crashes if sys lacks an argv attribute (it happens with
3922 prevent crashes if sys lacks an argv attribute (it happens with
3923 embedded interpreters which build a bare-bones sys module).
3923 embedded interpreters which build a bare-bones sys module).
3924 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
3924 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
3925
3925
3926 2003-09-24 Fernando Perez <fperez@colorado.edu>
3926 2003-09-24 Fernando Perez <fperez@colorado.edu>
3927
3927
3928 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
3928 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
3929 to protect against poorly written user objects where __getattr__
3929 to protect against poorly written user objects where __getattr__
3930 raises exceptions other than AttributeError. Thanks to a bug
3930 raises exceptions other than AttributeError. Thanks to a bug
3931 report by Oliver Sander <osander-AT-gmx.de>.
3931 report by Oliver Sander <osander-AT-gmx.de>.
3932
3932
3933 * IPython/FakeModule.py (FakeModule.__repr__): this method was
3933 * IPython/FakeModule.py (FakeModule.__repr__): this method was
3934 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
3934 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
3935
3935
3936 2003-09-09 Fernando Perez <fperez@colorado.edu>
3936 2003-09-09 Fernando Perez <fperez@colorado.edu>
3937
3937
3938 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3938 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3939 unpacking a list whith a callable as first element would
3939 unpacking a list whith a callable as first element would
3940 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
3940 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
3941 Collins.
3941 Collins.
3942
3942
3943 2003-08-25 *** Released version 0.5.0
3943 2003-08-25 *** Released version 0.5.0
3944
3944
3945 2003-08-22 Fernando Perez <fperez@colorado.edu>
3945 2003-08-22 Fernando Perez <fperez@colorado.edu>
3946
3946
3947 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
3947 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
3948 improperly defined user exceptions. Thanks to feedback from Mark
3948 improperly defined user exceptions. Thanks to feedback from Mark
3949 Russell <mrussell-AT-verio.net>.
3949 Russell <mrussell-AT-verio.net>.
3950
3950
3951 2003-08-20 Fernando Perez <fperez@colorado.edu>
3951 2003-08-20 Fernando Perez <fperez@colorado.edu>
3952
3952
3953 * IPython/OInspect.py (Inspector.pinfo): changed String Form
3953 * IPython/OInspect.py (Inspector.pinfo): changed String Form
3954 printing so that it would print multi-line string forms starting
3954 printing so that it would print multi-line string forms starting
3955 with a new line. This way the formatting is better respected for
3955 with a new line. This way the formatting is better respected for
3956 objects which work hard to make nice string forms.
3956 objects which work hard to make nice string forms.
3957
3957
3958 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
3958 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
3959 autocall would overtake data access for objects with both
3959 autocall would overtake data access for objects with both
3960 __getitem__ and __call__.
3960 __getitem__ and __call__.
3961
3961
3962 2003-08-19 *** Released version 0.5.0-rc1
3962 2003-08-19 *** Released version 0.5.0-rc1
3963
3963
3964 2003-08-19 Fernando Perez <fperez@colorado.edu>
3964 2003-08-19 Fernando Perez <fperez@colorado.edu>
3965
3965
3966 * IPython/deep_reload.py (load_tail): single tiny change here
3966 * IPython/deep_reload.py (load_tail): single tiny change here
3967 seems to fix the long-standing bug of dreload() failing to work
3967 seems to fix the long-standing bug of dreload() failing to work
3968 for dotted names. But this module is pretty tricky, so I may have
3968 for dotted names. But this module is pretty tricky, so I may have
3969 missed some subtlety. Needs more testing!.
3969 missed some subtlety. Needs more testing!.
3970
3970
3971 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
3971 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
3972 exceptions which have badly implemented __str__ methods.
3972 exceptions which have badly implemented __str__ methods.
3973 (VerboseTB.text): harden against inspect.getinnerframes crashing,
3973 (VerboseTB.text): harden against inspect.getinnerframes crashing,
3974 which I've been getting reports about from Python 2.3 users. I
3974 which I've been getting reports about from Python 2.3 users. I
3975 wish I had a simple test case to reproduce the problem, so I could
3975 wish I had a simple test case to reproduce the problem, so I could
3976 either write a cleaner workaround or file a bug report if
3976 either write a cleaner workaround or file a bug report if
3977 necessary.
3977 necessary.
3978
3978
3979 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
3979 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
3980 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
3980 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
3981 a bug report by Tjabo Kloppenburg.
3981 a bug report by Tjabo Kloppenburg.
3982
3982
3983 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
3983 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
3984 crashes. Wrapped the pdb call in a blanket try/except, since pdb
3984 crashes. Wrapped the pdb call in a blanket try/except, since pdb
3985 seems rather unstable. Thanks to a bug report by Tjabo
3985 seems rather unstable. Thanks to a bug report by Tjabo
3986 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
3986 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
3987
3987
3988 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
3988 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
3989 this out soon because of the critical fixes in the inner loop for
3989 this out soon because of the critical fixes in the inner loop for
3990 generators.
3990 generators.
3991
3991
3992 * IPython/Magic.py (Magic.getargspec): removed. This (and
3992 * IPython/Magic.py (Magic.getargspec): removed. This (and
3993 _get_def) have been obsoleted by OInspect for a long time, I
3993 _get_def) have been obsoleted by OInspect for a long time, I
3994 hadn't noticed that they were dead code.
3994 hadn't noticed that they were dead code.
3995 (Magic._ofind): restored _ofind functionality for a few literals
3995 (Magic._ofind): restored _ofind functionality for a few literals
3996 (those in ["''",'""','[]','{}','()']). But it won't work anymore
3996 (those in ["''",'""','[]','{}','()']). But it won't work anymore
3997 for things like "hello".capitalize?, since that would require a
3997 for things like "hello".capitalize?, since that would require a
3998 potentially dangerous eval() again.
3998 potentially dangerous eval() again.
3999
3999
4000 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4000 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4001 logic a bit more to clean up the escapes handling and minimize the
4001 logic a bit more to clean up the escapes handling and minimize the
4002 use of _ofind to only necessary cases. The interactive 'feel' of
4002 use of _ofind to only necessary cases. The interactive 'feel' of
4003 IPython should have improved quite a bit with the changes in
4003 IPython should have improved quite a bit with the changes in
4004 _prefilter and _ofind (besides being far safer than before).
4004 _prefilter and _ofind (besides being far safer than before).
4005
4005
4006 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4006 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4007 obscure, never reported). Edit would fail to find the object to
4007 obscure, never reported). Edit would fail to find the object to
4008 edit under some circumstances.
4008 edit under some circumstances.
4009 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4009 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4010 which were causing double-calling of generators. Those eval calls
4010 which were causing double-calling of generators. Those eval calls
4011 were _very_ dangerous, since code with side effects could be
4011 were _very_ dangerous, since code with side effects could be
4012 triggered. As they say, 'eval is evil'... These were the
4012 triggered. As they say, 'eval is evil'... These were the
4013 nastiest evals in IPython. Besides, _ofind is now far simpler,
4013 nastiest evals in IPython. Besides, _ofind is now far simpler,
4014 and it should also be quite a bit faster. Its use of inspect is
4014 and it should also be quite a bit faster. Its use of inspect is
4015 also safer, so perhaps some of the inspect-related crashes I've
4015 also safer, so perhaps some of the inspect-related crashes I've
4016 seen lately with Python 2.3 might be taken care of. That will
4016 seen lately with Python 2.3 might be taken care of. That will
4017 need more testing.
4017 need more testing.
4018
4018
4019 2003-08-17 Fernando Perez <fperez@colorado.edu>
4019 2003-08-17 Fernando Perez <fperez@colorado.edu>
4020
4020
4021 * IPython/iplib.py (InteractiveShell._prefilter): significant
4021 * IPython/iplib.py (InteractiveShell._prefilter): significant
4022 simplifications to the logic for handling user escapes. Faster
4022 simplifications to the logic for handling user escapes. Faster
4023 and simpler code.
4023 and simpler code.
4024
4024
4025 2003-08-14 Fernando Perez <fperez@colorado.edu>
4025 2003-08-14 Fernando Perez <fperez@colorado.edu>
4026
4026
4027 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4027 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4028 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4028 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4029 but it should be quite a bit faster. And the recursive version
4029 but it should be quite a bit faster. And the recursive version
4030 generated O(log N) intermediate storage for all rank>1 arrays,
4030 generated O(log N) intermediate storage for all rank>1 arrays,
4031 even if they were contiguous.
4031 even if they were contiguous.
4032 (l1norm): Added this function.
4032 (l1norm): Added this function.
4033 (norm): Added this function for arbitrary norms (including
4033 (norm): Added this function for arbitrary norms (including
4034 l-infinity). l1 and l2 are still special cases for convenience
4034 l-infinity). l1 and l2 are still special cases for convenience
4035 and speed.
4035 and speed.
4036
4036
4037 2003-08-03 Fernando Perez <fperez@colorado.edu>
4037 2003-08-03 Fernando Perez <fperez@colorado.edu>
4038
4038
4039 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4039 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4040 exceptions, which now raise PendingDeprecationWarnings in Python
4040 exceptions, which now raise PendingDeprecationWarnings in Python
4041 2.3. There were some in Magic and some in Gnuplot2.
4041 2.3. There were some in Magic and some in Gnuplot2.
4042
4042
4043 2003-06-30 Fernando Perez <fperez@colorado.edu>
4043 2003-06-30 Fernando Perez <fperez@colorado.edu>
4044
4044
4045 * IPython/genutils.py (page): modified to call curses only for
4045 * IPython/genutils.py (page): modified to call curses only for
4046 terminals where TERM=='xterm'. After problems under many other
4046 terminals where TERM=='xterm'. After problems under many other
4047 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4047 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4048
4048
4049 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4049 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4050 would be triggered when readline was absent. This was just an old
4050 would be triggered when readline was absent. This was just an old
4051 debugging statement I'd forgotten to take out.
4051 debugging statement I'd forgotten to take out.
4052
4052
4053 2003-06-20 Fernando Perez <fperez@colorado.edu>
4053 2003-06-20 Fernando Perez <fperez@colorado.edu>
4054
4054
4055 * IPython/genutils.py (clock): modified to return only user time
4055 * IPython/genutils.py (clock): modified to return only user time
4056 (not counting system time), after a discussion on scipy. While
4056 (not counting system time), after a discussion on scipy. While
4057 system time may be a useful quantity occasionally, it may much
4057 system time may be a useful quantity occasionally, it may much
4058 more easily be skewed by occasional swapping or other similar
4058 more easily be skewed by occasional swapping or other similar
4059 activity.
4059 activity.
4060
4060
4061 2003-06-05 Fernando Perez <fperez@colorado.edu>
4061 2003-06-05 Fernando Perez <fperez@colorado.edu>
4062
4062
4063 * IPython/numutils.py (identity): new function, for building
4063 * IPython/numutils.py (identity): new function, for building
4064 arbitrary rank Kronecker deltas (mostly backwards compatible with
4064 arbitrary rank Kronecker deltas (mostly backwards compatible with
4065 Numeric.identity)
4065 Numeric.identity)
4066
4066
4067 2003-06-03 Fernando Perez <fperez@colorado.edu>
4067 2003-06-03 Fernando Perez <fperez@colorado.edu>
4068
4068
4069 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4069 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4070 arguments passed to magics with spaces, to allow trailing '\' to
4070 arguments passed to magics with spaces, to allow trailing '\' to
4071 work normally (mainly for Windows users).
4071 work normally (mainly for Windows users).
4072
4072
4073 2003-05-29 Fernando Perez <fperez@colorado.edu>
4073 2003-05-29 Fernando Perez <fperez@colorado.edu>
4074
4074
4075 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4075 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4076 instead of pydoc.help. This fixes a bizarre behavior where
4076 instead of pydoc.help. This fixes a bizarre behavior where
4077 printing '%s' % locals() would trigger the help system. Now
4077 printing '%s' % locals() would trigger the help system. Now
4078 ipython behaves like normal python does.
4078 ipython behaves like normal python does.
4079
4079
4080 Note that if one does 'from pydoc import help', the bizarre
4080 Note that if one does 'from pydoc import help', the bizarre
4081 behavior returns, but this will also happen in normal python, so
4081 behavior returns, but this will also happen in normal python, so
4082 it's not an ipython bug anymore (it has to do with how pydoc.help
4082 it's not an ipython bug anymore (it has to do with how pydoc.help
4083 is implemented).
4083 is implemented).
4084
4084
4085 2003-05-22 Fernando Perez <fperez@colorado.edu>
4085 2003-05-22 Fernando Perez <fperez@colorado.edu>
4086
4086
4087 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4087 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4088 return [] instead of None when nothing matches, also match to end
4088 return [] instead of None when nothing matches, also match to end
4089 of line. Patch by Gary Bishop.
4089 of line. Patch by Gary Bishop.
4090
4090
4091 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4091 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4092 protection as before, for files passed on the command line. This
4092 protection as before, for files passed on the command line. This
4093 prevents the CrashHandler from kicking in if user files call into
4093 prevents the CrashHandler from kicking in if user files call into
4094 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4094 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4095 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4095 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4096
4096
4097 2003-05-20 *** Released version 0.4.0
4097 2003-05-20 *** Released version 0.4.0
4098
4098
4099 2003-05-20 Fernando Perez <fperez@colorado.edu>
4099 2003-05-20 Fernando Perez <fperez@colorado.edu>
4100
4100
4101 * setup.py: added support for manpages. It's a bit hackish b/c of
4101 * setup.py: added support for manpages. It's a bit hackish b/c of
4102 a bug in the way the bdist_rpm distutils target handles gzipped
4102 a bug in the way the bdist_rpm distutils target handles gzipped
4103 manpages, but it works. After a patch by Jack.
4103 manpages, but it works. After a patch by Jack.
4104
4104
4105 2003-05-19 Fernando Perez <fperez@colorado.edu>
4105 2003-05-19 Fernando Perez <fperez@colorado.edu>
4106
4106
4107 * IPython/numutils.py: added a mockup of the kinds module, since
4107 * IPython/numutils.py: added a mockup of the kinds module, since
4108 it was recently removed from Numeric. This way, numutils will
4108 it was recently removed from Numeric. This way, numutils will
4109 work for all users even if they are missing kinds.
4109 work for all users even if they are missing kinds.
4110
4110
4111 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4111 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4112 failure, which can occur with SWIG-wrapped extensions. After a
4112 failure, which can occur with SWIG-wrapped extensions. After a
4113 crash report from Prabhu.
4113 crash report from Prabhu.
4114
4114
4115 2003-05-16 Fernando Perez <fperez@colorado.edu>
4115 2003-05-16 Fernando Perez <fperez@colorado.edu>
4116
4116
4117 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4117 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4118 protect ipython from user code which may call directly
4118 protect ipython from user code which may call directly
4119 sys.excepthook (this looks like an ipython crash to the user, even
4119 sys.excepthook (this looks like an ipython crash to the user, even
4120 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4120 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4121 This is especially important to help users of WxWindows, but may
4121 This is especially important to help users of WxWindows, but may
4122 also be useful in other cases.
4122 also be useful in other cases.
4123
4123
4124 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4124 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4125 an optional tb_offset to be specified, and to preserve exception
4125 an optional tb_offset to be specified, and to preserve exception
4126 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4126 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4127
4127
4128 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4128 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4129
4129
4130 2003-05-15 Fernando Perez <fperez@colorado.edu>
4130 2003-05-15 Fernando Perez <fperez@colorado.edu>
4131
4131
4132 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4132 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4133 installing for a new user under Windows.
4133 installing for a new user under Windows.
4134
4134
4135 2003-05-12 Fernando Perez <fperez@colorado.edu>
4135 2003-05-12 Fernando Perez <fperez@colorado.edu>
4136
4136
4137 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4137 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4138 handler for Emacs comint-based lines. Currently it doesn't do
4138 handler for Emacs comint-based lines. Currently it doesn't do
4139 much (but importantly, it doesn't update the history cache). In
4139 much (but importantly, it doesn't update the history cache). In
4140 the future it may be expanded if Alex needs more functionality
4140 the future it may be expanded if Alex needs more functionality
4141 there.
4141 there.
4142
4142
4143 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4143 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4144 info to crash reports.
4144 info to crash reports.
4145
4145
4146 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4146 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4147 just like Python's -c. Also fixed crash with invalid -color
4147 just like Python's -c. Also fixed crash with invalid -color
4148 option value at startup. Thanks to Will French
4148 option value at startup. Thanks to Will French
4149 <wfrench-AT-bestweb.net> for the bug report.
4149 <wfrench-AT-bestweb.net> for the bug report.
4150
4150
4151 2003-05-09 Fernando Perez <fperez@colorado.edu>
4151 2003-05-09 Fernando Perez <fperez@colorado.edu>
4152
4152
4153 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4153 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4154 to EvalDict (it's a mapping, after all) and simplified its code
4154 to EvalDict (it's a mapping, after all) and simplified its code
4155 quite a bit, after a nice discussion on c.l.py where Gustavo
4155 quite a bit, after a nice discussion on c.l.py where Gustavo
4156 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4156 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4157
4157
4158 2003-04-30 Fernando Perez <fperez@colorado.edu>
4158 2003-04-30 Fernando Perez <fperez@colorado.edu>
4159
4159
4160 * IPython/genutils.py (timings_out): modified it to reduce its
4160 * IPython/genutils.py (timings_out): modified it to reduce its
4161 overhead in the common reps==1 case.
4161 overhead in the common reps==1 case.
4162
4162
4163 2003-04-29 Fernando Perez <fperez@colorado.edu>
4163 2003-04-29 Fernando Perez <fperez@colorado.edu>
4164
4164
4165 * IPython/genutils.py (timings_out): Modified to use the resource
4165 * IPython/genutils.py (timings_out): Modified to use the resource
4166 module, which avoids the wraparound problems of time.clock().
4166 module, which avoids the wraparound problems of time.clock().
4167
4167
4168 2003-04-17 *** Released version 0.2.15pre4
4168 2003-04-17 *** Released version 0.2.15pre4
4169
4169
4170 2003-04-17 Fernando Perez <fperez@colorado.edu>
4170 2003-04-17 Fernando Perez <fperez@colorado.edu>
4171
4171
4172 * setup.py (scriptfiles): Split windows-specific stuff over to a
4172 * setup.py (scriptfiles): Split windows-specific stuff over to a
4173 separate file, in an attempt to have a Windows GUI installer.
4173 separate file, in an attempt to have a Windows GUI installer.
4174 That didn't work, but part of the groundwork is done.
4174 That didn't work, but part of the groundwork is done.
4175
4175
4176 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4176 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4177 indent/unindent with 4 spaces. Particularly useful in combination
4177 indent/unindent with 4 spaces. Particularly useful in combination
4178 with the new auto-indent option.
4178 with the new auto-indent option.
4179
4179
4180 2003-04-16 Fernando Perez <fperez@colorado.edu>
4180 2003-04-16 Fernando Perez <fperez@colorado.edu>
4181
4181
4182 * IPython/Magic.py: various replacements of self.rc for
4182 * IPython/Magic.py: various replacements of self.rc for
4183 self.shell.rc. A lot more remains to be done to fully disentangle
4183 self.shell.rc. A lot more remains to be done to fully disentangle
4184 this class from the main Shell class.
4184 this class from the main Shell class.
4185
4185
4186 * IPython/GnuplotRuntime.py: added checks for mouse support so
4186 * IPython/GnuplotRuntime.py: added checks for mouse support so
4187 that we don't try to enable it if the current gnuplot doesn't
4187 that we don't try to enable it if the current gnuplot doesn't
4188 really support it. Also added checks so that we don't try to
4188 really support it. Also added checks so that we don't try to
4189 enable persist under Windows (where Gnuplot doesn't recognize the
4189 enable persist under Windows (where Gnuplot doesn't recognize the
4190 option).
4190 option).
4191
4191
4192 * IPython/iplib.py (InteractiveShell.interact): Added optional
4192 * IPython/iplib.py (InteractiveShell.interact): Added optional
4193 auto-indenting code, after a patch by King C. Shu
4193 auto-indenting code, after a patch by King C. Shu
4194 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4194 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4195 get along well with pasting indented code. If I ever figure out
4195 get along well with pasting indented code. If I ever figure out
4196 how to make that part go well, it will become on by default.
4196 how to make that part go well, it will become on by default.
4197
4197
4198 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4198 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4199 crash ipython if there was an unmatched '%' in the user's prompt
4199 crash ipython if there was an unmatched '%' in the user's prompt
4200 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4200 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4201
4201
4202 * IPython/iplib.py (InteractiveShell.interact): removed the
4202 * IPython/iplib.py (InteractiveShell.interact): removed the
4203 ability to ask the user whether he wants to crash or not at the
4203 ability to ask the user whether he wants to crash or not at the
4204 'last line' exception handler. Calling functions at that point
4204 'last line' exception handler. Calling functions at that point
4205 changes the stack, and the error reports would have incorrect
4205 changes the stack, and the error reports would have incorrect
4206 tracebacks.
4206 tracebacks.
4207
4207
4208 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4208 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4209 pass through a peger a pretty-printed form of any object. After a
4209 pass through a peger a pretty-printed form of any object. After a
4210 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4210 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4211
4211
4212 2003-04-14 Fernando Perez <fperez@colorado.edu>
4212 2003-04-14 Fernando Perez <fperez@colorado.edu>
4213
4213
4214 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4214 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4215 all files in ~ would be modified at first install (instead of
4215 all files in ~ would be modified at first install (instead of
4216 ~/.ipython). This could be potentially disastrous, as the
4216 ~/.ipython). This could be potentially disastrous, as the
4217 modification (make line-endings native) could damage binary files.
4217 modification (make line-endings native) could damage binary files.
4218
4218
4219 2003-04-10 Fernando Perez <fperez@colorado.edu>
4219 2003-04-10 Fernando Perez <fperez@colorado.edu>
4220
4220
4221 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4221 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4222 handle only lines which are invalid python. This now means that
4222 handle only lines which are invalid python. This now means that
4223 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4223 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4224 for the bug report.
4224 for the bug report.
4225
4225
4226 2003-04-01 Fernando Perez <fperez@colorado.edu>
4226 2003-04-01 Fernando Perez <fperez@colorado.edu>
4227
4227
4228 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4228 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4229 where failing to set sys.last_traceback would crash pdb.pm().
4229 where failing to set sys.last_traceback would crash pdb.pm().
4230 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4230 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4231 report.
4231 report.
4232
4232
4233 2003-03-25 Fernando Perez <fperez@colorado.edu>
4233 2003-03-25 Fernando Perez <fperez@colorado.edu>
4234
4234
4235 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4235 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4236 before printing it (it had a lot of spurious blank lines at the
4236 before printing it (it had a lot of spurious blank lines at the
4237 end).
4237 end).
4238
4238
4239 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4239 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4240 output would be sent 21 times! Obviously people don't use this
4240 output would be sent 21 times! Obviously people don't use this
4241 too often, or I would have heard about it.
4241 too often, or I would have heard about it.
4242
4242
4243 2003-03-24 Fernando Perez <fperez@colorado.edu>
4243 2003-03-24 Fernando Perez <fperez@colorado.edu>
4244
4244
4245 * setup.py (scriptfiles): renamed the data_files parameter from
4245 * setup.py (scriptfiles): renamed the data_files parameter from
4246 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4246 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4247 for the patch.
4247 for the patch.
4248
4248
4249 2003-03-20 Fernando Perez <fperez@colorado.edu>
4249 2003-03-20 Fernando Perez <fperez@colorado.edu>
4250
4250
4251 * IPython/genutils.py (error): added error() and fatal()
4251 * IPython/genutils.py (error): added error() and fatal()
4252 functions.
4252 functions.
4253
4253
4254 2003-03-18 *** Released version 0.2.15pre3
4254 2003-03-18 *** Released version 0.2.15pre3
4255
4255
4256 2003-03-18 Fernando Perez <fperez@colorado.edu>
4256 2003-03-18 Fernando Perez <fperez@colorado.edu>
4257
4257
4258 * setupext/install_data_ext.py
4258 * setupext/install_data_ext.py
4259 (install_data_ext.initialize_options): Class contributed by Jack
4259 (install_data_ext.initialize_options): Class contributed by Jack
4260 Moffit for fixing the old distutils hack. He is sending this to
4260 Moffit for fixing the old distutils hack. He is sending this to
4261 the distutils folks so in the future we may not need it as a
4261 the distutils folks so in the future we may not need it as a
4262 private fix.
4262 private fix.
4263
4263
4264 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4264 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4265 changes for Debian packaging. See his patch for full details.
4265 changes for Debian packaging. See his patch for full details.
4266 The old distutils hack of making the ipythonrc* files carry a
4266 The old distutils hack of making the ipythonrc* files carry a
4267 bogus .py extension is gone, at last. Examples were moved to a
4267 bogus .py extension is gone, at last. Examples were moved to a
4268 separate subdir under doc/, and the separate executable scripts
4268 separate subdir under doc/, and the separate executable scripts
4269 now live in their own directory. Overall a great cleanup. The
4269 now live in their own directory. Overall a great cleanup. The
4270 manual was updated to use the new files, and setup.py has been
4270 manual was updated to use the new files, and setup.py has been
4271 fixed for this setup.
4271 fixed for this setup.
4272
4272
4273 * IPython/PyColorize.py (Parser.usage): made non-executable and
4273 * IPython/PyColorize.py (Parser.usage): made non-executable and
4274 created a pycolor wrapper around it to be included as a script.
4274 created a pycolor wrapper around it to be included as a script.
4275
4275
4276 2003-03-12 *** Released version 0.2.15pre2
4276 2003-03-12 *** Released version 0.2.15pre2
4277
4277
4278 2003-03-12 Fernando Perez <fperez@colorado.edu>
4278 2003-03-12 Fernando Perez <fperez@colorado.edu>
4279
4279
4280 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4280 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4281 long-standing problem with garbage characters in some terminals.
4281 long-standing problem with garbage characters in some terminals.
4282 The issue was really that the \001 and \002 escapes must _only_ be
4282 The issue was really that the \001 and \002 escapes must _only_ be
4283 passed to input prompts (which call readline), but _never_ to
4283 passed to input prompts (which call readline), but _never_ to
4284 normal text to be printed on screen. I changed ColorANSI to have
4284 normal text to be printed on screen. I changed ColorANSI to have
4285 two classes: TermColors and InputTermColors, each with the
4285 two classes: TermColors and InputTermColors, each with the
4286 appropriate escapes for input prompts or normal text. The code in
4286 appropriate escapes for input prompts or normal text. The code in
4287 Prompts.py got slightly more complicated, but this very old and
4287 Prompts.py got slightly more complicated, but this very old and
4288 annoying bug is finally fixed.
4288 annoying bug is finally fixed.
4289
4289
4290 All the credit for nailing down the real origin of this problem
4290 All the credit for nailing down the real origin of this problem
4291 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4291 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4292 *Many* thanks to him for spending quite a bit of effort on this.
4292 *Many* thanks to him for spending quite a bit of effort on this.
4293
4293
4294 2003-03-05 *** Released version 0.2.15pre1
4294 2003-03-05 *** Released version 0.2.15pre1
4295
4295
4296 2003-03-03 Fernando Perez <fperez@colorado.edu>
4296 2003-03-03 Fernando Perez <fperez@colorado.edu>
4297
4297
4298 * IPython/FakeModule.py: Moved the former _FakeModule to a
4298 * IPython/FakeModule.py: Moved the former _FakeModule to a
4299 separate file, because it's also needed by Magic (to fix a similar
4299 separate file, because it's also needed by Magic (to fix a similar
4300 pickle-related issue in @run).
4300 pickle-related issue in @run).
4301
4301
4302 2003-03-02 Fernando Perez <fperez@colorado.edu>
4302 2003-03-02 Fernando Perez <fperez@colorado.edu>
4303
4303
4304 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4304 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4305 the autocall option at runtime.
4305 the autocall option at runtime.
4306 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4306 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4307 across Magic.py to start separating Magic from InteractiveShell.
4307 across Magic.py to start separating Magic from InteractiveShell.
4308 (Magic._ofind): Fixed to return proper namespace for dotted
4308 (Magic._ofind): Fixed to return proper namespace for dotted
4309 names. Before, a dotted name would always return 'not currently
4309 names. Before, a dotted name would always return 'not currently
4310 defined', because it would find the 'parent'. s.x would be found,
4310 defined', because it would find the 'parent'. s.x would be found,
4311 but since 'x' isn't defined by itself, it would get confused.
4311 but since 'x' isn't defined by itself, it would get confused.
4312 (Magic.magic_run): Fixed pickling problems reported by Ralf
4312 (Magic.magic_run): Fixed pickling problems reported by Ralf
4313 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4313 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4314 that I'd used when Mike Heeter reported similar issues at the
4314 that I'd used when Mike Heeter reported similar issues at the
4315 top-level, but now for @run. It boils down to injecting the
4315 top-level, but now for @run. It boils down to injecting the
4316 namespace where code is being executed with something that looks
4316 namespace where code is being executed with something that looks
4317 enough like a module to fool pickle.dump(). Since a pickle stores
4317 enough like a module to fool pickle.dump(). Since a pickle stores
4318 a named reference to the importing module, we need this for
4318 a named reference to the importing module, we need this for
4319 pickles to save something sensible.
4319 pickles to save something sensible.
4320
4320
4321 * IPython/ipmaker.py (make_IPython): added an autocall option.
4321 * IPython/ipmaker.py (make_IPython): added an autocall option.
4322
4322
4323 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4323 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4324 the auto-eval code. Now autocalling is an option, and the code is
4324 the auto-eval code. Now autocalling is an option, and the code is
4325 also vastly safer. There is no more eval() involved at all.
4325 also vastly safer. There is no more eval() involved at all.
4326
4326
4327 2003-03-01 Fernando Perez <fperez@colorado.edu>
4327 2003-03-01 Fernando Perez <fperez@colorado.edu>
4328
4328
4329 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4329 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4330 dict with named keys instead of a tuple.
4330 dict with named keys instead of a tuple.
4331
4331
4332 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4332 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4333
4333
4334 * setup.py (make_shortcut): Fixed message about directories
4334 * setup.py (make_shortcut): Fixed message about directories
4335 created during Windows installation (the directories were ok, just
4335 created during Windows installation (the directories were ok, just
4336 the printed message was misleading). Thanks to Chris Liechti
4336 the printed message was misleading). Thanks to Chris Liechti
4337 <cliechti-AT-gmx.net> for the heads up.
4337 <cliechti-AT-gmx.net> for the heads up.
4338
4338
4339 2003-02-21 Fernando Perez <fperez@colorado.edu>
4339 2003-02-21 Fernando Perez <fperez@colorado.edu>
4340
4340
4341 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4341 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4342 of ValueError exception when checking for auto-execution. This
4342 of ValueError exception when checking for auto-execution. This
4343 one is raised by things like Numeric arrays arr.flat when the
4343 one is raised by things like Numeric arrays arr.flat when the
4344 array is non-contiguous.
4344 array is non-contiguous.
4345
4345
4346 2003-01-31 Fernando Perez <fperez@colorado.edu>
4346 2003-01-31 Fernando Perez <fperez@colorado.edu>
4347
4347
4348 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4348 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4349 not return any value at all (even though the command would get
4349 not return any value at all (even though the command would get
4350 executed).
4350 executed).
4351 (xsys): Flush stdout right after printing the command to ensure
4351 (xsys): Flush stdout right after printing the command to ensure
4352 proper ordering of commands and command output in the total
4352 proper ordering of commands and command output in the total
4353 output.
4353 output.
4354 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4354 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4355 system/getoutput as defaults. The old ones are kept for
4355 system/getoutput as defaults. The old ones are kept for
4356 compatibility reasons, so no code which uses this library needs
4356 compatibility reasons, so no code which uses this library needs
4357 changing.
4357 changing.
4358
4358
4359 2003-01-27 *** Released version 0.2.14
4359 2003-01-27 *** Released version 0.2.14
4360
4360
4361 2003-01-25 Fernando Perez <fperez@colorado.edu>
4361 2003-01-25 Fernando Perez <fperez@colorado.edu>
4362
4362
4363 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4363 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4364 functions defined in previous edit sessions could not be re-edited
4364 functions defined in previous edit sessions could not be re-edited
4365 (because the temp files were immediately removed). Now temp files
4365 (because the temp files were immediately removed). Now temp files
4366 are removed only at IPython's exit.
4366 are removed only at IPython's exit.
4367 (Magic.magic_run): Improved @run to perform shell-like expansions
4367 (Magic.magic_run): Improved @run to perform shell-like expansions
4368 on its arguments (~users and $VARS). With this, @run becomes more
4368 on its arguments (~users and $VARS). With this, @run becomes more
4369 like a normal command-line.
4369 like a normal command-line.
4370
4370
4371 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4371 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4372 bugs related to embedding and cleaned up that code. A fairly
4372 bugs related to embedding and cleaned up that code. A fairly
4373 important one was the impossibility to access the global namespace
4373 important one was the impossibility to access the global namespace
4374 through the embedded IPython (only local variables were visible).
4374 through the embedded IPython (only local variables were visible).
4375
4375
4376 2003-01-14 Fernando Perez <fperez@colorado.edu>
4376 2003-01-14 Fernando Perez <fperez@colorado.edu>
4377
4377
4378 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4378 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4379 auto-calling to be a bit more conservative. Now it doesn't get
4379 auto-calling to be a bit more conservative. Now it doesn't get
4380 triggered if any of '!=()<>' are in the rest of the input line, to
4380 triggered if any of '!=()<>' are in the rest of the input line, to
4381 allow comparing callables. Thanks to Alex for the heads up.
4381 allow comparing callables. Thanks to Alex for the heads up.
4382
4382
4383 2003-01-07 Fernando Perez <fperez@colorado.edu>
4383 2003-01-07 Fernando Perez <fperez@colorado.edu>
4384
4384
4385 * IPython/genutils.py (page): fixed estimation of the number of
4385 * IPython/genutils.py (page): fixed estimation of the number of
4386 lines in a string to be paged to simply count newlines. This
4386 lines in a string to be paged to simply count newlines. This
4387 prevents over-guessing due to embedded escape sequences. A better
4387 prevents over-guessing due to embedded escape sequences. A better
4388 long-term solution would involve stripping out the control chars
4388 long-term solution would involve stripping out the control chars
4389 for the count, but it's potentially so expensive I just don't
4389 for the count, but it's potentially so expensive I just don't
4390 think it's worth doing.
4390 think it's worth doing.
4391
4391
4392 2002-12-19 *** Released version 0.2.14pre50
4392 2002-12-19 *** Released version 0.2.14pre50
4393
4393
4394 2002-12-19 Fernando Perez <fperez@colorado.edu>
4394 2002-12-19 Fernando Perez <fperez@colorado.edu>
4395
4395
4396 * tools/release (version): Changed release scripts to inform
4396 * tools/release (version): Changed release scripts to inform
4397 Andrea and build a NEWS file with a list of recent changes.
4397 Andrea and build a NEWS file with a list of recent changes.
4398
4398
4399 * IPython/ColorANSI.py (__all__): changed terminal detection
4399 * IPython/ColorANSI.py (__all__): changed terminal detection
4400 code. Seems to work better for xterms without breaking
4400 code. Seems to work better for xterms without breaking
4401 konsole. Will need more testing to determine if WinXP and Mac OSX
4401 konsole. Will need more testing to determine if WinXP and Mac OSX
4402 also work ok.
4402 also work ok.
4403
4403
4404 2002-12-18 *** Released version 0.2.14pre49
4404 2002-12-18 *** Released version 0.2.14pre49
4405
4405
4406 2002-12-18 Fernando Perez <fperez@colorado.edu>
4406 2002-12-18 Fernando Perez <fperez@colorado.edu>
4407
4407
4408 * Docs: added new info about Mac OSX, from Andrea.
4408 * Docs: added new info about Mac OSX, from Andrea.
4409
4409
4410 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4410 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4411 allow direct plotting of python strings whose format is the same
4411 allow direct plotting of python strings whose format is the same
4412 of gnuplot data files.
4412 of gnuplot data files.
4413
4413
4414 2002-12-16 Fernando Perez <fperez@colorado.edu>
4414 2002-12-16 Fernando Perez <fperez@colorado.edu>
4415
4415
4416 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4416 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4417 value of exit question to be acknowledged.
4417 value of exit question to be acknowledged.
4418
4418
4419 2002-12-03 Fernando Perez <fperez@colorado.edu>
4419 2002-12-03 Fernando Perez <fperez@colorado.edu>
4420
4420
4421 * IPython/ipmaker.py: removed generators, which had been added
4421 * IPython/ipmaker.py: removed generators, which had been added
4422 by mistake in an earlier debugging run. This was causing trouble
4422 by mistake in an earlier debugging run. This was causing trouble
4423 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4423 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4424 for pointing this out.
4424 for pointing this out.
4425
4425
4426 2002-11-17 Fernando Perez <fperez@colorado.edu>
4426 2002-11-17 Fernando Perez <fperez@colorado.edu>
4427
4427
4428 * Manual: updated the Gnuplot section.
4428 * Manual: updated the Gnuplot section.
4429
4429
4430 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4430 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4431 a much better split of what goes in Runtime and what goes in
4431 a much better split of what goes in Runtime and what goes in
4432 Interactive.
4432 Interactive.
4433
4433
4434 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4434 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4435 being imported from iplib.
4435 being imported from iplib.
4436
4436
4437 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4437 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4438 for command-passing. Now the global Gnuplot instance is called
4438 for command-passing. Now the global Gnuplot instance is called
4439 'gp' instead of 'g', which was really a far too fragile and
4439 'gp' instead of 'g', which was really a far too fragile and
4440 common name.
4440 common name.
4441
4441
4442 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4442 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4443 bounding boxes generated by Gnuplot for square plots.
4443 bounding boxes generated by Gnuplot for square plots.
4444
4444
4445 * IPython/genutils.py (popkey): new function added. I should
4445 * IPython/genutils.py (popkey): new function added. I should
4446 suggest this on c.l.py as a dict method, it seems useful.
4446 suggest this on c.l.py as a dict method, it seems useful.
4447
4447
4448 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4448 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4449 to transparently handle PostScript generation. MUCH better than
4449 to transparently handle PostScript generation. MUCH better than
4450 the previous plot_eps/replot_eps (which I removed now). The code
4450 the previous plot_eps/replot_eps (which I removed now). The code
4451 is also fairly clean and well documented now (including
4451 is also fairly clean and well documented now (including
4452 docstrings).
4452 docstrings).
4453
4453
4454 2002-11-13 Fernando Perez <fperez@colorado.edu>
4454 2002-11-13 Fernando Perez <fperez@colorado.edu>
4455
4455
4456 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4456 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4457 (inconsistent with options).
4457 (inconsistent with options).
4458
4458
4459 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4459 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4460 manually disabled, I don't know why. Fixed it.
4460 manually disabled, I don't know why. Fixed it.
4461 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4461 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4462 eps output.
4462 eps output.
4463
4463
4464 2002-11-12 Fernando Perez <fperez@colorado.edu>
4464 2002-11-12 Fernando Perez <fperez@colorado.edu>
4465
4465
4466 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4466 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4467 don't propagate up to caller. Fixes crash reported by François
4467 don't propagate up to caller. Fixes crash reported by François
4468 Pinard.
4468 Pinard.
4469
4469
4470 2002-11-09 Fernando Perez <fperez@colorado.edu>
4470 2002-11-09 Fernando Perez <fperez@colorado.edu>
4471
4471
4472 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4472 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4473 history file for new users.
4473 history file for new users.
4474 (make_IPython): fixed bug where initial install would leave the
4474 (make_IPython): fixed bug where initial install would leave the
4475 user running in the .ipython dir.
4475 user running in the .ipython dir.
4476 (make_IPython): fixed bug where config dir .ipython would be
4476 (make_IPython): fixed bug where config dir .ipython would be
4477 created regardless of the given -ipythondir option. Thanks to Cory
4477 created regardless of the given -ipythondir option. Thanks to Cory
4478 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4478 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4479
4479
4480 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4480 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4481 type confirmations. Will need to use it in all of IPython's code
4481 type confirmations. Will need to use it in all of IPython's code
4482 consistently.
4482 consistently.
4483
4483
4484 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4484 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4485 context to print 31 lines instead of the default 5. This will make
4485 context to print 31 lines instead of the default 5. This will make
4486 the crash reports extremely detailed in case the problem is in
4486 the crash reports extremely detailed in case the problem is in
4487 libraries I don't have access to.
4487 libraries I don't have access to.
4488
4488
4489 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4489 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4490 line of defense' code to still crash, but giving users fair
4490 line of defense' code to still crash, but giving users fair
4491 warning. I don't want internal errors to go unreported: if there's
4491 warning. I don't want internal errors to go unreported: if there's
4492 an internal problem, IPython should crash and generate a full
4492 an internal problem, IPython should crash and generate a full
4493 report.
4493 report.
4494
4494
4495 2002-11-08 Fernando Perez <fperez@colorado.edu>
4495 2002-11-08 Fernando Perez <fperez@colorado.edu>
4496
4496
4497 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4497 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4498 otherwise uncaught exceptions which can appear if people set
4498 otherwise uncaught exceptions which can appear if people set
4499 sys.stdout to something badly broken. Thanks to a crash report
4499 sys.stdout to something badly broken. Thanks to a crash report
4500 from henni-AT-mail.brainbot.com.
4500 from henni-AT-mail.brainbot.com.
4501
4501
4502 2002-11-04 Fernando Perez <fperez@colorado.edu>
4502 2002-11-04 Fernando Perez <fperez@colorado.edu>
4503
4503
4504 * IPython/iplib.py (InteractiveShell.interact): added
4504 * IPython/iplib.py (InteractiveShell.interact): added
4505 __IPYTHON__active to the builtins. It's a flag which goes on when
4505 __IPYTHON__active to the builtins. It's a flag which goes on when
4506 the interaction starts and goes off again when it stops. This
4506 the interaction starts and goes off again when it stops. This
4507 allows embedding code to detect being inside IPython. Before this
4507 allows embedding code to detect being inside IPython. Before this
4508 was done via __IPYTHON__, but that only shows that an IPython
4508 was done via __IPYTHON__, but that only shows that an IPython
4509 instance has been created.
4509 instance has been created.
4510
4510
4511 * IPython/Magic.py (Magic.magic_env): I realized that in a
4511 * IPython/Magic.py (Magic.magic_env): I realized that in a
4512 UserDict, instance.data holds the data as a normal dict. So I
4512 UserDict, instance.data holds the data as a normal dict. So I
4513 modified @env to return os.environ.data instead of rebuilding a
4513 modified @env to return os.environ.data instead of rebuilding a
4514 dict by hand.
4514 dict by hand.
4515
4515
4516 2002-11-02 Fernando Perez <fperez@colorado.edu>
4516 2002-11-02 Fernando Perez <fperez@colorado.edu>
4517
4517
4518 * IPython/genutils.py (warn): changed so that level 1 prints no
4518 * IPython/genutils.py (warn): changed so that level 1 prints no
4519 header. Level 2 is now the default (with 'WARNING' header, as
4519 header. Level 2 is now the default (with 'WARNING' header, as
4520 before). I think I tracked all places where changes were needed in
4520 before). I think I tracked all places where changes were needed in
4521 IPython, but outside code using the old level numbering may have
4521 IPython, but outside code using the old level numbering may have
4522 broken.
4522 broken.
4523
4523
4524 * IPython/iplib.py (InteractiveShell.runcode): added this to
4524 * IPython/iplib.py (InteractiveShell.runcode): added this to
4525 handle the tracebacks in SystemExit traps correctly. The previous
4525 handle the tracebacks in SystemExit traps correctly. The previous
4526 code (through interact) was printing more of the stack than
4526 code (through interact) was printing more of the stack than
4527 necessary, showing IPython internal code to the user.
4527 necessary, showing IPython internal code to the user.
4528
4528
4529 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4529 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4530 default. Now that the default at the confirmation prompt is yes,
4530 default. Now that the default at the confirmation prompt is yes,
4531 it's not so intrusive. François' argument that ipython sessions
4531 it's not so intrusive. François' argument that ipython sessions
4532 tend to be complex enough not to lose them from an accidental C-d,
4532 tend to be complex enough not to lose them from an accidental C-d,
4533 is a valid one.
4533 is a valid one.
4534
4534
4535 * IPython/iplib.py (InteractiveShell.interact): added a
4535 * IPython/iplib.py (InteractiveShell.interact): added a
4536 showtraceback() call to the SystemExit trap, and modified the exit
4536 showtraceback() call to the SystemExit trap, and modified the exit
4537 confirmation to have yes as the default.
4537 confirmation to have yes as the default.
4538
4538
4539 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4539 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4540 this file. It's been gone from the code for a long time, this was
4540 this file. It's been gone from the code for a long time, this was
4541 simply leftover junk.
4541 simply leftover junk.
4542
4542
4543 2002-11-01 Fernando Perez <fperez@colorado.edu>
4543 2002-11-01 Fernando Perez <fperez@colorado.edu>
4544
4544
4545 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4545 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4546 added. If set, IPython now traps EOF and asks for
4546 added. If set, IPython now traps EOF and asks for
4547 confirmation. After a request by François Pinard.
4547 confirmation. After a request by François Pinard.
4548
4548
4549 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4549 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4550 of @abort, and with a new (better) mechanism for handling the
4550 of @abort, and with a new (better) mechanism for handling the
4551 exceptions.
4551 exceptions.
4552
4552
4553 2002-10-27 Fernando Perez <fperez@colorado.edu>
4553 2002-10-27 Fernando Perez <fperez@colorado.edu>
4554
4554
4555 * IPython/usage.py (__doc__): updated the --help information and
4555 * IPython/usage.py (__doc__): updated the --help information and
4556 the ipythonrc file to indicate that -log generates
4556 the ipythonrc file to indicate that -log generates
4557 ./ipython.log. Also fixed the corresponding info in @logstart.
4557 ./ipython.log. Also fixed the corresponding info in @logstart.
4558 This and several other fixes in the manuals thanks to reports by
4558 This and several other fixes in the manuals thanks to reports by
4559 François Pinard <pinard-AT-iro.umontreal.ca>.
4559 François Pinard <pinard-AT-iro.umontreal.ca>.
4560
4560
4561 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4561 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4562 refer to @logstart (instead of @log, which doesn't exist).
4562 refer to @logstart (instead of @log, which doesn't exist).
4563
4563
4564 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4564 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4565 AttributeError crash. Thanks to Christopher Armstrong
4565 AttributeError crash. Thanks to Christopher Armstrong
4566 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4566 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4567 introduced recently (in 0.2.14pre37) with the fix to the eval
4567 introduced recently (in 0.2.14pre37) with the fix to the eval
4568 problem mentioned below.
4568 problem mentioned below.
4569
4569
4570 2002-10-17 Fernando Perez <fperez@colorado.edu>
4570 2002-10-17 Fernando Perez <fperez@colorado.edu>
4571
4571
4572 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4572 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4573 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4573 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4574
4574
4575 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4575 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4576 this function to fix a problem reported by Alex Schmolck. He saw
4576 this function to fix a problem reported by Alex Schmolck. He saw
4577 it with list comprehensions and generators, which were getting
4577 it with list comprehensions and generators, which were getting
4578 called twice. The real problem was an 'eval' call in testing for
4578 called twice. The real problem was an 'eval' call in testing for
4579 automagic which was evaluating the input line silently.
4579 automagic which was evaluating the input line silently.
4580
4580
4581 This is a potentially very nasty bug, if the input has side
4581 This is a potentially very nasty bug, if the input has side
4582 effects which must not be repeated. The code is much cleaner now,
4582 effects which must not be repeated. The code is much cleaner now,
4583 without any blanket 'except' left and with a regexp test for
4583 without any blanket 'except' left and with a regexp test for
4584 actual function names.
4584 actual function names.
4585
4585
4586 But an eval remains, which I'm not fully comfortable with. I just
4586 But an eval remains, which I'm not fully comfortable with. I just
4587 don't know how to find out if an expression could be a callable in
4587 don't know how to find out if an expression could be a callable in
4588 the user's namespace without doing an eval on the string. However
4588 the user's namespace without doing an eval on the string. However
4589 that string is now much more strictly checked so that no code
4589 that string is now much more strictly checked so that no code
4590 slips by, so the eval should only happen for things that can
4590 slips by, so the eval should only happen for things that can
4591 really be only function/method names.
4591 really be only function/method names.
4592
4592
4593 2002-10-15 Fernando Perez <fperez@colorado.edu>
4593 2002-10-15 Fernando Perez <fperez@colorado.edu>
4594
4594
4595 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4595 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4596 OSX information to main manual, removed README_Mac_OSX file from
4596 OSX information to main manual, removed README_Mac_OSX file from
4597 distribution. Also updated credits for recent additions.
4597 distribution. Also updated credits for recent additions.
4598
4598
4599 2002-10-10 Fernando Perez <fperez@colorado.edu>
4599 2002-10-10 Fernando Perez <fperez@colorado.edu>
4600
4600
4601 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4601 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4602 terminal-related issues. Many thanks to Andrea Riciputi
4602 terminal-related issues. Many thanks to Andrea Riciputi
4603 <andrea.riciputi-AT-libero.it> for writing it.
4603 <andrea.riciputi-AT-libero.it> for writing it.
4604
4604
4605 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4605 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4606 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4606 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4607
4607
4608 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4608 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4609 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4609 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4610 <syver-en-AT-online.no> who both submitted patches for this problem.
4610 <syver-en-AT-online.no> who both submitted patches for this problem.
4611
4611
4612 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4612 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4613 global embedding to make sure that things don't overwrite user
4613 global embedding to make sure that things don't overwrite user
4614 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4614 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4615
4615
4616 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4616 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4617 compatibility. Thanks to Hayden Callow
4617 compatibility. Thanks to Hayden Callow
4618 <h.callow-AT-elec.canterbury.ac.nz>
4618 <h.callow-AT-elec.canterbury.ac.nz>
4619
4619
4620 2002-10-04 Fernando Perez <fperez@colorado.edu>
4620 2002-10-04 Fernando Perez <fperez@colorado.edu>
4621
4621
4622 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4622 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4623 Gnuplot.File objects.
4623 Gnuplot.File objects.
4624
4624
4625 2002-07-23 Fernando Perez <fperez@colorado.edu>
4625 2002-07-23 Fernando Perez <fperez@colorado.edu>
4626
4626
4627 * IPython/genutils.py (timing): Added timings() and timing() for
4627 * IPython/genutils.py (timing): Added timings() and timing() for
4628 quick access to the most commonly needed data, the execution
4628 quick access to the most commonly needed data, the execution
4629 times. Old timing() renamed to timings_out().
4629 times. Old timing() renamed to timings_out().
4630
4630
4631 2002-07-18 Fernando Perez <fperez@colorado.edu>
4631 2002-07-18 Fernando Perez <fperez@colorado.edu>
4632
4632
4633 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4633 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4634 bug with nested instances disrupting the parent's tab completion.
4634 bug with nested instances disrupting the parent's tab completion.
4635
4635
4636 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4636 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4637 all_completions code to begin the emacs integration.
4637 all_completions code to begin the emacs integration.
4638
4638
4639 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4639 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4640 argument to allow titling individual arrays when plotting.
4640 argument to allow titling individual arrays when plotting.
4641
4641
4642 2002-07-15 Fernando Perez <fperez@colorado.edu>
4642 2002-07-15 Fernando Perez <fperez@colorado.edu>
4643
4643
4644 * setup.py (make_shortcut): changed to retrieve the value of
4644 * setup.py (make_shortcut): changed to retrieve the value of
4645 'Program Files' directory from the registry (this value changes in
4645 'Program Files' directory from the registry (this value changes in
4646 non-english versions of Windows). Thanks to Thomas Fanslau
4646 non-english versions of Windows). Thanks to Thomas Fanslau
4647 <tfanslau-AT-gmx.de> for the report.
4647 <tfanslau-AT-gmx.de> for the report.
4648
4648
4649 2002-07-10 Fernando Perez <fperez@colorado.edu>
4649 2002-07-10 Fernando Perez <fperez@colorado.edu>
4650
4650
4651 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4651 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4652 a bug in pdb, which crashes if a line with only whitespace is
4652 a bug in pdb, which crashes if a line with only whitespace is
4653 entered. Bug report submitted to sourceforge.
4653 entered. Bug report submitted to sourceforge.
4654
4654
4655 2002-07-09 Fernando Perez <fperez@colorado.edu>
4655 2002-07-09 Fernando Perez <fperez@colorado.edu>
4656
4656
4657 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4657 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4658 reporting exceptions (it's a bug in inspect.py, I just set a
4658 reporting exceptions (it's a bug in inspect.py, I just set a
4659 workaround).
4659 workaround).
4660
4660
4661 2002-07-08 Fernando Perez <fperez@colorado.edu>
4661 2002-07-08 Fernando Perez <fperez@colorado.edu>
4662
4662
4663 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4663 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4664 __IPYTHON__ in __builtins__ to show up in user_ns.
4664 __IPYTHON__ in __builtins__ to show up in user_ns.
4665
4665
4666 2002-07-03 Fernando Perez <fperez@colorado.edu>
4666 2002-07-03 Fernando Perez <fperez@colorado.edu>
4667
4667
4668 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4668 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4669 name from @gp_set_instance to @gp_set_default.
4669 name from @gp_set_instance to @gp_set_default.
4670
4670
4671 * IPython/ipmaker.py (make_IPython): default editor value set to
4671 * IPython/ipmaker.py (make_IPython): default editor value set to
4672 '0' (a string), to match the rc file. Otherwise will crash when
4672 '0' (a string), to match the rc file. Otherwise will crash when
4673 .strip() is called on it.
4673 .strip() is called on it.
4674
4674
4675
4675
4676 2002-06-28 Fernando Perez <fperez@colorado.edu>
4676 2002-06-28 Fernando Perez <fperez@colorado.edu>
4677
4677
4678 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4678 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4679 of files in current directory when a file is executed via
4679 of files in current directory when a file is executed via
4680 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4680 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4681
4681
4682 * setup.py (manfiles): fix for rpm builds, submitted by RA
4682 * setup.py (manfiles): fix for rpm builds, submitted by RA
4683 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4683 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4684
4684
4685 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4685 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4686 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4686 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4687 string!). A. Schmolck caught this one.
4687 string!). A. Schmolck caught this one.
4688
4688
4689 2002-06-27 Fernando Perez <fperez@colorado.edu>
4689 2002-06-27 Fernando Perez <fperez@colorado.edu>
4690
4690
4691 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4691 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4692 defined files at the cmd line. __name__ wasn't being set to
4692 defined files at the cmd line. __name__ wasn't being set to
4693 __main__.
4693 __main__.
4694
4694
4695 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4695 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4696 regular lists and tuples besides Numeric arrays.
4696 regular lists and tuples besides Numeric arrays.
4697
4697
4698 * IPython/Prompts.py (CachedOutput.__call__): Added output
4698 * IPython/Prompts.py (CachedOutput.__call__): Added output
4699 supression for input ending with ';'. Similar to Mathematica and
4699 supression for input ending with ';'. Similar to Mathematica and
4700 Matlab. The _* vars and Out[] list are still updated, just like
4700 Matlab. The _* vars and Out[] list are still updated, just like
4701 Mathematica behaves.
4701 Mathematica behaves.
4702
4702
4703 2002-06-25 Fernando Perez <fperez@colorado.edu>
4703 2002-06-25 Fernando Perez <fperez@colorado.edu>
4704
4704
4705 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4705 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4706 .ini extensions for profiels under Windows.
4706 .ini extensions for profiels under Windows.
4707
4707
4708 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4708 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4709 string form. Fix contributed by Alexander Schmolck
4709 string form. Fix contributed by Alexander Schmolck
4710 <a.schmolck-AT-gmx.net>
4710 <a.schmolck-AT-gmx.net>
4711
4711
4712 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4712 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4713 pre-configured Gnuplot instance.
4713 pre-configured Gnuplot instance.
4714
4714
4715 2002-06-21 Fernando Perez <fperez@colorado.edu>
4715 2002-06-21 Fernando Perez <fperez@colorado.edu>
4716
4716
4717 * IPython/numutils.py (exp_safe): new function, works around the
4717 * IPython/numutils.py (exp_safe): new function, works around the
4718 underflow problems in Numeric.
4718 underflow problems in Numeric.
4719 (log2): New fn. Safe log in base 2: returns exact integer answer
4719 (log2): New fn. Safe log in base 2: returns exact integer answer
4720 for exact integer powers of 2.
4720 for exact integer powers of 2.
4721
4721
4722 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4722 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4723 properly.
4723 properly.
4724
4724
4725 2002-06-20 Fernando Perez <fperez@colorado.edu>
4725 2002-06-20 Fernando Perez <fperez@colorado.edu>
4726
4726
4727 * IPython/genutils.py (timing): new function like
4727 * IPython/genutils.py (timing): new function like
4728 Mathematica's. Similar to time_test, but returns more info.
4728 Mathematica's. Similar to time_test, but returns more info.
4729
4729
4730 2002-06-18 Fernando Perez <fperez@colorado.edu>
4730 2002-06-18 Fernando Perez <fperez@colorado.edu>
4731
4731
4732 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4732 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4733 according to Mike Heeter's suggestions.
4733 according to Mike Heeter's suggestions.
4734
4734
4735 2002-06-16 Fernando Perez <fperez@colorado.edu>
4735 2002-06-16 Fernando Perez <fperez@colorado.edu>
4736
4736
4737 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4737 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4738 system. GnuplotMagic is gone as a user-directory option. New files
4738 system. GnuplotMagic is gone as a user-directory option. New files
4739 make it easier to use all the gnuplot stuff both from external
4739 make it easier to use all the gnuplot stuff both from external
4740 programs as well as from IPython. Had to rewrite part of
4740 programs as well as from IPython. Had to rewrite part of
4741 hardcopy() b/c of a strange bug: often the ps files simply don't
4741 hardcopy() b/c of a strange bug: often the ps files simply don't
4742 get created, and require a repeat of the command (often several
4742 get created, and require a repeat of the command (often several
4743 times).
4743 times).
4744
4744
4745 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4745 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4746 resolve output channel at call time, so that if sys.stderr has
4746 resolve output channel at call time, so that if sys.stderr has
4747 been redirected by user this gets honored.
4747 been redirected by user this gets honored.
4748
4748
4749 2002-06-13 Fernando Perez <fperez@colorado.edu>
4749 2002-06-13 Fernando Perez <fperez@colorado.edu>
4750
4750
4751 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4751 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4752 IPShell. Kept a copy with the old names to avoid breaking people's
4752 IPShell. Kept a copy with the old names to avoid breaking people's
4753 embedded code.
4753 embedded code.
4754
4754
4755 * IPython/ipython: simplified it to the bare minimum after
4755 * IPython/ipython: simplified it to the bare minimum after
4756 Holger's suggestions. Added info about how to use it in
4756 Holger's suggestions. Added info about how to use it in
4757 PYTHONSTARTUP.
4757 PYTHONSTARTUP.
4758
4758
4759 * IPython/Shell.py (IPythonShell): changed the options passing
4759 * IPython/Shell.py (IPythonShell): changed the options passing
4760 from a string with funky %s replacements to a straight list. Maybe
4760 from a string with funky %s replacements to a straight list. Maybe
4761 a bit more typing, but it follows sys.argv conventions, so there's
4761 a bit more typing, but it follows sys.argv conventions, so there's
4762 less special-casing to remember.
4762 less special-casing to remember.
4763
4763
4764 2002-06-12 Fernando Perez <fperez@colorado.edu>
4764 2002-06-12 Fernando Perez <fperez@colorado.edu>
4765
4765
4766 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4766 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4767 command. Thanks to a suggestion by Mike Heeter.
4767 command. Thanks to a suggestion by Mike Heeter.
4768 (Magic.magic_pfile): added behavior to look at filenames if given
4768 (Magic.magic_pfile): added behavior to look at filenames if given
4769 arg is not a defined object.
4769 arg is not a defined object.
4770 (Magic.magic_save): New @save function to save code snippets. Also
4770 (Magic.magic_save): New @save function to save code snippets. Also
4771 a Mike Heeter idea.
4771 a Mike Heeter idea.
4772
4772
4773 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4773 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4774 plot() and replot(). Much more convenient now, especially for
4774 plot() and replot(). Much more convenient now, especially for
4775 interactive use.
4775 interactive use.
4776
4776
4777 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4777 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4778 filenames.
4778 filenames.
4779
4779
4780 2002-06-02 Fernando Perez <fperez@colorado.edu>
4780 2002-06-02 Fernando Perez <fperez@colorado.edu>
4781
4781
4782 * IPython/Struct.py (Struct.__init__): modified to admit
4782 * IPython/Struct.py (Struct.__init__): modified to admit
4783 initialization via another struct.
4783 initialization via another struct.
4784
4784
4785 * IPython/genutils.py (SystemExec.__init__): New stateful
4785 * IPython/genutils.py (SystemExec.__init__): New stateful
4786 interface to xsys and bq. Useful for writing system scripts.
4786 interface to xsys and bq. Useful for writing system scripts.
4787
4787
4788 2002-05-30 Fernando Perez <fperez@colorado.edu>
4788 2002-05-30 Fernando Perez <fperez@colorado.edu>
4789
4789
4790 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4790 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4791 documents. This will make the user download smaller (it's getting
4791 documents. This will make the user download smaller (it's getting
4792 too big).
4792 too big).
4793
4793
4794 2002-05-29 Fernando Perez <fperez@colorado.edu>
4794 2002-05-29 Fernando Perez <fperez@colorado.edu>
4795
4795
4796 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4796 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4797 fix problems with shelve and pickle. Seems to work, but I don't
4797 fix problems with shelve and pickle. Seems to work, but I don't
4798 know if corner cases break it. Thanks to Mike Heeter
4798 know if corner cases break it. Thanks to Mike Heeter
4799 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4799 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4800
4800
4801 2002-05-24 Fernando Perez <fperez@colorado.edu>
4801 2002-05-24 Fernando Perez <fperez@colorado.edu>
4802
4802
4803 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4803 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4804 macros having broken.
4804 macros having broken.
4805
4805
4806 2002-05-21 Fernando Perez <fperez@colorado.edu>
4806 2002-05-21 Fernando Perez <fperez@colorado.edu>
4807
4807
4808 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4808 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4809 introduced logging bug: all history before logging started was
4809 introduced logging bug: all history before logging started was
4810 being written one character per line! This came from the redesign
4810 being written one character per line! This came from the redesign
4811 of the input history as a special list which slices to strings,
4811 of the input history as a special list which slices to strings,
4812 not to lists.
4812 not to lists.
4813
4813
4814 2002-05-20 Fernando Perez <fperez@colorado.edu>
4814 2002-05-20 Fernando Perez <fperez@colorado.edu>
4815
4815
4816 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4816 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4817 be an attribute of all classes in this module. The design of these
4817 be an attribute of all classes in this module. The design of these
4818 classes needs some serious overhauling.
4818 classes needs some serious overhauling.
4819
4819
4820 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4820 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4821 which was ignoring '_' in option names.
4821 which was ignoring '_' in option names.
4822
4822
4823 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4823 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4824 'Verbose_novars' to 'Context' and made it the new default. It's a
4824 'Verbose_novars' to 'Context' and made it the new default. It's a
4825 bit more readable and also safer than verbose.
4825 bit more readable and also safer than verbose.
4826
4826
4827 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4827 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4828 triple-quoted strings.
4828 triple-quoted strings.
4829
4829
4830 * IPython/OInspect.py (__all__): new module exposing the object
4830 * IPython/OInspect.py (__all__): new module exposing the object
4831 introspection facilities. Now the corresponding magics are dummy
4831 introspection facilities. Now the corresponding magics are dummy
4832 wrappers around this. Having this module will make it much easier
4832 wrappers around this. Having this module will make it much easier
4833 to put these functions into our modified pdb.
4833 to put these functions into our modified pdb.
4834 This new object inspector system uses the new colorizing module,
4834 This new object inspector system uses the new colorizing module,
4835 so source code and other things are nicely syntax highlighted.
4835 so source code and other things are nicely syntax highlighted.
4836
4836
4837 2002-05-18 Fernando Perez <fperez@colorado.edu>
4837 2002-05-18 Fernando Perez <fperez@colorado.edu>
4838
4838
4839 * IPython/ColorANSI.py: Split the coloring tools into a separate
4839 * IPython/ColorANSI.py: Split the coloring tools into a separate
4840 module so I can use them in other code easier (they were part of
4840 module so I can use them in other code easier (they were part of
4841 ultraTB).
4841 ultraTB).
4842
4842
4843 2002-05-17 Fernando Perez <fperez@colorado.edu>
4843 2002-05-17 Fernando Perez <fperez@colorado.edu>
4844
4844
4845 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4845 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4846 fixed it to set the global 'g' also to the called instance, as
4846 fixed it to set the global 'g' also to the called instance, as
4847 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4847 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4848 user's 'g' variables).
4848 user's 'g' variables).
4849
4849
4850 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4850 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4851 global variables (aliases to _ih,_oh) so that users which expect
4851 global variables (aliases to _ih,_oh) so that users which expect
4852 In[5] or Out[7] to work aren't unpleasantly surprised.
4852 In[5] or Out[7] to work aren't unpleasantly surprised.
4853 (InputList.__getslice__): new class to allow executing slices of
4853 (InputList.__getslice__): new class to allow executing slices of
4854 input history directly. Very simple class, complements the use of
4854 input history directly. Very simple class, complements the use of
4855 macros.
4855 macros.
4856
4856
4857 2002-05-16 Fernando Perez <fperez@colorado.edu>
4857 2002-05-16 Fernando Perez <fperez@colorado.edu>
4858
4858
4859 * setup.py (docdirbase): make doc directory be just doc/IPython
4859 * setup.py (docdirbase): make doc directory be just doc/IPython
4860 without version numbers, it will reduce clutter for users.
4860 without version numbers, it will reduce clutter for users.
4861
4861
4862 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4862 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4863 execfile call to prevent possible memory leak. See for details:
4863 execfile call to prevent possible memory leak. See for details:
4864 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4864 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4865
4865
4866 2002-05-15 Fernando Perez <fperez@colorado.edu>
4866 2002-05-15 Fernando Perez <fperez@colorado.edu>
4867
4867
4868 * IPython/Magic.py (Magic.magic_psource): made the object
4868 * IPython/Magic.py (Magic.magic_psource): made the object
4869 introspection names be more standard: pdoc, pdef, pfile and
4869 introspection names be more standard: pdoc, pdef, pfile and
4870 psource. They all print/page their output, and it makes
4870 psource. They all print/page their output, and it makes
4871 remembering them easier. Kept old names for compatibility as
4871 remembering them easier. Kept old names for compatibility as
4872 aliases.
4872 aliases.
4873
4873
4874 2002-05-14 Fernando Perez <fperez@colorado.edu>
4874 2002-05-14 Fernando Perez <fperez@colorado.edu>
4875
4875
4876 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4876 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4877 what the mouse problem was. The trick is to use gnuplot with temp
4877 what the mouse problem was. The trick is to use gnuplot with temp
4878 files and NOT with pipes (for data communication), because having
4878 files and NOT with pipes (for data communication), because having
4879 both pipes and the mouse on is bad news.
4879 both pipes and the mouse on is bad news.
4880
4880
4881 2002-05-13 Fernando Perez <fperez@colorado.edu>
4881 2002-05-13 Fernando Perez <fperez@colorado.edu>
4882
4882
4883 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4883 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4884 bug. Information would be reported about builtins even when
4884 bug. Information would be reported about builtins even when
4885 user-defined functions overrode them.
4885 user-defined functions overrode them.
4886
4886
4887 2002-05-11 Fernando Perez <fperez@colorado.edu>
4887 2002-05-11 Fernando Perez <fperez@colorado.edu>
4888
4888
4889 * IPython/__init__.py (__all__): removed FlexCompleter from
4889 * IPython/__init__.py (__all__): removed FlexCompleter from
4890 __all__ so that things don't fail in platforms without readline.
4890 __all__ so that things don't fail in platforms without readline.
4891
4891
4892 2002-05-10 Fernando Perez <fperez@colorado.edu>
4892 2002-05-10 Fernando Perez <fperez@colorado.edu>
4893
4893
4894 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4894 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4895 it requires Numeric, effectively making Numeric a dependency for
4895 it requires Numeric, effectively making Numeric a dependency for
4896 IPython.
4896 IPython.
4897
4897
4898 * Released 0.2.13
4898 * Released 0.2.13
4899
4899
4900 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4900 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4901 profiler interface. Now all the major options from the profiler
4901 profiler interface. Now all the major options from the profiler
4902 module are directly supported in IPython, both for single
4902 module are directly supported in IPython, both for single
4903 expressions (@prun) and for full programs (@run -p).
4903 expressions (@prun) and for full programs (@run -p).
4904
4904
4905 2002-05-09 Fernando Perez <fperez@colorado.edu>
4905 2002-05-09 Fernando Perez <fperez@colorado.edu>
4906
4906
4907 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4907 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4908 magic properly formatted for screen.
4908 magic properly formatted for screen.
4909
4909
4910 * setup.py (make_shortcut): Changed things to put pdf version in
4910 * setup.py (make_shortcut): Changed things to put pdf version in
4911 doc/ instead of doc/manual (had to change lyxport a bit).
4911 doc/ instead of doc/manual (had to change lyxport a bit).
4912
4912
4913 * IPython/Magic.py (Profile.string_stats): made profile runs go
4913 * IPython/Magic.py (Profile.string_stats): made profile runs go
4914 through pager (they are long and a pager allows searching, saving,
4914 through pager (they are long and a pager allows searching, saving,
4915 etc.)
4915 etc.)
4916
4916
4917 2002-05-08 Fernando Perez <fperez@colorado.edu>
4917 2002-05-08 Fernando Perez <fperez@colorado.edu>
4918
4918
4919 * Released 0.2.12
4919 * Released 0.2.12
4920
4920
4921 2002-05-06 Fernando Perez <fperez@colorado.edu>
4921 2002-05-06 Fernando Perez <fperez@colorado.edu>
4922
4922
4923 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
4923 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
4924 introduced); 'hist n1 n2' was broken.
4924 introduced); 'hist n1 n2' was broken.
4925 (Magic.magic_pdb): added optional on/off arguments to @pdb
4925 (Magic.magic_pdb): added optional on/off arguments to @pdb
4926 (Magic.magic_run): added option -i to @run, which executes code in
4926 (Magic.magic_run): added option -i to @run, which executes code in
4927 the IPython namespace instead of a clean one. Also added @irun as
4927 the IPython namespace instead of a clean one. Also added @irun as
4928 an alias to @run -i.
4928 an alias to @run -i.
4929
4929
4930 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4930 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4931 fixed (it didn't really do anything, the namespaces were wrong).
4931 fixed (it didn't really do anything, the namespaces were wrong).
4932
4932
4933 * IPython/Debugger.py (__init__): Added workaround for python 2.1
4933 * IPython/Debugger.py (__init__): Added workaround for python 2.1
4934
4934
4935 * IPython/__init__.py (__all__): Fixed package namespace, now
4935 * IPython/__init__.py (__all__): Fixed package namespace, now
4936 'import IPython' does give access to IPython.<all> as
4936 'import IPython' does give access to IPython.<all> as
4937 expected. Also renamed __release__ to Release.
4937 expected. Also renamed __release__ to Release.
4938
4938
4939 * IPython/Debugger.py (__license__): created new Pdb class which
4939 * IPython/Debugger.py (__license__): created new Pdb class which
4940 functions like a drop-in for the normal pdb.Pdb but does NOT
4940 functions like a drop-in for the normal pdb.Pdb but does NOT
4941 import readline by default. This way it doesn't muck up IPython's
4941 import readline by default. This way it doesn't muck up IPython's
4942 readline handling, and now tab-completion finally works in the
4942 readline handling, and now tab-completion finally works in the
4943 debugger -- sort of. It completes things globally visible, but the
4943 debugger -- sort of. It completes things globally visible, but the
4944 completer doesn't track the stack as pdb walks it. That's a bit
4944 completer doesn't track the stack as pdb walks it. That's a bit
4945 tricky, and I'll have to implement it later.
4945 tricky, and I'll have to implement it later.
4946
4946
4947 2002-05-05 Fernando Perez <fperez@colorado.edu>
4947 2002-05-05 Fernando Perez <fperez@colorado.edu>
4948
4948
4949 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
4949 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
4950 magic docstrings when printed via ? (explicit \'s were being
4950 magic docstrings when printed via ? (explicit \'s were being
4951 printed).
4951 printed).
4952
4952
4953 * IPython/ipmaker.py (make_IPython): fixed namespace
4953 * IPython/ipmaker.py (make_IPython): fixed namespace
4954 identification bug. Now variables loaded via logs or command-line
4954 identification bug. Now variables loaded via logs or command-line
4955 files are recognized in the interactive namespace by @who.
4955 files are recognized in the interactive namespace by @who.
4956
4956
4957 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
4957 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
4958 log replay system stemming from the string form of Structs.
4958 log replay system stemming from the string form of Structs.
4959
4959
4960 * IPython/Magic.py (Macro.__init__): improved macros to properly
4960 * IPython/Magic.py (Macro.__init__): improved macros to properly
4961 handle magic commands in them.
4961 handle magic commands in them.
4962 (Magic.magic_logstart): usernames are now expanded so 'logstart
4962 (Magic.magic_logstart): usernames are now expanded so 'logstart
4963 ~/mylog' now works.
4963 ~/mylog' now works.
4964
4964
4965 * IPython/iplib.py (complete): fixed bug where paths starting with
4965 * IPython/iplib.py (complete): fixed bug where paths starting with
4966 '/' would be completed as magic names.
4966 '/' would be completed as magic names.
4967
4967
4968 2002-05-04 Fernando Perez <fperez@colorado.edu>
4968 2002-05-04 Fernando Perez <fperez@colorado.edu>
4969
4969
4970 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
4970 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
4971 allow running full programs under the profiler's control.
4971 allow running full programs under the profiler's control.
4972
4972
4973 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
4973 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
4974 mode to report exceptions verbosely but without formatting
4974 mode to report exceptions verbosely but without formatting
4975 variables. This addresses the issue of ipython 'freezing' (it's
4975 variables. This addresses the issue of ipython 'freezing' (it's
4976 not frozen, but caught in an expensive formatting loop) when huge
4976 not frozen, but caught in an expensive formatting loop) when huge
4977 variables are in the context of an exception.
4977 variables are in the context of an exception.
4978 (VerboseTB.text): Added '--->' markers at line where exception was
4978 (VerboseTB.text): Added '--->' markers at line where exception was
4979 triggered. Much clearer to read, especially in NoColor modes.
4979 triggered. Much clearer to read, especially in NoColor modes.
4980
4980
4981 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
4981 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
4982 implemented in reverse when changing to the new parse_options().
4982 implemented in reverse when changing to the new parse_options().
4983
4983
4984 2002-05-03 Fernando Perez <fperez@colorado.edu>
4984 2002-05-03 Fernando Perez <fperez@colorado.edu>
4985
4985
4986 * IPython/Magic.py (Magic.parse_options): new function so that
4986 * IPython/Magic.py (Magic.parse_options): new function so that
4987 magics can parse options easier.
4987 magics can parse options easier.
4988 (Magic.magic_prun): new function similar to profile.run(),
4988 (Magic.magic_prun): new function similar to profile.run(),
4989 suggested by Chris Hart.
4989 suggested by Chris Hart.
4990 (Magic.magic_cd): fixed behavior so that it only changes if
4990 (Magic.magic_cd): fixed behavior so that it only changes if
4991 directory actually is in history.
4991 directory actually is in history.
4992
4992
4993 * IPython/usage.py (__doc__): added information about potential
4993 * IPython/usage.py (__doc__): added information about potential
4994 slowness of Verbose exception mode when there are huge data
4994 slowness of Verbose exception mode when there are huge data
4995 structures to be formatted (thanks to Archie Paulson).
4995 structures to be formatted (thanks to Archie Paulson).
4996
4996
4997 * IPython/ipmaker.py (make_IPython): Changed default logging
4997 * IPython/ipmaker.py (make_IPython): Changed default logging
4998 (when simply called with -log) to use curr_dir/ipython.log in
4998 (when simply called with -log) to use curr_dir/ipython.log in
4999 rotate mode. Fixed crash which was occuring with -log before
4999 rotate mode. Fixed crash which was occuring with -log before
5000 (thanks to Jim Boyle).
5000 (thanks to Jim Boyle).
5001
5001
5002 2002-05-01 Fernando Perez <fperez@colorado.edu>
5002 2002-05-01 Fernando Perez <fperez@colorado.edu>
5003
5003
5004 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5004 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5005 was nasty -- though somewhat of a corner case).
5005 was nasty -- though somewhat of a corner case).
5006
5006
5007 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5007 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5008 text (was a bug).
5008 text (was a bug).
5009
5009
5010 2002-04-30 Fernando Perez <fperez@colorado.edu>
5010 2002-04-30 Fernando Perez <fperez@colorado.edu>
5011
5011
5012 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5012 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5013 a print after ^D or ^C from the user so that the In[] prompt
5013 a print after ^D or ^C from the user so that the In[] prompt
5014 doesn't over-run the gnuplot one.
5014 doesn't over-run the gnuplot one.
5015
5015
5016 2002-04-29 Fernando Perez <fperez@colorado.edu>
5016 2002-04-29 Fernando Perez <fperez@colorado.edu>
5017
5017
5018 * Released 0.2.10
5018 * Released 0.2.10
5019
5019
5020 * IPython/__release__.py (version): get date dynamically.
5020 * IPython/__release__.py (version): get date dynamically.
5021
5021
5022 * Misc. documentation updates thanks to Arnd's comments. Also ran
5022 * Misc. documentation updates thanks to Arnd's comments. Also ran
5023 a full spellcheck on the manual (hadn't been done in a while).
5023 a full spellcheck on the manual (hadn't been done in a while).
5024
5024
5025 2002-04-27 Fernando Perez <fperez@colorado.edu>
5025 2002-04-27 Fernando Perez <fperez@colorado.edu>
5026
5026
5027 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5027 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5028 starting a log in mid-session would reset the input history list.
5028 starting a log in mid-session would reset the input history list.
5029
5029
5030 2002-04-26 Fernando Perez <fperez@colorado.edu>
5030 2002-04-26 Fernando Perez <fperez@colorado.edu>
5031
5031
5032 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5032 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5033 all files were being included in an update. Now anything in
5033 all files were being included in an update. Now anything in
5034 UserConfig that matches [A-Za-z]*.py will go (this excludes
5034 UserConfig that matches [A-Za-z]*.py will go (this excludes
5035 __init__.py)
5035 __init__.py)
5036
5036
5037 2002-04-25 Fernando Perez <fperez@colorado.edu>
5037 2002-04-25 Fernando Perez <fperez@colorado.edu>
5038
5038
5039 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5039 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5040 to __builtins__ so that any form of embedded or imported code can
5040 to __builtins__ so that any form of embedded or imported code can
5041 test for being inside IPython.
5041 test for being inside IPython.
5042
5042
5043 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5043 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5044 changed to GnuplotMagic because it's now an importable module,
5044 changed to GnuplotMagic because it's now an importable module,
5045 this makes the name follow that of the standard Gnuplot module.
5045 this makes the name follow that of the standard Gnuplot module.
5046 GnuplotMagic can now be loaded at any time in mid-session.
5046 GnuplotMagic can now be loaded at any time in mid-session.
5047
5047
5048 2002-04-24 Fernando Perez <fperez@colorado.edu>
5048 2002-04-24 Fernando Perez <fperez@colorado.edu>
5049
5049
5050 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5050 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5051 the globals (IPython has its own namespace) and the
5051 the globals (IPython has its own namespace) and the
5052 PhysicalQuantity stuff is much better anyway.
5052 PhysicalQuantity stuff is much better anyway.
5053
5053
5054 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5054 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5055 embedding example to standard user directory for
5055 embedding example to standard user directory for
5056 distribution. Also put it in the manual.
5056 distribution. Also put it in the manual.
5057
5057
5058 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5058 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5059 instance as first argument (so it doesn't rely on some obscure
5059 instance as first argument (so it doesn't rely on some obscure
5060 hidden global).
5060 hidden global).
5061
5061
5062 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5062 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5063 delimiters. While it prevents ().TAB from working, it allows
5063 delimiters. While it prevents ().TAB from working, it allows
5064 completions in open (... expressions. This is by far a more common
5064 completions in open (... expressions. This is by far a more common
5065 case.
5065 case.
5066
5066
5067 2002-04-23 Fernando Perez <fperez@colorado.edu>
5067 2002-04-23 Fernando Perez <fperez@colorado.edu>
5068
5068
5069 * IPython/Extensions/InterpreterPasteInput.py: new
5069 * IPython/Extensions/InterpreterPasteInput.py: new
5070 syntax-processing module for pasting lines with >>> or ... at the
5070 syntax-processing module for pasting lines with >>> or ... at the
5071 start.
5071 start.
5072
5072
5073 * IPython/Extensions/PhysicalQ_Interactive.py
5073 * IPython/Extensions/PhysicalQ_Interactive.py
5074 (PhysicalQuantityInteractive.__int__): fixed to work with either
5074 (PhysicalQuantityInteractive.__int__): fixed to work with either
5075 Numeric or math.
5075 Numeric or math.
5076
5076
5077 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5077 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5078 provided profiles. Now we have:
5078 provided profiles. Now we have:
5079 -math -> math module as * and cmath with its own namespace.
5079 -math -> math module as * and cmath with its own namespace.
5080 -numeric -> Numeric as *, plus gnuplot & grace
5080 -numeric -> Numeric as *, plus gnuplot & grace
5081 -physics -> same as before
5081 -physics -> same as before
5082
5082
5083 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5083 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5084 user-defined magics wouldn't be found by @magic if they were
5084 user-defined magics wouldn't be found by @magic if they were
5085 defined as class methods. Also cleaned up the namespace search
5085 defined as class methods. Also cleaned up the namespace search
5086 logic and the string building (to use %s instead of many repeated
5086 logic and the string building (to use %s instead of many repeated
5087 string adds).
5087 string adds).
5088
5088
5089 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5089 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5090 of user-defined magics to operate with class methods (cleaner, in
5090 of user-defined magics to operate with class methods (cleaner, in
5091 line with the gnuplot code).
5091 line with the gnuplot code).
5092
5092
5093 2002-04-22 Fernando Perez <fperez@colorado.edu>
5093 2002-04-22 Fernando Perez <fperez@colorado.edu>
5094
5094
5095 * setup.py: updated dependency list so that manual is updated when
5095 * setup.py: updated dependency list so that manual is updated when
5096 all included files change.
5096 all included files change.
5097
5097
5098 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5098 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5099 the delimiter removal option (the fix is ugly right now).
5099 the delimiter removal option (the fix is ugly right now).
5100
5100
5101 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5101 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5102 all of the math profile (quicker loading, no conflict between
5102 all of the math profile (quicker loading, no conflict between
5103 g-9.8 and g-gnuplot).
5103 g-9.8 and g-gnuplot).
5104
5104
5105 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5105 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5106 name of post-mortem files to IPython_crash_report.txt.
5106 name of post-mortem files to IPython_crash_report.txt.
5107
5107
5108 * Cleanup/update of the docs. Added all the new readline info and
5108 * Cleanup/update of the docs. Added all the new readline info and
5109 formatted all lists as 'real lists'.
5109 formatted all lists as 'real lists'.
5110
5110
5111 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5111 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5112 tab-completion options, since the full readline parse_and_bind is
5112 tab-completion options, since the full readline parse_and_bind is
5113 now accessible.
5113 now accessible.
5114
5114
5115 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5115 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5116 handling of readline options. Now users can specify any string to
5116 handling of readline options. Now users can specify any string to
5117 be passed to parse_and_bind(), as well as the delimiters to be
5117 be passed to parse_and_bind(), as well as the delimiters to be
5118 removed.
5118 removed.
5119 (InteractiveShell.__init__): Added __name__ to the global
5119 (InteractiveShell.__init__): Added __name__ to the global
5120 namespace so that things like Itpl which rely on its existence
5120 namespace so that things like Itpl which rely on its existence
5121 don't crash.
5121 don't crash.
5122 (InteractiveShell._prefilter): Defined the default with a _ so
5122 (InteractiveShell._prefilter): Defined the default with a _ so
5123 that prefilter() is easier to override, while the default one
5123 that prefilter() is easier to override, while the default one
5124 remains available.
5124 remains available.
5125
5125
5126 2002-04-18 Fernando Perez <fperez@colorado.edu>
5126 2002-04-18 Fernando Perez <fperez@colorado.edu>
5127
5127
5128 * Added information about pdb in the docs.
5128 * Added information about pdb in the docs.
5129
5129
5130 2002-04-17 Fernando Perez <fperez@colorado.edu>
5130 2002-04-17 Fernando Perez <fperez@colorado.edu>
5131
5131
5132 * IPython/ipmaker.py (make_IPython): added rc_override option to
5132 * IPython/ipmaker.py (make_IPython): added rc_override option to
5133 allow passing config options at creation time which may override
5133 allow passing config options at creation time which may override
5134 anything set in the config files or command line. This is
5134 anything set in the config files or command line. This is
5135 particularly useful for configuring embedded instances.
5135 particularly useful for configuring embedded instances.
5136
5136
5137 2002-04-15 Fernando Perez <fperez@colorado.edu>
5137 2002-04-15 Fernando Perez <fperez@colorado.edu>
5138
5138
5139 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5139 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5140 crash embedded instances because of the input cache falling out of
5140 crash embedded instances because of the input cache falling out of
5141 sync with the output counter.
5141 sync with the output counter.
5142
5142
5143 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5143 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5144 mode which calls pdb after an uncaught exception in IPython itself.
5144 mode which calls pdb after an uncaught exception in IPython itself.
5145
5145
5146 2002-04-14 Fernando Perez <fperez@colorado.edu>
5146 2002-04-14 Fernando Perez <fperez@colorado.edu>
5147
5147
5148 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5148 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5149 readline, fix it back after each call.
5149 readline, fix it back after each call.
5150
5150
5151 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5151 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5152 method to force all access via __call__(), which guarantees that
5152 method to force all access via __call__(), which guarantees that
5153 traceback references are properly deleted.
5153 traceback references are properly deleted.
5154
5154
5155 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5155 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5156 improve printing when pprint is in use.
5156 improve printing when pprint is in use.
5157
5157
5158 2002-04-13 Fernando Perez <fperez@colorado.edu>
5158 2002-04-13 Fernando Perez <fperez@colorado.edu>
5159
5159
5160 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5160 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5161 exceptions aren't caught anymore. If the user triggers one, he
5161 exceptions aren't caught anymore. If the user triggers one, he
5162 should know why he's doing it and it should go all the way up,
5162 should know why he's doing it and it should go all the way up,
5163 just like any other exception. So now @abort will fully kill the
5163 just like any other exception. So now @abort will fully kill the
5164 embedded interpreter and the embedding code (unless that happens
5164 embedded interpreter and the embedding code (unless that happens
5165 to catch SystemExit).
5165 to catch SystemExit).
5166
5166
5167 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5167 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5168 and a debugger() method to invoke the interactive pdb debugger
5168 and a debugger() method to invoke the interactive pdb debugger
5169 after printing exception information. Also added the corresponding
5169 after printing exception information. Also added the corresponding
5170 -pdb option and @pdb magic to control this feature, and updated
5170 -pdb option and @pdb magic to control this feature, and updated
5171 the docs. After a suggestion from Christopher Hart
5171 the docs. After a suggestion from Christopher Hart
5172 (hart-AT-caltech.edu).
5172 (hart-AT-caltech.edu).
5173
5173
5174 2002-04-12 Fernando Perez <fperez@colorado.edu>
5174 2002-04-12 Fernando Perez <fperez@colorado.edu>
5175
5175
5176 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5176 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5177 the exception handlers defined by the user (not the CrashHandler)
5177 the exception handlers defined by the user (not the CrashHandler)
5178 so that user exceptions don't trigger an ipython bug report.
5178 so that user exceptions don't trigger an ipython bug report.
5179
5179
5180 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5180 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5181 configurable (it should have always been so).
5181 configurable (it should have always been so).
5182
5182
5183 2002-03-26 Fernando Perez <fperez@colorado.edu>
5183 2002-03-26 Fernando Perez <fperez@colorado.edu>
5184
5184
5185 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5185 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5186 and there to fix embedding namespace issues. This should all be
5186 and there to fix embedding namespace issues. This should all be
5187 done in a more elegant way.
5187 done in a more elegant way.
5188
5188
5189 2002-03-25 Fernando Perez <fperez@colorado.edu>
5189 2002-03-25 Fernando Perez <fperez@colorado.edu>
5190
5190
5191 * IPython/genutils.py (get_home_dir): Try to make it work under
5191 * IPython/genutils.py (get_home_dir): Try to make it work under
5192 win9x also.
5192 win9x also.
5193
5193
5194 2002-03-20 Fernando Perez <fperez@colorado.edu>
5194 2002-03-20 Fernando Perez <fperez@colorado.edu>
5195
5195
5196 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5196 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5197 sys.displayhook untouched upon __init__.
5197 sys.displayhook untouched upon __init__.
5198
5198
5199 2002-03-19 Fernando Perez <fperez@colorado.edu>
5199 2002-03-19 Fernando Perez <fperez@colorado.edu>
5200
5200
5201 * Released 0.2.9 (for embedding bug, basically).
5201 * Released 0.2.9 (for embedding bug, basically).
5202
5202
5203 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5203 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5204 exceptions so that enclosing shell's state can be restored.
5204 exceptions so that enclosing shell's state can be restored.
5205
5205
5206 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5206 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5207 naming conventions in the .ipython/ dir.
5207 naming conventions in the .ipython/ dir.
5208
5208
5209 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5209 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5210 from delimiters list so filenames with - in them get expanded.
5210 from delimiters list so filenames with - in them get expanded.
5211
5211
5212 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5212 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5213 sys.displayhook not being properly restored after an embedded call.
5213 sys.displayhook not being properly restored after an embedded call.
5214
5214
5215 2002-03-18 Fernando Perez <fperez@colorado.edu>
5215 2002-03-18 Fernando Perez <fperez@colorado.edu>
5216
5216
5217 * Released 0.2.8
5217 * Released 0.2.8
5218
5218
5219 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5219 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5220 some files weren't being included in a -upgrade.
5220 some files weren't being included in a -upgrade.
5221 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5221 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5222 on' so that the first tab completes.
5222 on' so that the first tab completes.
5223 (InteractiveShell.handle_magic): fixed bug with spaces around
5223 (InteractiveShell.handle_magic): fixed bug with spaces around
5224 quotes breaking many magic commands.
5224 quotes breaking many magic commands.
5225
5225
5226 * setup.py: added note about ignoring the syntax error messages at
5226 * setup.py: added note about ignoring the syntax error messages at
5227 installation.
5227 installation.
5228
5228
5229 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5229 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5230 streamlining the gnuplot interface, now there's only one magic @gp.
5230 streamlining the gnuplot interface, now there's only one magic @gp.
5231
5231
5232 2002-03-17 Fernando Perez <fperez@colorado.edu>
5232 2002-03-17 Fernando Perez <fperez@colorado.edu>
5233
5233
5234 * IPython/UserConfig/magic_gnuplot.py: new name for the
5234 * IPython/UserConfig/magic_gnuplot.py: new name for the
5235 example-magic_pm.py file. Much enhanced system, now with a shell
5235 example-magic_pm.py file. Much enhanced system, now with a shell
5236 for communicating directly with gnuplot, one command at a time.
5236 for communicating directly with gnuplot, one command at a time.
5237
5237
5238 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5238 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5239 setting __name__=='__main__'.
5239 setting __name__=='__main__'.
5240
5240
5241 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5241 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5242 mini-shell for accessing gnuplot from inside ipython. Should
5242 mini-shell for accessing gnuplot from inside ipython. Should
5243 extend it later for grace access too. Inspired by Arnd's
5243 extend it later for grace access too. Inspired by Arnd's
5244 suggestion.
5244 suggestion.
5245
5245
5246 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5246 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5247 calling magic functions with () in their arguments. Thanks to Arnd
5247 calling magic functions with () in their arguments. Thanks to Arnd
5248 Baecker for pointing this to me.
5248 Baecker for pointing this to me.
5249
5249
5250 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5250 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5251 infinitely for integer or complex arrays (only worked with floats).
5251 infinitely for integer or complex arrays (only worked with floats).
5252
5252
5253 2002-03-16 Fernando Perez <fperez@colorado.edu>
5253 2002-03-16 Fernando Perez <fperez@colorado.edu>
5254
5254
5255 * setup.py: Merged setup and setup_windows into a single script
5255 * setup.py: Merged setup and setup_windows into a single script
5256 which properly handles things for windows users.
5256 which properly handles things for windows users.
5257
5257
5258 2002-03-15 Fernando Perez <fperez@colorado.edu>
5258 2002-03-15 Fernando Perez <fperez@colorado.edu>
5259
5259
5260 * Big change to the manual: now the magics are all automatically
5260 * Big change to the manual: now the magics are all automatically
5261 documented. This information is generated from their docstrings
5261 documented. This information is generated from their docstrings
5262 and put in a latex file included by the manual lyx file. This way
5262 and put in a latex file included by the manual lyx file. This way
5263 we get always up to date information for the magics. The manual
5263 we get always up to date information for the magics. The manual
5264 now also has proper version information, also auto-synced.
5264 now also has proper version information, also auto-synced.
5265
5265
5266 For this to work, an undocumented --magic_docstrings option was added.
5266 For this to work, an undocumented --magic_docstrings option was added.
5267
5267
5268 2002-03-13 Fernando Perez <fperez@colorado.edu>
5268 2002-03-13 Fernando Perez <fperez@colorado.edu>
5269
5269
5270 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5270 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5271 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5271 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5272
5272
5273 2002-03-12 Fernando Perez <fperez@colorado.edu>
5273 2002-03-12 Fernando Perez <fperez@colorado.edu>
5274
5274
5275 * IPython/ultraTB.py (TermColors): changed color escapes again to
5275 * IPython/ultraTB.py (TermColors): changed color escapes again to
5276 fix the (old, reintroduced) line-wrapping bug. Basically, if
5276 fix the (old, reintroduced) line-wrapping bug. Basically, if
5277 \001..\002 aren't given in the color escapes, lines get wrapped
5277 \001..\002 aren't given in the color escapes, lines get wrapped
5278 weirdly. But giving those screws up old xterms and emacs terms. So
5278 weirdly. But giving those screws up old xterms and emacs terms. So
5279 I added some logic for emacs terms to be ok, but I can't identify old
5279 I added some logic for emacs terms to be ok, but I can't identify old
5280 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5280 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5281
5281
5282 2002-03-10 Fernando Perez <fperez@colorado.edu>
5282 2002-03-10 Fernando Perez <fperez@colorado.edu>
5283
5283
5284 * IPython/usage.py (__doc__): Various documentation cleanups and
5284 * IPython/usage.py (__doc__): Various documentation cleanups and
5285 updates, both in usage docstrings and in the manual.
5285 updates, both in usage docstrings and in the manual.
5286
5286
5287 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5287 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5288 handling of caching. Set minimum acceptabe value for having a
5288 handling of caching. Set minimum acceptabe value for having a
5289 cache at 20 values.
5289 cache at 20 values.
5290
5290
5291 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5291 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5292 install_first_time function to a method, renamed it and added an
5292 install_first_time function to a method, renamed it and added an
5293 'upgrade' mode. Now people can update their config directory with
5293 'upgrade' mode. Now people can update their config directory with
5294 a simple command line switch (-upgrade, also new).
5294 a simple command line switch (-upgrade, also new).
5295
5295
5296 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5296 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5297 @file (convenient for automagic users under Python >= 2.2).
5297 @file (convenient for automagic users under Python >= 2.2).
5298 Removed @files (it seemed more like a plural than an abbrev. of
5298 Removed @files (it seemed more like a plural than an abbrev. of
5299 'file show').
5299 'file show').
5300
5300
5301 * IPython/iplib.py (install_first_time): Fixed crash if there were
5301 * IPython/iplib.py (install_first_time): Fixed crash if there were
5302 backup files ('~') in .ipython/ install directory.
5302 backup files ('~') in .ipython/ install directory.
5303
5303
5304 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5304 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5305 system. Things look fine, but these changes are fairly
5305 system. Things look fine, but these changes are fairly
5306 intrusive. Test them for a few days.
5306 intrusive. Test them for a few days.
5307
5307
5308 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5308 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5309 the prompts system. Now all in/out prompt strings are user
5309 the prompts system. Now all in/out prompt strings are user
5310 controllable. This is particularly useful for embedding, as one
5310 controllable. This is particularly useful for embedding, as one
5311 can tag embedded instances with particular prompts.
5311 can tag embedded instances with particular prompts.
5312
5312
5313 Also removed global use of sys.ps1/2, which now allows nested
5313 Also removed global use of sys.ps1/2, which now allows nested
5314 embeddings without any problems. Added command-line options for
5314 embeddings without any problems. Added command-line options for
5315 the prompt strings.
5315 the prompt strings.
5316
5316
5317 2002-03-08 Fernando Perez <fperez@colorado.edu>
5317 2002-03-08 Fernando Perez <fperez@colorado.edu>
5318
5318
5319 * IPython/UserConfig/example-embed-short.py (ipshell): added
5319 * IPython/UserConfig/example-embed-short.py (ipshell): added
5320 example file with the bare minimum code for embedding.
5320 example file with the bare minimum code for embedding.
5321
5321
5322 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5322 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5323 functionality for the embeddable shell to be activated/deactivated
5323 functionality for the embeddable shell to be activated/deactivated
5324 either globally or at each call.
5324 either globally or at each call.
5325
5325
5326 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5326 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5327 rewriting the prompt with '--->' for auto-inputs with proper
5327 rewriting the prompt with '--->' for auto-inputs with proper
5328 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5328 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5329 this is handled by the prompts class itself, as it should.
5329 this is handled by the prompts class itself, as it should.
5330
5330
5331 2002-03-05 Fernando Perez <fperez@colorado.edu>
5331 2002-03-05 Fernando Perez <fperez@colorado.edu>
5332
5332
5333 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5333 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5334 @logstart to avoid name clashes with the math log function.
5334 @logstart to avoid name clashes with the math log function.
5335
5335
5336 * Big updates to X/Emacs section of the manual.
5336 * Big updates to X/Emacs section of the manual.
5337
5337
5338 * Removed ipython_emacs. Milan explained to me how to pass
5338 * Removed ipython_emacs. Milan explained to me how to pass
5339 arguments to ipython through Emacs. Some day I'm going to end up
5339 arguments to ipython through Emacs. Some day I'm going to end up
5340 learning some lisp...
5340 learning some lisp...
5341
5341
5342 2002-03-04 Fernando Perez <fperez@colorado.edu>
5342 2002-03-04 Fernando Perez <fperez@colorado.edu>
5343
5343
5344 * IPython/ipython_emacs: Created script to be used as the
5344 * IPython/ipython_emacs: Created script to be used as the
5345 py-python-command Emacs variable so we can pass IPython
5345 py-python-command Emacs variable so we can pass IPython
5346 parameters. I can't figure out how to tell Emacs directly to pass
5346 parameters. I can't figure out how to tell Emacs directly to pass
5347 parameters to IPython, so a dummy shell script will do it.
5347 parameters to IPython, so a dummy shell script will do it.
5348
5348
5349 Other enhancements made for things to work better under Emacs'
5349 Other enhancements made for things to work better under Emacs'
5350 various types of terminals. Many thanks to Milan Zamazal
5350 various types of terminals. Many thanks to Milan Zamazal
5351 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5351 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5352
5352
5353 2002-03-01 Fernando Perez <fperez@colorado.edu>
5353 2002-03-01 Fernando Perez <fperez@colorado.edu>
5354
5354
5355 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5355 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5356 that loading of readline is now optional. This gives better
5356 that loading of readline is now optional. This gives better
5357 control to emacs users.
5357 control to emacs users.
5358
5358
5359 * IPython/ultraTB.py (__date__): Modified color escape sequences
5359 * IPython/ultraTB.py (__date__): Modified color escape sequences
5360 and now things work fine under xterm and in Emacs' term buffers
5360 and now things work fine under xterm and in Emacs' term buffers
5361 (though not shell ones). Well, in emacs you get colors, but all
5361 (though not shell ones). Well, in emacs you get colors, but all
5362 seem to be 'light' colors (no difference between dark and light
5362 seem to be 'light' colors (no difference between dark and light
5363 ones). But the garbage chars are gone, and also in xterms. It
5363 ones). But the garbage chars are gone, and also in xterms. It
5364 seems that now I'm using 'cleaner' ansi sequences.
5364 seems that now I'm using 'cleaner' ansi sequences.
5365
5365
5366 2002-02-21 Fernando Perez <fperez@colorado.edu>
5366 2002-02-21 Fernando Perez <fperez@colorado.edu>
5367
5367
5368 * Released 0.2.7 (mainly to publish the scoping fix).
5368 * Released 0.2.7 (mainly to publish the scoping fix).
5369
5369
5370 * IPython/Logger.py (Logger.logstate): added. A corresponding
5370 * IPython/Logger.py (Logger.logstate): added. A corresponding
5371 @logstate magic was created.
5371 @logstate magic was created.
5372
5372
5373 * IPython/Magic.py: fixed nested scoping problem under Python
5373 * IPython/Magic.py: fixed nested scoping problem under Python
5374 2.1.x (automagic wasn't working).
5374 2.1.x (automagic wasn't working).
5375
5375
5376 2002-02-20 Fernando Perez <fperez@colorado.edu>
5376 2002-02-20 Fernando Perez <fperez@colorado.edu>
5377
5377
5378 * Released 0.2.6.
5378 * Released 0.2.6.
5379
5379
5380 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5380 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5381 option so that logs can come out without any headers at all.
5381 option so that logs can come out without any headers at all.
5382
5382
5383 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5383 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5384 SciPy.
5384 SciPy.
5385
5385
5386 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5386 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5387 that embedded IPython calls don't require vars() to be explicitly
5387 that embedded IPython calls don't require vars() to be explicitly
5388 passed. Now they are extracted from the caller's frame (code
5388 passed. Now they are extracted from the caller's frame (code
5389 snatched from Eric Jones' weave). Added better documentation to
5389 snatched from Eric Jones' weave). Added better documentation to
5390 the section on embedding and the example file.
5390 the section on embedding and the example file.
5391
5391
5392 * IPython/genutils.py (page): Changed so that under emacs, it just
5392 * IPython/genutils.py (page): Changed so that under emacs, it just
5393 prints the string. You can then page up and down in the emacs
5393 prints the string. You can then page up and down in the emacs
5394 buffer itself. This is how the builtin help() works.
5394 buffer itself. This is how the builtin help() works.
5395
5395
5396 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5396 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5397 macro scoping: macros need to be executed in the user's namespace
5397 macro scoping: macros need to be executed in the user's namespace
5398 to work as if they had been typed by the user.
5398 to work as if they had been typed by the user.
5399
5399
5400 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5400 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5401 execute automatically (no need to type 'exec...'). They then
5401 execute automatically (no need to type 'exec...'). They then
5402 behave like 'true macros'. The printing system was also modified
5402 behave like 'true macros'. The printing system was also modified
5403 for this to work.
5403 for this to work.
5404
5404
5405 2002-02-19 Fernando Perez <fperez@colorado.edu>
5405 2002-02-19 Fernando Perez <fperez@colorado.edu>
5406
5406
5407 * IPython/genutils.py (page_file): new function for paging files
5407 * IPython/genutils.py (page_file): new function for paging files
5408 in an OS-independent way. Also necessary for file viewing to work
5408 in an OS-independent way. Also necessary for file viewing to work
5409 well inside Emacs buffers.
5409 well inside Emacs buffers.
5410 (page): Added checks for being in an emacs buffer.
5410 (page): Added checks for being in an emacs buffer.
5411 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5411 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5412 same bug in iplib.
5412 same bug in iplib.
5413
5413
5414 2002-02-18 Fernando Perez <fperez@colorado.edu>
5414 2002-02-18 Fernando Perez <fperez@colorado.edu>
5415
5415
5416 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5416 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5417 of readline so that IPython can work inside an Emacs buffer.
5417 of readline so that IPython can work inside an Emacs buffer.
5418
5418
5419 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5419 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5420 method signatures (they weren't really bugs, but it looks cleaner
5420 method signatures (they weren't really bugs, but it looks cleaner
5421 and keeps PyChecker happy).
5421 and keeps PyChecker happy).
5422
5422
5423 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5423 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5424 for implementing various user-defined hooks. Currently only
5424 for implementing various user-defined hooks. Currently only
5425 display is done.
5425 display is done.
5426
5426
5427 * IPython/Prompts.py (CachedOutput._display): changed display
5427 * IPython/Prompts.py (CachedOutput._display): changed display
5428 functions so that they can be dynamically changed by users easily.
5428 functions so that they can be dynamically changed by users easily.
5429
5429
5430 * IPython/Extensions/numeric_formats.py (num_display): added an
5430 * IPython/Extensions/numeric_formats.py (num_display): added an
5431 extension for printing NumPy arrays in flexible manners. It
5431 extension for printing NumPy arrays in flexible manners. It
5432 doesn't do anything yet, but all the structure is in
5432 doesn't do anything yet, but all the structure is in
5433 place. Ultimately the plan is to implement output format control
5433 place. Ultimately the plan is to implement output format control
5434 like in Octave.
5434 like in Octave.
5435
5435
5436 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5436 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5437 methods are found at run-time by all the automatic machinery.
5437 methods are found at run-time by all the automatic machinery.
5438
5438
5439 2002-02-17 Fernando Perez <fperez@colorado.edu>
5439 2002-02-17 Fernando Perez <fperez@colorado.edu>
5440
5440
5441 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5441 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5442 whole file a little.
5442 whole file a little.
5443
5443
5444 * ToDo: closed this document. Now there's a new_design.lyx
5444 * ToDo: closed this document. Now there's a new_design.lyx
5445 document for all new ideas. Added making a pdf of it for the
5445 document for all new ideas. Added making a pdf of it for the
5446 end-user distro.
5446 end-user distro.
5447
5447
5448 * IPython/Logger.py (Logger.switch_log): Created this to replace
5448 * IPython/Logger.py (Logger.switch_log): Created this to replace
5449 logon() and logoff(). It also fixes a nasty crash reported by
5449 logon() and logoff(). It also fixes a nasty crash reported by
5450 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5450 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5451
5451
5452 * IPython/iplib.py (complete): got auto-completion to work with
5452 * IPython/iplib.py (complete): got auto-completion to work with
5453 automagic (I had wanted this for a long time).
5453 automagic (I had wanted this for a long time).
5454
5454
5455 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5455 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5456 to @file, since file() is now a builtin and clashes with automagic
5456 to @file, since file() is now a builtin and clashes with automagic
5457 for @file.
5457 for @file.
5458
5458
5459 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5459 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5460 of this was previously in iplib, which had grown to more than 2000
5460 of this was previously in iplib, which had grown to more than 2000
5461 lines, way too long. No new functionality, but it makes managing
5461 lines, way too long. No new functionality, but it makes managing
5462 the code a bit easier.
5462 the code a bit easier.
5463
5463
5464 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5464 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5465 information to crash reports.
5465 information to crash reports.
5466
5466
5467 2002-02-12 Fernando Perez <fperez@colorado.edu>
5467 2002-02-12 Fernando Perez <fperez@colorado.edu>
5468
5468
5469 * Released 0.2.5.
5469 * Released 0.2.5.
5470
5470
5471 2002-02-11 Fernando Perez <fperez@colorado.edu>
5471 2002-02-11 Fernando Perez <fperez@colorado.edu>
5472
5472
5473 * Wrote a relatively complete Windows installer. It puts
5473 * Wrote a relatively complete Windows installer. It puts
5474 everything in place, creates Start Menu entries and fixes the
5474 everything in place, creates Start Menu entries and fixes the
5475 color issues. Nothing fancy, but it works.
5475 color issues. Nothing fancy, but it works.
5476
5476
5477 2002-02-10 Fernando Perez <fperez@colorado.edu>
5477 2002-02-10 Fernando Perez <fperez@colorado.edu>
5478
5478
5479 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5479 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5480 os.path.expanduser() call so that we can type @run ~/myfile.py and
5480 os.path.expanduser() call so that we can type @run ~/myfile.py and
5481 have thigs work as expected.
5481 have thigs work as expected.
5482
5482
5483 * IPython/genutils.py (page): fixed exception handling so things
5483 * IPython/genutils.py (page): fixed exception handling so things
5484 work both in Unix and Windows correctly. Quitting a pager triggers
5484 work both in Unix and Windows correctly. Quitting a pager triggers
5485 an IOError/broken pipe in Unix, and in windows not finding a pager
5485 an IOError/broken pipe in Unix, and in windows not finding a pager
5486 is also an IOError, so I had to actually look at the return value
5486 is also an IOError, so I had to actually look at the return value
5487 of the exception, not just the exception itself. Should be ok now.
5487 of the exception, not just the exception itself. Should be ok now.
5488
5488
5489 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5489 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5490 modified to allow case-insensitive color scheme changes.
5490 modified to allow case-insensitive color scheme changes.
5491
5491
5492 2002-02-09 Fernando Perez <fperez@colorado.edu>
5492 2002-02-09 Fernando Perez <fperez@colorado.edu>
5493
5493
5494 * IPython/genutils.py (native_line_ends): new function to leave
5494 * IPython/genutils.py (native_line_ends): new function to leave
5495 user config files with os-native line-endings.
5495 user config files with os-native line-endings.
5496
5496
5497 * README and manual updates.
5497 * README and manual updates.
5498
5498
5499 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5499 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5500 instead of StringType to catch Unicode strings.
5500 instead of StringType to catch Unicode strings.
5501
5501
5502 * IPython/genutils.py (filefind): fixed bug for paths with
5502 * IPython/genutils.py (filefind): fixed bug for paths with
5503 embedded spaces (very common in Windows).
5503 embedded spaces (very common in Windows).
5504
5504
5505 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5505 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5506 files under Windows, so that they get automatically associated
5506 files under Windows, so that they get automatically associated
5507 with a text editor. Windows makes it a pain to handle
5507 with a text editor. Windows makes it a pain to handle
5508 extension-less files.
5508 extension-less files.
5509
5509
5510 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5510 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5511 warning about readline only occur for Posix. In Windows there's no
5511 warning about readline only occur for Posix. In Windows there's no
5512 way to get readline, so why bother with the warning.
5512 way to get readline, so why bother with the warning.
5513
5513
5514 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5514 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5515 for __str__ instead of dir(self), since dir() changed in 2.2.
5515 for __str__ instead of dir(self), since dir() changed in 2.2.
5516
5516
5517 * Ported to Windows! Tested on XP, I suspect it should work fine
5517 * Ported to Windows! Tested on XP, I suspect it should work fine
5518 on NT/2000, but I don't think it will work on 98 et al. That
5518 on NT/2000, but I don't think it will work on 98 et al. That
5519 series of Windows is such a piece of junk anyway that I won't try
5519 series of Windows is such a piece of junk anyway that I won't try
5520 porting it there. The XP port was straightforward, showed a few
5520 porting it there. The XP port was straightforward, showed a few
5521 bugs here and there (fixed all), in particular some string
5521 bugs here and there (fixed all), in particular some string
5522 handling stuff which required considering Unicode strings (which
5522 handling stuff which required considering Unicode strings (which
5523 Windows uses). This is good, but hasn't been too tested :) No
5523 Windows uses). This is good, but hasn't been too tested :) No
5524 fancy installer yet, I'll put a note in the manual so people at
5524 fancy installer yet, I'll put a note in the manual so people at
5525 least make manually a shortcut.
5525 least make manually a shortcut.
5526
5526
5527 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5527 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5528 into a single one, "colors". This now controls both prompt and
5528 into a single one, "colors". This now controls both prompt and
5529 exception color schemes, and can be changed both at startup
5529 exception color schemes, and can be changed both at startup
5530 (either via command-line switches or via ipythonrc files) and at
5530 (either via command-line switches or via ipythonrc files) and at
5531 runtime, with @colors.
5531 runtime, with @colors.
5532 (Magic.magic_run): renamed @prun to @run and removed the old
5532 (Magic.magic_run): renamed @prun to @run and removed the old
5533 @run. The two were too similar to warrant keeping both.
5533 @run. The two were too similar to warrant keeping both.
5534
5534
5535 2002-02-03 Fernando Perez <fperez@colorado.edu>
5535 2002-02-03 Fernando Perez <fperez@colorado.edu>
5536
5536
5537 * IPython/iplib.py (install_first_time): Added comment on how to
5537 * IPython/iplib.py (install_first_time): Added comment on how to
5538 configure the color options for first-time users. Put a <return>
5538 configure the color options for first-time users. Put a <return>
5539 request at the end so that small-terminal users get a chance to
5539 request at the end so that small-terminal users get a chance to
5540 read the startup info.
5540 read the startup info.
5541
5541
5542 2002-01-23 Fernando Perez <fperez@colorado.edu>
5542 2002-01-23 Fernando Perez <fperez@colorado.edu>
5543
5543
5544 * IPython/iplib.py (CachedOutput.update): Changed output memory
5544 * IPython/iplib.py (CachedOutput.update): Changed output memory
5545 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5545 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5546 input history we still use _i. Did this b/c these variable are
5546 input history we still use _i. Did this b/c these variable are
5547 very commonly used in interactive work, so the less we need to
5547 very commonly used in interactive work, so the less we need to
5548 type the better off we are.
5548 type the better off we are.
5549 (Magic.magic_prun): updated @prun to better handle the namespaces
5549 (Magic.magic_prun): updated @prun to better handle the namespaces
5550 the file will run in, including a fix for __name__ not being set
5550 the file will run in, including a fix for __name__ not being set
5551 before.
5551 before.
5552
5552
5553 2002-01-20 Fernando Perez <fperez@colorado.edu>
5553 2002-01-20 Fernando Perez <fperez@colorado.edu>
5554
5554
5555 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5555 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5556 extra garbage for Python 2.2. Need to look more carefully into
5556 extra garbage for Python 2.2. Need to look more carefully into
5557 this later.
5557 this later.
5558
5558
5559 2002-01-19 Fernando Perez <fperez@colorado.edu>
5559 2002-01-19 Fernando Perez <fperez@colorado.edu>
5560
5560
5561 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5561 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5562 display SyntaxError exceptions properly formatted when they occur
5562 display SyntaxError exceptions properly formatted when they occur
5563 (they can be triggered by imported code).
5563 (they can be triggered by imported code).
5564
5564
5565 2002-01-18 Fernando Perez <fperez@colorado.edu>
5565 2002-01-18 Fernando Perez <fperez@colorado.edu>
5566
5566
5567 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5567 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5568 SyntaxError exceptions are reported nicely formatted, instead of
5568 SyntaxError exceptions are reported nicely formatted, instead of
5569 spitting out only offset information as before.
5569 spitting out only offset information as before.
5570 (Magic.magic_prun): Added the @prun function for executing
5570 (Magic.magic_prun): Added the @prun function for executing
5571 programs with command line args inside IPython.
5571 programs with command line args inside IPython.
5572
5572
5573 2002-01-16 Fernando Perez <fperez@colorado.edu>
5573 2002-01-16 Fernando Perez <fperez@colorado.edu>
5574
5574
5575 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5575 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5576 to *not* include the last item given in a range. This brings their
5576 to *not* include the last item given in a range. This brings their
5577 behavior in line with Python's slicing:
5577 behavior in line with Python's slicing:
5578 a[n1:n2] -> a[n1]...a[n2-1]
5578 a[n1:n2] -> a[n1]...a[n2-1]
5579 It may be a bit less convenient, but I prefer to stick to Python's
5579 It may be a bit less convenient, but I prefer to stick to Python's
5580 conventions *everywhere*, so users never have to wonder.
5580 conventions *everywhere*, so users never have to wonder.
5581 (Magic.magic_macro): Added @macro function to ease the creation of
5581 (Magic.magic_macro): Added @macro function to ease the creation of
5582 macros.
5582 macros.
5583
5583
5584 2002-01-05 Fernando Perez <fperez@colorado.edu>
5584 2002-01-05 Fernando Perez <fperez@colorado.edu>
5585
5585
5586 * Released 0.2.4.
5586 * Released 0.2.4.
5587
5587
5588 * IPython/iplib.py (Magic.magic_pdef):
5588 * IPython/iplib.py (Magic.magic_pdef):
5589 (InteractiveShell.safe_execfile): report magic lines and error
5589 (InteractiveShell.safe_execfile): report magic lines and error
5590 lines without line numbers so one can easily copy/paste them for
5590 lines without line numbers so one can easily copy/paste them for
5591 re-execution.
5591 re-execution.
5592
5592
5593 * Updated manual with recent changes.
5593 * Updated manual with recent changes.
5594
5594
5595 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5595 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5596 docstring printing when class? is called. Very handy for knowing
5596 docstring printing when class? is called. Very handy for knowing
5597 how to create class instances (as long as __init__ is well
5597 how to create class instances (as long as __init__ is well
5598 documented, of course :)
5598 documented, of course :)
5599 (Magic.magic_doc): print both class and constructor docstrings.
5599 (Magic.magic_doc): print both class and constructor docstrings.
5600 (Magic.magic_pdef): give constructor info if passed a class and
5600 (Magic.magic_pdef): give constructor info if passed a class and
5601 __call__ info for callable object instances.
5601 __call__ info for callable object instances.
5602
5602
5603 2002-01-04 Fernando Perez <fperez@colorado.edu>
5603 2002-01-04 Fernando Perez <fperez@colorado.edu>
5604
5604
5605 * Made deep_reload() off by default. It doesn't always work
5605 * Made deep_reload() off by default. It doesn't always work
5606 exactly as intended, so it's probably safer to have it off. It's
5606 exactly as intended, so it's probably safer to have it off. It's
5607 still available as dreload() anyway, so nothing is lost.
5607 still available as dreload() anyway, so nothing is lost.
5608
5608
5609 2002-01-02 Fernando Perez <fperez@colorado.edu>
5609 2002-01-02 Fernando Perez <fperez@colorado.edu>
5610
5610
5611 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5611 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5612 so I wanted an updated release).
5612 so I wanted an updated release).
5613
5613
5614 2001-12-27 Fernando Perez <fperez@colorado.edu>
5614 2001-12-27 Fernando Perez <fperez@colorado.edu>
5615
5615
5616 * IPython/iplib.py (InteractiveShell.interact): Added the original
5616 * IPython/iplib.py (InteractiveShell.interact): Added the original
5617 code from 'code.py' for this module in order to change the
5617 code from 'code.py' for this module in order to change the
5618 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5618 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5619 the history cache would break when the user hit Ctrl-C, and
5619 the history cache would break when the user hit Ctrl-C, and
5620 interact() offers no way to add any hooks to it.
5620 interact() offers no way to add any hooks to it.
5621
5621
5622 2001-12-23 Fernando Perez <fperez@colorado.edu>
5622 2001-12-23 Fernando Perez <fperez@colorado.edu>
5623
5623
5624 * setup.py: added check for 'MANIFEST' before trying to remove
5624 * setup.py: added check for 'MANIFEST' before trying to remove
5625 it. Thanks to Sean Reifschneider.
5625 it. Thanks to Sean Reifschneider.
5626
5626
5627 2001-12-22 Fernando Perez <fperez@colorado.edu>
5627 2001-12-22 Fernando Perez <fperez@colorado.edu>
5628
5628
5629 * Released 0.2.2.
5629 * Released 0.2.2.
5630
5630
5631 * Finished (reasonably) writing the manual. Later will add the
5631 * Finished (reasonably) writing the manual. Later will add the
5632 python-standard navigation stylesheets, but for the time being
5632 python-standard navigation stylesheets, but for the time being
5633 it's fairly complete. Distribution will include html and pdf
5633 it's fairly complete. Distribution will include html and pdf
5634 versions.
5634 versions.
5635
5635
5636 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5636 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5637 (MayaVi author).
5637 (MayaVi author).
5638
5638
5639 2001-12-21 Fernando Perez <fperez@colorado.edu>
5639 2001-12-21 Fernando Perez <fperez@colorado.edu>
5640
5640
5641 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5641 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5642 good public release, I think (with the manual and the distutils
5642 good public release, I think (with the manual and the distutils
5643 installer). The manual can use some work, but that can go
5643 installer). The manual can use some work, but that can go
5644 slowly. Otherwise I think it's quite nice for end users. Next
5644 slowly. Otherwise I think it's quite nice for end users. Next
5645 summer, rewrite the guts of it...
5645 summer, rewrite the guts of it...
5646
5646
5647 * Changed format of ipythonrc files to use whitespace as the
5647 * Changed format of ipythonrc files to use whitespace as the
5648 separator instead of an explicit '='. Cleaner.
5648 separator instead of an explicit '='. Cleaner.
5649
5649
5650 2001-12-20 Fernando Perez <fperez@colorado.edu>
5650 2001-12-20 Fernando Perez <fperez@colorado.edu>
5651
5651
5652 * Started a manual in LyX. For now it's just a quick merge of the
5652 * Started a manual in LyX. For now it's just a quick merge of the
5653 various internal docstrings and READMEs. Later it may grow into a
5653 various internal docstrings and READMEs. Later it may grow into a
5654 nice, full-blown manual.
5654 nice, full-blown manual.
5655
5655
5656 * Set up a distutils based installer. Installation should now be
5656 * Set up a distutils based installer. Installation should now be
5657 trivially simple for end-users.
5657 trivially simple for end-users.
5658
5658
5659 2001-12-11 Fernando Perez <fperez@colorado.edu>
5659 2001-12-11 Fernando Perez <fperez@colorado.edu>
5660
5660
5661 * Released 0.2.0. First public release, announced it at
5661 * Released 0.2.0. First public release, announced it at
5662 comp.lang.python. From now on, just bugfixes...
5662 comp.lang.python. From now on, just bugfixes...
5663
5663
5664 * Went through all the files, set copyright/license notices and
5664 * Went through all the files, set copyright/license notices and
5665 cleaned up things. Ready for release.
5665 cleaned up things. Ready for release.
5666
5666
5667 2001-12-10 Fernando Perez <fperez@colorado.edu>
5667 2001-12-10 Fernando Perez <fperez@colorado.edu>
5668
5668
5669 * Changed the first-time installer not to use tarfiles. It's more
5669 * Changed the first-time installer not to use tarfiles. It's more
5670 robust now and less unix-dependent. Also makes it easier for
5670 robust now and less unix-dependent. Also makes it easier for
5671 people to later upgrade versions.
5671 people to later upgrade versions.
5672
5672
5673 * Changed @exit to @abort to reflect the fact that it's pretty
5673 * Changed @exit to @abort to reflect the fact that it's pretty
5674 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5674 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5675 becomes significant only when IPyhton is embedded: in that case,
5675 becomes significant only when IPyhton is embedded: in that case,
5676 C-D closes IPython only, but @abort kills the enclosing program
5676 C-D closes IPython only, but @abort kills the enclosing program
5677 too (unless it had called IPython inside a try catching
5677 too (unless it had called IPython inside a try catching
5678 SystemExit).
5678 SystemExit).
5679
5679
5680 * Created Shell module which exposes the actuall IPython Shell
5680 * Created Shell module which exposes the actuall IPython Shell
5681 classes, currently the normal and the embeddable one. This at
5681 classes, currently the normal and the embeddable one. This at
5682 least offers a stable interface we won't need to change when
5682 least offers a stable interface we won't need to change when
5683 (later) the internals are rewritten. That rewrite will be confined
5683 (later) the internals are rewritten. That rewrite will be confined
5684 to iplib and ipmaker, but the Shell interface should remain as is.
5684 to iplib and ipmaker, but the Shell interface should remain as is.
5685
5685
5686 * Added embed module which offers an embeddable IPShell object,
5686 * Added embed module which offers an embeddable IPShell object,
5687 useful to fire up IPython *inside* a running program. Great for
5687 useful to fire up IPython *inside* a running program. Great for
5688 debugging or dynamical data analysis.
5688 debugging or dynamical data analysis.
5689
5689
5690 2001-12-08 Fernando Perez <fperez@colorado.edu>
5690 2001-12-08 Fernando Perez <fperez@colorado.edu>
5691
5691
5692 * Fixed small bug preventing seeing info from methods of defined
5692 * Fixed small bug preventing seeing info from methods of defined
5693 objects (incorrect namespace in _ofind()).
5693 objects (incorrect namespace in _ofind()).
5694
5694
5695 * Documentation cleanup. Moved the main usage docstrings to a
5695 * Documentation cleanup. Moved the main usage docstrings to a
5696 separate file, usage.py (cleaner to maintain, and hopefully in the
5696 separate file, usage.py (cleaner to maintain, and hopefully in the
5697 future some perlpod-like way of producing interactive, man and
5697 future some perlpod-like way of producing interactive, man and
5698 html docs out of it will be found).
5698 html docs out of it will be found).
5699
5699
5700 * Added @profile to see your profile at any time.
5700 * Added @profile to see your profile at any time.
5701
5701
5702 * Added @p as an alias for 'print'. It's especially convenient if
5702 * Added @p as an alias for 'print'. It's especially convenient if
5703 using automagic ('p x' prints x).
5703 using automagic ('p x' prints x).
5704
5704
5705 * Small cleanups and fixes after a pychecker run.
5705 * Small cleanups and fixes after a pychecker run.
5706
5706
5707 * Changed the @cd command to handle @cd - and @cd -<n> for
5707 * Changed the @cd command to handle @cd - and @cd -<n> for
5708 visiting any directory in _dh.
5708 visiting any directory in _dh.
5709
5709
5710 * Introduced _dh, a history of visited directories. @dhist prints
5710 * Introduced _dh, a history of visited directories. @dhist prints
5711 it out with numbers.
5711 it out with numbers.
5712
5712
5713 2001-12-07 Fernando Perez <fperez@colorado.edu>
5713 2001-12-07 Fernando Perez <fperez@colorado.edu>
5714
5714
5715 * Released 0.1.22
5715 * Released 0.1.22
5716
5716
5717 * Made initialization a bit more robust against invalid color
5717 * Made initialization a bit more robust against invalid color
5718 options in user input (exit, not traceback-crash).
5718 options in user input (exit, not traceback-crash).
5719
5719
5720 * Changed the bug crash reporter to write the report only in the
5720 * Changed the bug crash reporter to write the report only in the
5721 user's .ipython directory. That way IPython won't litter people's
5721 user's .ipython directory. That way IPython won't litter people's
5722 hard disks with crash files all over the place. Also print on
5722 hard disks with crash files all over the place. Also print on
5723 screen the necessary mail command.
5723 screen the necessary mail command.
5724
5724
5725 * With the new ultraTB, implemented LightBG color scheme for light
5725 * With the new ultraTB, implemented LightBG color scheme for light
5726 background terminals. A lot of people like white backgrounds, so I
5726 background terminals. A lot of people like white backgrounds, so I
5727 guess we should at least give them something readable.
5727 guess we should at least give them something readable.
5728
5728
5729 2001-12-06 Fernando Perez <fperez@colorado.edu>
5729 2001-12-06 Fernando Perez <fperez@colorado.edu>
5730
5730
5731 * Modified the structure of ultraTB. Now there's a proper class
5731 * Modified the structure of ultraTB. Now there's a proper class
5732 for tables of color schemes which allow adding schemes easily and
5732 for tables of color schemes which allow adding schemes easily and
5733 switching the active scheme without creating a new instance every
5733 switching the active scheme without creating a new instance every
5734 time (which was ridiculous). The syntax for creating new schemes
5734 time (which was ridiculous). The syntax for creating new schemes
5735 is also cleaner. I think ultraTB is finally done, with a clean
5735 is also cleaner. I think ultraTB is finally done, with a clean
5736 class structure. Names are also much cleaner (now there's proper
5736 class structure. Names are also much cleaner (now there's proper
5737 color tables, no need for every variable to also have 'color' in
5737 color tables, no need for every variable to also have 'color' in
5738 its name).
5738 its name).
5739
5739
5740 * Broke down genutils into separate files. Now genutils only
5740 * Broke down genutils into separate files. Now genutils only
5741 contains utility functions, and classes have been moved to their
5741 contains utility functions, and classes have been moved to their
5742 own files (they had enough independent functionality to warrant
5742 own files (they had enough independent functionality to warrant
5743 it): ConfigLoader, OutputTrap, Struct.
5743 it): ConfigLoader, OutputTrap, Struct.
5744
5744
5745 2001-12-05 Fernando Perez <fperez@colorado.edu>
5745 2001-12-05 Fernando Perez <fperez@colorado.edu>
5746
5746
5747 * IPython turns 21! Released version 0.1.21, as a candidate for
5747 * IPython turns 21! Released version 0.1.21, as a candidate for
5748 public consumption. If all goes well, release in a few days.
5748 public consumption. If all goes well, release in a few days.
5749
5749
5750 * Fixed path bug (files in Extensions/ directory wouldn't be found
5750 * Fixed path bug (files in Extensions/ directory wouldn't be found
5751 unless IPython/ was explicitly in sys.path).
5751 unless IPython/ was explicitly in sys.path).
5752
5752
5753 * Extended the FlexCompleter class as MagicCompleter to allow
5753 * Extended the FlexCompleter class as MagicCompleter to allow
5754 completion of @-starting lines.
5754 completion of @-starting lines.
5755
5755
5756 * Created __release__.py file as a central repository for release
5756 * Created __release__.py file as a central repository for release
5757 info that other files can read from.
5757 info that other files can read from.
5758
5758
5759 * Fixed small bug in logging: when logging was turned on in
5759 * Fixed small bug in logging: when logging was turned on in
5760 mid-session, old lines with special meanings (!@?) were being
5760 mid-session, old lines with special meanings (!@?) were being
5761 logged without the prepended comment, which is necessary since
5761 logged without the prepended comment, which is necessary since
5762 they are not truly valid python syntax. This should make session
5762 they are not truly valid python syntax. This should make session
5763 restores produce less errors.
5763 restores produce less errors.
5764
5764
5765 * The namespace cleanup forced me to make a FlexCompleter class
5765 * The namespace cleanup forced me to make a FlexCompleter class
5766 which is nothing but a ripoff of rlcompleter, but with selectable
5766 which is nothing but a ripoff of rlcompleter, but with selectable
5767 namespace (rlcompleter only works in __main__.__dict__). I'll try
5767 namespace (rlcompleter only works in __main__.__dict__). I'll try
5768 to submit a note to the authors to see if this change can be
5768 to submit a note to the authors to see if this change can be
5769 incorporated in future rlcompleter releases (Dec.6: done)
5769 incorporated in future rlcompleter releases (Dec.6: done)
5770
5770
5771 * More fixes to namespace handling. It was a mess! Now all
5771 * More fixes to namespace handling. It was a mess! Now all
5772 explicit references to __main__.__dict__ are gone (except when
5772 explicit references to __main__.__dict__ are gone (except when
5773 really needed) and everything is handled through the namespace
5773 really needed) and everything is handled through the namespace
5774 dicts in the IPython instance. We seem to be getting somewhere
5774 dicts in the IPython instance. We seem to be getting somewhere
5775 with this, finally...
5775 with this, finally...
5776
5776
5777 * Small documentation updates.
5777 * Small documentation updates.
5778
5778
5779 * Created the Extensions directory under IPython (with an
5779 * Created the Extensions directory under IPython (with an
5780 __init__.py). Put the PhysicalQ stuff there. This directory should
5780 __init__.py). Put the PhysicalQ stuff there. This directory should
5781 be used for all special-purpose extensions.
5781 be used for all special-purpose extensions.
5782
5782
5783 * File renaming:
5783 * File renaming:
5784 ipythonlib --> ipmaker
5784 ipythonlib --> ipmaker
5785 ipplib --> iplib
5785 ipplib --> iplib
5786 This makes a bit more sense in terms of what these files actually do.
5786 This makes a bit more sense in terms of what these files actually do.
5787
5787
5788 * Moved all the classes and functions in ipythonlib to ipplib, so
5788 * Moved all the classes and functions in ipythonlib to ipplib, so
5789 now ipythonlib only has make_IPython(). This will ease up its
5789 now ipythonlib only has make_IPython(). This will ease up its
5790 splitting in smaller functional chunks later.
5790 splitting in smaller functional chunks later.
5791
5791
5792 * Cleaned up (done, I think) output of @whos. Better column
5792 * Cleaned up (done, I think) output of @whos. Better column
5793 formatting, and now shows str(var) for as much as it can, which is
5793 formatting, and now shows str(var) for as much as it can, which is
5794 typically what one gets with a 'print var'.
5794 typically what one gets with a 'print var'.
5795
5795
5796 2001-12-04 Fernando Perez <fperez@colorado.edu>
5796 2001-12-04 Fernando Perez <fperez@colorado.edu>
5797
5797
5798 * Fixed namespace problems. Now builtin/IPyhton/user names get
5798 * Fixed namespace problems. Now builtin/IPyhton/user names get
5799 properly reported in their namespace. Internal namespace handling
5799 properly reported in their namespace. Internal namespace handling
5800 is finally getting decent (not perfect yet, but much better than
5800 is finally getting decent (not perfect yet, but much better than
5801 the ad-hoc mess we had).
5801 the ad-hoc mess we had).
5802
5802
5803 * Removed -exit option. If people just want to run a python
5803 * Removed -exit option. If people just want to run a python
5804 script, that's what the normal interpreter is for. Less
5804 script, that's what the normal interpreter is for. Less
5805 unnecessary options, less chances for bugs.
5805 unnecessary options, less chances for bugs.
5806
5806
5807 * Added a crash handler which generates a complete post-mortem if
5807 * Added a crash handler which generates a complete post-mortem if
5808 IPython crashes. This will help a lot in tracking bugs down the
5808 IPython crashes. This will help a lot in tracking bugs down the
5809 road.
5809 road.
5810
5810
5811 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5811 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5812 which were boud to functions being reassigned would bypass the
5812 which were boud to functions being reassigned would bypass the
5813 logger, breaking the sync of _il with the prompt counter. This
5813 logger, breaking the sync of _il with the prompt counter. This
5814 would then crash IPython later when a new line was logged.
5814 would then crash IPython later when a new line was logged.
5815
5815
5816 2001-12-02 Fernando Perez <fperez@colorado.edu>
5816 2001-12-02 Fernando Perez <fperez@colorado.edu>
5817
5817
5818 * Made IPython a package. This means people don't have to clutter
5818 * Made IPython a package. This means people don't have to clutter
5819 their sys.path with yet another directory. Changed the INSTALL
5819 their sys.path with yet another directory. Changed the INSTALL
5820 file accordingly.
5820 file accordingly.
5821
5821
5822 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5822 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5823 sorts its output (so @who shows it sorted) and @whos formats the
5823 sorts its output (so @who shows it sorted) and @whos formats the
5824 table according to the width of the first column. Nicer, easier to
5824 table according to the width of the first column. Nicer, easier to
5825 read. Todo: write a generic table_format() which takes a list of
5825 read. Todo: write a generic table_format() which takes a list of
5826 lists and prints it nicely formatted, with optional row/column
5826 lists and prints it nicely formatted, with optional row/column
5827 separators and proper padding and justification.
5827 separators and proper padding and justification.
5828
5828
5829 * Released 0.1.20
5829 * Released 0.1.20
5830
5830
5831 * Fixed bug in @log which would reverse the inputcache list (a
5831 * Fixed bug in @log which would reverse the inputcache list (a
5832 copy operation was missing).
5832 copy operation was missing).
5833
5833
5834 * Code cleanup. @config was changed to use page(). Better, since
5834 * Code cleanup. @config was changed to use page(). Better, since
5835 its output is always quite long.
5835 its output is always quite long.
5836
5836
5837 * Itpl is back as a dependency. I was having too many problems
5837 * Itpl is back as a dependency. I was having too many problems
5838 getting the parametric aliases to work reliably, and it's just
5838 getting the parametric aliases to work reliably, and it's just
5839 easier to code weird string operations with it than playing %()s
5839 easier to code weird string operations with it than playing %()s
5840 games. It's only ~6k, so I don't think it's too big a deal.
5840 games. It's only ~6k, so I don't think it's too big a deal.
5841
5841
5842 * Found (and fixed) a very nasty bug with history. !lines weren't
5842 * Found (and fixed) a very nasty bug with history. !lines weren't
5843 getting cached, and the out of sync caches would crash
5843 getting cached, and the out of sync caches would crash
5844 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5844 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5845 division of labor a bit better. Bug fixed, cleaner structure.
5845 division of labor a bit better. Bug fixed, cleaner structure.
5846
5846
5847 2001-12-01 Fernando Perez <fperez@colorado.edu>
5847 2001-12-01 Fernando Perez <fperez@colorado.edu>
5848
5848
5849 * Released 0.1.19
5849 * Released 0.1.19
5850
5850
5851 * Added option -n to @hist to prevent line number printing. Much
5851 * Added option -n to @hist to prevent line number printing. Much
5852 easier to copy/paste code this way.
5852 easier to copy/paste code this way.
5853
5853
5854 * Created global _il to hold the input list. Allows easy
5854 * Created global _il to hold the input list. Allows easy
5855 re-execution of blocks of code by slicing it (inspired by Janko's
5855 re-execution of blocks of code by slicing it (inspired by Janko's
5856 comment on 'macros').
5856 comment on 'macros').
5857
5857
5858 * Small fixes and doc updates.
5858 * Small fixes and doc updates.
5859
5859
5860 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5860 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5861 much too fragile with automagic. Handles properly multi-line
5861 much too fragile with automagic. Handles properly multi-line
5862 statements and takes parameters.
5862 statements and takes parameters.
5863
5863
5864 2001-11-30 Fernando Perez <fperez@colorado.edu>
5864 2001-11-30 Fernando Perez <fperez@colorado.edu>
5865
5865
5866 * Version 0.1.18 released.
5866 * Version 0.1.18 released.
5867
5867
5868 * Fixed nasty namespace bug in initial module imports.
5868 * Fixed nasty namespace bug in initial module imports.
5869
5869
5870 * Added copyright/license notes to all code files (except
5870 * Added copyright/license notes to all code files (except
5871 DPyGetOpt). For the time being, LGPL. That could change.
5871 DPyGetOpt). For the time being, LGPL. That could change.
5872
5872
5873 * Rewrote a much nicer README, updated INSTALL, cleaned up
5873 * Rewrote a much nicer README, updated INSTALL, cleaned up
5874 ipythonrc-* samples.
5874 ipythonrc-* samples.
5875
5875
5876 * Overall code/documentation cleanup. Basically ready for
5876 * Overall code/documentation cleanup. Basically ready for
5877 release. Only remaining thing: licence decision (LGPL?).
5877 release. Only remaining thing: licence decision (LGPL?).
5878
5878
5879 * Converted load_config to a class, ConfigLoader. Now recursion
5879 * Converted load_config to a class, ConfigLoader. Now recursion
5880 control is better organized. Doesn't include the same file twice.
5880 control is better organized. Doesn't include the same file twice.
5881
5881
5882 2001-11-29 Fernando Perez <fperez@colorado.edu>
5882 2001-11-29 Fernando Perez <fperez@colorado.edu>
5883
5883
5884 * Got input history working. Changed output history variables from
5884 * Got input history working. Changed output history variables from
5885 _p to _o so that _i is for input and _o for output. Just cleaner
5885 _p to _o so that _i is for input and _o for output. Just cleaner
5886 convention.
5886 convention.
5887
5887
5888 * Implemented parametric aliases. This pretty much allows the
5888 * Implemented parametric aliases. This pretty much allows the
5889 alias system to offer full-blown shell convenience, I think.
5889 alias system to offer full-blown shell convenience, I think.
5890
5890
5891 * Version 0.1.17 released, 0.1.18 opened.
5891 * Version 0.1.17 released, 0.1.18 opened.
5892
5892
5893 * dot_ipython/ipythonrc (alias): added documentation.
5893 * dot_ipython/ipythonrc (alias): added documentation.
5894 (xcolor): Fixed small bug (xcolors -> xcolor)
5894 (xcolor): Fixed small bug (xcolors -> xcolor)
5895
5895
5896 * Changed the alias system. Now alias is a magic command to define
5896 * Changed the alias system. Now alias is a magic command to define
5897 aliases just like the shell. Rationale: the builtin magics should
5897 aliases just like the shell. Rationale: the builtin magics should
5898 be there for things deeply connected to IPython's
5898 be there for things deeply connected to IPython's
5899 architecture. And this is a much lighter system for what I think
5899 architecture. And this is a much lighter system for what I think
5900 is the really important feature: allowing users to define quickly
5900 is the really important feature: allowing users to define quickly
5901 magics that will do shell things for them, so they can customize
5901 magics that will do shell things for them, so they can customize
5902 IPython easily to match their work habits. If someone is really
5902 IPython easily to match their work habits. If someone is really
5903 desperate to have another name for a builtin alias, they can
5903 desperate to have another name for a builtin alias, they can
5904 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5904 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5905 works.
5905 works.
5906
5906
5907 2001-11-28 Fernando Perez <fperez@colorado.edu>
5907 2001-11-28 Fernando Perez <fperez@colorado.edu>
5908
5908
5909 * Changed @file so that it opens the source file at the proper
5909 * Changed @file so that it opens the source file at the proper
5910 line. Since it uses less, if your EDITOR environment is
5910 line. Since it uses less, if your EDITOR environment is
5911 configured, typing v will immediately open your editor of choice
5911 configured, typing v will immediately open your editor of choice
5912 right at the line where the object is defined. Not as quick as
5912 right at the line where the object is defined. Not as quick as
5913 having a direct @edit command, but for all intents and purposes it
5913 having a direct @edit command, but for all intents and purposes it
5914 works. And I don't have to worry about writing @edit to deal with
5914 works. And I don't have to worry about writing @edit to deal with
5915 all the editors, less does that.
5915 all the editors, less does that.
5916
5916
5917 * Version 0.1.16 released, 0.1.17 opened.
5917 * Version 0.1.16 released, 0.1.17 opened.
5918
5918
5919 * Fixed some nasty bugs in the page/page_dumb combo that could
5919 * Fixed some nasty bugs in the page/page_dumb combo that could
5920 crash IPython.
5920 crash IPython.
5921
5921
5922 2001-11-27 Fernando Perez <fperez@colorado.edu>
5922 2001-11-27 Fernando Perez <fperez@colorado.edu>
5923
5923
5924 * Version 0.1.15 released, 0.1.16 opened.
5924 * Version 0.1.15 released, 0.1.16 opened.
5925
5925
5926 * Finally got ? and ?? to work for undefined things: now it's
5926 * Finally got ? and ?? to work for undefined things: now it's
5927 possible to type {}.get? and get information about the get method
5927 possible to type {}.get? and get information about the get method
5928 of dicts, or os.path? even if only os is defined (so technically
5928 of dicts, or os.path? even if only os is defined (so technically
5929 os.path isn't). Works at any level. For example, after import os,
5929 os.path isn't). Works at any level. For example, after import os,
5930 os?, os.path?, os.path.abspath? all work. This is great, took some
5930 os?, os.path?, os.path.abspath? all work. This is great, took some
5931 work in _ofind.
5931 work in _ofind.
5932
5932
5933 * Fixed more bugs with logging. The sanest way to do it was to add
5933 * Fixed more bugs with logging. The sanest way to do it was to add
5934 to @log a 'mode' parameter. Killed two in one shot (this mode
5934 to @log a 'mode' parameter. Killed two in one shot (this mode
5935 option was a request of Janko's). I think it's finally clean
5935 option was a request of Janko's). I think it's finally clean
5936 (famous last words).
5936 (famous last words).
5937
5937
5938 * Added a page_dumb() pager which does a decent job of paging on
5938 * Added a page_dumb() pager which does a decent job of paging on
5939 screen, if better things (like less) aren't available. One less
5939 screen, if better things (like less) aren't available. One less
5940 unix dependency (someday maybe somebody will port this to
5940 unix dependency (someday maybe somebody will port this to
5941 windows).
5941 windows).
5942
5942
5943 * Fixed problem in magic_log: would lock of logging out if log
5943 * Fixed problem in magic_log: would lock of logging out if log
5944 creation failed (because it would still think it had succeeded).
5944 creation failed (because it would still think it had succeeded).
5945
5945
5946 * Improved the page() function using curses to auto-detect screen
5946 * Improved the page() function using curses to auto-detect screen
5947 size. Now it can make a much better decision on whether to print
5947 size. Now it can make a much better decision on whether to print
5948 or page a string. Option screen_length was modified: a value 0
5948 or page a string. Option screen_length was modified: a value 0
5949 means auto-detect, and that's the default now.
5949 means auto-detect, and that's the default now.
5950
5950
5951 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
5951 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
5952 go out. I'll test it for a few days, then talk to Janko about
5952 go out. I'll test it for a few days, then talk to Janko about
5953 licences and announce it.
5953 licences and announce it.
5954
5954
5955 * Fixed the length of the auto-generated ---> prompt which appears
5955 * Fixed the length of the auto-generated ---> prompt which appears
5956 for auto-parens and auto-quotes. Getting this right isn't trivial,
5956 for auto-parens and auto-quotes. Getting this right isn't trivial,
5957 with all the color escapes, different prompt types and optional
5957 with all the color escapes, different prompt types and optional
5958 separators. But it seems to be working in all the combinations.
5958 separators. But it seems to be working in all the combinations.
5959
5959
5960 2001-11-26 Fernando Perez <fperez@colorado.edu>
5960 2001-11-26 Fernando Perez <fperez@colorado.edu>
5961
5961
5962 * Wrote a regexp filter to get option types from the option names
5962 * Wrote a regexp filter to get option types from the option names
5963 string. This eliminates the need to manually keep two duplicate
5963 string. This eliminates the need to manually keep two duplicate
5964 lists.
5964 lists.
5965
5965
5966 * Removed the unneeded check_option_names. Now options are handled
5966 * Removed the unneeded check_option_names. Now options are handled
5967 in a much saner manner and it's easy to visually check that things
5967 in a much saner manner and it's easy to visually check that things
5968 are ok.
5968 are ok.
5969
5969
5970 * Updated version numbers on all files I modified to carry a
5970 * Updated version numbers on all files I modified to carry a
5971 notice so Janko and Nathan have clear version markers.
5971 notice so Janko and Nathan have clear version markers.
5972
5972
5973 * Updated docstring for ultraTB with my changes. I should send
5973 * Updated docstring for ultraTB with my changes. I should send
5974 this to Nathan.
5974 this to Nathan.
5975
5975
5976 * Lots of small fixes. Ran everything through pychecker again.
5976 * Lots of small fixes. Ran everything through pychecker again.
5977
5977
5978 * Made loading of deep_reload an cmd line option. If it's not too
5978 * Made loading of deep_reload an cmd line option. If it's not too
5979 kosher, now people can just disable it. With -nodeep_reload it's
5979 kosher, now people can just disable it. With -nodeep_reload it's
5980 still available as dreload(), it just won't overwrite reload().
5980 still available as dreload(), it just won't overwrite reload().
5981
5981
5982 * Moved many options to the no| form (-opt and -noopt
5982 * Moved many options to the no| form (-opt and -noopt
5983 accepted). Cleaner.
5983 accepted). Cleaner.
5984
5984
5985 * Changed magic_log so that if called with no parameters, it uses
5985 * Changed magic_log so that if called with no parameters, it uses
5986 'rotate' mode. That way auto-generated logs aren't automatically
5986 'rotate' mode. That way auto-generated logs aren't automatically
5987 over-written. For normal logs, now a backup is made if it exists
5987 over-written. For normal logs, now a backup is made if it exists
5988 (only 1 level of backups). A new 'backup' mode was added to the
5988 (only 1 level of backups). A new 'backup' mode was added to the
5989 Logger class to support this. This was a request by Janko.
5989 Logger class to support this. This was a request by Janko.
5990
5990
5991 * Added @logoff/@logon to stop/restart an active log.
5991 * Added @logoff/@logon to stop/restart an active log.
5992
5992
5993 * Fixed a lot of bugs in log saving/replay. It was pretty
5993 * Fixed a lot of bugs in log saving/replay. It was pretty
5994 broken. Now special lines (!@,/) appear properly in the command
5994 broken. Now special lines (!@,/) appear properly in the command
5995 history after a log replay.
5995 history after a log replay.
5996
5996
5997 * Tried and failed to implement full session saving via pickle. My
5997 * Tried and failed to implement full session saving via pickle. My
5998 idea was to pickle __main__.__dict__, but modules can't be
5998 idea was to pickle __main__.__dict__, but modules can't be
5999 pickled. This would be a better alternative to replaying logs, but
5999 pickled. This would be a better alternative to replaying logs, but
6000 seems quite tricky to get to work. Changed -session to be called
6000 seems quite tricky to get to work. Changed -session to be called
6001 -logplay, which more accurately reflects what it does. And if we
6001 -logplay, which more accurately reflects what it does. And if we
6002 ever get real session saving working, -session is now available.
6002 ever get real session saving working, -session is now available.
6003
6003
6004 * Implemented color schemes for prompts also. As for tracebacks,
6004 * Implemented color schemes for prompts also. As for tracebacks,
6005 currently only NoColor and Linux are supported. But now the
6005 currently only NoColor and Linux are supported. But now the
6006 infrastructure is in place, based on a generic ColorScheme
6006 infrastructure is in place, based on a generic ColorScheme
6007 class. So writing and activating new schemes both for the prompts
6007 class. So writing and activating new schemes both for the prompts
6008 and the tracebacks should be straightforward.
6008 and the tracebacks should be straightforward.
6009
6009
6010 * Version 0.1.13 released, 0.1.14 opened.
6010 * Version 0.1.13 released, 0.1.14 opened.
6011
6011
6012 * Changed handling of options for output cache. Now counter is
6012 * Changed handling of options for output cache. Now counter is
6013 hardwired starting at 1 and one specifies the maximum number of
6013 hardwired starting at 1 and one specifies the maximum number of
6014 entries *in the outcache* (not the max prompt counter). This is
6014 entries *in the outcache* (not the max prompt counter). This is
6015 much better, since many statements won't increase the cache
6015 much better, since many statements won't increase the cache
6016 count. It also eliminated some confusing options, now there's only
6016 count. It also eliminated some confusing options, now there's only
6017 one: cache_size.
6017 one: cache_size.
6018
6018
6019 * Added 'alias' magic function and magic_alias option in the
6019 * Added 'alias' magic function and magic_alias option in the
6020 ipythonrc file. Now the user can easily define whatever names he
6020 ipythonrc file. Now the user can easily define whatever names he
6021 wants for the magic functions without having to play weird
6021 wants for the magic functions without having to play weird
6022 namespace games. This gives IPython a real shell-like feel.
6022 namespace games. This gives IPython a real shell-like feel.
6023
6023
6024 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6024 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6025 @ or not).
6025 @ or not).
6026
6026
6027 This was one of the last remaining 'visible' bugs (that I know
6027 This was one of the last remaining 'visible' bugs (that I know
6028 of). I think if I can clean up the session loading so it works
6028 of). I think if I can clean up the session loading so it works
6029 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6029 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6030 about licensing).
6030 about licensing).
6031
6031
6032 2001-11-25 Fernando Perez <fperez@colorado.edu>
6032 2001-11-25 Fernando Perez <fperez@colorado.edu>
6033
6033
6034 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6034 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6035 there's a cleaner distinction between what ? and ?? show.
6035 there's a cleaner distinction between what ? and ?? show.
6036
6036
6037 * Added screen_length option. Now the user can define his own
6037 * Added screen_length option. Now the user can define his own
6038 screen size for page() operations.
6038 screen size for page() operations.
6039
6039
6040 * Implemented magic shell-like functions with automatic code
6040 * Implemented magic shell-like functions with automatic code
6041 generation. Now adding another function is just a matter of adding
6041 generation. Now adding another function is just a matter of adding
6042 an entry to a dict, and the function is dynamically generated at
6042 an entry to a dict, and the function is dynamically generated at
6043 run-time. Python has some really cool features!
6043 run-time. Python has some really cool features!
6044
6044
6045 * Renamed many options to cleanup conventions a little. Now all
6045 * Renamed many options to cleanup conventions a little. Now all
6046 are lowercase, and only underscores where needed. Also in the code
6046 are lowercase, and only underscores where needed. Also in the code
6047 option name tables are clearer.
6047 option name tables are clearer.
6048
6048
6049 * Changed prompts a little. Now input is 'In [n]:' instead of
6049 * Changed prompts a little. Now input is 'In [n]:' instead of
6050 'In[n]:='. This allows it the numbers to be aligned with the
6050 'In[n]:='. This allows it the numbers to be aligned with the
6051 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6051 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6052 Python (it was a Mathematica thing). The '...' continuation prompt
6052 Python (it was a Mathematica thing). The '...' continuation prompt
6053 was also changed a little to align better.
6053 was also changed a little to align better.
6054
6054
6055 * Fixed bug when flushing output cache. Not all _p<n> variables
6055 * Fixed bug when flushing output cache. Not all _p<n> variables
6056 exist, so their deletion needs to be wrapped in a try:
6056 exist, so their deletion needs to be wrapped in a try:
6057
6057
6058 * Figured out how to properly use inspect.formatargspec() (it
6058 * Figured out how to properly use inspect.formatargspec() (it
6059 requires the args preceded by *). So I removed all the code from
6059 requires the args preceded by *). So I removed all the code from
6060 _get_pdef in Magic, which was just replicating that.
6060 _get_pdef in Magic, which was just replicating that.
6061
6061
6062 * Added test to prefilter to allow redefining magic function names
6062 * Added test to prefilter to allow redefining magic function names
6063 as variables. This is ok, since the @ form is always available,
6063 as variables. This is ok, since the @ form is always available,
6064 but whe should allow the user to define a variable called 'ls' if
6064 but whe should allow the user to define a variable called 'ls' if
6065 he needs it.
6065 he needs it.
6066
6066
6067 * Moved the ToDo information from README into a separate ToDo.
6067 * Moved the ToDo information from README into a separate ToDo.
6068
6068
6069 * General code cleanup and small bugfixes. I think it's close to a
6069 * General code cleanup and small bugfixes. I think it's close to a
6070 state where it can be released, obviously with a big 'beta'
6070 state where it can be released, obviously with a big 'beta'
6071 warning on it.
6071 warning on it.
6072
6072
6073 * Got the magic function split to work. Now all magics are defined
6073 * Got the magic function split to work. Now all magics are defined
6074 in a separate class. It just organizes things a bit, and now
6074 in a separate class. It just organizes things a bit, and now
6075 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6075 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6076 was too long).
6076 was too long).
6077
6077
6078 * Changed @clear to @reset to avoid potential confusions with
6078 * Changed @clear to @reset to avoid potential confusions with
6079 the shell command clear. Also renamed @cl to @clear, which does
6079 the shell command clear. Also renamed @cl to @clear, which does
6080 exactly what people expect it to from their shell experience.
6080 exactly what people expect it to from their shell experience.
6081
6081
6082 Added a check to the @reset command (since it's so
6082 Added a check to the @reset command (since it's so
6083 destructive, it's probably a good idea to ask for confirmation).
6083 destructive, it's probably a good idea to ask for confirmation).
6084 But now reset only works for full namespace resetting. Since the
6084 But now reset only works for full namespace resetting. Since the
6085 del keyword is already there for deleting a few specific
6085 del keyword is already there for deleting a few specific
6086 variables, I don't see the point of having a redundant magic
6086 variables, I don't see the point of having a redundant magic
6087 function for the same task.
6087 function for the same task.
6088
6088
6089 2001-11-24 Fernando Perez <fperez@colorado.edu>
6089 2001-11-24 Fernando Perez <fperez@colorado.edu>
6090
6090
6091 * Updated the builtin docs (esp. the ? ones).
6091 * Updated the builtin docs (esp. the ? ones).
6092
6092
6093 * Ran all the code through pychecker. Not terribly impressed with
6093 * Ran all the code through pychecker. Not terribly impressed with
6094 it: lots of spurious warnings and didn't really find anything of
6094 it: lots of spurious warnings and didn't really find anything of
6095 substance (just a few modules being imported and not used).
6095 substance (just a few modules being imported and not used).
6096
6096
6097 * Implemented the new ultraTB functionality into IPython. New
6097 * Implemented the new ultraTB functionality into IPython. New
6098 option: xcolors. This chooses color scheme. xmode now only selects
6098 option: xcolors. This chooses color scheme. xmode now only selects
6099 between Plain and Verbose. Better orthogonality.
6099 between Plain and Verbose. Better orthogonality.
6100
6100
6101 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6101 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6102 mode and color scheme for the exception handlers. Now it's
6102 mode and color scheme for the exception handlers. Now it's
6103 possible to have the verbose traceback with no coloring.
6103 possible to have the verbose traceback with no coloring.
6104
6104
6105 2001-11-23 Fernando Perez <fperez@colorado.edu>
6105 2001-11-23 Fernando Perez <fperez@colorado.edu>
6106
6106
6107 * Version 0.1.12 released, 0.1.13 opened.
6107 * Version 0.1.12 released, 0.1.13 opened.
6108
6108
6109 * Removed option to set auto-quote and auto-paren escapes by
6109 * Removed option to set auto-quote and auto-paren escapes by
6110 user. The chances of breaking valid syntax are just too high. If
6110 user. The chances of breaking valid syntax are just too high. If
6111 someone *really* wants, they can always dig into the code.
6111 someone *really* wants, they can always dig into the code.
6112
6112
6113 * Made prompt separators configurable.
6113 * Made prompt separators configurable.
6114
6114
6115 2001-11-22 Fernando Perez <fperez@colorado.edu>
6115 2001-11-22 Fernando Perez <fperez@colorado.edu>
6116
6116
6117 * Small bugfixes in many places.
6117 * Small bugfixes in many places.
6118
6118
6119 * Removed the MyCompleter class from ipplib. It seemed redundant
6119 * Removed the MyCompleter class from ipplib. It seemed redundant
6120 with the C-p,C-n history search functionality. Less code to
6120 with the C-p,C-n history search functionality. Less code to
6121 maintain.
6121 maintain.
6122
6122
6123 * Moved all the original ipython.py code into ipythonlib.py. Right
6123 * Moved all the original ipython.py code into ipythonlib.py. Right
6124 now it's just one big dump into a function called make_IPython, so
6124 now it's just one big dump into a function called make_IPython, so
6125 no real modularity has been gained. But at least it makes the
6125 no real modularity has been gained. But at least it makes the
6126 wrapper script tiny, and since ipythonlib is a module, it gets
6126 wrapper script tiny, and since ipythonlib is a module, it gets
6127 compiled and startup is much faster.
6127 compiled and startup is much faster.
6128
6128
6129 This is a reasobably 'deep' change, so we should test it for a
6129 This is a reasobably 'deep' change, so we should test it for a
6130 while without messing too much more with the code.
6130 while without messing too much more with the code.
6131
6131
6132 2001-11-21 Fernando Perez <fperez@colorado.edu>
6132 2001-11-21 Fernando Perez <fperez@colorado.edu>
6133
6133
6134 * Version 0.1.11 released, 0.1.12 opened for further work.
6134 * Version 0.1.11 released, 0.1.12 opened for further work.
6135
6135
6136 * Removed dependency on Itpl. It was only needed in one place. It
6136 * Removed dependency on Itpl. It was only needed in one place. It
6137 would be nice if this became part of python, though. It makes life
6137 would be nice if this became part of python, though. It makes life
6138 *a lot* easier in some cases.
6138 *a lot* easier in some cases.
6139
6139
6140 * Simplified the prefilter code a bit. Now all handlers are
6140 * Simplified the prefilter code a bit. Now all handlers are
6141 expected to explicitly return a value (at least a blank string).
6141 expected to explicitly return a value (at least a blank string).
6142
6142
6143 * Heavy edits in ipplib. Removed the help system altogether. Now
6143 * Heavy edits in ipplib. Removed the help system altogether. Now
6144 obj?/?? is used for inspecting objects, a magic @doc prints
6144 obj?/?? is used for inspecting objects, a magic @doc prints
6145 docstrings, and full-blown Python help is accessed via the 'help'
6145 docstrings, and full-blown Python help is accessed via the 'help'
6146 keyword. This cleans up a lot of code (less to maintain) and does
6146 keyword. This cleans up a lot of code (less to maintain) and does
6147 the job. Since 'help' is now a standard Python component, might as
6147 the job. Since 'help' is now a standard Python component, might as
6148 well use it and remove duplicate functionality.
6148 well use it and remove duplicate functionality.
6149
6149
6150 Also removed the option to use ipplib as a standalone program. By
6150 Also removed the option to use ipplib as a standalone program. By
6151 now it's too dependent on other parts of IPython to function alone.
6151 now it's too dependent on other parts of IPython to function alone.
6152
6152
6153 * Fixed bug in genutils.pager. It would crash if the pager was
6153 * Fixed bug in genutils.pager. It would crash if the pager was
6154 exited immediately after opening (broken pipe).
6154 exited immediately after opening (broken pipe).
6155
6155
6156 * Trimmed down the VerboseTB reporting a little. The header is
6156 * Trimmed down the VerboseTB reporting a little. The header is
6157 much shorter now and the repeated exception arguments at the end
6157 much shorter now and the repeated exception arguments at the end
6158 have been removed. For interactive use the old header seemed a bit
6158 have been removed. For interactive use the old header seemed a bit
6159 excessive.
6159 excessive.
6160
6160
6161 * Fixed small bug in output of @whos for variables with multi-word
6161 * Fixed small bug in output of @whos for variables with multi-word
6162 types (only first word was displayed).
6162 types (only first word was displayed).
6163
6163
6164 2001-11-17 Fernando Perez <fperez@colorado.edu>
6164 2001-11-17 Fernando Perez <fperez@colorado.edu>
6165
6165
6166 * Version 0.1.10 released, 0.1.11 opened for further work.
6166 * Version 0.1.10 released, 0.1.11 opened for further work.
6167
6167
6168 * Modified dirs and friends. dirs now *returns* the stack (not
6168 * Modified dirs and friends. dirs now *returns* the stack (not
6169 prints), so one can manipulate it as a variable. Convenient to
6169 prints), so one can manipulate it as a variable. Convenient to
6170 travel along many directories.
6170 travel along many directories.
6171
6171
6172 * Fixed bug in magic_pdef: would only work with functions with
6172 * Fixed bug in magic_pdef: would only work with functions with
6173 arguments with default values.
6173 arguments with default values.
6174
6174
6175 2001-11-14 Fernando Perez <fperez@colorado.edu>
6175 2001-11-14 Fernando Perez <fperez@colorado.edu>
6176
6176
6177 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6177 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6178 example with IPython. Various other minor fixes and cleanups.
6178 example with IPython. Various other minor fixes and cleanups.
6179
6179
6180 * Version 0.1.9 released, 0.1.10 opened for further work.
6180 * Version 0.1.9 released, 0.1.10 opened for further work.
6181
6181
6182 * Added sys.path to the list of directories searched in the
6182 * Added sys.path to the list of directories searched in the
6183 execfile= option. It used to be the current directory and the
6183 execfile= option. It used to be the current directory and the
6184 user's IPYTHONDIR only.
6184 user's IPYTHONDIR only.
6185
6185
6186 2001-11-13 Fernando Perez <fperez@colorado.edu>
6186 2001-11-13 Fernando Perez <fperez@colorado.edu>
6187
6187
6188 * Reinstated the raw_input/prefilter separation that Janko had
6188 * Reinstated the raw_input/prefilter separation that Janko had
6189 initially. This gives a more convenient setup for extending the
6189 initially. This gives a more convenient setup for extending the
6190 pre-processor from the outside: raw_input always gets a string,
6190 pre-processor from the outside: raw_input always gets a string,
6191 and prefilter has to process it. We can then redefine prefilter
6191 and prefilter has to process it. We can then redefine prefilter
6192 from the outside and implement extensions for special
6192 from the outside and implement extensions for special
6193 purposes.
6193 purposes.
6194
6194
6195 Today I got one for inputting PhysicalQuantity objects
6195 Today I got one for inputting PhysicalQuantity objects
6196 (from Scientific) without needing any function calls at
6196 (from Scientific) without needing any function calls at
6197 all. Extremely convenient, and it's all done as a user-level
6197 all. Extremely convenient, and it's all done as a user-level
6198 extension (no IPython code was touched). Now instead of:
6198 extension (no IPython code was touched). Now instead of:
6199 a = PhysicalQuantity(4.2,'m/s**2')
6199 a = PhysicalQuantity(4.2,'m/s**2')
6200 one can simply say
6200 one can simply say
6201 a = 4.2 m/s**2
6201 a = 4.2 m/s**2
6202 or even
6202 or even
6203 a = 4.2 m/s^2
6203 a = 4.2 m/s^2
6204
6204
6205 I use this, but it's also a proof of concept: IPython really is
6205 I use this, but it's also a proof of concept: IPython really is
6206 fully user-extensible, even at the level of the parsing of the
6206 fully user-extensible, even at the level of the parsing of the
6207 command line. It's not trivial, but it's perfectly doable.
6207 command line. It's not trivial, but it's perfectly doable.
6208
6208
6209 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6209 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6210 the problem of modules being loaded in the inverse order in which
6210 the problem of modules being loaded in the inverse order in which
6211 they were defined in
6211 they were defined in
6212
6212
6213 * Version 0.1.8 released, 0.1.9 opened for further work.
6213 * Version 0.1.8 released, 0.1.9 opened for further work.
6214
6214
6215 * Added magics pdef, source and file. They respectively show the
6215 * Added magics pdef, source and file. They respectively show the
6216 definition line ('prototype' in C), source code and full python
6216 definition line ('prototype' in C), source code and full python
6217 file for any callable object. The object inspector oinfo uses
6217 file for any callable object. The object inspector oinfo uses
6218 these to show the same information.
6218 these to show the same information.
6219
6219
6220 * Version 0.1.7 released, 0.1.8 opened for further work.
6220 * Version 0.1.7 released, 0.1.8 opened for further work.
6221
6221
6222 * Separated all the magic functions into a class called Magic. The
6222 * Separated all the magic functions into a class called Magic. The
6223 InteractiveShell class was becoming too big for Xemacs to handle
6223 InteractiveShell class was becoming too big for Xemacs to handle
6224 (de-indenting a line would lock it up for 10 seconds while it
6224 (de-indenting a line would lock it up for 10 seconds while it
6225 backtracked on the whole class!)
6225 backtracked on the whole class!)
6226
6226
6227 FIXME: didn't work. It can be done, but right now namespaces are
6227 FIXME: didn't work. It can be done, but right now namespaces are
6228 all messed up. Do it later (reverted it for now, so at least
6228 all messed up. Do it later (reverted it for now, so at least
6229 everything works as before).
6229 everything works as before).
6230
6230
6231 * Got the object introspection system (magic_oinfo) working! I
6231 * Got the object introspection system (magic_oinfo) working! I
6232 think this is pretty much ready for release to Janko, so he can
6232 think this is pretty much ready for release to Janko, so he can
6233 test it for a while and then announce it. Pretty much 100% of what
6233 test it for a while and then announce it. Pretty much 100% of what
6234 I wanted for the 'phase 1' release is ready. Happy, tired.
6234 I wanted for the 'phase 1' release is ready. Happy, tired.
6235
6235
6236 2001-11-12 Fernando Perez <fperez@colorado.edu>
6236 2001-11-12 Fernando Perez <fperez@colorado.edu>
6237
6237
6238 * Version 0.1.6 released, 0.1.7 opened for further work.
6238 * Version 0.1.6 released, 0.1.7 opened for further work.
6239
6239
6240 * Fixed bug in printing: it used to test for truth before
6240 * Fixed bug in printing: it used to test for truth before
6241 printing, so 0 wouldn't print. Now checks for None.
6241 printing, so 0 wouldn't print. Now checks for None.
6242
6242
6243 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6243 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6244 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6244 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6245 reaches by hand into the outputcache. Think of a better way to do
6245 reaches by hand into the outputcache. Think of a better way to do
6246 this later.
6246 this later.
6247
6247
6248 * Various small fixes thanks to Nathan's comments.
6248 * Various small fixes thanks to Nathan's comments.
6249
6249
6250 * Changed magic_pprint to magic_Pprint. This way it doesn't
6250 * Changed magic_pprint to magic_Pprint. This way it doesn't
6251 collide with pprint() and the name is consistent with the command
6251 collide with pprint() and the name is consistent with the command
6252 line option.
6252 line option.
6253
6253
6254 * Changed prompt counter behavior to be fully like
6254 * Changed prompt counter behavior to be fully like
6255 Mathematica's. That is, even input that doesn't return a result
6255 Mathematica's. That is, even input that doesn't return a result
6256 raises the prompt counter. The old behavior was kind of confusing
6256 raises the prompt counter. The old behavior was kind of confusing
6257 (getting the same prompt number several times if the operation
6257 (getting the same prompt number several times if the operation
6258 didn't return a result).
6258 didn't return a result).
6259
6259
6260 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6260 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6261
6261
6262 * Fixed -Classic mode (wasn't working anymore).
6262 * Fixed -Classic mode (wasn't working anymore).
6263
6263
6264 * Added colored prompts using Nathan's new code. Colors are
6264 * Added colored prompts using Nathan's new code. Colors are
6265 currently hardwired, they can be user-configurable. For
6265 currently hardwired, they can be user-configurable. For
6266 developers, they can be chosen in file ipythonlib.py, at the
6266 developers, they can be chosen in file ipythonlib.py, at the
6267 beginning of the CachedOutput class def.
6267 beginning of the CachedOutput class def.
6268
6268
6269 2001-11-11 Fernando Perez <fperez@colorado.edu>
6269 2001-11-11 Fernando Perez <fperez@colorado.edu>
6270
6270
6271 * Version 0.1.5 released, 0.1.6 opened for further work.
6271 * Version 0.1.5 released, 0.1.6 opened for further work.
6272
6272
6273 * Changed magic_env to *return* the environment as a dict (not to
6273 * Changed magic_env to *return* the environment as a dict (not to
6274 print it). This way it prints, but it can also be processed.
6274 print it). This way it prints, but it can also be processed.
6275
6275
6276 * Added Verbose exception reporting to interactive
6276 * Added Verbose exception reporting to interactive
6277 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6277 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6278 traceback. Had to make some changes to the ultraTB file. This is
6278 traceback. Had to make some changes to the ultraTB file. This is
6279 probably the last 'big' thing in my mental todo list. This ties
6279 probably the last 'big' thing in my mental todo list. This ties
6280 in with the next entry:
6280 in with the next entry:
6281
6281
6282 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6282 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6283 has to specify is Plain, Color or Verbose for all exception
6283 has to specify is Plain, Color or Verbose for all exception
6284 handling.
6284 handling.
6285
6285
6286 * Removed ShellServices option. All this can really be done via
6286 * Removed ShellServices option. All this can really be done via
6287 the magic system. It's easier to extend, cleaner and has automatic
6287 the magic system. It's easier to extend, cleaner and has automatic
6288 namespace protection and documentation.
6288 namespace protection and documentation.
6289
6289
6290 2001-11-09 Fernando Perez <fperez@colorado.edu>
6290 2001-11-09 Fernando Perez <fperez@colorado.edu>
6291
6291
6292 * Fixed bug in output cache flushing (missing parameter to
6292 * Fixed bug in output cache flushing (missing parameter to
6293 __init__). Other small bugs fixed (found using pychecker).
6293 __init__). Other small bugs fixed (found using pychecker).
6294
6294
6295 * Version 0.1.4 opened for bugfixing.
6295 * Version 0.1.4 opened for bugfixing.
6296
6296
6297 2001-11-07 Fernando Perez <fperez@colorado.edu>
6297 2001-11-07 Fernando Perez <fperez@colorado.edu>
6298
6298
6299 * Version 0.1.3 released, mainly because of the raw_input bug.
6299 * Version 0.1.3 released, mainly because of the raw_input bug.
6300
6300
6301 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6301 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6302 and when testing for whether things were callable, a call could
6302 and when testing for whether things were callable, a call could
6303 actually be made to certain functions. They would get called again
6303 actually be made to certain functions. They would get called again
6304 once 'really' executed, with a resulting double call. A disaster
6304 once 'really' executed, with a resulting double call. A disaster
6305 in many cases (list.reverse() would never work!).
6305 in many cases (list.reverse() would never work!).
6306
6306
6307 * Removed prefilter() function, moved its code to raw_input (which
6307 * Removed prefilter() function, moved its code to raw_input (which
6308 after all was just a near-empty caller for prefilter). This saves
6308 after all was just a near-empty caller for prefilter). This saves
6309 a function call on every prompt, and simplifies the class a tiny bit.
6309 a function call on every prompt, and simplifies the class a tiny bit.
6310
6310
6311 * Fix _ip to __ip name in magic example file.
6311 * Fix _ip to __ip name in magic example file.
6312
6312
6313 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6313 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6314 work with non-gnu versions of tar.
6314 work with non-gnu versions of tar.
6315
6315
6316 2001-11-06 Fernando Perez <fperez@colorado.edu>
6316 2001-11-06 Fernando Perez <fperez@colorado.edu>
6317
6317
6318 * Version 0.1.2. Just to keep track of the recent changes.
6318 * Version 0.1.2. Just to keep track of the recent changes.
6319
6319
6320 * Fixed nasty bug in output prompt routine. It used to check 'if
6320 * Fixed nasty bug in output prompt routine. It used to check 'if
6321 arg != None...'. Problem is, this fails if arg implements a
6321 arg != None...'. Problem is, this fails if arg implements a
6322 special comparison (__cmp__) which disallows comparing to
6322 special comparison (__cmp__) which disallows comparing to
6323 None. Found it when trying to use the PhysicalQuantity module from
6323 None. Found it when trying to use the PhysicalQuantity module from
6324 ScientificPython.
6324 ScientificPython.
6325
6325
6326 2001-11-05 Fernando Perez <fperez@colorado.edu>
6326 2001-11-05 Fernando Perez <fperez@colorado.edu>
6327
6327
6328 * Also added dirs. Now the pushd/popd/dirs family functions
6328 * Also added dirs. Now the pushd/popd/dirs family functions
6329 basically like the shell, with the added convenience of going home
6329 basically like the shell, with the added convenience of going home
6330 when called with no args.
6330 when called with no args.
6331
6331
6332 * pushd/popd slightly modified to mimic shell behavior more
6332 * pushd/popd slightly modified to mimic shell behavior more
6333 closely.
6333 closely.
6334
6334
6335 * Added env,pushd,popd from ShellServices as magic functions. I
6335 * Added env,pushd,popd from ShellServices as magic functions. I
6336 think the cleanest will be to port all desired functions from
6336 think the cleanest will be to port all desired functions from
6337 ShellServices as magics and remove ShellServices altogether. This
6337 ShellServices as magics and remove ShellServices altogether. This
6338 will provide a single, clean way of adding functionality
6338 will provide a single, clean way of adding functionality
6339 (shell-type or otherwise) to IP.
6339 (shell-type or otherwise) to IP.
6340
6340
6341 2001-11-04 Fernando Perez <fperez@colorado.edu>
6341 2001-11-04 Fernando Perez <fperez@colorado.edu>
6342
6342
6343 * Added .ipython/ directory to sys.path. This way users can keep
6343 * Added .ipython/ directory to sys.path. This way users can keep
6344 customizations there and access them via import.
6344 customizations there and access them via import.
6345
6345
6346 2001-11-03 Fernando Perez <fperez@colorado.edu>
6346 2001-11-03 Fernando Perez <fperez@colorado.edu>
6347
6347
6348 * Opened version 0.1.1 for new changes.
6348 * Opened version 0.1.1 for new changes.
6349
6349
6350 * Changed version number to 0.1.0: first 'public' release, sent to
6350 * Changed version number to 0.1.0: first 'public' release, sent to
6351 Nathan and Janko.
6351 Nathan and Janko.
6352
6352
6353 * Lots of small fixes and tweaks.
6353 * Lots of small fixes and tweaks.
6354
6354
6355 * Minor changes to whos format. Now strings are shown, snipped if
6355 * Minor changes to whos format. Now strings are shown, snipped if
6356 too long.
6356 too long.
6357
6357
6358 * Changed ShellServices to work on __main__ so they show up in @who
6358 * Changed ShellServices to work on __main__ so they show up in @who
6359
6359
6360 * Help also works with ? at the end of a line:
6360 * Help also works with ? at the end of a line:
6361 ?sin and sin?
6361 ?sin and sin?
6362 both produce the same effect. This is nice, as often I use the
6362 both produce the same effect. This is nice, as often I use the
6363 tab-complete to find the name of a method, but I used to then have
6363 tab-complete to find the name of a method, but I used to then have
6364 to go to the beginning of the line to put a ? if I wanted more
6364 to go to the beginning of the line to put a ? if I wanted more
6365 info. Now I can just add the ? and hit return. Convenient.
6365 info. Now I can just add the ? and hit return. Convenient.
6366
6366
6367 2001-11-02 Fernando Perez <fperez@colorado.edu>
6367 2001-11-02 Fernando Perez <fperez@colorado.edu>
6368
6368
6369 * Python version check (>=2.1) added.
6369 * Python version check (>=2.1) added.
6370
6370
6371 * Added LazyPython documentation. At this point the docs are quite
6371 * Added LazyPython documentation. At this point the docs are quite
6372 a mess. A cleanup is in order.
6372 a mess. A cleanup is in order.
6373
6373
6374 * Auto-installer created. For some bizarre reason, the zipfiles
6374 * Auto-installer created. For some bizarre reason, the zipfiles
6375 module isn't working on my system. So I made a tar version
6375 module isn't working on my system. So I made a tar version
6376 (hopefully the command line options in various systems won't kill
6376 (hopefully the command line options in various systems won't kill
6377 me).
6377 me).
6378
6378
6379 * Fixes to Struct in genutils. Now all dictionary-like methods are
6379 * Fixes to Struct in genutils. Now all dictionary-like methods are
6380 protected (reasonably).
6380 protected (reasonably).
6381
6381
6382 * Added pager function to genutils and changed ? to print usage
6382 * Added pager function to genutils and changed ? to print usage
6383 note through it (it was too long).
6383 note through it (it was too long).
6384
6384
6385 * Added the LazyPython functionality. Works great! I changed the
6385 * Added the LazyPython functionality. Works great! I changed the
6386 auto-quote escape to ';', it's on home row and next to '. But
6386 auto-quote escape to ';', it's on home row and next to '. But
6387 both auto-quote and auto-paren (still /) escapes are command-line
6387 both auto-quote and auto-paren (still /) escapes are command-line
6388 parameters.
6388 parameters.
6389
6389
6390
6390
6391 2001-11-01 Fernando Perez <fperez@colorado.edu>
6391 2001-11-01 Fernando Perez <fperez@colorado.edu>
6392
6392
6393 * Version changed to 0.0.7. Fairly large change: configuration now
6393 * Version changed to 0.0.7. Fairly large change: configuration now
6394 is all stored in a directory, by default .ipython. There, all
6394 is all stored in a directory, by default .ipython. There, all
6395 config files have normal looking names (not .names)
6395 config files have normal looking names (not .names)
6396
6396
6397 * Version 0.0.6 Released first to Lucas and Archie as a test
6397 * Version 0.0.6 Released first to Lucas and Archie as a test
6398 run. Since it's the first 'semi-public' release, change version to
6398 run. Since it's the first 'semi-public' release, change version to
6399 > 0.0.6 for any changes now.
6399 > 0.0.6 for any changes now.
6400
6400
6401 * Stuff I had put in the ipplib.py changelog:
6401 * Stuff I had put in the ipplib.py changelog:
6402
6402
6403 Changes to InteractiveShell:
6403 Changes to InteractiveShell:
6404
6404
6405 - Made the usage message a parameter.
6405 - Made the usage message a parameter.
6406
6406
6407 - Require the name of the shell variable to be given. It's a bit
6407 - Require the name of the shell variable to be given. It's a bit
6408 of a hack, but allows the name 'shell' not to be hardwired in the
6408 of a hack, but allows the name 'shell' not to be hardwired in the
6409 magic (@) handler, which is problematic b/c it requires
6409 magic (@) handler, which is problematic b/c it requires
6410 polluting the global namespace with 'shell'. This in turn is
6410 polluting the global namespace with 'shell'. This in turn is
6411 fragile: if a user redefines a variable called shell, things
6411 fragile: if a user redefines a variable called shell, things
6412 break.
6412 break.
6413
6413
6414 - magic @: all functions available through @ need to be defined
6414 - magic @: all functions available through @ need to be defined
6415 as magic_<name>, even though they can be called simply as
6415 as magic_<name>, even though they can be called simply as
6416 @<name>. This allows the special command @magic to gather
6416 @<name>. This allows the special command @magic to gather
6417 information automatically about all existing magic functions,
6417 information automatically about all existing magic functions,
6418 even if they are run-time user extensions, by parsing the shell
6418 even if they are run-time user extensions, by parsing the shell
6419 instance __dict__ looking for special magic_ names.
6419 instance __dict__ looking for special magic_ names.
6420
6420
6421 - mainloop: added *two* local namespace parameters. This allows
6421 - mainloop: added *two* local namespace parameters. This allows
6422 the class to differentiate between parameters which were there
6422 the class to differentiate between parameters which were there
6423 before and after command line initialization was processed. This
6423 before and after command line initialization was processed. This
6424 way, later @who can show things loaded at startup by the
6424 way, later @who can show things loaded at startup by the
6425 user. This trick was necessary to make session saving/reloading
6425 user. This trick was necessary to make session saving/reloading
6426 really work: ideally after saving/exiting/reloading a session,
6426 really work: ideally after saving/exiting/reloading a session,
6427 *everything* should look the same, including the output of @who. I
6427 *everything* should look the same, including the output of @who. I
6428 was only able to make this work with this double namespace
6428 was only able to make this work with this double namespace
6429 trick.
6429 trick.
6430
6430
6431 - added a header to the logfile which allows (almost) full
6431 - added a header to the logfile which allows (almost) full
6432 session restoring.
6432 session restoring.
6433
6433
6434 - prepend lines beginning with @ or !, with a and log
6434 - prepend lines beginning with @ or !, with a and log
6435 them. Why? !lines: may be useful to know what you did @lines:
6435 them. Why? !lines: may be useful to know what you did @lines:
6436 they may affect session state. So when restoring a session, at
6436 they may affect session state. So when restoring a session, at
6437 least inform the user of their presence. I couldn't quite get
6437 least inform the user of their presence. I couldn't quite get
6438 them to properly re-execute, but at least the user is warned.
6438 them to properly re-execute, but at least the user is warned.
6439
6439
6440 * Started ChangeLog.
6440 * Started ChangeLog.
General Comments 0
You need to be logged in to leave comments. Login now