##// END OF EJS Templates
Fix filename.
walter.doerwald -
Show More
@@ -1,6202 +1,6202 b''
1 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
1 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
2
2
3 * IPython/completer.py (Completer.attr_matches): Fix small
3 * IPython/completer.py (Completer.attr_matches): Fix small
4 tab-completion bug with Enthought Traits objects with units.
4 tab-completion bug with Enthought Traits objects with units.
5 Thanks to a bug report by Tom Denniston
5 Thanks to a bug report by Tom Denniston
6 <tom.denniston-AT-alum.dartmouth.org>.
6 <tom.denniston-AT-alum.dartmouth.org>.
7
7
8 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
8 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
9
9
10 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
10 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
11 bug where only .ipy or .py would be completed. Once the first
11 bug where only .ipy or .py would be completed. Once the first
12 argument to %run has been given, all completions are valid because
12 argument to %run has been given, all completions are valid because
13 they are the arguments to the script, which may well be non-python
13 they are the arguments to the script, which may well be non-python
14 filenames.
14 filenames.
15
15
16 * IPython/irunner.py (InteractiveRunner.run_source): major updates
16 * IPython/irunner.py (InteractiveRunner.run_source): major updates
17 to irunner to allow it to correctly support real doctesting of
17 to irunner to allow it to correctly support real doctesting of
18 out-of-process ipython code.
18 out-of-process ipython code.
19
19
20 * IPython/Magic.py (magic_cd): Make the setting of the terminal
20 * IPython/Magic.py (magic_cd): Make the setting of the terminal
21 title an option (-noterm_title) because it completely breaks
21 title an option (-noterm_title) because it completely breaks
22 doctesting.
22 doctesting.
23
23
24 * IPython/demo.py: fix IPythonDemo class that was not actually working.
24 * IPython/demo.py: fix IPythonDemo class that was not actually working.
25
25
26 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
26 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
27
27
28 * IPython/irunner.py (main): fix small bug where extensions were
28 * IPython/irunner.py (main): fix small bug where extensions were
29 not being correctly recognized.
29 not being correctly recognized.
30
30
31 2007-01-23 Walter Doerwald <walter@livinglogic.de>
31 2007-01-23 Walter Doerwald <walter@livinglogic.de>
32
32
33 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
33 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
34 a string containing a single line yields the string itself as the
34 a string containing a single line yields the string itself as the
35 only item.
35 only item.
36
36
37 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
37 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
38 object if it's the same as the one on the last level (This avoids
38 object if it's the same as the one on the last level (This avoids
39 infinite recursion for one line strings).
39 infinite recursion for one line strings).
40
40
41 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
41 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
42
42
43 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
43 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
44 all output streams before printing tracebacks. This ensures that
44 all output streams before printing tracebacks. This ensures that
45 user output doesn't end up interleaved with traceback output.
45 user output doesn't end up interleaved with traceback output.
46
46
47 2007-01-10 Ville Vainio <vivainio@gmail.com>
47 2007-01-10 Ville Vainio <vivainio@gmail.com>
48
48
49 * Extensions/envpersist.py: Turbocharged %env that remembers
49 * Extensions/envpersist.py: Turbocharged %env that remembers
50 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
50 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
51 "%env VISUAL=jed".
51 "%env VISUAL=jed".
52
52
53 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
53 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
54
54
55 * IPython/iplib.py (showtraceback): ensure that we correctly call
55 * IPython/iplib.py (showtraceback): ensure that we correctly call
56 custom handlers in all cases (some with pdb were slipping through,
56 custom handlers in all cases (some with pdb were slipping through,
57 but I'm not exactly sure why).
57 but I'm not exactly sure why).
58
58
59 * IPython/Debugger.py (Tracer.__init__): added new class to
59 * IPython/Debugger.py (Tracer.__init__): added new class to
60 support set_trace-like usage of IPython's enhanced debugger.
60 support set_trace-like usage of IPython's enhanced debugger.
61
61
62 2006-12-24 Ville Vainio <vivainio@gmail.com>
62 2006-12-24 Ville Vainio <vivainio@gmail.com>
63
63
64 * ipmaker.py: more informative message when ipy_user_conf
64 * ipmaker.py: more informative message when ipy_user_conf
65 import fails (suggest running %upgrade).
65 import fails (suggest running %upgrade).
66
66
67 * tools/run_ipy_in_profiler.py: Utility to see where
67 * tools/run_ipy_in_profiler.py: Utility to see where
68 the time during IPython startup is spent.
68 the time during IPython startup is spent.
69
69
70 2006-12-20 Ville Vainio <vivainio@gmail.com>
70 2006-12-20 Ville Vainio <vivainio@gmail.com>
71
71
72 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
72 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
73
73
74 * ipapi.py: Add new ipapi method, expand_alias.
74 * ipapi.py: Add new ipapi method, expand_alias.
75
75
76 * Release.py: Bump up version to 0.7.4.svn
76 * Release.py: Bump up version to 0.7.4.svn
77
77
78 2006-12-17 Ville Vainio <vivainio@gmail.com>
78 2006-12-17 Ville Vainio <vivainio@gmail.com>
79
79
80 * Extensions/jobctrl.py: Fixed &cmd arg arg...
80 * Extensions/jobctrl.py: Fixed &cmd arg arg...
81 to work properly on posix too
81 to work properly on posix too
82
82
83 * Release.py: Update revnum (version is still just 0.7.3).
83 * Release.py: Update revnum (version is still just 0.7.3).
84
84
85 2006-12-15 Ville Vainio <vivainio@gmail.com>
85 2006-12-15 Ville Vainio <vivainio@gmail.com>
86
86
87 * scripts/ipython_win_post_install: create ipython.py in
87 * scripts/ipython_win_post_install: create ipython.py in
88 prefix + "/scripts".
88 prefix + "/scripts".
89
89
90 * Release.py: Update version to 0.7.3.
90 * Release.py: Update version to 0.7.3.
91
91
92 2006-12-14 Ville Vainio <vivainio@gmail.com>
92 2006-12-14 Ville Vainio <vivainio@gmail.com>
93
93
94 * scripts/ipython_win_post_install: Overwrite old shortcuts
94 * scripts/ipython_win_post_install: Overwrite old shortcuts
95 if they already exist
95 if they already exist
96
96
97 * Release.py: release 0.7.3rc2
97 * Release.py: release 0.7.3rc2
98
98
99 2006-12-13 Ville Vainio <vivainio@gmail.com>
99 2006-12-13 Ville Vainio <vivainio@gmail.com>
100
100
101 * Branch and update Release.py for 0.7.3rc1
101 * Branch and update Release.py for 0.7.3rc1
102
102
103 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
103 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
104
104
105 * IPython/Shell.py (IPShellWX): update for current WX naming
105 * IPython/Shell.py (IPShellWX): update for current WX naming
106 conventions, to avoid a deprecation warning with current WX
106 conventions, to avoid a deprecation warning with current WX
107 versions. Thanks to a report by Danny Shevitz.
107 versions. Thanks to a report by Danny Shevitz.
108
108
109 2006-12-12 Ville Vainio <vivainio@gmail.com>
109 2006-12-12 Ville Vainio <vivainio@gmail.com>
110
110
111 * ipmaker.py: apply david cournapeau's patch to make
111 * ipmaker.py: apply david cournapeau's patch to make
112 import_some work properly even when ipythonrc does
112 import_some work properly even when ipythonrc does
113 import_some on empty list (it was an old bug!).
113 import_some on empty list (it was an old bug!).
114
114
115 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
115 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
116 Add deprecation note to ipythonrc and a url to wiki
116 Add deprecation note to ipythonrc and a url to wiki
117 in ipy_user_conf.py
117 in ipy_user_conf.py
118
118
119
119
120 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
120 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
121 as if it was typed on IPython command prompt, i.e.
121 as if it was typed on IPython command prompt, i.e.
122 as IPython script.
122 as IPython script.
123
123
124 * example-magic.py, magic_grepl.py: remove outdated examples
124 * example-magic.py, magic_grepl.py: remove outdated examples
125
125
126 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
126 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
127
127
128 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
128 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
129 is called before any exception has occurred.
129 is called before any exception has occurred.
130
130
131 2006-12-08 Ville Vainio <vivainio@gmail.com>
131 2006-12-08 Ville Vainio <vivainio@gmail.com>
132
132
133 * Extensions/ipy_stock_completers.py.py: fix cd completer
133 * Extensions/ipy_stock_completers.py: fix cd completer
134 to translate /'s to \'s again.
134 to translate /'s to \'s again.
135
135
136 * completer.py: prevent traceback on file completions w/
136 * completer.py: prevent traceback on file completions w/
137 backslash.
137 backslash.
138
138
139 * Release.py: Update release number to 0.7.3b3 for release
139 * Release.py: Update release number to 0.7.3b3 for release
140
140
141 2006-12-07 Ville Vainio <vivainio@gmail.com>
141 2006-12-07 Ville Vainio <vivainio@gmail.com>
142
142
143 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
143 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
144 while executing external code. Provides more shell-like behaviour
144 while executing external code. Provides more shell-like behaviour
145 and overall better response to ctrl + C / ctrl + break.
145 and overall better response to ctrl + C / ctrl + break.
146
146
147 * tools/make_tarball.py: new script to create tarball straight from svn
147 * tools/make_tarball.py: new script to create tarball straight from svn
148 (setup.py sdist doesn't work on win32).
148 (setup.py sdist doesn't work on win32).
149
149
150 * Extensions/ipy_stock_completers.py: fix cd completer to give up
150 * Extensions/ipy_stock_completers.py: fix cd completer to give up
151 on dirnames with spaces and use the default completer instead.
151 on dirnames with spaces and use the default completer instead.
152
152
153 * Revision.py: Change version to 0.7.3b2 for release.
153 * Revision.py: Change version to 0.7.3b2 for release.
154
154
155 2006-12-05 Ville Vainio <vivainio@gmail.com>
155 2006-12-05 Ville Vainio <vivainio@gmail.com>
156
156
157 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
157 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
158 pydb patch 4 (rm debug printing, py 2.5 checking)
158 pydb patch 4 (rm debug printing, py 2.5 checking)
159
159
160 2006-11-30 Walter Doerwald <walter@livinglogic.de>
160 2006-11-30 Walter Doerwald <walter@livinglogic.de>
161 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
161 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
162 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
162 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
163 "refreshfind" (mapped to "R") does the same but tries to go back to the same
163 "refreshfind" (mapped to "R") does the same but tries to go back to the same
164 object the cursor was on before the refresh. The command "markrange" is
164 object the cursor was on before the refresh. The command "markrange" is
165 mapped to "%" now.
165 mapped to "%" now.
166 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
166 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
167
167
168 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
168 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
169
169
170 * IPython/Magic.py (magic_debug): new %debug magic to activate the
170 * IPython/Magic.py (magic_debug): new %debug magic to activate the
171 interactive debugger on the last traceback, without having to call
171 interactive debugger on the last traceback, without having to call
172 %pdb and rerun your code. Made minor changes in various modules,
172 %pdb and rerun your code. Made minor changes in various modules,
173 should automatically recognize pydb if available.
173 should automatically recognize pydb if available.
174
174
175 2006-11-28 Ville Vainio <vivainio@gmail.com>
175 2006-11-28 Ville Vainio <vivainio@gmail.com>
176
176
177 * completer.py: If the text start with !, show file completions
177 * completer.py: If the text start with !, show file completions
178 properly. This helps when trying to complete command name
178 properly. This helps when trying to complete command name
179 for shell escapes.
179 for shell escapes.
180
180
181 2006-11-27 Ville Vainio <vivainio@gmail.com>
181 2006-11-27 Ville Vainio <vivainio@gmail.com>
182
182
183 * ipy_stock_completers.py: bzr completer submitted by Stefan van
183 * ipy_stock_completers.py: bzr completer submitted by Stefan van
184 der Walt. Clean up svn and hg completers by using a common
184 der Walt. Clean up svn and hg completers by using a common
185 vcs_completer.
185 vcs_completer.
186
186
187 2006-11-26 Ville Vainio <vivainio@gmail.com>
187 2006-11-26 Ville Vainio <vivainio@gmail.com>
188
188
189 * Remove ipconfig and %config; you should use _ip.options structure
189 * Remove ipconfig and %config; you should use _ip.options structure
190 directly instead!
190 directly instead!
191
191
192 * genutils.py: add wrap_deprecated function for deprecating callables
192 * genutils.py: add wrap_deprecated function for deprecating callables
193
193
194 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
194 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
195 _ip.system instead. ipalias is redundant.
195 _ip.system instead. ipalias is redundant.
196
196
197 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
197 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
198 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
198 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
199 explicit.
199 explicit.
200
200
201 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
201 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
202 completer. Try it by entering 'hg ' and pressing tab.
202 completer. Try it by entering 'hg ' and pressing tab.
203
203
204 * macro.py: Give Macro a useful __repr__ method
204 * macro.py: Give Macro a useful __repr__ method
205
205
206 * Magic.py: %whos abbreviates the typename of Macro for brevity.
206 * Magic.py: %whos abbreviates the typename of Macro for brevity.
207
207
208 2006-11-24 Walter Doerwald <walter@livinglogic.de>
208 2006-11-24 Walter Doerwald <walter@livinglogic.de>
209 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
209 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
210 we don't get a duplicate ipipe module, where registration of the xrepr
210 we don't get a duplicate ipipe module, where registration of the xrepr
211 implementation for Text is useless.
211 implementation for Text is useless.
212
212
213 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
213 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
214
214
215 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
215 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
216
216
217 2006-11-24 Ville Vainio <vivainio@gmail.com>
217 2006-11-24 Ville Vainio <vivainio@gmail.com>
218
218
219 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
219 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
220 try to use "cProfile" instead of the slower pure python
220 try to use "cProfile" instead of the slower pure python
221 "profile"
221 "profile"
222
222
223 2006-11-23 Ville Vainio <vivainio@gmail.com>
223 2006-11-23 Ville Vainio <vivainio@gmail.com>
224
224
225 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
225 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
226 Qt+IPython+Designer link in documentation.
226 Qt+IPython+Designer link in documentation.
227
227
228 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
228 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
229 correct Pdb object to %pydb.
229 correct Pdb object to %pydb.
230
230
231
231
232 2006-11-22 Walter Doerwald <walter@livinglogic.de>
232 2006-11-22 Walter Doerwald <walter@livinglogic.de>
233 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
233 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
234 generic xrepr(), otherwise the list implementation would kick in.
234 generic xrepr(), otherwise the list implementation would kick in.
235
235
236 2006-11-21 Ville Vainio <vivainio@gmail.com>
236 2006-11-21 Ville Vainio <vivainio@gmail.com>
237
237
238 * upgrade_dir.py: Now actually overwrites a nonmodified user file
238 * upgrade_dir.py: Now actually overwrites a nonmodified user file
239 with one from UserConfig.
239 with one from UserConfig.
240
240
241 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
241 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
242 it was missing which broke the sh profile.
242 it was missing which broke the sh profile.
243
243
244 * completer.py: file completer now uses explicit '/' instead
244 * completer.py: file completer now uses explicit '/' instead
245 of os.path.join, expansion of 'foo' was broken on win32
245 of os.path.join, expansion of 'foo' was broken on win32
246 if there was one directory with name 'foobar'.
246 if there was one directory with name 'foobar'.
247
247
248 * A bunch of patches from Kirill Smelkov:
248 * A bunch of patches from Kirill Smelkov:
249
249
250 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
250 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
251
251
252 * [patch 7/9] Implement %page -r (page in raw mode) -
252 * [patch 7/9] Implement %page -r (page in raw mode) -
253
253
254 * [patch 5/9] ScientificPython webpage has moved
254 * [patch 5/9] ScientificPython webpage has moved
255
255
256 * [patch 4/9] The manual mentions %ds, should be %dhist
256 * [patch 4/9] The manual mentions %ds, should be %dhist
257
257
258 * [patch 3/9] Kill old bits from %prun doc.
258 * [patch 3/9] Kill old bits from %prun doc.
259
259
260 * [patch 1/9] Fix typos here and there.
260 * [patch 1/9] Fix typos here and there.
261
261
262 2006-11-08 Ville Vainio <vivainio@gmail.com>
262 2006-11-08 Ville Vainio <vivainio@gmail.com>
263
263
264 * completer.py (attr_matches): catch all exceptions raised
264 * completer.py (attr_matches): catch all exceptions raised
265 by eval of expr with dots.
265 by eval of expr with dots.
266
266
267 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
267 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
268
268
269 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
269 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
270 input if it starts with whitespace. This allows you to paste
270 input if it starts with whitespace. This allows you to paste
271 indented input from any editor without manually having to type in
271 indented input from any editor without manually having to type in
272 the 'if 1:', which is convenient when working interactively.
272 the 'if 1:', which is convenient when working interactively.
273 Slightly modifed version of a patch by Bo Peng
273 Slightly modifed version of a patch by Bo Peng
274 <bpeng-AT-rice.edu>.
274 <bpeng-AT-rice.edu>.
275
275
276 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
276 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
277
277
278 * IPython/irunner.py (main): modified irunner so it automatically
278 * IPython/irunner.py (main): modified irunner so it automatically
279 recognizes the right runner to use based on the extension (.py for
279 recognizes the right runner to use based on the extension (.py for
280 python, .ipy for ipython and .sage for sage).
280 python, .ipy for ipython and .sage for sage).
281
281
282 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
282 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
283 visible in ipapi as ip.config(), to programatically control the
283 visible in ipapi as ip.config(), to programatically control the
284 internal rc object. There's an accompanying %config magic for
284 internal rc object. There's an accompanying %config magic for
285 interactive use, which has been enhanced to match the
285 interactive use, which has been enhanced to match the
286 funtionality in ipconfig.
286 funtionality in ipconfig.
287
287
288 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
288 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
289 so it's not just a toggle, it now takes an argument. Add support
289 so it's not just a toggle, it now takes an argument. Add support
290 for a customizable header when making system calls, as the new
290 for a customizable header when making system calls, as the new
291 system_header variable in the ipythonrc file.
291 system_header variable in the ipythonrc file.
292
292
293 2006-11-03 Walter Doerwald <walter@livinglogic.de>
293 2006-11-03 Walter Doerwald <walter@livinglogic.de>
294
294
295 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
295 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
296 generic functions (using Philip J. Eby's simplegeneric package).
296 generic functions (using Philip J. Eby's simplegeneric package).
297 This makes it possible to customize the display of third-party classes
297 This makes it possible to customize the display of third-party classes
298 without having to monkeypatch them. xiter() no longer supports a mode
298 without having to monkeypatch them. xiter() no longer supports a mode
299 argument and the XMode class has been removed. The same functionality can
299 argument and the XMode class has been removed. The same functionality can
300 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
300 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
301 One consequence of the switch to generic functions is that xrepr() and
301 One consequence of the switch to generic functions is that xrepr() and
302 xattrs() implementation must define the default value for the mode
302 xattrs() implementation must define the default value for the mode
303 argument themselves and xattrs() implementations must return real
303 argument themselves and xattrs() implementations must return real
304 descriptors.
304 descriptors.
305
305
306 * IPython/external: This new subpackage will contain all third-party
306 * IPython/external: This new subpackage will contain all third-party
307 packages that are bundled with IPython. (The first one is simplegeneric).
307 packages that are bundled with IPython. (The first one is simplegeneric).
308
308
309 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
309 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
310 directory which as been dropped in r1703.
310 directory which as been dropped in r1703.
311
311
312 * IPython/Extensions/ipipe.py (iless): Fixed.
312 * IPython/Extensions/ipipe.py (iless): Fixed.
313
313
314 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
314 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
315
315
316 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
316 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
317
317
318 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
318 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
319 handling in variable expansion so that shells and magics recognize
319 handling in variable expansion so that shells and magics recognize
320 function local scopes correctly. Bug reported by Brian.
320 function local scopes correctly. Bug reported by Brian.
321
321
322 * scripts/ipython: remove the very first entry in sys.path which
322 * scripts/ipython: remove the very first entry in sys.path which
323 Python auto-inserts for scripts, so that sys.path under IPython is
323 Python auto-inserts for scripts, so that sys.path under IPython is
324 as similar as possible to that under plain Python.
324 as similar as possible to that under plain Python.
325
325
326 * IPython/completer.py (IPCompleter.file_matches): Fix
326 * IPython/completer.py (IPCompleter.file_matches): Fix
327 tab-completion so that quotes are not closed unless the completion
327 tab-completion so that quotes are not closed unless the completion
328 is unambiguous. After a request by Stefan. Minor cleanups in
328 is unambiguous. After a request by Stefan. Minor cleanups in
329 ipy_stock_completers.
329 ipy_stock_completers.
330
330
331 2006-11-02 Ville Vainio <vivainio@gmail.com>
331 2006-11-02 Ville Vainio <vivainio@gmail.com>
332
332
333 * ipy_stock_completers.py: Add %run and %cd completers.
333 * ipy_stock_completers.py: Add %run and %cd completers.
334
334
335 * completer.py: Try running custom completer for both
335 * completer.py: Try running custom completer for both
336 "foo" and "%foo" if the command is just "foo". Ignore case
336 "foo" and "%foo" if the command is just "foo". Ignore case
337 when filtering possible completions.
337 when filtering possible completions.
338
338
339 * UserConfig/ipy_user_conf.py: install stock completers as default
339 * UserConfig/ipy_user_conf.py: install stock completers as default
340
340
341 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
341 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
342 simplified readline history save / restore through a wrapper
342 simplified readline history save / restore through a wrapper
343 function
343 function
344
344
345
345
346 2006-10-31 Ville Vainio <vivainio@gmail.com>
346 2006-10-31 Ville Vainio <vivainio@gmail.com>
347
347
348 * strdispatch.py, completer.py, ipy_stock_completers.py:
348 * strdispatch.py, completer.py, ipy_stock_completers.py:
349 Allow str_key ("command") in completer hooks. Implement
349 Allow str_key ("command") in completer hooks. Implement
350 trivial completer for 'import' (stdlib modules only). Rename
350 trivial completer for 'import' (stdlib modules only). Rename
351 ipy_linux_package_managers.py to ipy_stock_completers.py.
351 ipy_linux_package_managers.py to ipy_stock_completers.py.
352 SVN completer.
352 SVN completer.
353
353
354 * Extensions/ledit.py: %magic line editor for easily and
354 * Extensions/ledit.py: %magic line editor for easily and
355 incrementally manipulating lists of strings. The magic command
355 incrementally manipulating lists of strings. The magic command
356 name is %led.
356 name is %led.
357
357
358 2006-10-30 Ville Vainio <vivainio@gmail.com>
358 2006-10-30 Ville Vainio <vivainio@gmail.com>
359
359
360 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
360 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
361 Bernsteins's patches for pydb integration.
361 Bernsteins's patches for pydb integration.
362 http://bashdb.sourceforge.net/pydb/
362 http://bashdb.sourceforge.net/pydb/
363
363
364 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
364 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
365 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
365 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
366 custom completer hook to allow the users to implement their own
366 custom completer hook to allow the users to implement their own
367 completers. See ipy_linux_package_managers.py for example. The
367 completers. See ipy_linux_package_managers.py for example. The
368 hook name is 'complete_command'.
368 hook name is 'complete_command'.
369
369
370 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
370 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
371
371
372 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
372 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
373 Numeric leftovers.
373 Numeric leftovers.
374
374
375 * ipython.el (py-execute-region): apply Stefan's patch to fix
375 * ipython.el (py-execute-region): apply Stefan's patch to fix
376 garbled results if the python shell hasn't been previously started.
376 garbled results if the python shell hasn't been previously started.
377
377
378 * IPython/genutils.py (arg_split): moved to genutils, since it's a
378 * IPython/genutils.py (arg_split): moved to genutils, since it's a
379 pretty generic function and useful for other things.
379 pretty generic function and useful for other things.
380
380
381 * IPython/OInspect.py (getsource): Add customizable source
381 * IPython/OInspect.py (getsource): Add customizable source
382 extractor. After a request/patch form W. Stein (SAGE).
382 extractor. After a request/patch form W. Stein (SAGE).
383
383
384 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
384 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
385 window size to a more reasonable value from what pexpect does,
385 window size to a more reasonable value from what pexpect does,
386 since their choice causes wrapping bugs with long input lines.
386 since their choice causes wrapping bugs with long input lines.
387
387
388 2006-10-28 Ville Vainio <vivainio@gmail.com>
388 2006-10-28 Ville Vainio <vivainio@gmail.com>
389
389
390 * Magic.py (%run): Save and restore the readline history from
390 * Magic.py (%run): Save and restore the readline history from
391 file around %run commands to prevent side effects from
391 file around %run commands to prevent side effects from
392 %runned programs that might use readline (e.g. pydb).
392 %runned programs that might use readline (e.g. pydb).
393
393
394 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
394 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
395 invoking the pydb enhanced debugger.
395 invoking the pydb enhanced debugger.
396
396
397 2006-10-23 Walter Doerwald <walter@livinglogic.de>
397 2006-10-23 Walter Doerwald <walter@livinglogic.de>
398
398
399 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
399 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
400 call the base class method and propagate the return value to
400 call the base class method and propagate the return value to
401 ifile. This is now done by path itself.
401 ifile. This is now done by path itself.
402
402
403 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
403 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
404
404
405 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
405 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
406 api: set_crash_handler(), to expose the ability to change the
406 api: set_crash_handler(), to expose the ability to change the
407 internal crash handler.
407 internal crash handler.
408
408
409 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
409 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
410 the various parameters of the crash handler so that apps using
410 the various parameters of the crash handler so that apps using
411 IPython as their engine can customize crash handling. Ipmlemented
411 IPython as their engine can customize crash handling. Ipmlemented
412 at the request of SAGE.
412 at the request of SAGE.
413
413
414 2006-10-14 Ville Vainio <vivainio@gmail.com>
414 2006-10-14 Ville Vainio <vivainio@gmail.com>
415
415
416 * Magic.py, ipython.el: applied first "safe" part of Rocky
416 * Magic.py, ipython.el: applied first "safe" part of Rocky
417 Bernstein's patch set for pydb integration.
417 Bernstein's patch set for pydb integration.
418
418
419 * Magic.py (%unalias, %alias): %store'd aliases can now be
419 * Magic.py (%unalias, %alias): %store'd aliases can now be
420 removed with '%unalias'. %alias w/o args now shows most
420 removed with '%unalias'. %alias w/o args now shows most
421 interesting (stored / manually defined) aliases last
421 interesting (stored / manually defined) aliases last
422 where they catch the eye w/o scrolling.
422 where they catch the eye w/o scrolling.
423
423
424 * Magic.py (%rehashx), ext_rehashdir.py: files with
424 * Magic.py (%rehashx), ext_rehashdir.py: files with
425 'py' extension are always considered executable, even
425 'py' extension are always considered executable, even
426 when not in PATHEXT environment variable.
426 when not in PATHEXT environment variable.
427
427
428 2006-10-12 Ville Vainio <vivainio@gmail.com>
428 2006-10-12 Ville Vainio <vivainio@gmail.com>
429
429
430 * jobctrl.py: Add new "jobctrl" extension for spawning background
430 * jobctrl.py: Add new "jobctrl" extension for spawning background
431 processes with "&find /". 'import jobctrl' to try it out. Requires
431 processes with "&find /". 'import jobctrl' to try it out. Requires
432 'subprocess' module, standard in python 2.4+.
432 'subprocess' module, standard in python 2.4+.
433
433
434 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
434 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
435 so if foo -> bar and bar -> baz, then foo -> baz.
435 so if foo -> bar and bar -> baz, then foo -> baz.
436
436
437 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
437 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
438
438
439 * IPython/Magic.py (Magic.parse_options): add a new posix option
439 * IPython/Magic.py (Magic.parse_options): add a new posix option
440 to allow parsing of input args in magics that doesn't strip quotes
440 to allow parsing of input args in magics that doesn't strip quotes
441 (if posix=False). This also closes %timeit bug reported by
441 (if posix=False). This also closes %timeit bug reported by
442 Stefan.
442 Stefan.
443
443
444 2006-10-03 Ville Vainio <vivainio@gmail.com>
444 2006-10-03 Ville Vainio <vivainio@gmail.com>
445
445
446 * iplib.py (raw_input, interact): Return ValueError catching for
446 * iplib.py (raw_input, interact): Return ValueError catching for
447 raw_input. Fixes infinite loop for sys.stdin.close() or
447 raw_input. Fixes infinite loop for sys.stdin.close() or
448 sys.stdout.close().
448 sys.stdout.close().
449
449
450 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
450 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
451
451
452 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
452 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
453 to help in handling doctests. irunner is now pretty useful for
453 to help in handling doctests. irunner is now pretty useful for
454 running standalone scripts and simulate a full interactive session
454 running standalone scripts and simulate a full interactive session
455 in a format that can be then pasted as a doctest.
455 in a format that can be then pasted as a doctest.
456
456
457 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
457 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
458 on top of the default (useless) ones. This also fixes the nasty
458 on top of the default (useless) ones. This also fixes the nasty
459 way in which 2.5's Quitter() exits (reverted [1785]).
459 way in which 2.5's Quitter() exits (reverted [1785]).
460
460
461 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
461 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
462 2.5.
462 2.5.
463
463
464 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
464 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
465 color scheme is updated as well when color scheme is changed
465 color scheme is updated as well when color scheme is changed
466 interactively.
466 interactively.
467
467
468 2006-09-27 Ville Vainio <vivainio@gmail.com>
468 2006-09-27 Ville Vainio <vivainio@gmail.com>
469
469
470 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
470 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
471 infinite loop and just exit. It's a hack, but will do for a while.
471 infinite loop and just exit. It's a hack, but will do for a while.
472
472
473 2006-08-25 Walter Doerwald <walter@livinglogic.de>
473 2006-08-25 Walter Doerwald <walter@livinglogic.de>
474
474
475 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
475 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
476 the constructor, this makes it possible to get a list of only directories
476 the constructor, this makes it possible to get a list of only directories
477 or only files.
477 or only files.
478
478
479 2006-08-12 Ville Vainio <vivainio@gmail.com>
479 2006-08-12 Ville Vainio <vivainio@gmail.com>
480
480
481 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
481 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
482 they broke unittest
482 they broke unittest
483
483
484 2006-08-11 Ville Vainio <vivainio@gmail.com>
484 2006-08-11 Ville Vainio <vivainio@gmail.com>
485
485
486 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
486 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
487 by resolving issue properly, i.e. by inheriting FakeModule
487 by resolving issue properly, i.e. by inheriting FakeModule
488 from types.ModuleType. Pickling ipython interactive data
488 from types.ModuleType. Pickling ipython interactive data
489 should still work as usual (testing appreciated).
489 should still work as usual (testing appreciated).
490
490
491 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
491 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
492
492
493 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
493 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
494 running under python 2.3 with code from 2.4 to fix a bug with
494 running under python 2.3 with code from 2.4 to fix a bug with
495 help(). Reported by the Debian maintainers, Norbert Tretkowski
495 help(). Reported by the Debian maintainers, Norbert Tretkowski
496 <norbert-AT-tretkowski.de> and Alexandre Fayolle
496 <norbert-AT-tretkowski.de> and Alexandre Fayolle
497 <afayolle-AT-debian.org>.
497 <afayolle-AT-debian.org>.
498
498
499 2006-08-04 Walter Doerwald <walter@livinglogic.de>
499 2006-08-04 Walter Doerwald <walter@livinglogic.de>
500
500
501 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
501 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
502 (which was displaying "quit" twice).
502 (which was displaying "quit" twice).
503
503
504 2006-07-28 Walter Doerwald <walter@livinglogic.de>
504 2006-07-28 Walter Doerwald <walter@livinglogic.de>
505
505
506 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
506 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
507 the mode argument).
507 the mode argument).
508
508
509 2006-07-27 Walter Doerwald <walter@livinglogic.de>
509 2006-07-27 Walter Doerwald <walter@livinglogic.de>
510
510
511 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
511 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
512 not running under IPython.
512 not running under IPython.
513
513
514 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
514 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
515 and make it iterable (iterating over the attribute itself). Add two new
515 and make it iterable (iterating over the attribute itself). Add two new
516 magic strings for __xattrs__(): If the string starts with "-", the attribute
516 magic strings for __xattrs__(): If the string starts with "-", the attribute
517 will not be displayed in ibrowse's detail view (but it can still be
517 will not be displayed in ibrowse's detail view (but it can still be
518 iterated over). This makes it possible to add attributes that are large
518 iterated over). This makes it possible to add attributes that are large
519 lists or generator methods to the detail view. Replace magic attribute names
519 lists or generator methods to the detail view. Replace magic attribute names
520 and _attrname() and _getattr() with "descriptors": For each type of magic
520 and _attrname() and _getattr() with "descriptors": For each type of magic
521 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
521 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
522 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
522 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
523 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
523 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
524 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
524 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
525 are still supported.
525 are still supported.
526
526
527 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
527 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
528 fails in ibrowse.fetch(), the exception object is added as the last item
528 fails in ibrowse.fetch(), the exception object is added as the last item
529 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
529 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
530 a generator throws an exception midway through execution.
530 a generator throws an exception midway through execution.
531
531
532 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
532 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
533 encoding into methods.
533 encoding into methods.
534
534
535 2006-07-26 Ville Vainio <vivainio@gmail.com>
535 2006-07-26 Ville Vainio <vivainio@gmail.com>
536
536
537 * iplib.py: history now stores multiline input as single
537 * iplib.py: history now stores multiline input as single
538 history entries. Patch by Jorgen Cederlof.
538 history entries. Patch by Jorgen Cederlof.
539
539
540 2006-07-18 Walter Doerwald <walter@livinglogic.de>
540 2006-07-18 Walter Doerwald <walter@livinglogic.de>
541
541
542 * IPython/Extensions/ibrowse.py: Make cursor visible over
542 * IPython/Extensions/ibrowse.py: Make cursor visible over
543 non existing attributes.
543 non existing attributes.
544
544
545 2006-07-14 Walter Doerwald <walter@livinglogic.de>
545 2006-07-14 Walter Doerwald <walter@livinglogic.de>
546
546
547 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
547 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
548 error output of the running command doesn't mess up the screen.
548 error output of the running command doesn't mess up the screen.
549
549
550 2006-07-13 Walter Doerwald <walter@livinglogic.de>
550 2006-07-13 Walter Doerwald <walter@livinglogic.de>
551
551
552 * IPython/Extensions/ipipe.py (isort): Make isort usable without
552 * IPython/Extensions/ipipe.py (isort): Make isort usable without
553 argument. This sorts the items themselves.
553 argument. This sorts the items themselves.
554
554
555 2006-07-12 Walter Doerwald <walter@livinglogic.de>
555 2006-07-12 Walter Doerwald <walter@livinglogic.de>
556
556
557 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
557 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
558 Compile expression strings into code objects. This should speed
558 Compile expression strings into code objects. This should speed
559 up ifilter and friends somewhat.
559 up ifilter and friends somewhat.
560
560
561 2006-07-08 Ville Vainio <vivainio@gmail.com>
561 2006-07-08 Ville Vainio <vivainio@gmail.com>
562
562
563 * Magic.py: %cpaste now strips > from the beginning of lines
563 * Magic.py: %cpaste now strips > from the beginning of lines
564 to ease pasting quoted code from emails. Contributed by
564 to ease pasting quoted code from emails. Contributed by
565 Stefan van der Walt.
565 Stefan van der Walt.
566
566
567 2006-06-29 Ville Vainio <vivainio@gmail.com>
567 2006-06-29 Ville Vainio <vivainio@gmail.com>
568
568
569 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
569 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
570 mode, patch contributed by Darren Dale. NEEDS TESTING!
570 mode, patch contributed by Darren Dale. NEEDS TESTING!
571
571
572 2006-06-28 Walter Doerwald <walter@livinglogic.de>
572 2006-06-28 Walter Doerwald <walter@livinglogic.de>
573
573
574 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
574 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
575 a blue background. Fix fetching new display rows when the browser
575 a blue background. Fix fetching new display rows when the browser
576 scrolls more than a screenful (e.g. by using the goto command).
576 scrolls more than a screenful (e.g. by using the goto command).
577
577
578 2006-06-27 Ville Vainio <vivainio@gmail.com>
578 2006-06-27 Ville Vainio <vivainio@gmail.com>
579
579
580 * Magic.py (_inspect, _ofind) Apply David Huard's
580 * Magic.py (_inspect, _ofind) Apply David Huard's
581 patch for displaying the correct docstring for 'property'
581 patch for displaying the correct docstring for 'property'
582 attributes.
582 attributes.
583
583
584 2006-06-23 Walter Doerwald <walter@livinglogic.de>
584 2006-06-23 Walter Doerwald <walter@livinglogic.de>
585
585
586 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
586 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
587 commands into the methods implementing them.
587 commands into the methods implementing them.
588
588
589 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
589 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
590
590
591 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
591 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
592 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
592 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
593 autoindent support was authored by Jin Liu.
593 autoindent support was authored by Jin Liu.
594
594
595 2006-06-22 Walter Doerwald <walter@livinglogic.de>
595 2006-06-22 Walter Doerwald <walter@livinglogic.de>
596
596
597 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
597 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
598 for keymaps with a custom class that simplifies handling.
598 for keymaps with a custom class that simplifies handling.
599
599
600 2006-06-19 Walter Doerwald <walter@livinglogic.de>
600 2006-06-19 Walter Doerwald <walter@livinglogic.de>
601
601
602 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
602 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
603 resizing. This requires Python 2.5 to work.
603 resizing. This requires Python 2.5 to work.
604
604
605 2006-06-16 Walter Doerwald <walter@livinglogic.de>
605 2006-06-16 Walter Doerwald <walter@livinglogic.de>
606
606
607 * IPython/Extensions/ibrowse.py: Add two new commands to
607 * IPython/Extensions/ibrowse.py: Add two new commands to
608 ibrowse: "hideattr" (mapped to "h") hides the attribute under
608 ibrowse: "hideattr" (mapped to "h") hides the attribute under
609 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
609 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
610 attributes again. Remapped the help command to "?". Display
610 attributes again. Remapped the help command to "?". Display
611 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
611 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
612 as keys for the "home" and "end" commands. Add three new commands
612 as keys for the "home" and "end" commands. Add three new commands
613 to the input mode for "find" and friends: "delend" (CTRL-K)
613 to the input mode for "find" and friends: "delend" (CTRL-K)
614 deletes to the end of line. "incsearchup" searches upwards in the
614 deletes to the end of line. "incsearchup" searches upwards in the
615 command history for an input that starts with the text before the cursor.
615 command history for an input that starts with the text before the cursor.
616 "incsearchdown" does the same downwards. Removed a bogus mapping of
616 "incsearchdown" does the same downwards. Removed a bogus mapping of
617 the x key to "delete".
617 the x key to "delete".
618
618
619 2006-06-15 Ville Vainio <vivainio@gmail.com>
619 2006-06-15 Ville Vainio <vivainio@gmail.com>
620
620
621 * iplib.py, hooks.py: Added new generate_prompt hook that can be
621 * iplib.py, hooks.py: Added new generate_prompt hook that can be
622 used to create prompts dynamically, instead of the "old" way of
622 used to create prompts dynamically, instead of the "old" way of
623 assigning "magic" strings to prompt_in1 and prompt_in2. The old
623 assigning "magic" strings to prompt_in1 and prompt_in2. The old
624 way still works (it's invoked by the default hook), of course.
624 way still works (it's invoked by the default hook), of course.
625
625
626 * Prompts.py: added generate_output_prompt hook for altering output
626 * Prompts.py: added generate_output_prompt hook for altering output
627 prompt
627 prompt
628
628
629 * Release.py: Changed version string to 0.7.3.svn.
629 * Release.py: Changed version string to 0.7.3.svn.
630
630
631 2006-06-15 Walter Doerwald <walter@livinglogic.de>
631 2006-06-15 Walter Doerwald <walter@livinglogic.de>
632
632
633 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
633 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
634 the call to fetch() always tries to fetch enough data for at least one
634 the call to fetch() always tries to fetch enough data for at least one
635 full screen. This makes it possible to simply call moveto(0,0,True) in
635 full screen. This makes it possible to simply call moveto(0,0,True) in
636 the constructor. Fix typos and removed the obsolete goto attribute.
636 the constructor. Fix typos and removed the obsolete goto attribute.
637
637
638 2006-06-12 Ville Vainio <vivainio@gmail.com>
638 2006-06-12 Ville Vainio <vivainio@gmail.com>
639
639
640 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
640 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
641 allowing $variable interpolation within multiline statements,
641 allowing $variable interpolation within multiline statements,
642 though so far only with "sh" profile for a testing period.
642 though so far only with "sh" profile for a testing period.
643 The patch also enables splitting long commands with \ but it
643 The patch also enables splitting long commands with \ but it
644 doesn't work properly yet.
644 doesn't work properly yet.
645
645
646 2006-06-12 Walter Doerwald <walter@livinglogic.de>
646 2006-06-12 Walter Doerwald <walter@livinglogic.de>
647
647
648 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
648 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
649 input history and the position of the cursor in the input history for
649 input history and the position of the cursor in the input history for
650 the find, findbackwards and goto command.
650 the find, findbackwards and goto command.
651
651
652 2006-06-10 Walter Doerwald <walter@livinglogic.de>
652 2006-06-10 Walter Doerwald <walter@livinglogic.de>
653
653
654 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
654 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
655 implements the basic functionality of browser commands that require
655 implements the basic functionality of browser commands that require
656 input. Reimplement the goto, find and findbackwards commands as
656 input. Reimplement the goto, find and findbackwards commands as
657 subclasses of _CommandInput. Add an input history and keymaps to those
657 subclasses of _CommandInput. Add an input history and keymaps to those
658 commands. Add "\r" as a keyboard shortcut for the enterdefault and
658 commands. Add "\r" as a keyboard shortcut for the enterdefault and
659 execute commands.
659 execute commands.
660
660
661 2006-06-07 Ville Vainio <vivainio@gmail.com>
661 2006-06-07 Ville Vainio <vivainio@gmail.com>
662
662
663 * iplib.py: ipython mybatch.ipy exits ipython immediately after
663 * iplib.py: ipython mybatch.ipy exits ipython immediately after
664 running the batch files instead of leaving the session open.
664 running the batch files instead of leaving the session open.
665
665
666 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
666 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
667
667
668 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
668 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
669 the original fix was incomplete. Patch submitted by W. Maier.
669 the original fix was incomplete. Patch submitted by W. Maier.
670
670
671 2006-06-07 Ville Vainio <vivainio@gmail.com>
671 2006-06-07 Ville Vainio <vivainio@gmail.com>
672
672
673 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
673 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
674 Confirmation prompts can be supressed by 'quiet' option.
674 Confirmation prompts can be supressed by 'quiet' option.
675 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
675 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
676
676
677 2006-06-06 *** Released version 0.7.2
677 2006-06-06 *** Released version 0.7.2
678
678
679 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
679 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
680
680
681 * IPython/Release.py (version): Made 0.7.2 final for release.
681 * IPython/Release.py (version): Made 0.7.2 final for release.
682 Repo tagged and release cut.
682 Repo tagged and release cut.
683
683
684 2006-06-05 Ville Vainio <vivainio@gmail.com>
684 2006-06-05 Ville Vainio <vivainio@gmail.com>
685
685
686 * Magic.py (magic_rehashx): Honor no_alias list earlier in
686 * Magic.py (magic_rehashx): Honor no_alias list earlier in
687 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
687 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
688
688
689 * upgrade_dir.py: try import 'path' module a bit harder
689 * upgrade_dir.py: try import 'path' module a bit harder
690 (for %upgrade)
690 (for %upgrade)
691
691
692 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
692 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
693
693
694 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
694 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
695 instead of looping 20 times.
695 instead of looping 20 times.
696
696
697 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
697 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
698 correctly at initialization time. Bug reported by Krishna Mohan
698 correctly at initialization time. Bug reported by Krishna Mohan
699 Gundu <gkmohan-AT-gmail.com> on the user list.
699 Gundu <gkmohan-AT-gmail.com> on the user list.
700
700
701 * IPython/Release.py (version): Mark 0.7.2 version to start
701 * IPython/Release.py (version): Mark 0.7.2 version to start
702 testing for release on 06/06.
702 testing for release on 06/06.
703
703
704 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
704 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
705
705
706 * scripts/irunner: thin script interface so users don't have to
706 * scripts/irunner: thin script interface so users don't have to
707 find the module and call it as an executable, since modules rarely
707 find the module and call it as an executable, since modules rarely
708 live in people's PATH.
708 live in people's PATH.
709
709
710 * IPython/irunner.py (InteractiveRunner.__init__): added
710 * IPython/irunner.py (InteractiveRunner.__init__): added
711 delaybeforesend attribute to control delays with newer versions of
711 delaybeforesend attribute to control delays with newer versions of
712 pexpect. Thanks to detailed help from pexpect's author, Noah
712 pexpect. Thanks to detailed help from pexpect's author, Noah
713 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
713 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
714 correctly (it works in NoColor mode).
714 correctly (it works in NoColor mode).
715
715
716 * IPython/iplib.py (handle_normal): fix nasty crash reported on
716 * IPython/iplib.py (handle_normal): fix nasty crash reported on
717 SAGE list, from improper log() calls.
717 SAGE list, from improper log() calls.
718
718
719 2006-05-31 Ville Vainio <vivainio@gmail.com>
719 2006-05-31 Ville Vainio <vivainio@gmail.com>
720
720
721 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
721 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
722 with args in parens to work correctly with dirs that have spaces.
722 with args in parens to work correctly with dirs that have spaces.
723
723
724 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
724 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
725
725
726 * IPython/Logger.py (Logger.logstart): add option to log raw input
726 * IPython/Logger.py (Logger.logstart): add option to log raw input
727 instead of the processed one. A -r flag was added to the
727 instead of the processed one. A -r flag was added to the
728 %logstart magic used for controlling logging.
728 %logstart magic used for controlling logging.
729
729
730 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
730 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
731
731
732 * IPython/iplib.py (InteractiveShell.__init__): add check for the
732 * IPython/iplib.py (InteractiveShell.__init__): add check for the
733 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
733 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
734 recognize the option. After a bug report by Will Maier. This
734 recognize the option. After a bug report by Will Maier. This
735 closes #64 (will do it after confirmation from W. Maier).
735 closes #64 (will do it after confirmation from W. Maier).
736
736
737 * IPython/irunner.py: New module to run scripts as if manually
737 * IPython/irunner.py: New module to run scripts as if manually
738 typed into an interactive environment, based on pexpect. After a
738 typed into an interactive environment, based on pexpect. After a
739 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
739 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
740 ipython-user list. Simple unittests in the tests/ directory.
740 ipython-user list. Simple unittests in the tests/ directory.
741
741
742 * tools/release: add Will Maier, OpenBSD port maintainer, to
742 * tools/release: add Will Maier, OpenBSD port maintainer, to
743 recepients list. We are now officially part of the OpenBSD ports:
743 recepients list. We are now officially part of the OpenBSD ports:
744 http://www.openbsd.org/ports.html ! Many thanks to Will for the
744 http://www.openbsd.org/ports.html ! Many thanks to Will for the
745 work.
745 work.
746
746
747 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
747 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
748
748
749 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
749 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
750 so that it doesn't break tkinter apps.
750 so that it doesn't break tkinter apps.
751
751
752 * IPython/iplib.py (_prefilter): fix bug where aliases would
752 * IPython/iplib.py (_prefilter): fix bug where aliases would
753 shadow variables when autocall was fully off. Reported by SAGE
753 shadow variables when autocall was fully off. Reported by SAGE
754 author William Stein.
754 author William Stein.
755
755
756 * IPython/OInspect.py (Inspector.__init__): add a flag to control
756 * IPython/OInspect.py (Inspector.__init__): add a flag to control
757 at what detail level strings are computed when foo? is requested.
757 at what detail level strings are computed when foo? is requested.
758 This allows users to ask for example that the string form of an
758 This allows users to ask for example that the string form of an
759 object is only computed when foo?? is called, or even never, by
759 object is only computed when foo?? is called, or even never, by
760 setting the object_info_string_level >= 2 in the configuration
760 setting the object_info_string_level >= 2 in the configuration
761 file. This new option has been added and documented. After a
761 file. This new option has been added and documented. After a
762 request by SAGE to be able to control the printing of very large
762 request by SAGE to be able to control the printing of very large
763 objects more easily.
763 objects more easily.
764
764
765 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
765 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
766
766
767 * IPython/ipmaker.py (make_IPython): remove the ipython call path
767 * IPython/ipmaker.py (make_IPython): remove the ipython call path
768 from sys.argv, to be 100% consistent with how Python itself works
768 from sys.argv, to be 100% consistent with how Python itself works
769 (as seen for example with python -i file.py). After a bug report
769 (as seen for example with python -i file.py). After a bug report
770 by Jeffrey Collins.
770 by Jeffrey Collins.
771
771
772 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
772 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
773 nasty bug which was preventing custom namespaces with -pylab,
773 nasty bug which was preventing custom namespaces with -pylab,
774 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
774 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
775 compatibility (long gone from mpl).
775 compatibility (long gone from mpl).
776
776
777 * IPython/ipapi.py (make_session): name change: create->make. We
777 * IPython/ipapi.py (make_session): name change: create->make. We
778 use make in other places (ipmaker,...), it's shorter and easier to
778 use make in other places (ipmaker,...), it's shorter and easier to
779 type and say, etc. I'm trying to clean things before 0.7.2 so
779 type and say, etc. I'm trying to clean things before 0.7.2 so
780 that I can keep things stable wrt to ipapi in the chainsaw branch.
780 that I can keep things stable wrt to ipapi in the chainsaw branch.
781
781
782 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
782 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
783 python-mode recognizes our debugger mode. Add support for
783 python-mode recognizes our debugger mode. Add support for
784 autoindent inside (X)emacs. After a patch sent in by Jin Liu
784 autoindent inside (X)emacs. After a patch sent in by Jin Liu
785 <m.liu.jin-AT-gmail.com> originally written by
785 <m.liu.jin-AT-gmail.com> originally written by
786 doxgen-AT-newsmth.net (with minor modifications for xemacs
786 doxgen-AT-newsmth.net (with minor modifications for xemacs
787 compatibility)
787 compatibility)
788
788
789 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
789 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
790 tracebacks when walking the stack so that the stack tracking system
790 tracebacks when walking the stack so that the stack tracking system
791 in emacs' python-mode can identify the frames correctly.
791 in emacs' python-mode can identify the frames correctly.
792
792
793 * IPython/ipmaker.py (make_IPython): make the internal (and
793 * IPython/ipmaker.py (make_IPython): make the internal (and
794 default config) autoedit_syntax value false by default. Too many
794 default config) autoedit_syntax value false by default. Too many
795 users have complained to me (both on and off-list) about problems
795 users have complained to me (both on and off-list) about problems
796 with this option being on by default, so I'm making it default to
796 with this option being on by default, so I'm making it default to
797 off. It can still be enabled by anyone via the usual mechanisms.
797 off. It can still be enabled by anyone via the usual mechanisms.
798
798
799 * IPython/completer.py (Completer.attr_matches): add support for
799 * IPython/completer.py (Completer.attr_matches): add support for
800 PyCrust-style _getAttributeNames magic method. Patch contributed
800 PyCrust-style _getAttributeNames magic method. Patch contributed
801 by <mscott-AT-goldenspud.com>. Closes #50.
801 by <mscott-AT-goldenspud.com>. Closes #50.
802
802
803 * IPython/iplib.py (InteractiveShell.__init__): remove the
803 * IPython/iplib.py (InteractiveShell.__init__): remove the
804 deletion of exit/quit from __builtin__, which can break
804 deletion of exit/quit from __builtin__, which can break
805 third-party tools like the Zope debugging console. The
805 third-party tools like the Zope debugging console. The
806 %exit/%quit magics remain. In general, it's probably a good idea
806 %exit/%quit magics remain. In general, it's probably a good idea
807 not to delete anything from __builtin__, since we never know what
807 not to delete anything from __builtin__, since we never know what
808 that will break. In any case, python now (for 2.5) will support
808 that will break. In any case, python now (for 2.5) will support
809 'real' exit/quit, so this issue is moot. Closes #55.
809 'real' exit/quit, so this issue is moot. Closes #55.
810
810
811 * IPython/genutils.py (with_obj): rename the 'with' function to
811 * IPython/genutils.py (with_obj): rename the 'with' function to
812 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
812 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
813 becomes a language keyword. Closes #53.
813 becomes a language keyword. Closes #53.
814
814
815 * IPython/FakeModule.py (FakeModule.__init__): add a proper
815 * IPython/FakeModule.py (FakeModule.__init__): add a proper
816 __file__ attribute to this so it fools more things into thinking
816 __file__ attribute to this so it fools more things into thinking
817 it is a real module. Closes #59.
817 it is a real module. Closes #59.
818
818
819 * IPython/Magic.py (magic_edit): add -n option to open the editor
819 * IPython/Magic.py (magic_edit): add -n option to open the editor
820 at a specific line number. After a patch by Stefan van der Walt.
820 at a specific line number. After a patch by Stefan van der Walt.
821
821
822 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
822 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
823
823
824 * IPython/iplib.py (edit_syntax_error): fix crash when for some
824 * IPython/iplib.py (edit_syntax_error): fix crash when for some
825 reason the file could not be opened. After automatic crash
825 reason the file could not be opened. After automatic crash
826 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
826 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
827 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
827 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
828 (_should_recompile): Don't fire editor if using %bg, since there
828 (_should_recompile): Don't fire editor if using %bg, since there
829 is no file in the first place. From the same report as above.
829 is no file in the first place. From the same report as above.
830 (raw_input): protect against faulty third-party prefilters. After
830 (raw_input): protect against faulty third-party prefilters. After
831 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
831 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
832 while running under SAGE.
832 while running under SAGE.
833
833
834 2006-05-23 Ville Vainio <vivainio@gmail.com>
834 2006-05-23 Ville Vainio <vivainio@gmail.com>
835
835
836 * ipapi.py: Stripped down ip.to_user_ns() to work only as
836 * ipapi.py: Stripped down ip.to_user_ns() to work only as
837 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
837 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
838 now returns None (again), unless dummy is specifically allowed by
838 now returns None (again), unless dummy is specifically allowed by
839 ipapi.get(allow_dummy=True).
839 ipapi.get(allow_dummy=True).
840
840
841 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
841 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
842
842
843 * IPython: remove all 2.2-compatibility objects and hacks from
843 * IPython: remove all 2.2-compatibility objects and hacks from
844 everywhere, since we only support 2.3 at this point. Docs
844 everywhere, since we only support 2.3 at this point. Docs
845 updated.
845 updated.
846
846
847 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
847 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
848 Anything requiring extra validation can be turned into a Python
848 Anything requiring extra validation can be turned into a Python
849 property in the future. I used a property for the db one b/c
849 property in the future. I used a property for the db one b/c
850 there was a nasty circularity problem with the initialization
850 there was a nasty circularity problem with the initialization
851 order, which right now I don't have time to clean up.
851 order, which right now I don't have time to clean up.
852
852
853 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
853 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
854 another locking bug reported by Jorgen. I'm not 100% sure though,
854 another locking bug reported by Jorgen. I'm not 100% sure though,
855 so more testing is needed...
855 so more testing is needed...
856
856
857 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
857 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
858
858
859 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
859 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
860 local variables from any routine in user code (typically executed
860 local variables from any routine in user code (typically executed
861 with %run) directly into the interactive namespace. Very useful
861 with %run) directly into the interactive namespace. Very useful
862 when doing complex debugging.
862 when doing complex debugging.
863 (IPythonNotRunning): Changed the default None object to a dummy
863 (IPythonNotRunning): Changed the default None object to a dummy
864 whose attributes can be queried as well as called without
864 whose attributes can be queried as well as called without
865 exploding, to ease writing code which works transparently both in
865 exploding, to ease writing code which works transparently both in
866 and out of ipython and uses some of this API.
866 and out of ipython and uses some of this API.
867
867
868 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
868 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
869
869
870 * IPython/hooks.py (result_display): Fix the fact that our display
870 * IPython/hooks.py (result_display): Fix the fact that our display
871 hook was using str() instead of repr(), as the default python
871 hook was using str() instead of repr(), as the default python
872 console does. This had gone unnoticed b/c it only happened if
872 console does. This had gone unnoticed b/c it only happened if
873 %Pprint was off, but the inconsistency was there.
873 %Pprint was off, but the inconsistency was there.
874
874
875 2006-05-15 Ville Vainio <vivainio@gmail.com>
875 2006-05-15 Ville Vainio <vivainio@gmail.com>
876
876
877 * Oinspect.py: Only show docstring for nonexisting/binary files
877 * Oinspect.py: Only show docstring for nonexisting/binary files
878 when doing object??, closing ticket #62
878 when doing object??, closing ticket #62
879
879
880 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
880 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
881
881
882 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
882 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
883 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
883 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
884 was being released in a routine which hadn't checked if it had
884 was being released in a routine which hadn't checked if it had
885 been the one to acquire it.
885 been the one to acquire it.
886
886
887 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
887 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
888
888
889 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
889 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
890
890
891 2006-04-11 Ville Vainio <vivainio@gmail.com>
891 2006-04-11 Ville Vainio <vivainio@gmail.com>
892
892
893 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
893 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
894 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
894 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
895 prefilters, allowing stuff like magics and aliases in the file.
895 prefilters, allowing stuff like magics and aliases in the file.
896
896
897 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
897 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
898 added. Supported now are "%clear in" and "%clear out" (clear input and
898 added. Supported now are "%clear in" and "%clear out" (clear input and
899 output history, respectively). Also fixed CachedOutput.flush to
899 output history, respectively). Also fixed CachedOutput.flush to
900 properly flush the output cache.
900 properly flush the output cache.
901
901
902 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
902 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
903 half-success (and fail explicitly).
903 half-success (and fail explicitly).
904
904
905 2006-03-28 Ville Vainio <vivainio@gmail.com>
905 2006-03-28 Ville Vainio <vivainio@gmail.com>
906
906
907 * iplib.py: Fix quoting of aliases so that only argless ones
907 * iplib.py: Fix quoting of aliases so that only argless ones
908 are quoted
908 are quoted
909
909
910 2006-03-28 Ville Vainio <vivainio@gmail.com>
910 2006-03-28 Ville Vainio <vivainio@gmail.com>
911
911
912 * iplib.py: Quote aliases with spaces in the name.
912 * iplib.py: Quote aliases with spaces in the name.
913 "c:\program files\blah\bin" is now legal alias target.
913 "c:\program files\blah\bin" is now legal alias target.
914
914
915 * ext_rehashdir.py: Space no longer allowed as arg
915 * ext_rehashdir.py: Space no longer allowed as arg
916 separator, since space is legal in path names.
916 separator, since space is legal in path names.
917
917
918 2006-03-16 Ville Vainio <vivainio@gmail.com>
918 2006-03-16 Ville Vainio <vivainio@gmail.com>
919
919
920 * upgrade_dir.py: Take path.py from Extensions, correcting
920 * upgrade_dir.py: Take path.py from Extensions, correcting
921 %upgrade magic
921 %upgrade magic
922
922
923 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
923 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
924
924
925 * hooks.py: Only enclose editor binary in quotes if legal and
925 * hooks.py: Only enclose editor binary in quotes if legal and
926 necessary (space in the name, and is an existing file). Fixes a bug
926 necessary (space in the name, and is an existing file). Fixes a bug
927 reported by Zachary Pincus.
927 reported by Zachary Pincus.
928
928
929 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
929 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
930
930
931 * Manual: thanks to a tip on proper color handling for Emacs, by
931 * Manual: thanks to a tip on proper color handling for Emacs, by
932 Eric J Haywiser <ejh1-AT-MIT.EDU>.
932 Eric J Haywiser <ejh1-AT-MIT.EDU>.
933
933
934 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
934 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
935 by applying the provided patch. Thanks to Liu Jin
935 by applying the provided patch. Thanks to Liu Jin
936 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
936 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
937 XEmacs/Linux, I'm trusting the submitter that it actually helps
937 XEmacs/Linux, I'm trusting the submitter that it actually helps
938 under win32/GNU Emacs. Will revisit if any problems are reported.
938 under win32/GNU Emacs. Will revisit if any problems are reported.
939
939
940 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
940 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
941
941
942 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
942 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
943 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
943 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
944
944
945 2006-03-12 Ville Vainio <vivainio@gmail.com>
945 2006-03-12 Ville Vainio <vivainio@gmail.com>
946
946
947 * Magic.py (magic_timeit): Added %timeit magic, contributed by
947 * Magic.py (magic_timeit): Added %timeit magic, contributed by
948 Torsten Marek.
948 Torsten Marek.
949
949
950 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
950 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
951
951
952 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
952 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
953 line ranges works again.
953 line ranges works again.
954
954
955 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
955 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
956
956
957 * IPython/iplib.py (showtraceback): add back sys.last_traceback
957 * IPython/iplib.py (showtraceback): add back sys.last_traceback
958 and friends, after a discussion with Zach Pincus on ipython-user.
958 and friends, after a discussion with Zach Pincus on ipython-user.
959 I'm not 100% sure, but after thinking about it quite a bit, it may
959 I'm not 100% sure, but after thinking about it quite a bit, it may
960 be OK. Testing with the multithreaded shells didn't reveal any
960 be OK. Testing with the multithreaded shells didn't reveal any
961 problems, but let's keep an eye out.
961 problems, but let's keep an eye out.
962
962
963 In the process, I fixed a few things which were calling
963 In the process, I fixed a few things which were calling
964 self.InteractiveTB() directly (like safe_execfile), which is a
964 self.InteractiveTB() directly (like safe_execfile), which is a
965 mistake: ALL exception reporting should be done by calling
965 mistake: ALL exception reporting should be done by calling
966 self.showtraceback(), which handles state and tab-completion and
966 self.showtraceback(), which handles state and tab-completion and
967 more.
967 more.
968
968
969 2006-03-01 Ville Vainio <vivainio@gmail.com>
969 2006-03-01 Ville Vainio <vivainio@gmail.com>
970
970
971 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
971 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
972 To use, do "from ipipe import *".
972 To use, do "from ipipe import *".
973
973
974 2006-02-24 Ville Vainio <vivainio@gmail.com>
974 2006-02-24 Ville Vainio <vivainio@gmail.com>
975
975
976 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
976 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
977 "cleanly" and safely than the older upgrade mechanism.
977 "cleanly" and safely than the older upgrade mechanism.
978
978
979 2006-02-21 Ville Vainio <vivainio@gmail.com>
979 2006-02-21 Ville Vainio <vivainio@gmail.com>
980
980
981 * Magic.py: %save works again.
981 * Magic.py: %save works again.
982
982
983 2006-02-15 Ville Vainio <vivainio@gmail.com>
983 2006-02-15 Ville Vainio <vivainio@gmail.com>
984
984
985 * Magic.py: %Pprint works again
985 * Magic.py: %Pprint works again
986
986
987 * Extensions/ipy_sane_defaults.py: Provide everything provided
987 * Extensions/ipy_sane_defaults.py: Provide everything provided
988 in default ipythonrc, to make it possible to have a completely empty
988 in default ipythonrc, to make it possible to have a completely empty
989 ipythonrc (and thus completely rc-file free configuration)
989 ipythonrc (and thus completely rc-file free configuration)
990
990
991 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
991 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
992
992
993 * IPython/hooks.py (editor): quote the call to the editor command,
993 * IPython/hooks.py (editor): quote the call to the editor command,
994 to allow commands with spaces in them. Problem noted by watching
994 to allow commands with spaces in them. Problem noted by watching
995 Ian Oswald's video about textpad under win32 at
995 Ian Oswald's video about textpad under win32 at
996 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
996 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
997
997
998 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
998 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
999 describing magics (we haven't used @ for a loong time).
999 describing magics (we haven't used @ for a loong time).
1000
1000
1001 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1001 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1002 contributed by marienz to close
1002 contributed by marienz to close
1003 http://www.scipy.net/roundup/ipython/issue53.
1003 http://www.scipy.net/roundup/ipython/issue53.
1004
1004
1005 2006-02-10 Ville Vainio <vivainio@gmail.com>
1005 2006-02-10 Ville Vainio <vivainio@gmail.com>
1006
1006
1007 * genutils.py: getoutput now works in win32 too
1007 * genutils.py: getoutput now works in win32 too
1008
1008
1009 * completer.py: alias and magic completion only invoked
1009 * completer.py: alias and magic completion only invoked
1010 at the first "item" in the line, to avoid "cd %store"
1010 at the first "item" in the line, to avoid "cd %store"
1011 nonsense.
1011 nonsense.
1012
1012
1013 2006-02-09 Ville Vainio <vivainio@gmail.com>
1013 2006-02-09 Ville Vainio <vivainio@gmail.com>
1014
1014
1015 * test/*: Added a unit testing framework (finally).
1015 * test/*: Added a unit testing framework (finally).
1016 '%run runtests.py' to run test_*.
1016 '%run runtests.py' to run test_*.
1017
1017
1018 * ipapi.py: Exposed runlines and set_custom_exc
1018 * ipapi.py: Exposed runlines and set_custom_exc
1019
1019
1020 2006-02-07 Ville Vainio <vivainio@gmail.com>
1020 2006-02-07 Ville Vainio <vivainio@gmail.com>
1021
1021
1022 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1022 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1023 instead use "f(1 2)" as before.
1023 instead use "f(1 2)" as before.
1024
1024
1025 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1025 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1026
1026
1027 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1027 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1028 facilities, for demos processed by the IPython input filter
1028 facilities, for demos processed by the IPython input filter
1029 (IPythonDemo), and for running a script one-line-at-a-time as a
1029 (IPythonDemo), and for running a script one-line-at-a-time as a
1030 demo, both for pure Python (LineDemo) and for IPython-processed
1030 demo, both for pure Python (LineDemo) and for IPython-processed
1031 input (IPythonLineDemo). After a request by Dave Kohel, from the
1031 input (IPythonLineDemo). After a request by Dave Kohel, from the
1032 SAGE team.
1032 SAGE team.
1033 (Demo.edit): added an edit() method to the demo objects, to edit
1033 (Demo.edit): added an edit() method to the demo objects, to edit
1034 the in-memory copy of the last executed block.
1034 the in-memory copy of the last executed block.
1035
1035
1036 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1036 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1037 processing to %edit, %macro and %save. These commands can now be
1037 processing to %edit, %macro and %save. These commands can now be
1038 invoked on the unprocessed input as it was typed by the user
1038 invoked on the unprocessed input as it was typed by the user
1039 (without any prefilters applied). After requests by the SAGE team
1039 (without any prefilters applied). After requests by the SAGE team
1040 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1040 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1041
1041
1042 2006-02-01 Ville Vainio <vivainio@gmail.com>
1042 2006-02-01 Ville Vainio <vivainio@gmail.com>
1043
1043
1044 * setup.py, eggsetup.py: easy_install ipython==dev works
1044 * setup.py, eggsetup.py: easy_install ipython==dev works
1045 correctly now (on Linux)
1045 correctly now (on Linux)
1046
1046
1047 * ipy_user_conf,ipmaker: user config changes, removed spurious
1047 * ipy_user_conf,ipmaker: user config changes, removed spurious
1048 warnings
1048 warnings
1049
1049
1050 * iplib: if rc.banner is string, use it as is.
1050 * iplib: if rc.banner is string, use it as is.
1051
1051
1052 * Magic: %pycat accepts a string argument and pages it's contents.
1052 * Magic: %pycat accepts a string argument and pages it's contents.
1053
1053
1054
1054
1055 2006-01-30 Ville Vainio <vivainio@gmail.com>
1055 2006-01-30 Ville Vainio <vivainio@gmail.com>
1056
1056
1057 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1057 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1058 Now %store and bookmarks work through PickleShare, meaning that
1058 Now %store and bookmarks work through PickleShare, meaning that
1059 concurrent access is possible and all ipython sessions see the
1059 concurrent access is possible and all ipython sessions see the
1060 same database situation all the time, instead of snapshot of
1060 same database situation all the time, instead of snapshot of
1061 the situation when the session was started. Hence, %bookmark
1061 the situation when the session was started. Hence, %bookmark
1062 results are immediately accessible from othes sessions. The database
1062 results are immediately accessible from othes sessions. The database
1063 is also available for use by user extensions. See:
1063 is also available for use by user extensions. See:
1064 http://www.python.org/pypi/pickleshare
1064 http://www.python.org/pypi/pickleshare
1065
1065
1066 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1066 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1067
1067
1068 * aliases can now be %store'd
1068 * aliases can now be %store'd
1069
1069
1070 * path.py moved to Extensions so that pickleshare does not need
1070 * path.py moved to Extensions so that pickleshare does not need
1071 IPython-specific import. Extensions added to pythonpath right
1071 IPython-specific import. Extensions added to pythonpath right
1072 at __init__.
1072 at __init__.
1073
1073
1074 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1074 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1075 called with _ip.system and the pre-transformed command string.
1075 called with _ip.system and the pre-transformed command string.
1076
1076
1077 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1077 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1078
1078
1079 * IPython/iplib.py (interact): Fix that we were not catching
1079 * IPython/iplib.py (interact): Fix that we were not catching
1080 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1080 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1081 logic here had to change, but it's fixed now.
1081 logic here had to change, but it's fixed now.
1082
1082
1083 2006-01-29 Ville Vainio <vivainio@gmail.com>
1083 2006-01-29 Ville Vainio <vivainio@gmail.com>
1084
1084
1085 * iplib.py: Try to import pyreadline on Windows.
1085 * iplib.py: Try to import pyreadline on Windows.
1086
1086
1087 2006-01-27 Ville Vainio <vivainio@gmail.com>
1087 2006-01-27 Ville Vainio <vivainio@gmail.com>
1088
1088
1089 * iplib.py: Expose ipapi as _ip in builtin namespace.
1089 * iplib.py: Expose ipapi as _ip in builtin namespace.
1090 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1090 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1091 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1091 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1092 syntax now produce _ip.* variant of the commands.
1092 syntax now produce _ip.* variant of the commands.
1093
1093
1094 * "_ip.options().autoedit_syntax = 2" automatically throws
1094 * "_ip.options().autoedit_syntax = 2" automatically throws
1095 user to editor for syntax error correction without prompting.
1095 user to editor for syntax error correction without prompting.
1096
1096
1097 2006-01-27 Ville Vainio <vivainio@gmail.com>
1097 2006-01-27 Ville Vainio <vivainio@gmail.com>
1098
1098
1099 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1099 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1100 'ipython' at argv[0]) executed through command line.
1100 'ipython' at argv[0]) executed through command line.
1101 NOTE: this DEPRECATES calling ipython with multiple scripts
1101 NOTE: this DEPRECATES calling ipython with multiple scripts
1102 ("ipython a.py b.py c.py")
1102 ("ipython a.py b.py c.py")
1103
1103
1104 * iplib.py, hooks.py: Added configurable input prefilter,
1104 * iplib.py, hooks.py: Added configurable input prefilter,
1105 named 'input_prefilter'. See ext_rescapture.py for example
1105 named 'input_prefilter'. See ext_rescapture.py for example
1106 usage.
1106 usage.
1107
1107
1108 * ext_rescapture.py, Magic.py: Better system command output capture
1108 * ext_rescapture.py, Magic.py: Better system command output capture
1109 through 'var = !ls' (deprecates user-visible %sc). Same notation
1109 through 'var = !ls' (deprecates user-visible %sc). Same notation
1110 applies for magics, 'var = %alias' assigns alias list to var.
1110 applies for magics, 'var = %alias' assigns alias list to var.
1111
1111
1112 * ipapi.py: added meta() for accessing extension-usable data store.
1112 * ipapi.py: added meta() for accessing extension-usable data store.
1113
1113
1114 * iplib.py: added InteractiveShell.getapi(). New magics should be
1114 * iplib.py: added InteractiveShell.getapi(). New magics should be
1115 written doing self.getapi() instead of using the shell directly.
1115 written doing self.getapi() instead of using the shell directly.
1116
1116
1117 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1117 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1118 %store foo >> ~/myfoo.txt to store variables to files (in clean
1118 %store foo >> ~/myfoo.txt to store variables to files (in clean
1119 textual form, not a restorable pickle).
1119 textual form, not a restorable pickle).
1120
1120
1121 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1121 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1122
1122
1123 * usage.py, Magic.py: added %quickref
1123 * usage.py, Magic.py: added %quickref
1124
1124
1125 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1125 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1126
1126
1127 * GetoptErrors when invoking magics etc. with wrong args
1127 * GetoptErrors when invoking magics etc. with wrong args
1128 are now more helpful:
1128 are now more helpful:
1129 GetoptError: option -l not recognized (allowed: "qb" )
1129 GetoptError: option -l not recognized (allowed: "qb" )
1130
1130
1131 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1131 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1132
1132
1133 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1133 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1134 computationally intensive blocks don't appear to stall the demo.
1134 computationally intensive blocks don't appear to stall the demo.
1135
1135
1136 2006-01-24 Ville Vainio <vivainio@gmail.com>
1136 2006-01-24 Ville Vainio <vivainio@gmail.com>
1137
1137
1138 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1138 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1139 value to manipulate resulting history entry.
1139 value to manipulate resulting history entry.
1140
1140
1141 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1141 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1142 to instance methods of IPApi class, to make extending an embedded
1142 to instance methods of IPApi class, to make extending an embedded
1143 IPython feasible. See ext_rehashdir.py for example usage.
1143 IPython feasible. See ext_rehashdir.py for example usage.
1144
1144
1145 * Merged 1071-1076 from branches/0.7.1
1145 * Merged 1071-1076 from branches/0.7.1
1146
1146
1147
1147
1148 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1148 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1149
1149
1150 * tools/release (daystamp): Fix build tools to use the new
1150 * tools/release (daystamp): Fix build tools to use the new
1151 eggsetup.py script to build lightweight eggs.
1151 eggsetup.py script to build lightweight eggs.
1152
1152
1153 * Applied changesets 1062 and 1064 before 0.7.1 release.
1153 * Applied changesets 1062 and 1064 before 0.7.1 release.
1154
1154
1155 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1155 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1156 see the raw input history (without conversions like %ls ->
1156 see the raw input history (without conversions like %ls ->
1157 ipmagic("ls")). After a request from W. Stein, SAGE
1157 ipmagic("ls")). After a request from W. Stein, SAGE
1158 (http://modular.ucsd.edu/sage) developer. This information is
1158 (http://modular.ucsd.edu/sage) developer. This information is
1159 stored in the input_hist_raw attribute of the IPython instance, so
1159 stored in the input_hist_raw attribute of the IPython instance, so
1160 developers can access it if needed (it's an InputList instance).
1160 developers can access it if needed (it's an InputList instance).
1161
1161
1162 * Versionstring = 0.7.2.svn
1162 * Versionstring = 0.7.2.svn
1163
1163
1164 * eggsetup.py: A separate script for constructing eggs, creates
1164 * eggsetup.py: A separate script for constructing eggs, creates
1165 proper launch scripts even on Windows (an .exe file in
1165 proper launch scripts even on Windows (an .exe file in
1166 \python24\scripts).
1166 \python24\scripts).
1167
1167
1168 * ipapi.py: launch_new_instance, launch entry point needed for the
1168 * ipapi.py: launch_new_instance, launch entry point needed for the
1169 egg.
1169 egg.
1170
1170
1171 2006-01-23 Ville Vainio <vivainio@gmail.com>
1171 2006-01-23 Ville Vainio <vivainio@gmail.com>
1172
1172
1173 * Added %cpaste magic for pasting python code
1173 * Added %cpaste magic for pasting python code
1174
1174
1175 2006-01-22 Ville Vainio <vivainio@gmail.com>
1175 2006-01-22 Ville Vainio <vivainio@gmail.com>
1176
1176
1177 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1177 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1178
1178
1179 * Versionstring = 0.7.2.svn
1179 * Versionstring = 0.7.2.svn
1180
1180
1181 * eggsetup.py: A separate script for constructing eggs, creates
1181 * eggsetup.py: A separate script for constructing eggs, creates
1182 proper launch scripts even on Windows (an .exe file in
1182 proper launch scripts even on Windows (an .exe file in
1183 \python24\scripts).
1183 \python24\scripts).
1184
1184
1185 * ipapi.py: launch_new_instance, launch entry point needed for the
1185 * ipapi.py: launch_new_instance, launch entry point needed for the
1186 egg.
1186 egg.
1187
1187
1188 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1188 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1189
1189
1190 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1190 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1191 %pfile foo would print the file for foo even if it was a binary.
1191 %pfile foo would print the file for foo even if it was a binary.
1192 Now, extensions '.so' and '.dll' are skipped.
1192 Now, extensions '.so' and '.dll' are skipped.
1193
1193
1194 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1194 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1195 bug, where macros would fail in all threaded modes. I'm not 100%
1195 bug, where macros would fail in all threaded modes. I'm not 100%
1196 sure, so I'm going to put out an rc instead of making a release
1196 sure, so I'm going to put out an rc instead of making a release
1197 today, and wait for feedback for at least a few days.
1197 today, and wait for feedback for at least a few days.
1198
1198
1199 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1199 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1200 it...) the handling of pasting external code with autoindent on.
1200 it...) the handling of pasting external code with autoindent on.
1201 To get out of a multiline input, the rule will appear for most
1201 To get out of a multiline input, the rule will appear for most
1202 users unchanged: two blank lines or change the indent level
1202 users unchanged: two blank lines or change the indent level
1203 proposed by IPython. But there is a twist now: you can
1203 proposed by IPython. But there is a twist now: you can
1204 add/subtract only *one or two spaces*. If you add/subtract three
1204 add/subtract only *one or two spaces*. If you add/subtract three
1205 or more (unless you completely delete the line), IPython will
1205 or more (unless you completely delete the line), IPython will
1206 accept that line, and you'll need to enter a second one of pure
1206 accept that line, and you'll need to enter a second one of pure
1207 whitespace. I know it sounds complicated, but I can't find a
1207 whitespace. I know it sounds complicated, but I can't find a
1208 different solution that covers all the cases, with the right
1208 different solution that covers all the cases, with the right
1209 heuristics. Hopefully in actual use, nobody will really notice
1209 heuristics. Hopefully in actual use, nobody will really notice
1210 all these strange rules and things will 'just work'.
1210 all these strange rules and things will 'just work'.
1211
1211
1212 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1212 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1213
1213
1214 * IPython/iplib.py (interact): catch exceptions which can be
1214 * IPython/iplib.py (interact): catch exceptions which can be
1215 triggered asynchronously by signal handlers. Thanks to an
1215 triggered asynchronously by signal handlers. Thanks to an
1216 automatic crash report, submitted by Colin Kingsley
1216 automatic crash report, submitted by Colin Kingsley
1217 <tercel-AT-gentoo.org>.
1217 <tercel-AT-gentoo.org>.
1218
1218
1219 2006-01-20 Ville Vainio <vivainio@gmail.com>
1219 2006-01-20 Ville Vainio <vivainio@gmail.com>
1220
1220
1221 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1221 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1222 (%rehashdir, very useful, try it out) of how to extend ipython
1222 (%rehashdir, very useful, try it out) of how to extend ipython
1223 with new magics. Also added Extensions dir to pythonpath to make
1223 with new magics. Also added Extensions dir to pythonpath to make
1224 importing extensions easy.
1224 importing extensions easy.
1225
1225
1226 * %store now complains when trying to store interactively declared
1226 * %store now complains when trying to store interactively declared
1227 classes / instances of those classes.
1227 classes / instances of those classes.
1228
1228
1229 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1229 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1230 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1230 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1231 if they exist, and ipy_user_conf.py with some defaults is created for
1231 if they exist, and ipy_user_conf.py with some defaults is created for
1232 the user.
1232 the user.
1233
1233
1234 * Startup rehashing done by the config file, not InterpreterExec.
1234 * Startup rehashing done by the config file, not InterpreterExec.
1235 This means system commands are available even without selecting the
1235 This means system commands are available even without selecting the
1236 pysh profile. It's the sensible default after all.
1236 pysh profile. It's the sensible default after all.
1237
1237
1238 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1238 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1239
1239
1240 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1240 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1241 multiline code with autoindent on working. But I am really not
1241 multiline code with autoindent on working. But I am really not
1242 sure, so this needs more testing. Will commit a debug-enabled
1242 sure, so this needs more testing. Will commit a debug-enabled
1243 version for now, while I test it some more, so that Ville and
1243 version for now, while I test it some more, so that Ville and
1244 others may also catch any problems. Also made
1244 others may also catch any problems. Also made
1245 self.indent_current_str() a method, to ensure that there's no
1245 self.indent_current_str() a method, to ensure that there's no
1246 chance of the indent space count and the corresponding string
1246 chance of the indent space count and the corresponding string
1247 falling out of sync. All code needing the string should just call
1247 falling out of sync. All code needing the string should just call
1248 the method.
1248 the method.
1249
1249
1250 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1250 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1251
1251
1252 * IPython/Magic.py (magic_edit): fix check for when users don't
1252 * IPython/Magic.py (magic_edit): fix check for when users don't
1253 save their output files, the try/except was in the wrong section.
1253 save their output files, the try/except was in the wrong section.
1254
1254
1255 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1255 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1256
1256
1257 * IPython/Magic.py (magic_run): fix __file__ global missing from
1257 * IPython/Magic.py (magic_run): fix __file__ global missing from
1258 script's namespace when executed via %run. After a report by
1258 script's namespace when executed via %run. After a report by
1259 Vivian.
1259 Vivian.
1260
1260
1261 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1261 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1262 when using python 2.4. The parent constructor changed in 2.4, and
1262 when using python 2.4. The parent constructor changed in 2.4, and
1263 we need to track it directly (we can't call it, as it messes up
1263 we need to track it directly (we can't call it, as it messes up
1264 readline and tab-completion inside our pdb would stop working).
1264 readline and tab-completion inside our pdb would stop working).
1265 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1265 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1266
1266
1267 2006-01-16 Ville Vainio <vivainio@gmail.com>
1267 2006-01-16 Ville Vainio <vivainio@gmail.com>
1268
1268
1269 * Ipython/magic.py: Reverted back to old %edit functionality
1269 * Ipython/magic.py: Reverted back to old %edit functionality
1270 that returns file contents on exit.
1270 that returns file contents on exit.
1271
1271
1272 * IPython/path.py: Added Jason Orendorff's "path" module to
1272 * IPython/path.py: Added Jason Orendorff's "path" module to
1273 IPython tree, http://www.jorendorff.com/articles/python/path/.
1273 IPython tree, http://www.jorendorff.com/articles/python/path/.
1274 You can get path objects conveniently through %sc, and !!, e.g.:
1274 You can get path objects conveniently through %sc, and !!, e.g.:
1275 sc files=ls
1275 sc files=ls
1276 for p in files.paths: # or files.p
1276 for p in files.paths: # or files.p
1277 print p,p.mtime
1277 print p,p.mtime
1278
1278
1279 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1279 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1280 now work again without considering the exclusion regexp -
1280 now work again without considering the exclusion regexp -
1281 hence, things like ',foo my/path' turn to 'foo("my/path")'
1281 hence, things like ',foo my/path' turn to 'foo("my/path")'
1282 instead of syntax error.
1282 instead of syntax error.
1283
1283
1284
1284
1285 2006-01-14 Ville Vainio <vivainio@gmail.com>
1285 2006-01-14 Ville Vainio <vivainio@gmail.com>
1286
1286
1287 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1287 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1288 ipapi decorators for python 2.4 users, options() provides access to rc
1288 ipapi decorators for python 2.4 users, options() provides access to rc
1289 data.
1289 data.
1290
1290
1291 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1291 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1292 as path separators (even on Linux ;-). Space character after
1292 as path separators (even on Linux ;-). Space character after
1293 backslash (as yielded by tab completer) is still space;
1293 backslash (as yielded by tab completer) is still space;
1294 "%cd long\ name" works as expected.
1294 "%cd long\ name" works as expected.
1295
1295
1296 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1296 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1297 as "chain of command", with priority. API stays the same,
1297 as "chain of command", with priority. API stays the same,
1298 TryNext exception raised by a hook function signals that
1298 TryNext exception raised by a hook function signals that
1299 current hook failed and next hook should try handling it, as
1299 current hook failed and next hook should try handling it, as
1300 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1300 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1301 requested configurable display hook, which is now implemented.
1301 requested configurable display hook, which is now implemented.
1302
1302
1303 2006-01-13 Ville Vainio <vivainio@gmail.com>
1303 2006-01-13 Ville Vainio <vivainio@gmail.com>
1304
1304
1305 * IPython/platutils*.py: platform specific utility functions,
1305 * IPython/platutils*.py: platform specific utility functions,
1306 so far only set_term_title is implemented (change terminal
1306 so far only set_term_title is implemented (change terminal
1307 label in windowing systems). %cd now changes the title to
1307 label in windowing systems). %cd now changes the title to
1308 current dir.
1308 current dir.
1309
1309
1310 * IPython/Release.py: Added myself to "authors" list,
1310 * IPython/Release.py: Added myself to "authors" list,
1311 had to create new files.
1311 had to create new files.
1312
1312
1313 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1313 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1314 shell escape; not a known bug but had potential to be one in the
1314 shell escape; not a known bug but had potential to be one in the
1315 future.
1315 future.
1316
1316
1317 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1317 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1318 extension API for IPython! See the module for usage example. Fix
1318 extension API for IPython! See the module for usage example. Fix
1319 OInspect for docstring-less magic functions.
1319 OInspect for docstring-less magic functions.
1320
1320
1321
1321
1322 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1322 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1323
1323
1324 * IPython/iplib.py (raw_input): temporarily deactivate all
1324 * IPython/iplib.py (raw_input): temporarily deactivate all
1325 attempts at allowing pasting of code with autoindent on. It
1325 attempts at allowing pasting of code with autoindent on. It
1326 introduced bugs (reported by Prabhu) and I can't seem to find a
1326 introduced bugs (reported by Prabhu) and I can't seem to find a
1327 robust combination which works in all cases. Will have to revisit
1327 robust combination which works in all cases. Will have to revisit
1328 later.
1328 later.
1329
1329
1330 * IPython/genutils.py: remove isspace() function. We've dropped
1330 * IPython/genutils.py: remove isspace() function. We've dropped
1331 2.2 compatibility, so it's OK to use the string method.
1331 2.2 compatibility, so it's OK to use the string method.
1332
1332
1333 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1333 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1334
1334
1335 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1335 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1336 matching what NOT to autocall on, to include all python binary
1336 matching what NOT to autocall on, to include all python binary
1337 operators (including things like 'and', 'or', 'is' and 'in').
1337 operators (including things like 'and', 'or', 'is' and 'in').
1338 Prompted by a bug report on 'foo & bar', but I realized we had
1338 Prompted by a bug report on 'foo & bar', but I realized we had
1339 many more potential bug cases with other operators. The regexp is
1339 many more potential bug cases with other operators. The regexp is
1340 self.re_exclude_auto, it's fairly commented.
1340 self.re_exclude_auto, it's fairly commented.
1341
1341
1342 2006-01-12 Ville Vainio <vivainio@gmail.com>
1342 2006-01-12 Ville Vainio <vivainio@gmail.com>
1343
1343
1344 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1344 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1345 Prettified and hardened string/backslash quoting with ipsystem(),
1345 Prettified and hardened string/backslash quoting with ipsystem(),
1346 ipalias() and ipmagic(). Now even \ characters are passed to
1346 ipalias() and ipmagic(). Now even \ characters are passed to
1347 %magics, !shell escapes and aliases exactly as they are in the
1347 %magics, !shell escapes and aliases exactly as they are in the
1348 ipython command line. Should improve backslash experience,
1348 ipython command line. Should improve backslash experience,
1349 particularly in Windows (path delimiter for some commands that
1349 particularly in Windows (path delimiter for some commands that
1350 won't understand '/'), but Unix benefits as well (regexps). %cd
1350 won't understand '/'), but Unix benefits as well (regexps). %cd
1351 magic still doesn't support backslash path delimiters, though. Also
1351 magic still doesn't support backslash path delimiters, though. Also
1352 deleted all pretense of supporting multiline command strings in
1352 deleted all pretense of supporting multiline command strings in
1353 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1353 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1354
1354
1355 * doc/build_doc_instructions.txt added. Documentation on how to
1355 * doc/build_doc_instructions.txt added. Documentation on how to
1356 use doc/update_manual.py, added yesterday. Both files contributed
1356 use doc/update_manual.py, added yesterday. Both files contributed
1357 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1357 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1358 doc/*.sh for deprecation at a later date.
1358 doc/*.sh for deprecation at a later date.
1359
1359
1360 * /ipython.py Added ipython.py to root directory for
1360 * /ipython.py Added ipython.py to root directory for
1361 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1361 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1362 ipython.py) and development convenience (no need to keep doing
1362 ipython.py) and development convenience (no need to keep doing
1363 "setup.py install" between changes).
1363 "setup.py install" between changes).
1364
1364
1365 * Made ! and !! shell escapes work (again) in multiline expressions:
1365 * Made ! and !! shell escapes work (again) in multiline expressions:
1366 if 1:
1366 if 1:
1367 !ls
1367 !ls
1368 !!ls
1368 !!ls
1369
1369
1370 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1370 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1371
1371
1372 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1372 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1373 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1373 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1374 module in case-insensitive installation. Was causing crashes
1374 module in case-insensitive installation. Was causing crashes
1375 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1375 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1376
1376
1377 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1377 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1378 <marienz-AT-gentoo.org>, closes
1378 <marienz-AT-gentoo.org>, closes
1379 http://www.scipy.net/roundup/ipython/issue51.
1379 http://www.scipy.net/roundup/ipython/issue51.
1380
1380
1381 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1381 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1382
1382
1383 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1383 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1384 problem of excessive CPU usage under *nix and keyboard lag under
1384 problem of excessive CPU usage under *nix and keyboard lag under
1385 win32.
1385 win32.
1386
1386
1387 2006-01-10 *** Released version 0.7.0
1387 2006-01-10 *** Released version 0.7.0
1388
1388
1389 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1389 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1390
1390
1391 * IPython/Release.py (revision): tag version number to 0.7.0,
1391 * IPython/Release.py (revision): tag version number to 0.7.0,
1392 ready for release.
1392 ready for release.
1393
1393
1394 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1394 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1395 it informs the user of the name of the temp. file used. This can
1395 it informs the user of the name of the temp. file used. This can
1396 help if you decide later to reuse that same file, so you know
1396 help if you decide later to reuse that same file, so you know
1397 where to copy the info from.
1397 where to copy the info from.
1398
1398
1399 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1399 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1400
1400
1401 * setup_bdist_egg.py: little script to build an egg. Added
1401 * setup_bdist_egg.py: little script to build an egg. Added
1402 support in the release tools as well.
1402 support in the release tools as well.
1403
1403
1404 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1404 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1405
1405
1406 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1406 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1407 version selection (new -wxversion command line and ipythonrc
1407 version selection (new -wxversion command line and ipythonrc
1408 parameter). Patch contributed by Arnd Baecker
1408 parameter). Patch contributed by Arnd Baecker
1409 <arnd.baecker-AT-web.de>.
1409 <arnd.baecker-AT-web.de>.
1410
1410
1411 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1411 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1412 embedded instances, for variables defined at the interactive
1412 embedded instances, for variables defined at the interactive
1413 prompt of the embedded ipython. Reported by Arnd.
1413 prompt of the embedded ipython. Reported by Arnd.
1414
1414
1415 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1415 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1416 it can be used as a (stateful) toggle, or with a direct parameter.
1416 it can be used as a (stateful) toggle, or with a direct parameter.
1417
1417
1418 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1418 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1419 could be triggered in certain cases and cause the traceback
1419 could be triggered in certain cases and cause the traceback
1420 printer not to work.
1420 printer not to work.
1421
1421
1422 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1422 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1423
1423
1424 * IPython/iplib.py (_should_recompile): Small fix, closes
1424 * IPython/iplib.py (_should_recompile): Small fix, closes
1425 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1425 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1426
1426
1427 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1427 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1428
1428
1429 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1429 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1430 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1430 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1431 Moad for help with tracking it down.
1431 Moad for help with tracking it down.
1432
1432
1433 * IPython/iplib.py (handle_auto): fix autocall handling for
1433 * IPython/iplib.py (handle_auto): fix autocall handling for
1434 objects which support BOTH __getitem__ and __call__ (so that f [x]
1434 objects which support BOTH __getitem__ and __call__ (so that f [x]
1435 is left alone, instead of becoming f([x]) automatically).
1435 is left alone, instead of becoming f([x]) automatically).
1436
1436
1437 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1437 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1438 Ville's patch.
1438 Ville's patch.
1439
1439
1440 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1440 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1441
1441
1442 * IPython/iplib.py (handle_auto): changed autocall semantics to
1442 * IPython/iplib.py (handle_auto): changed autocall semantics to
1443 include 'smart' mode, where the autocall transformation is NOT
1443 include 'smart' mode, where the autocall transformation is NOT
1444 applied if there are no arguments on the line. This allows you to
1444 applied if there are no arguments on the line. This allows you to
1445 just type 'foo' if foo is a callable to see its internal form,
1445 just type 'foo' if foo is a callable to see its internal form,
1446 instead of having it called with no arguments (typically a
1446 instead of having it called with no arguments (typically a
1447 mistake). The old 'full' autocall still exists: for that, you
1447 mistake). The old 'full' autocall still exists: for that, you
1448 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1448 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1449
1449
1450 * IPython/completer.py (Completer.attr_matches): add
1450 * IPython/completer.py (Completer.attr_matches): add
1451 tab-completion support for Enthoughts' traits. After a report by
1451 tab-completion support for Enthoughts' traits. After a report by
1452 Arnd and a patch by Prabhu.
1452 Arnd and a patch by Prabhu.
1453
1453
1454 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1454 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1455
1455
1456 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1456 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1457 Schmolck's patch to fix inspect.getinnerframes().
1457 Schmolck's patch to fix inspect.getinnerframes().
1458
1458
1459 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1459 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1460 for embedded instances, regarding handling of namespaces and items
1460 for embedded instances, regarding handling of namespaces and items
1461 added to the __builtin__ one. Multiple embedded instances and
1461 added to the __builtin__ one. Multiple embedded instances and
1462 recursive embeddings should work better now (though I'm not sure
1462 recursive embeddings should work better now (though I'm not sure
1463 I've got all the corner cases fixed, that code is a bit of a brain
1463 I've got all the corner cases fixed, that code is a bit of a brain
1464 twister).
1464 twister).
1465
1465
1466 * IPython/Magic.py (magic_edit): added support to edit in-memory
1466 * IPython/Magic.py (magic_edit): added support to edit in-memory
1467 macros (automatically creates the necessary temp files). %edit
1467 macros (automatically creates the necessary temp files). %edit
1468 also doesn't return the file contents anymore, it's just noise.
1468 also doesn't return the file contents anymore, it's just noise.
1469
1469
1470 * IPython/completer.py (Completer.attr_matches): revert change to
1470 * IPython/completer.py (Completer.attr_matches): revert change to
1471 complete only on attributes listed in __all__. I realized it
1471 complete only on attributes listed in __all__. I realized it
1472 cripples the tab-completion system as a tool for exploring the
1472 cripples the tab-completion system as a tool for exploring the
1473 internals of unknown libraries (it renders any non-__all__
1473 internals of unknown libraries (it renders any non-__all__
1474 attribute off-limits). I got bit by this when trying to see
1474 attribute off-limits). I got bit by this when trying to see
1475 something inside the dis module.
1475 something inside the dis module.
1476
1476
1477 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1477 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1478
1478
1479 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1479 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1480 namespace for users and extension writers to hold data in. This
1480 namespace for users and extension writers to hold data in. This
1481 follows the discussion in
1481 follows the discussion in
1482 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1482 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1483
1483
1484 * IPython/completer.py (IPCompleter.complete): small patch to help
1484 * IPython/completer.py (IPCompleter.complete): small patch to help
1485 tab-completion under Emacs, after a suggestion by John Barnard
1485 tab-completion under Emacs, after a suggestion by John Barnard
1486 <barnarj-AT-ccf.org>.
1486 <barnarj-AT-ccf.org>.
1487
1487
1488 * IPython/Magic.py (Magic.extract_input_slices): added support for
1488 * IPython/Magic.py (Magic.extract_input_slices): added support for
1489 the slice notation in magics to use N-M to represent numbers N...M
1489 the slice notation in magics to use N-M to represent numbers N...M
1490 (closed endpoints). This is used by %macro and %save.
1490 (closed endpoints). This is used by %macro and %save.
1491
1491
1492 * IPython/completer.py (Completer.attr_matches): for modules which
1492 * IPython/completer.py (Completer.attr_matches): for modules which
1493 define __all__, complete only on those. After a patch by Jeffrey
1493 define __all__, complete only on those. After a patch by Jeffrey
1494 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1494 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1495 speed up this routine.
1495 speed up this routine.
1496
1496
1497 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1497 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1498 don't know if this is the end of it, but the behavior now is
1498 don't know if this is the end of it, but the behavior now is
1499 certainly much more correct. Note that coupled with macros,
1499 certainly much more correct. Note that coupled with macros,
1500 slightly surprising (at first) behavior may occur: a macro will in
1500 slightly surprising (at first) behavior may occur: a macro will in
1501 general expand to multiple lines of input, so upon exiting, the
1501 general expand to multiple lines of input, so upon exiting, the
1502 in/out counters will both be bumped by the corresponding amount
1502 in/out counters will both be bumped by the corresponding amount
1503 (as if the macro's contents had been typed interactively). Typing
1503 (as if the macro's contents had been typed interactively). Typing
1504 %hist will reveal the intermediate (silently processed) lines.
1504 %hist will reveal the intermediate (silently processed) lines.
1505
1505
1506 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1506 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1507 pickle to fail (%run was overwriting __main__ and not restoring
1507 pickle to fail (%run was overwriting __main__ and not restoring
1508 it, but pickle relies on __main__ to operate).
1508 it, but pickle relies on __main__ to operate).
1509
1509
1510 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1510 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1511 using properties, but forgot to make the main InteractiveShell
1511 using properties, but forgot to make the main InteractiveShell
1512 class a new-style class. Properties fail silently, and
1512 class a new-style class. Properties fail silently, and
1513 mysteriously, with old-style class (getters work, but
1513 mysteriously, with old-style class (getters work, but
1514 setters don't do anything).
1514 setters don't do anything).
1515
1515
1516 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1516 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1517
1517
1518 * IPython/Magic.py (magic_history): fix history reporting bug (I
1518 * IPython/Magic.py (magic_history): fix history reporting bug (I
1519 know some nasties are still there, I just can't seem to find a
1519 know some nasties are still there, I just can't seem to find a
1520 reproducible test case to track them down; the input history is
1520 reproducible test case to track them down; the input history is
1521 falling out of sync...)
1521 falling out of sync...)
1522
1522
1523 * IPython/iplib.py (handle_shell_escape): fix bug where both
1523 * IPython/iplib.py (handle_shell_escape): fix bug where both
1524 aliases and system accesses where broken for indented code (such
1524 aliases and system accesses where broken for indented code (such
1525 as loops).
1525 as loops).
1526
1526
1527 * IPython/genutils.py (shell): fix small but critical bug for
1527 * IPython/genutils.py (shell): fix small but critical bug for
1528 win32 system access.
1528 win32 system access.
1529
1529
1530 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1530 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1531
1531
1532 * IPython/iplib.py (showtraceback): remove use of the
1532 * IPython/iplib.py (showtraceback): remove use of the
1533 sys.last_{type/value/traceback} structures, which are non
1533 sys.last_{type/value/traceback} structures, which are non
1534 thread-safe.
1534 thread-safe.
1535 (_prefilter): change control flow to ensure that we NEVER
1535 (_prefilter): change control flow to ensure that we NEVER
1536 introspect objects when autocall is off. This will guarantee that
1536 introspect objects when autocall is off. This will guarantee that
1537 having an input line of the form 'x.y', where access to attribute
1537 having an input line of the form 'x.y', where access to attribute
1538 'y' has side effects, doesn't trigger the side effect TWICE. It
1538 'y' has side effects, doesn't trigger the side effect TWICE. It
1539 is important to note that, with autocall on, these side effects
1539 is important to note that, with autocall on, these side effects
1540 can still happen.
1540 can still happen.
1541 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1541 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1542 trio. IPython offers these three kinds of special calls which are
1542 trio. IPython offers these three kinds of special calls which are
1543 not python code, and it's a good thing to have their call method
1543 not python code, and it's a good thing to have their call method
1544 be accessible as pure python functions (not just special syntax at
1544 be accessible as pure python functions (not just special syntax at
1545 the command line). It gives us a better internal implementation
1545 the command line). It gives us a better internal implementation
1546 structure, as well as exposing these for user scripting more
1546 structure, as well as exposing these for user scripting more
1547 cleanly.
1547 cleanly.
1548
1548
1549 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1549 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1550 file. Now that they'll be more likely to be used with the
1550 file. Now that they'll be more likely to be used with the
1551 persistance system (%store), I want to make sure their module path
1551 persistance system (%store), I want to make sure their module path
1552 doesn't change in the future, so that we don't break things for
1552 doesn't change in the future, so that we don't break things for
1553 users' persisted data.
1553 users' persisted data.
1554
1554
1555 * IPython/iplib.py (autoindent_update): move indentation
1555 * IPython/iplib.py (autoindent_update): move indentation
1556 management into the _text_ processing loop, not the keyboard
1556 management into the _text_ processing loop, not the keyboard
1557 interactive one. This is necessary to correctly process non-typed
1557 interactive one. This is necessary to correctly process non-typed
1558 multiline input (such as macros).
1558 multiline input (such as macros).
1559
1559
1560 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1560 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1561 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1561 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1562 which was producing problems in the resulting manual.
1562 which was producing problems in the resulting manual.
1563 (magic_whos): improve reporting of instances (show their class,
1563 (magic_whos): improve reporting of instances (show their class,
1564 instead of simply printing 'instance' which isn't terribly
1564 instead of simply printing 'instance' which isn't terribly
1565 informative).
1565 informative).
1566
1566
1567 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1567 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1568 (minor mods) to support network shares under win32.
1568 (minor mods) to support network shares under win32.
1569
1569
1570 * IPython/winconsole.py (get_console_size): add new winconsole
1570 * IPython/winconsole.py (get_console_size): add new winconsole
1571 module and fixes to page_dumb() to improve its behavior under
1571 module and fixes to page_dumb() to improve its behavior under
1572 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1572 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1573
1573
1574 * IPython/Magic.py (Macro): simplified Macro class to just
1574 * IPython/Magic.py (Macro): simplified Macro class to just
1575 subclass list. We've had only 2.2 compatibility for a very long
1575 subclass list. We've had only 2.2 compatibility for a very long
1576 time, yet I was still avoiding subclassing the builtin types. No
1576 time, yet I was still avoiding subclassing the builtin types. No
1577 more (I'm also starting to use properties, though I won't shift to
1577 more (I'm also starting to use properties, though I won't shift to
1578 2.3-specific features quite yet).
1578 2.3-specific features quite yet).
1579 (magic_store): added Ville's patch for lightweight variable
1579 (magic_store): added Ville's patch for lightweight variable
1580 persistence, after a request on the user list by Matt Wilkie
1580 persistence, after a request on the user list by Matt Wilkie
1581 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1581 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1582 details.
1582 details.
1583
1583
1584 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1584 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1585 changed the default logfile name from 'ipython.log' to
1585 changed the default logfile name from 'ipython.log' to
1586 'ipython_log.py'. These logs are real python files, and now that
1586 'ipython_log.py'. These logs are real python files, and now that
1587 we have much better multiline support, people are more likely to
1587 we have much better multiline support, people are more likely to
1588 want to use them as such. Might as well name them correctly.
1588 want to use them as such. Might as well name them correctly.
1589
1589
1590 * IPython/Magic.py: substantial cleanup. While we can't stop
1590 * IPython/Magic.py: substantial cleanup. While we can't stop
1591 using magics as mixins, due to the existing customizations 'out
1591 using magics as mixins, due to the existing customizations 'out
1592 there' which rely on the mixin naming conventions, at least I
1592 there' which rely on the mixin naming conventions, at least I
1593 cleaned out all cross-class name usage. So once we are OK with
1593 cleaned out all cross-class name usage. So once we are OK with
1594 breaking compatibility, the two systems can be separated.
1594 breaking compatibility, the two systems can be separated.
1595
1595
1596 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1596 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1597 anymore, and the class is a fair bit less hideous as well. New
1597 anymore, and the class is a fair bit less hideous as well. New
1598 features were also introduced: timestamping of input, and logging
1598 features were also introduced: timestamping of input, and logging
1599 of output results. These are user-visible with the -t and -o
1599 of output results. These are user-visible with the -t and -o
1600 options to %logstart. Closes
1600 options to %logstart. Closes
1601 http://www.scipy.net/roundup/ipython/issue11 and a request by
1601 http://www.scipy.net/roundup/ipython/issue11 and a request by
1602 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1602 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1603
1603
1604 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1604 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1605
1605
1606 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1606 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1607 better handle backslashes in paths. See the thread 'More Windows
1607 better handle backslashes in paths. See the thread 'More Windows
1608 questions part 2 - \/ characters revisited' on the iypthon user
1608 questions part 2 - \/ characters revisited' on the iypthon user
1609 list:
1609 list:
1610 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1610 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1611
1611
1612 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1612 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1613
1613
1614 (InteractiveShell.__init__): change threaded shells to not use the
1614 (InteractiveShell.__init__): change threaded shells to not use the
1615 ipython crash handler. This was causing more problems than not,
1615 ipython crash handler. This was causing more problems than not,
1616 as exceptions in the main thread (GUI code, typically) would
1616 as exceptions in the main thread (GUI code, typically) would
1617 always show up as a 'crash', when they really weren't.
1617 always show up as a 'crash', when they really weren't.
1618
1618
1619 The colors and exception mode commands (%colors/%xmode) have been
1619 The colors and exception mode commands (%colors/%xmode) have been
1620 synchronized to also take this into account, so users can get
1620 synchronized to also take this into account, so users can get
1621 verbose exceptions for their threaded code as well. I also added
1621 verbose exceptions for their threaded code as well. I also added
1622 support for activating pdb inside this exception handler as well,
1622 support for activating pdb inside this exception handler as well,
1623 so now GUI authors can use IPython's enhanced pdb at runtime.
1623 so now GUI authors can use IPython's enhanced pdb at runtime.
1624
1624
1625 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1625 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1626 true by default, and add it to the shipped ipythonrc file. Since
1626 true by default, and add it to the shipped ipythonrc file. Since
1627 this asks the user before proceeding, I think it's OK to make it
1627 this asks the user before proceeding, I think it's OK to make it
1628 true by default.
1628 true by default.
1629
1629
1630 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1630 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1631 of the previous special-casing of input in the eval loop. I think
1631 of the previous special-casing of input in the eval loop. I think
1632 this is cleaner, as they really are commands and shouldn't have
1632 this is cleaner, as they really are commands and shouldn't have
1633 a special role in the middle of the core code.
1633 a special role in the middle of the core code.
1634
1634
1635 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1635 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1636
1636
1637 * IPython/iplib.py (edit_syntax_error): added support for
1637 * IPython/iplib.py (edit_syntax_error): added support for
1638 automatically reopening the editor if the file had a syntax error
1638 automatically reopening the editor if the file had a syntax error
1639 in it. Thanks to scottt who provided the patch at:
1639 in it. Thanks to scottt who provided the patch at:
1640 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1640 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1641 version committed).
1641 version committed).
1642
1642
1643 * IPython/iplib.py (handle_normal): add suport for multi-line
1643 * IPython/iplib.py (handle_normal): add suport for multi-line
1644 input with emtpy lines. This fixes
1644 input with emtpy lines. This fixes
1645 http://www.scipy.net/roundup/ipython/issue43 and a similar
1645 http://www.scipy.net/roundup/ipython/issue43 and a similar
1646 discussion on the user list.
1646 discussion on the user list.
1647
1647
1648 WARNING: a behavior change is necessarily introduced to support
1648 WARNING: a behavior change is necessarily introduced to support
1649 blank lines: now a single blank line with whitespace does NOT
1649 blank lines: now a single blank line with whitespace does NOT
1650 break the input loop, which means that when autoindent is on, by
1650 break the input loop, which means that when autoindent is on, by
1651 default hitting return on the next (indented) line does NOT exit.
1651 default hitting return on the next (indented) line does NOT exit.
1652
1652
1653 Instead, to exit a multiline input you can either have:
1653 Instead, to exit a multiline input you can either have:
1654
1654
1655 - TWO whitespace lines (just hit return again), or
1655 - TWO whitespace lines (just hit return again), or
1656 - a single whitespace line of a different length than provided
1656 - a single whitespace line of a different length than provided
1657 by the autoindent (add or remove a space).
1657 by the autoindent (add or remove a space).
1658
1658
1659 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1659 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1660 module to better organize all readline-related functionality.
1660 module to better organize all readline-related functionality.
1661 I've deleted FlexCompleter and put all completion clases here.
1661 I've deleted FlexCompleter and put all completion clases here.
1662
1662
1663 * IPython/iplib.py (raw_input): improve indentation management.
1663 * IPython/iplib.py (raw_input): improve indentation management.
1664 It is now possible to paste indented code with autoindent on, and
1664 It is now possible to paste indented code with autoindent on, and
1665 the code is interpreted correctly (though it still looks bad on
1665 the code is interpreted correctly (though it still looks bad on
1666 screen, due to the line-oriented nature of ipython).
1666 screen, due to the line-oriented nature of ipython).
1667 (MagicCompleter.complete): change behavior so that a TAB key on an
1667 (MagicCompleter.complete): change behavior so that a TAB key on an
1668 otherwise empty line actually inserts a tab, instead of completing
1668 otherwise empty line actually inserts a tab, instead of completing
1669 on the entire global namespace. This makes it easier to use the
1669 on the entire global namespace. This makes it easier to use the
1670 TAB key for indentation. After a request by Hans Meine
1670 TAB key for indentation. After a request by Hans Meine
1671 <hans_meine-AT-gmx.net>
1671 <hans_meine-AT-gmx.net>
1672 (_prefilter): add support so that typing plain 'exit' or 'quit'
1672 (_prefilter): add support so that typing plain 'exit' or 'quit'
1673 does a sensible thing. Originally I tried to deviate as little as
1673 does a sensible thing. Originally I tried to deviate as little as
1674 possible from the default python behavior, but even that one may
1674 possible from the default python behavior, but even that one may
1675 change in this direction (thread on python-dev to that effect).
1675 change in this direction (thread on python-dev to that effect).
1676 Regardless, ipython should do the right thing even if CPython's
1676 Regardless, ipython should do the right thing even if CPython's
1677 '>>>' prompt doesn't.
1677 '>>>' prompt doesn't.
1678 (InteractiveShell): removed subclassing code.InteractiveConsole
1678 (InteractiveShell): removed subclassing code.InteractiveConsole
1679 class. By now we'd overridden just about all of its methods: I've
1679 class. By now we'd overridden just about all of its methods: I've
1680 copied the remaining two over, and now ipython is a standalone
1680 copied the remaining two over, and now ipython is a standalone
1681 class. This will provide a clearer picture for the chainsaw
1681 class. This will provide a clearer picture for the chainsaw
1682 branch refactoring.
1682 branch refactoring.
1683
1683
1684 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
1684 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
1685
1685
1686 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
1686 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
1687 failures for objects which break when dir() is called on them.
1687 failures for objects which break when dir() is called on them.
1688
1688
1689 * IPython/FlexCompleter.py (Completer.__init__): Added support for
1689 * IPython/FlexCompleter.py (Completer.__init__): Added support for
1690 distinct local and global namespaces in the completer API. This
1690 distinct local and global namespaces in the completer API. This
1691 change allows us to properly handle completion with distinct
1691 change allows us to properly handle completion with distinct
1692 scopes, including in embedded instances (this had never really
1692 scopes, including in embedded instances (this had never really
1693 worked correctly).
1693 worked correctly).
1694
1694
1695 Note: this introduces a change in the constructor for
1695 Note: this introduces a change in the constructor for
1696 MagicCompleter, as a new global_namespace parameter is now the
1696 MagicCompleter, as a new global_namespace parameter is now the
1697 second argument (the others were bumped one position).
1697 second argument (the others were bumped one position).
1698
1698
1699 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
1699 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
1700
1700
1701 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1701 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1702 embedded instances (which can be done now thanks to Vivian's
1702 embedded instances (which can be done now thanks to Vivian's
1703 frame-handling fixes for pdb).
1703 frame-handling fixes for pdb).
1704 (InteractiveShell.__init__): Fix namespace handling problem in
1704 (InteractiveShell.__init__): Fix namespace handling problem in
1705 embedded instances. We were overwriting __main__ unconditionally,
1705 embedded instances. We were overwriting __main__ unconditionally,
1706 and this should only be done for 'full' (non-embedded) IPython;
1706 and this should only be done for 'full' (non-embedded) IPython;
1707 embedded instances must respect the caller's __main__. Thanks to
1707 embedded instances must respect the caller's __main__. Thanks to
1708 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
1708 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
1709
1709
1710 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
1710 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
1711
1711
1712 * setup.py: added download_url to setup(). This registers the
1712 * setup.py: added download_url to setup(). This registers the
1713 download address at PyPI, which is not only useful to humans
1713 download address at PyPI, which is not only useful to humans
1714 browsing the site, but is also picked up by setuptools (the Eggs
1714 browsing the site, but is also picked up by setuptools (the Eggs
1715 machinery). Thanks to Ville and R. Kern for the info/discussion
1715 machinery). Thanks to Ville and R. Kern for the info/discussion
1716 on this.
1716 on this.
1717
1717
1718 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
1718 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
1719
1719
1720 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
1720 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
1721 This brings a lot of nice functionality to the pdb mode, which now
1721 This brings a lot of nice functionality to the pdb mode, which now
1722 has tab-completion, syntax highlighting, and better stack handling
1722 has tab-completion, syntax highlighting, and better stack handling
1723 than before. Many thanks to Vivian De Smedt
1723 than before. Many thanks to Vivian De Smedt
1724 <vivian-AT-vdesmedt.com> for the original patches.
1724 <vivian-AT-vdesmedt.com> for the original patches.
1725
1725
1726 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
1726 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
1727
1727
1728 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
1728 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
1729 sequence to consistently accept the banner argument. The
1729 sequence to consistently accept the banner argument. The
1730 inconsistency was tripping SAGE, thanks to Gary Zablackis
1730 inconsistency was tripping SAGE, thanks to Gary Zablackis
1731 <gzabl-AT-yahoo.com> for the report.
1731 <gzabl-AT-yahoo.com> for the report.
1732
1732
1733 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1733 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1734
1734
1735 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1735 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1736 Fix bug where a naked 'alias' call in the ipythonrc file would
1736 Fix bug where a naked 'alias' call in the ipythonrc file would
1737 cause a crash. Bug reported by Jorgen Stenarson.
1737 cause a crash. Bug reported by Jorgen Stenarson.
1738
1738
1739 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1739 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
1740
1740
1741 * IPython/ipmaker.py (make_IPython): cleanups which should improve
1741 * IPython/ipmaker.py (make_IPython): cleanups which should improve
1742 startup time.
1742 startup time.
1743
1743
1744 * IPython/iplib.py (runcode): my globals 'fix' for embedded
1744 * IPython/iplib.py (runcode): my globals 'fix' for embedded
1745 instances had introduced a bug with globals in normal code. Now
1745 instances had introduced a bug with globals in normal code. Now
1746 it's working in all cases.
1746 it's working in all cases.
1747
1747
1748 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
1748 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
1749 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
1749 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
1750 has been introduced to set the default case sensitivity of the
1750 has been introduced to set the default case sensitivity of the
1751 searches. Users can still select either mode at runtime on a
1751 searches. Users can still select either mode at runtime on a
1752 per-search basis.
1752 per-search basis.
1753
1753
1754 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
1754 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
1755
1755
1756 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
1756 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
1757 attributes in wildcard searches for subclasses. Modified version
1757 attributes in wildcard searches for subclasses. Modified version
1758 of a patch by Jorgen.
1758 of a patch by Jorgen.
1759
1759
1760 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
1760 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
1761
1761
1762 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
1762 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
1763 embedded instances. I added a user_global_ns attribute to the
1763 embedded instances. I added a user_global_ns attribute to the
1764 InteractiveShell class to handle this.
1764 InteractiveShell class to handle this.
1765
1765
1766 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
1766 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
1767
1767
1768 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
1768 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
1769 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
1769 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
1770 (reported under win32, but may happen also in other platforms).
1770 (reported under win32, but may happen also in other platforms).
1771 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
1771 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
1772
1772
1773 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
1773 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
1774
1774
1775 * IPython/Magic.py (magic_psearch): new support for wildcard
1775 * IPython/Magic.py (magic_psearch): new support for wildcard
1776 patterns. Now, typing ?a*b will list all names which begin with a
1776 patterns. Now, typing ?a*b will list all names which begin with a
1777 and end in b, for example. The %psearch magic has full
1777 and end in b, for example. The %psearch magic has full
1778 docstrings. Many thanks to JΓΆrgen Stenarson
1778 docstrings. Many thanks to JΓΆrgen Stenarson
1779 <jorgen.stenarson-AT-bostream.nu>, author of the patches
1779 <jorgen.stenarson-AT-bostream.nu>, author of the patches
1780 implementing this functionality.
1780 implementing this functionality.
1781
1781
1782 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1782 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1783
1783
1784 * Manual: fixed long-standing annoyance of double-dashes (as in
1784 * Manual: fixed long-standing annoyance of double-dashes (as in
1785 --prefix=~, for example) being stripped in the HTML version. This
1785 --prefix=~, for example) being stripped in the HTML version. This
1786 is a latex2html bug, but a workaround was provided. Many thanks
1786 is a latex2html bug, but a workaround was provided. Many thanks
1787 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
1787 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
1788 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
1788 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
1789 rolling. This seemingly small issue had tripped a number of users
1789 rolling. This seemingly small issue had tripped a number of users
1790 when first installing, so I'm glad to see it gone.
1790 when first installing, so I'm glad to see it gone.
1791
1791
1792 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1792 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
1793
1793
1794 * IPython/Extensions/numeric_formats.py: fix missing import,
1794 * IPython/Extensions/numeric_formats.py: fix missing import,
1795 reported by Stephen Walton.
1795 reported by Stephen Walton.
1796
1796
1797 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
1797 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
1798
1798
1799 * IPython/demo.py: finish demo module, fully documented now.
1799 * IPython/demo.py: finish demo module, fully documented now.
1800
1800
1801 * IPython/genutils.py (file_read): simple little utility to read a
1801 * IPython/genutils.py (file_read): simple little utility to read a
1802 file and ensure it's closed afterwards.
1802 file and ensure it's closed afterwards.
1803
1803
1804 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
1804 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
1805
1805
1806 * IPython/demo.py (Demo.__init__): added support for individually
1806 * IPython/demo.py (Demo.__init__): added support for individually
1807 tagging blocks for automatic execution.
1807 tagging blocks for automatic execution.
1808
1808
1809 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
1809 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
1810 syntax-highlighted python sources, requested by John.
1810 syntax-highlighted python sources, requested by John.
1811
1811
1812 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
1812 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
1813
1813
1814 * IPython/demo.py (Demo.again): fix bug where again() blocks after
1814 * IPython/demo.py (Demo.again): fix bug where again() blocks after
1815 finishing.
1815 finishing.
1816
1816
1817 * IPython/genutils.py (shlex_split): moved from Magic to here,
1817 * IPython/genutils.py (shlex_split): moved from Magic to here,
1818 where all 2.2 compatibility stuff lives. I needed it for demo.py.
1818 where all 2.2 compatibility stuff lives. I needed it for demo.py.
1819
1819
1820 * IPython/demo.py (Demo.__init__): added support for silent
1820 * IPython/demo.py (Demo.__init__): added support for silent
1821 blocks, improved marks as regexps, docstrings written.
1821 blocks, improved marks as regexps, docstrings written.
1822 (Demo.__init__): better docstring, added support for sys.argv.
1822 (Demo.__init__): better docstring, added support for sys.argv.
1823
1823
1824 * IPython/genutils.py (marquee): little utility used by the demo
1824 * IPython/genutils.py (marquee): little utility used by the demo
1825 code, handy in general.
1825 code, handy in general.
1826
1826
1827 * IPython/demo.py (Demo.__init__): new class for interactive
1827 * IPython/demo.py (Demo.__init__): new class for interactive
1828 demos. Not documented yet, I just wrote it in a hurry for
1828 demos. Not documented yet, I just wrote it in a hurry for
1829 scipy'05. Will docstring later.
1829 scipy'05. Will docstring later.
1830
1830
1831 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
1831 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
1832
1832
1833 * IPython/Shell.py (sigint_handler): Drastic simplification which
1833 * IPython/Shell.py (sigint_handler): Drastic simplification which
1834 also seems to make Ctrl-C work correctly across threads! This is
1834 also seems to make Ctrl-C work correctly across threads! This is
1835 so simple, that I can't beleive I'd missed it before. Needs more
1835 so simple, that I can't beleive I'd missed it before. Needs more
1836 testing, though.
1836 testing, though.
1837 (KBINT): Never mind, revert changes. I'm sure I'd tried something
1837 (KBINT): Never mind, revert changes. I'm sure I'd tried something
1838 like this before...
1838 like this before...
1839
1839
1840 * IPython/genutils.py (get_home_dir): add protection against
1840 * IPython/genutils.py (get_home_dir): add protection against
1841 non-dirs in win32 registry.
1841 non-dirs in win32 registry.
1842
1842
1843 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
1843 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
1844 bug where dict was mutated while iterating (pysh crash).
1844 bug where dict was mutated while iterating (pysh crash).
1845
1845
1846 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
1846 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
1847
1847
1848 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
1848 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
1849 spurious newlines added by this routine. After a report by
1849 spurious newlines added by this routine. After a report by
1850 F. Mantegazza.
1850 F. Mantegazza.
1851
1851
1852 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
1852 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
1853
1853
1854 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
1854 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
1855 calls. These were a leftover from the GTK 1.x days, and can cause
1855 calls. These were a leftover from the GTK 1.x days, and can cause
1856 problems in certain cases (after a report by John Hunter).
1856 problems in certain cases (after a report by John Hunter).
1857
1857
1858 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
1858 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
1859 os.getcwd() fails at init time. Thanks to patch from David Remahl
1859 os.getcwd() fails at init time. Thanks to patch from David Remahl
1860 <chmod007-AT-mac.com>.
1860 <chmod007-AT-mac.com>.
1861 (InteractiveShell.__init__): prevent certain special magics from
1861 (InteractiveShell.__init__): prevent certain special magics from
1862 being shadowed by aliases. Closes
1862 being shadowed by aliases. Closes
1863 http://www.scipy.net/roundup/ipython/issue41.
1863 http://www.scipy.net/roundup/ipython/issue41.
1864
1864
1865 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
1865 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
1866
1866
1867 * IPython/iplib.py (InteractiveShell.complete): Added new
1867 * IPython/iplib.py (InteractiveShell.complete): Added new
1868 top-level completion method to expose the completion mechanism
1868 top-level completion method to expose the completion mechanism
1869 beyond readline-based environments.
1869 beyond readline-based environments.
1870
1870
1871 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
1871 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
1872
1872
1873 * tools/ipsvnc (svnversion): fix svnversion capture.
1873 * tools/ipsvnc (svnversion): fix svnversion capture.
1874
1874
1875 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
1875 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
1876 attribute to self, which was missing. Before, it was set by a
1876 attribute to self, which was missing. Before, it was set by a
1877 routine which in certain cases wasn't being called, so the
1877 routine which in certain cases wasn't being called, so the
1878 instance could end up missing the attribute. This caused a crash.
1878 instance could end up missing the attribute. This caused a crash.
1879 Closes http://www.scipy.net/roundup/ipython/issue40.
1879 Closes http://www.scipy.net/roundup/ipython/issue40.
1880
1880
1881 2005-08-16 Fernando Perez <fperez@colorado.edu>
1881 2005-08-16 Fernando Perez <fperez@colorado.edu>
1882
1882
1883 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
1883 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
1884 contains non-string attribute. Closes
1884 contains non-string attribute. Closes
1885 http://www.scipy.net/roundup/ipython/issue38.
1885 http://www.scipy.net/roundup/ipython/issue38.
1886
1886
1887 2005-08-14 Fernando Perez <fperez@colorado.edu>
1887 2005-08-14 Fernando Perez <fperez@colorado.edu>
1888
1888
1889 * tools/ipsvnc: Minor improvements, to add changeset info.
1889 * tools/ipsvnc: Minor improvements, to add changeset info.
1890
1890
1891 2005-08-12 Fernando Perez <fperez@colorado.edu>
1891 2005-08-12 Fernando Perez <fperez@colorado.edu>
1892
1892
1893 * IPython/iplib.py (runsource): remove self.code_to_run_src
1893 * IPython/iplib.py (runsource): remove self.code_to_run_src
1894 attribute. I realized this is nothing more than
1894 attribute. I realized this is nothing more than
1895 '\n'.join(self.buffer), and having the same data in two different
1895 '\n'.join(self.buffer), and having the same data in two different
1896 places is just asking for synchronization bugs. This may impact
1896 places is just asking for synchronization bugs. This may impact
1897 people who have custom exception handlers, so I need to warn
1897 people who have custom exception handlers, so I need to warn
1898 ipython-dev about it (F. Mantegazza may use them).
1898 ipython-dev about it (F. Mantegazza may use them).
1899
1899
1900 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
1900 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
1901
1901
1902 * IPython/genutils.py: fix 2.2 compatibility (generators)
1902 * IPython/genutils.py: fix 2.2 compatibility (generators)
1903
1903
1904 2005-07-18 Fernando Perez <fperez@colorado.edu>
1904 2005-07-18 Fernando Perez <fperez@colorado.edu>
1905
1905
1906 * IPython/genutils.py (get_home_dir): fix to help users with
1906 * IPython/genutils.py (get_home_dir): fix to help users with
1907 invalid $HOME under win32.
1907 invalid $HOME under win32.
1908
1908
1909 2005-07-17 Fernando Perez <fperez@colorado.edu>
1909 2005-07-17 Fernando Perez <fperez@colorado.edu>
1910
1910
1911 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
1911 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
1912 some old hacks and clean up a bit other routines; code should be
1912 some old hacks and clean up a bit other routines; code should be
1913 simpler and a bit faster.
1913 simpler and a bit faster.
1914
1914
1915 * IPython/iplib.py (interact): removed some last-resort attempts
1915 * IPython/iplib.py (interact): removed some last-resort attempts
1916 to survive broken stdout/stderr. That code was only making it
1916 to survive broken stdout/stderr. That code was only making it
1917 harder to abstract out the i/o (necessary for gui integration),
1917 harder to abstract out the i/o (necessary for gui integration),
1918 and the crashes it could prevent were extremely rare in practice
1918 and the crashes it could prevent were extremely rare in practice
1919 (besides being fully user-induced in a pretty violent manner).
1919 (besides being fully user-induced in a pretty violent manner).
1920
1920
1921 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
1921 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
1922 Nothing major yet, but the code is simpler to read; this should
1922 Nothing major yet, but the code is simpler to read; this should
1923 make it easier to do more serious modifications in the future.
1923 make it easier to do more serious modifications in the future.
1924
1924
1925 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
1925 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
1926 which broke in .15 (thanks to a report by Ville).
1926 which broke in .15 (thanks to a report by Ville).
1927
1927
1928 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
1928 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
1929 be quite correct, I know next to nothing about unicode). This
1929 be quite correct, I know next to nothing about unicode). This
1930 will allow unicode strings to be used in prompts, amongst other
1930 will allow unicode strings to be used in prompts, amongst other
1931 cases. It also will prevent ipython from crashing when unicode
1931 cases. It also will prevent ipython from crashing when unicode
1932 shows up unexpectedly in many places. If ascii encoding fails, we
1932 shows up unexpectedly in many places. If ascii encoding fails, we
1933 assume utf_8. Currently the encoding is not a user-visible
1933 assume utf_8. Currently the encoding is not a user-visible
1934 setting, though it could be made so if there is demand for it.
1934 setting, though it could be made so if there is demand for it.
1935
1935
1936 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
1936 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
1937
1937
1938 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
1938 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
1939
1939
1940 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
1940 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
1941
1941
1942 * IPython/genutils.py: Add 2.2 compatibility here, so all other
1942 * IPython/genutils.py: Add 2.2 compatibility here, so all other
1943 code can work transparently for 2.2/2.3.
1943 code can work transparently for 2.2/2.3.
1944
1944
1945 2005-07-16 Fernando Perez <fperez@colorado.edu>
1945 2005-07-16 Fernando Perez <fperez@colorado.edu>
1946
1946
1947 * IPython/ultraTB.py (ExceptionColors): Make a global variable
1947 * IPython/ultraTB.py (ExceptionColors): Make a global variable
1948 out of the color scheme table used for coloring exception
1948 out of the color scheme table used for coloring exception
1949 tracebacks. This allows user code to add new schemes at runtime.
1949 tracebacks. This allows user code to add new schemes at runtime.
1950 This is a minimally modified version of the patch at
1950 This is a minimally modified version of the patch at
1951 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
1951 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
1952 for the contribution.
1952 for the contribution.
1953
1953
1954 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
1954 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
1955 slightly modified version of the patch in
1955 slightly modified version of the patch in
1956 http://www.scipy.net/roundup/ipython/issue34, which also allows me
1956 http://www.scipy.net/roundup/ipython/issue34, which also allows me
1957 to remove the previous try/except solution (which was costlier).
1957 to remove the previous try/except solution (which was costlier).
1958 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
1958 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
1959
1959
1960 2005-06-08 Fernando Perez <fperez@colorado.edu>
1960 2005-06-08 Fernando Perez <fperez@colorado.edu>
1961
1961
1962 * IPython/iplib.py (write/write_err): Add methods to abstract all
1962 * IPython/iplib.py (write/write_err): Add methods to abstract all
1963 I/O a bit more.
1963 I/O a bit more.
1964
1964
1965 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
1965 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
1966 warning, reported by Aric Hagberg, fix by JD Hunter.
1966 warning, reported by Aric Hagberg, fix by JD Hunter.
1967
1967
1968 2005-06-02 *** Released version 0.6.15
1968 2005-06-02 *** Released version 0.6.15
1969
1969
1970 2005-06-01 Fernando Perez <fperez@colorado.edu>
1970 2005-06-01 Fernando Perez <fperez@colorado.edu>
1971
1971
1972 * IPython/iplib.py (MagicCompleter.file_matches): Fix
1972 * IPython/iplib.py (MagicCompleter.file_matches): Fix
1973 tab-completion of filenames within open-quoted strings. Note that
1973 tab-completion of filenames within open-quoted strings. Note that
1974 this requires that in ~/.ipython/ipythonrc, users change the
1974 this requires that in ~/.ipython/ipythonrc, users change the
1975 readline delimiters configuration to read:
1975 readline delimiters configuration to read:
1976
1976
1977 readline_remove_delims -/~
1977 readline_remove_delims -/~
1978
1978
1979
1979
1980 2005-05-31 *** Released version 0.6.14
1980 2005-05-31 *** Released version 0.6.14
1981
1981
1982 2005-05-29 Fernando Perez <fperez@colorado.edu>
1982 2005-05-29 Fernando Perez <fperez@colorado.edu>
1983
1983
1984 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
1984 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
1985 with files not on the filesystem. Reported by Eliyahu Sandler
1985 with files not on the filesystem. Reported by Eliyahu Sandler
1986 <eli@gondolin.net>
1986 <eli@gondolin.net>
1987
1987
1988 2005-05-22 Fernando Perez <fperez@colorado.edu>
1988 2005-05-22 Fernando Perez <fperez@colorado.edu>
1989
1989
1990 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
1990 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
1991 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
1991 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
1992
1992
1993 2005-05-19 Fernando Perez <fperez@colorado.edu>
1993 2005-05-19 Fernando Perez <fperez@colorado.edu>
1994
1994
1995 * IPython/iplib.py (safe_execfile): close a file which could be
1995 * IPython/iplib.py (safe_execfile): close a file which could be
1996 left open (causing problems in win32, which locks open files).
1996 left open (causing problems in win32, which locks open files).
1997 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
1997 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
1998
1998
1999 2005-05-18 Fernando Perez <fperez@colorado.edu>
1999 2005-05-18 Fernando Perez <fperez@colorado.edu>
2000
2000
2001 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2001 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2002 keyword arguments correctly to safe_execfile().
2002 keyword arguments correctly to safe_execfile().
2003
2003
2004 2005-05-13 Fernando Perez <fperez@colorado.edu>
2004 2005-05-13 Fernando Perez <fperez@colorado.edu>
2005
2005
2006 * ipython.1: Added info about Qt to manpage, and threads warning
2006 * ipython.1: Added info about Qt to manpage, and threads warning
2007 to usage page (invoked with --help).
2007 to usage page (invoked with --help).
2008
2008
2009 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2009 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2010 new matcher (it goes at the end of the priority list) to do
2010 new matcher (it goes at the end of the priority list) to do
2011 tab-completion on named function arguments. Submitted by George
2011 tab-completion on named function arguments. Submitted by George
2012 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2012 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2013 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2013 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2014 for more details.
2014 for more details.
2015
2015
2016 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2016 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2017 SystemExit exceptions in the script being run. Thanks to a report
2017 SystemExit exceptions in the script being run. Thanks to a report
2018 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2018 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2019 producing very annoying behavior when running unit tests.
2019 producing very annoying behavior when running unit tests.
2020
2020
2021 2005-05-12 Fernando Perez <fperez@colorado.edu>
2021 2005-05-12 Fernando Perez <fperez@colorado.edu>
2022
2022
2023 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2023 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2024 which I'd broken (again) due to a changed regexp. In the process,
2024 which I'd broken (again) due to a changed regexp. In the process,
2025 added ';' as an escape to auto-quote the whole line without
2025 added ';' as an escape to auto-quote the whole line without
2026 splitting its arguments. Thanks to a report by Jerry McRae
2026 splitting its arguments. Thanks to a report by Jerry McRae
2027 <qrs0xyc02-AT-sneakemail.com>.
2027 <qrs0xyc02-AT-sneakemail.com>.
2028
2028
2029 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2029 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2030 possible crashes caused by a TokenError. Reported by Ed Schofield
2030 possible crashes caused by a TokenError. Reported by Ed Schofield
2031 <schofield-AT-ftw.at>.
2031 <schofield-AT-ftw.at>.
2032
2032
2033 2005-05-06 Fernando Perez <fperez@colorado.edu>
2033 2005-05-06 Fernando Perez <fperez@colorado.edu>
2034
2034
2035 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2035 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2036
2036
2037 2005-04-29 Fernando Perez <fperez@colorado.edu>
2037 2005-04-29 Fernando Perez <fperez@colorado.edu>
2038
2038
2039 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2039 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2040 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2040 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2041 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2041 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2042 which provides support for Qt interactive usage (similar to the
2042 which provides support for Qt interactive usage (similar to the
2043 existing one for WX and GTK). This had been often requested.
2043 existing one for WX and GTK). This had been often requested.
2044
2044
2045 2005-04-14 *** Released version 0.6.13
2045 2005-04-14 *** Released version 0.6.13
2046
2046
2047 2005-04-08 Fernando Perez <fperez@colorado.edu>
2047 2005-04-08 Fernando Perez <fperez@colorado.edu>
2048
2048
2049 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2049 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2050 from _ofind, which gets called on almost every input line. Now,
2050 from _ofind, which gets called on almost every input line. Now,
2051 we only try to get docstrings if they are actually going to be
2051 we only try to get docstrings if they are actually going to be
2052 used (the overhead of fetching unnecessary docstrings can be
2052 used (the overhead of fetching unnecessary docstrings can be
2053 noticeable for certain objects, such as Pyro proxies).
2053 noticeable for certain objects, such as Pyro proxies).
2054
2054
2055 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2055 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2056 for completers. For some reason I had been passing them the state
2056 for completers. For some reason I had been passing them the state
2057 variable, which completers never actually need, and was in
2057 variable, which completers never actually need, and was in
2058 conflict with the rlcompleter API. Custom completers ONLY need to
2058 conflict with the rlcompleter API. Custom completers ONLY need to
2059 take the text parameter.
2059 take the text parameter.
2060
2060
2061 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2061 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2062 work correctly in pysh. I've also moved all the logic which used
2062 work correctly in pysh. I've also moved all the logic which used
2063 to be in pysh.py here, which will prevent problems with future
2063 to be in pysh.py here, which will prevent problems with future
2064 upgrades. However, this time I must warn users to update their
2064 upgrades. However, this time I must warn users to update their
2065 pysh profile to include the line
2065 pysh profile to include the line
2066
2066
2067 import_all IPython.Extensions.InterpreterExec
2067 import_all IPython.Extensions.InterpreterExec
2068
2068
2069 because otherwise things won't work for them. They MUST also
2069 because otherwise things won't work for them. They MUST also
2070 delete pysh.py and the line
2070 delete pysh.py and the line
2071
2071
2072 execfile pysh.py
2072 execfile pysh.py
2073
2073
2074 from their ipythonrc-pysh.
2074 from their ipythonrc-pysh.
2075
2075
2076 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2076 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2077 robust in the face of objects whose dir() returns non-strings
2077 robust in the face of objects whose dir() returns non-strings
2078 (which it shouldn't, but some broken libs like ITK do). Thanks to
2078 (which it shouldn't, but some broken libs like ITK do). Thanks to
2079 a patch by John Hunter (implemented differently, though). Also
2079 a patch by John Hunter (implemented differently, though). Also
2080 minor improvements by using .extend instead of + on lists.
2080 minor improvements by using .extend instead of + on lists.
2081
2081
2082 * pysh.py:
2082 * pysh.py:
2083
2083
2084 2005-04-06 Fernando Perez <fperez@colorado.edu>
2084 2005-04-06 Fernando Perez <fperez@colorado.edu>
2085
2085
2086 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2086 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2087 by default, so that all users benefit from it. Those who don't
2087 by default, so that all users benefit from it. Those who don't
2088 want it can still turn it off.
2088 want it can still turn it off.
2089
2089
2090 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2090 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2091 config file, I'd forgotten about this, so users were getting it
2091 config file, I'd forgotten about this, so users were getting it
2092 off by default.
2092 off by default.
2093
2093
2094 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2094 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2095 consistency. Now magics can be called in multiline statements,
2095 consistency. Now magics can be called in multiline statements,
2096 and python variables can be expanded in magic calls via $var.
2096 and python variables can be expanded in magic calls via $var.
2097 This makes the magic system behave just like aliases or !system
2097 This makes the magic system behave just like aliases or !system
2098 calls.
2098 calls.
2099
2099
2100 2005-03-28 Fernando Perez <fperez@colorado.edu>
2100 2005-03-28 Fernando Perez <fperez@colorado.edu>
2101
2101
2102 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2102 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2103 expensive string additions for building command. Add support for
2103 expensive string additions for building command. Add support for
2104 trailing ';' when autocall is used.
2104 trailing ';' when autocall is used.
2105
2105
2106 2005-03-26 Fernando Perez <fperez@colorado.edu>
2106 2005-03-26 Fernando Perez <fperez@colorado.edu>
2107
2107
2108 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2108 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2109 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2109 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2110 ipython.el robust against prompts with any number of spaces
2110 ipython.el robust against prompts with any number of spaces
2111 (including 0) after the ':' character.
2111 (including 0) after the ':' character.
2112
2112
2113 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2113 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2114 continuation prompt, which misled users to think the line was
2114 continuation prompt, which misled users to think the line was
2115 already indented. Closes debian Bug#300847, reported to me by
2115 already indented. Closes debian Bug#300847, reported to me by
2116 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2116 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2117
2117
2118 2005-03-23 Fernando Perez <fperez@colorado.edu>
2118 2005-03-23 Fernando Perez <fperez@colorado.edu>
2119
2119
2120 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2120 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2121 properly aligned if they have embedded newlines.
2121 properly aligned if they have embedded newlines.
2122
2122
2123 * IPython/iplib.py (runlines): Add a public method to expose
2123 * IPython/iplib.py (runlines): Add a public method to expose
2124 IPython's code execution machinery, so that users can run strings
2124 IPython's code execution machinery, so that users can run strings
2125 as if they had been typed at the prompt interactively.
2125 as if they had been typed at the prompt interactively.
2126 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2126 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2127 methods which can call the system shell, but with python variable
2127 methods which can call the system shell, but with python variable
2128 expansion. The three such methods are: __IPYTHON__.system,
2128 expansion. The three such methods are: __IPYTHON__.system,
2129 .getoutput and .getoutputerror. These need to be documented in a
2129 .getoutput and .getoutputerror. These need to be documented in a
2130 'public API' section (to be written) of the manual.
2130 'public API' section (to be written) of the manual.
2131
2131
2132 2005-03-20 Fernando Perez <fperez@colorado.edu>
2132 2005-03-20 Fernando Perez <fperez@colorado.edu>
2133
2133
2134 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2134 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2135 for custom exception handling. This is quite powerful, and it
2135 for custom exception handling. This is quite powerful, and it
2136 allows for user-installable exception handlers which can trap
2136 allows for user-installable exception handlers which can trap
2137 custom exceptions at runtime and treat them separately from
2137 custom exceptions at runtime and treat them separately from
2138 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2138 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2139 Mantegazza <mantegazza-AT-ill.fr>.
2139 Mantegazza <mantegazza-AT-ill.fr>.
2140 (InteractiveShell.set_custom_completer): public API function to
2140 (InteractiveShell.set_custom_completer): public API function to
2141 add new completers at runtime.
2141 add new completers at runtime.
2142
2142
2143 2005-03-19 Fernando Perez <fperez@colorado.edu>
2143 2005-03-19 Fernando Perez <fperez@colorado.edu>
2144
2144
2145 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2145 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2146 allow objects which provide their docstrings via non-standard
2146 allow objects which provide their docstrings via non-standard
2147 mechanisms (like Pyro proxies) to still be inspected by ipython's
2147 mechanisms (like Pyro proxies) to still be inspected by ipython's
2148 ? system.
2148 ? system.
2149
2149
2150 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2150 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2151 automatic capture system. I tried quite hard to make it work
2151 automatic capture system. I tried quite hard to make it work
2152 reliably, and simply failed. I tried many combinations with the
2152 reliably, and simply failed. I tried many combinations with the
2153 subprocess module, but eventually nothing worked in all needed
2153 subprocess module, but eventually nothing worked in all needed
2154 cases (not blocking stdin for the child, duplicating stdout
2154 cases (not blocking stdin for the child, duplicating stdout
2155 without blocking, etc). The new %sc/%sx still do capture to these
2155 without blocking, etc). The new %sc/%sx still do capture to these
2156 magical list/string objects which make shell use much more
2156 magical list/string objects which make shell use much more
2157 conveninent, so not all is lost.
2157 conveninent, so not all is lost.
2158
2158
2159 XXX - FIX MANUAL for the change above!
2159 XXX - FIX MANUAL for the change above!
2160
2160
2161 (runsource): I copied code.py's runsource() into ipython to modify
2161 (runsource): I copied code.py's runsource() into ipython to modify
2162 it a bit. Now the code object and source to be executed are
2162 it a bit. Now the code object and source to be executed are
2163 stored in ipython. This makes this info accessible to third-party
2163 stored in ipython. This makes this info accessible to third-party
2164 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2164 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2165 Mantegazza <mantegazza-AT-ill.fr>.
2165 Mantegazza <mantegazza-AT-ill.fr>.
2166
2166
2167 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2167 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2168 history-search via readline (like C-p/C-n). I'd wanted this for a
2168 history-search via readline (like C-p/C-n). I'd wanted this for a
2169 long time, but only recently found out how to do it. For users
2169 long time, but only recently found out how to do it. For users
2170 who already have their ipythonrc files made and want this, just
2170 who already have their ipythonrc files made and want this, just
2171 add:
2171 add:
2172
2172
2173 readline_parse_and_bind "\e[A": history-search-backward
2173 readline_parse_and_bind "\e[A": history-search-backward
2174 readline_parse_and_bind "\e[B": history-search-forward
2174 readline_parse_and_bind "\e[B": history-search-forward
2175
2175
2176 2005-03-18 Fernando Perez <fperez@colorado.edu>
2176 2005-03-18 Fernando Perez <fperez@colorado.edu>
2177
2177
2178 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2178 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2179 LSString and SList classes which allow transparent conversions
2179 LSString and SList classes which allow transparent conversions
2180 between list mode and whitespace-separated string.
2180 between list mode and whitespace-separated string.
2181 (magic_r): Fix recursion problem in %r.
2181 (magic_r): Fix recursion problem in %r.
2182
2182
2183 * IPython/genutils.py (LSString): New class to be used for
2183 * IPython/genutils.py (LSString): New class to be used for
2184 automatic storage of the results of all alias/system calls in _o
2184 automatic storage of the results of all alias/system calls in _o
2185 and _e (stdout/err). These provide a .l/.list attribute which
2185 and _e (stdout/err). These provide a .l/.list attribute which
2186 does automatic splitting on newlines. This means that for most
2186 does automatic splitting on newlines. This means that for most
2187 uses, you'll never need to do capturing of output with %sc/%sx
2187 uses, you'll never need to do capturing of output with %sc/%sx
2188 anymore, since ipython keeps this always done for you. Note that
2188 anymore, since ipython keeps this always done for you. Note that
2189 only the LAST results are stored, the _o/e variables are
2189 only the LAST results are stored, the _o/e variables are
2190 overwritten on each call. If you need to save their contents
2190 overwritten on each call. If you need to save their contents
2191 further, simply bind them to any other name.
2191 further, simply bind them to any other name.
2192
2192
2193 2005-03-17 Fernando Perez <fperez@colorado.edu>
2193 2005-03-17 Fernando Perez <fperez@colorado.edu>
2194
2194
2195 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2195 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2196 prompt namespace handling.
2196 prompt namespace handling.
2197
2197
2198 2005-03-16 Fernando Perez <fperez@colorado.edu>
2198 2005-03-16 Fernando Perez <fperez@colorado.edu>
2199
2199
2200 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2200 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2201 classic prompts to be '>>> ' (final space was missing, and it
2201 classic prompts to be '>>> ' (final space was missing, and it
2202 trips the emacs python mode).
2202 trips the emacs python mode).
2203 (BasePrompt.__str__): Added safe support for dynamic prompt
2203 (BasePrompt.__str__): Added safe support for dynamic prompt
2204 strings. Now you can set your prompt string to be '$x', and the
2204 strings. Now you can set your prompt string to be '$x', and the
2205 value of x will be printed from your interactive namespace. The
2205 value of x will be printed from your interactive namespace. The
2206 interpolation syntax includes the full Itpl support, so
2206 interpolation syntax includes the full Itpl support, so
2207 ${foo()+x+bar()} is a valid prompt string now, and the function
2207 ${foo()+x+bar()} is a valid prompt string now, and the function
2208 calls will be made at runtime.
2208 calls will be made at runtime.
2209
2209
2210 2005-03-15 Fernando Perez <fperez@colorado.edu>
2210 2005-03-15 Fernando Perez <fperez@colorado.edu>
2211
2211
2212 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2212 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2213 avoid name clashes in pylab. %hist still works, it just forwards
2213 avoid name clashes in pylab. %hist still works, it just forwards
2214 the call to %history.
2214 the call to %history.
2215
2215
2216 2005-03-02 *** Released version 0.6.12
2216 2005-03-02 *** Released version 0.6.12
2217
2217
2218 2005-03-02 Fernando Perez <fperez@colorado.edu>
2218 2005-03-02 Fernando Perez <fperez@colorado.edu>
2219
2219
2220 * IPython/iplib.py (handle_magic): log magic calls properly as
2220 * IPython/iplib.py (handle_magic): log magic calls properly as
2221 ipmagic() function calls.
2221 ipmagic() function calls.
2222
2222
2223 * IPython/Magic.py (magic_time): Improved %time to support
2223 * IPython/Magic.py (magic_time): Improved %time to support
2224 statements and provide wall-clock as well as CPU time.
2224 statements and provide wall-clock as well as CPU time.
2225
2225
2226 2005-02-27 Fernando Perez <fperez@colorado.edu>
2226 2005-02-27 Fernando Perez <fperez@colorado.edu>
2227
2227
2228 * IPython/hooks.py: New hooks module, to expose user-modifiable
2228 * IPython/hooks.py: New hooks module, to expose user-modifiable
2229 IPython functionality in a clean manner. For now only the editor
2229 IPython functionality in a clean manner. For now only the editor
2230 hook is actually written, and other thigns which I intend to turn
2230 hook is actually written, and other thigns which I intend to turn
2231 into proper hooks aren't yet there. The display and prefilter
2231 into proper hooks aren't yet there. The display and prefilter
2232 stuff, for example, should be hooks. But at least now the
2232 stuff, for example, should be hooks. But at least now the
2233 framework is in place, and the rest can be moved here with more
2233 framework is in place, and the rest can be moved here with more
2234 time later. IPython had had a .hooks variable for a long time for
2234 time later. IPython had had a .hooks variable for a long time for
2235 this purpose, but I'd never actually used it for anything.
2235 this purpose, but I'd never actually used it for anything.
2236
2236
2237 2005-02-26 Fernando Perez <fperez@colorado.edu>
2237 2005-02-26 Fernando Perez <fperez@colorado.edu>
2238
2238
2239 * IPython/ipmaker.py (make_IPython): make the default ipython
2239 * IPython/ipmaker.py (make_IPython): make the default ipython
2240 directory be called _ipython under win32, to follow more the
2240 directory be called _ipython under win32, to follow more the
2241 naming peculiarities of that platform (where buggy software like
2241 naming peculiarities of that platform (where buggy software like
2242 Visual Sourcesafe breaks with .named directories). Reported by
2242 Visual Sourcesafe breaks with .named directories). Reported by
2243 Ville Vainio.
2243 Ville Vainio.
2244
2244
2245 2005-02-23 Fernando Perez <fperez@colorado.edu>
2245 2005-02-23 Fernando Perez <fperez@colorado.edu>
2246
2246
2247 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2247 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2248 auto_aliases for win32 which were causing problems. Users can
2248 auto_aliases for win32 which were causing problems. Users can
2249 define the ones they personally like.
2249 define the ones they personally like.
2250
2250
2251 2005-02-21 Fernando Perez <fperez@colorado.edu>
2251 2005-02-21 Fernando Perez <fperez@colorado.edu>
2252
2252
2253 * IPython/Magic.py (magic_time): new magic to time execution of
2253 * IPython/Magic.py (magic_time): new magic to time execution of
2254 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2254 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2255
2255
2256 2005-02-19 Fernando Perez <fperez@colorado.edu>
2256 2005-02-19 Fernando Perez <fperez@colorado.edu>
2257
2257
2258 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2258 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2259 into keys (for prompts, for example).
2259 into keys (for prompts, for example).
2260
2260
2261 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2261 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2262 prompts in case users want them. This introduces a small behavior
2262 prompts in case users want them. This introduces a small behavior
2263 change: ipython does not automatically add a space to all prompts
2263 change: ipython does not automatically add a space to all prompts
2264 anymore. To get the old prompts with a space, users should add it
2264 anymore. To get the old prompts with a space, users should add it
2265 manually to their ipythonrc file, so for example prompt_in1 should
2265 manually to their ipythonrc file, so for example prompt_in1 should
2266 now read 'In [\#]: ' instead of 'In [\#]:'.
2266 now read 'In [\#]: ' instead of 'In [\#]:'.
2267 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2267 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2268 file) to control left-padding of secondary prompts.
2268 file) to control left-padding of secondary prompts.
2269
2269
2270 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2270 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2271 the profiler can't be imported. Fix for Debian, which removed
2271 the profiler can't be imported. Fix for Debian, which removed
2272 profile.py because of License issues. I applied a slightly
2272 profile.py because of License issues. I applied a slightly
2273 modified version of the original Debian patch at
2273 modified version of the original Debian patch at
2274 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2274 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2275
2275
2276 2005-02-17 Fernando Perez <fperez@colorado.edu>
2276 2005-02-17 Fernando Perez <fperez@colorado.edu>
2277
2277
2278 * IPython/genutils.py (native_line_ends): Fix bug which would
2278 * IPython/genutils.py (native_line_ends): Fix bug which would
2279 cause improper line-ends under win32 b/c I was not opening files
2279 cause improper line-ends under win32 b/c I was not opening files
2280 in binary mode. Bug report and fix thanks to Ville.
2280 in binary mode. Bug report and fix thanks to Ville.
2281
2281
2282 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2282 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2283 trying to catch spurious foo[1] autocalls. My fix actually broke
2283 trying to catch spurious foo[1] autocalls. My fix actually broke
2284 ',/' autoquote/call with explicit escape (bad regexp).
2284 ',/' autoquote/call with explicit escape (bad regexp).
2285
2285
2286 2005-02-15 *** Released version 0.6.11
2286 2005-02-15 *** Released version 0.6.11
2287
2287
2288 2005-02-14 Fernando Perez <fperez@colorado.edu>
2288 2005-02-14 Fernando Perez <fperez@colorado.edu>
2289
2289
2290 * IPython/background_jobs.py: New background job management
2290 * IPython/background_jobs.py: New background job management
2291 subsystem. This is implemented via a new set of classes, and
2291 subsystem. This is implemented via a new set of classes, and
2292 IPython now provides a builtin 'jobs' object for background job
2292 IPython now provides a builtin 'jobs' object for background job
2293 execution. A convenience %bg magic serves as a lightweight
2293 execution. A convenience %bg magic serves as a lightweight
2294 frontend for starting the more common type of calls. This was
2294 frontend for starting the more common type of calls. This was
2295 inspired by discussions with B. Granger and the BackgroundCommand
2295 inspired by discussions with B. Granger and the BackgroundCommand
2296 class described in the book Python Scripting for Computational
2296 class described in the book Python Scripting for Computational
2297 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2297 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2298 (although ultimately no code from this text was used, as IPython's
2298 (although ultimately no code from this text was used, as IPython's
2299 system is a separate implementation).
2299 system is a separate implementation).
2300
2300
2301 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2301 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2302 to control the completion of single/double underscore names
2302 to control the completion of single/double underscore names
2303 separately. As documented in the example ipytonrc file, the
2303 separately. As documented in the example ipytonrc file, the
2304 readline_omit__names variable can now be set to 2, to omit even
2304 readline_omit__names variable can now be set to 2, to omit even
2305 single underscore names. Thanks to a patch by Brian Wong
2305 single underscore names. Thanks to a patch by Brian Wong
2306 <BrianWong-AT-AirgoNetworks.Com>.
2306 <BrianWong-AT-AirgoNetworks.Com>.
2307 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2307 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2308 be autocalled as foo([1]) if foo were callable. A problem for
2308 be autocalled as foo([1]) if foo were callable. A problem for
2309 things which are both callable and implement __getitem__.
2309 things which are both callable and implement __getitem__.
2310 (init_readline): Fix autoindentation for win32. Thanks to a patch
2310 (init_readline): Fix autoindentation for win32. Thanks to a patch
2311 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2311 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2312
2312
2313 2005-02-12 Fernando Perez <fperez@colorado.edu>
2313 2005-02-12 Fernando Perez <fperez@colorado.edu>
2314
2314
2315 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2315 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2316 which I had written long ago to sort out user error messages which
2316 which I had written long ago to sort out user error messages which
2317 may occur during startup. This seemed like a good idea initially,
2317 may occur during startup. This seemed like a good idea initially,
2318 but it has proven a disaster in retrospect. I don't want to
2318 but it has proven a disaster in retrospect. I don't want to
2319 change much code for now, so my fix is to set the internal 'debug'
2319 change much code for now, so my fix is to set the internal 'debug'
2320 flag to true everywhere, whose only job was precisely to control
2320 flag to true everywhere, whose only job was precisely to control
2321 this subsystem. This closes issue 28 (as well as avoiding all
2321 this subsystem. This closes issue 28 (as well as avoiding all
2322 sorts of strange hangups which occur from time to time).
2322 sorts of strange hangups which occur from time to time).
2323
2323
2324 2005-02-07 Fernando Perez <fperez@colorado.edu>
2324 2005-02-07 Fernando Perez <fperez@colorado.edu>
2325
2325
2326 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2326 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2327 previous call produced a syntax error.
2327 previous call produced a syntax error.
2328
2328
2329 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2329 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2330 classes without constructor.
2330 classes without constructor.
2331
2331
2332 2005-02-06 Fernando Perez <fperez@colorado.edu>
2332 2005-02-06 Fernando Perez <fperez@colorado.edu>
2333
2333
2334 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2334 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2335 completions with the results of each matcher, so we return results
2335 completions with the results of each matcher, so we return results
2336 to the user from all namespaces. This breaks with ipython
2336 to the user from all namespaces. This breaks with ipython
2337 tradition, but I think it's a nicer behavior. Now you get all
2337 tradition, but I think it's a nicer behavior. Now you get all
2338 possible completions listed, from all possible namespaces (python,
2338 possible completions listed, from all possible namespaces (python,
2339 filesystem, magics...) After a request by John Hunter
2339 filesystem, magics...) After a request by John Hunter
2340 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2340 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2341
2341
2342 2005-02-05 Fernando Perez <fperez@colorado.edu>
2342 2005-02-05 Fernando Perez <fperez@colorado.edu>
2343
2343
2344 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2344 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2345 the call had quote characters in it (the quotes were stripped).
2345 the call had quote characters in it (the quotes were stripped).
2346
2346
2347 2005-01-31 Fernando Perez <fperez@colorado.edu>
2347 2005-01-31 Fernando Perez <fperez@colorado.edu>
2348
2348
2349 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2349 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2350 Itpl.itpl() to make the code more robust against psyco
2350 Itpl.itpl() to make the code more robust against psyco
2351 optimizations.
2351 optimizations.
2352
2352
2353 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2353 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2354 of causing an exception. Quicker, cleaner.
2354 of causing an exception. Quicker, cleaner.
2355
2355
2356 2005-01-28 Fernando Perez <fperez@colorado.edu>
2356 2005-01-28 Fernando Perez <fperez@colorado.edu>
2357
2357
2358 * scripts/ipython_win_post_install.py (install): hardcode
2358 * scripts/ipython_win_post_install.py (install): hardcode
2359 sys.prefix+'python.exe' as the executable path. It turns out that
2359 sys.prefix+'python.exe' as the executable path. It turns out that
2360 during the post-installation run, sys.executable resolves to the
2360 during the post-installation run, sys.executable resolves to the
2361 name of the binary installer! I should report this as a distutils
2361 name of the binary installer! I should report this as a distutils
2362 bug, I think. I updated the .10 release with this tiny fix, to
2362 bug, I think. I updated the .10 release with this tiny fix, to
2363 avoid annoying the lists further.
2363 avoid annoying the lists further.
2364
2364
2365 2005-01-27 *** Released version 0.6.10
2365 2005-01-27 *** Released version 0.6.10
2366
2366
2367 2005-01-27 Fernando Perez <fperez@colorado.edu>
2367 2005-01-27 Fernando Perez <fperez@colorado.edu>
2368
2368
2369 * IPython/numutils.py (norm): Added 'inf' as optional name for
2369 * IPython/numutils.py (norm): Added 'inf' as optional name for
2370 L-infinity norm, included references to mathworld.com for vector
2370 L-infinity norm, included references to mathworld.com for vector
2371 norm definitions.
2371 norm definitions.
2372 (amin/amax): added amin/amax for array min/max. Similar to what
2372 (amin/amax): added amin/amax for array min/max. Similar to what
2373 pylab ships with after the recent reorganization of names.
2373 pylab ships with after the recent reorganization of names.
2374 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2374 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2375
2375
2376 * ipython.el: committed Alex's recent fixes and improvements.
2376 * ipython.el: committed Alex's recent fixes and improvements.
2377 Tested with python-mode from CVS, and it looks excellent. Since
2377 Tested with python-mode from CVS, and it looks excellent. Since
2378 python-mode hasn't released anything in a while, I'm temporarily
2378 python-mode hasn't released anything in a while, I'm temporarily
2379 putting a copy of today's CVS (v 4.70) of python-mode in:
2379 putting a copy of today's CVS (v 4.70) of python-mode in:
2380 http://ipython.scipy.org/tmp/python-mode.el
2380 http://ipython.scipy.org/tmp/python-mode.el
2381
2381
2382 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2382 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2383 sys.executable for the executable name, instead of assuming it's
2383 sys.executable for the executable name, instead of assuming it's
2384 called 'python.exe' (the post-installer would have produced broken
2384 called 'python.exe' (the post-installer would have produced broken
2385 setups on systems with a differently named python binary).
2385 setups on systems with a differently named python binary).
2386
2386
2387 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2387 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2388 references to os.linesep, to make the code more
2388 references to os.linesep, to make the code more
2389 platform-independent. This is also part of the win32 coloring
2389 platform-independent. This is also part of the win32 coloring
2390 fixes.
2390 fixes.
2391
2391
2392 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2392 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2393 lines, which actually cause coloring bugs because the length of
2393 lines, which actually cause coloring bugs because the length of
2394 the line is very difficult to correctly compute with embedded
2394 the line is very difficult to correctly compute with embedded
2395 escapes. This was the source of all the coloring problems under
2395 escapes. This was the source of all the coloring problems under
2396 Win32. I think that _finally_, Win32 users have a properly
2396 Win32. I think that _finally_, Win32 users have a properly
2397 working ipython in all respects. This would never have happened
2397 working ipython in all respects. This would never have happened
2398 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2398 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2399
2399
2400 2005-01-26 *** Released version 0.6.9
2400 2005-01-26 *** Released version 0.6.9
2401
2401
2402 2005-01-25 Fernando Perez <fperez@colorado.edu>
2402 2005-01-25 Fernando Perez <fperez@colorado.edu>
2403
2403
2404 * setup.py: finally, we have a true Windows installer, thanks to
2404 * setup.py: finally, we have a true Windows installer, thanks to
2405 the excellent work of Viktor Ransmayr
2405 the excellent work of Viktor Ransmayr
2406 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2406 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2407 Windows users. The setup routine is quite a bit cleaner thanks to
2407 Windows users. The setup routine is quite a bit cleaner thanks to
2408 this, and the post-install script uses the proper functions to
2408 this, and the post-install script uses the proper functions to
2409 allow a clean de-installation using the standard Windows Control
2409 allow a clean de-installation using the standard Windows Control
2410 Panel.
2410 Panel.
2411
2411
2412 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2412 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2413 environment variable under all OSes (including win32) if
2413 environment variable under all OSes (including win32) if
2414 available. This will give consistency to win32 users who have set
2414 available. This will give consistency to win32 users who have set
2415 this variable for any reason. If os.environ['HOME'] fails, the
2415 this variable for any reason. If os.environ['HOME'] fails, the
2416 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2416 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2417
2417
2418 2005-01-24 Fernando Perez <fperez@colorado.edu>
2418 2005-01-24 Fernando Perez <fperez@colorado.edu>
2419
2419
2420 * IPython/numutils.py (empty_like): add empty_like(), similar to
2420 * IPython/numutils.py (empty_like): add empty_like(), similar to
2421 zeros_like() but taking advantage of the new empty() Numeric routine.
2421 zeros_like() but taking advantage of the new empty() Numeric routine.
2422
2422
2423 2005-01-23 *** Released version 0.6.8
2423 2005-01-23 *** Released version 0.6.8
2424
2424
2425 2005-01-22 Fernando Perez <fperez@colorado.edu>
2425 2005-01-22 Fernando Perez <fperez@colorado.edu>
2426
2426
2427 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2427 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2428 automatic show() calls. After discussing things with JDH, it
2428 automatic show() calls. After discussing things with JDH, it
2429 turns out there are too many corner cases where this can go wrong.
2429 turns out there are too many corner cases where this can go wrong.
2430 It's best not to try to be 'too smart', and simply have ipython
2430 It's best not to try to be 'too smart', and simply have ipython
2431 reproduce as much as possible the default behavior of a normal
2431 reproduce as much as possible the default behavior of a normal
2432 python shell.
2432 python shell.
2433
2433
2434 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2434 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2435 line-splitting regexp and _prefilter() to avoid calling getattr()
2435 line-splitting regexp and _prefilter() to avoid calling getattr()
2436 on assignments. This closes
2436 on assignments. This closes
2437 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2437 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2438 readline uses getattr(), so a simple <TAB> keypress is still
2438 readline uses getattr(), so a simple <TAB> keypress is still
2439 enough to trigger getattr() calls on an object.
2439 enough to trigger getattr() calls on an object.
2440
2440
2441 2005-01-21 Fernando Perez <fperez@colorado.edu>
2441 2005-01-21 Fernando Perez <fperez@colorado.edu>
2442
2442
2443 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2443 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2444 docstring under pylab so it doesn't mask the original.
2444 docstring under pylab so it doesn't mask the original.
2445
2445
2446 2005-01-21 *** Released version 0.6.7
2446 2005-01-21 *** Released version 0.6.7
2447
2447
2448 2005-01-21 Fernando Perez <fperez@colorado.edu>
2448 2005-01-21 Fernando Perez <fperez@colorado.edu>
2449
2449
2450 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2450 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2451 signal handling for win32 users in multithreaded mode.
2451 signal handling for win32 users in multithreaded mode.
2452
2452
2453 2005-01-17 Fernando Perez <fperez@colorado.edu>
2453 2005-01-17 Fernando Perez <fperez@colorado.edu>
2454
2454
2455 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2455 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2456 instances with no __init__. After a crash report by Norbert Nemec
2456 instances with no __init__. After a crash report by Norbert Nemec
2457 <Norbert-AT-nemec-online.de>.
2457 <Norbert-AT-nemec-online.de>.
2458
2458
2459 2005-01-14 Fernando Perez <fperez@colorado.edu>
2459 2005-01-14 Fernando Perez <fperez@colorado.edu>
2460
2460
2461 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2461 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2462 names for verbose exceptions, when multiple dotted names and the
2462 names for verbose exceptions, when multiple dotted names and the
2463 'parent' object were present on the same line.
2463 'parent' object were present on the same line.
2464
2464
2465 2005-01-11 Fernando Perez <fperez@colorado.edu>
2465 2005-01-11 Fernando Perez <fperez@colorado.edu>
2466
2466
2467 * IPython/genutils.py (flag_calls): new utility to trap and flag
2467 * IPython/genutils.py (flag_calls): new utility to trap and flag
2468 calls in functions. I need it to clean up matplotlib support.
2468 calls in functions. I need it to clean up matplotlib support.
2469 Also removed some deprecated code in genutils.
2469 Also removed some deprecated code in genutils.
2470
2470
2471 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2471 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2472 that matplotlib scripts called with %run, which don't call show()
2472 that matplotlib scripts called with %run, which don't call show()
2473 themselves, still have their plotting windows open.
2473 themselves, still have their plotting windows open.
2474
2474
2475 2005-01-05 Fernando Perez <fperez@colorado.edu>
2475 2005-01-05 Fernando Perez <fperez@colorado.edu>
2476
2476
2477 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2477 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2478 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2478 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2479
2479
2480 2004-12-19 Fernando Perez <fperez@colorado.edu>
2480 2004-12-19 Fernando Perez <fperez@colorado.edu>
2481
2481
2482 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2482 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2483 parent_runcode, which was an eyesore. The same result can be
2483 parent_runcode, which was an eyesore. The same result can be
2484 obtained with Python's regular superclass mechanisms.
2484 obtained with Python's regular superclass mechanisms.
2485
2485
2486 2004-12-17 Fernando Perez <fperez@colorado.edu>
2486 2004-12-17 Fernando Perez <fperez@colorado.edu>
2487
2487
2488 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2488 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2489 reported by Prabhu.
2489 reported by Prabhu.
2490 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2490 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2491 sys.stderr) instead of explicitly calling sys.stderr. This helps
2491 sys.stderr) instead of explicitly calling sys.stderr. This helps
2492 maintain our I/O abstractions clean, for future GUI embeddings.
2492 maintain our I/O abstractions clean, for future GUI embeddings.
2493
2493
2494 * IPython/genutils.py (info): added new utility for sys.stderr
2494 * IPython/genutils.py (info): added new utility for sys.stderr
2495 unified info message handling (thin wrapper around warn()).
2495 unified info message handling (thin wrapper around warn()).
2496
2496
2497 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2497 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2498 composite (dotted) names on verbose exceptions.
2498 composite (dotted) names on verbose exceptions.
2499 (VerboseTB.nullrepr): harden against another kind of errors which
2499 (VerboseTB.nullrepr): harden against another kind of errors which
2500 Python's inspect module can trigger, and which were crashing
2500 Python's inspect module can trigger, and which were crashing
2501 IPython. Thanks to a report by Marco Lombardi
2501 IPython. Thanks to a report by Marco Lombardi
2502 <mlombard-AT-ma010192.hq.eso.org>.
2502 <mlombard-AT-ma010192.hq.eso.org>.
2503
2503
2504 2004-12-13 *** Released version 0.6.6
2504 2004-12-13 *** Released version 0.6.6
2505
2505
2506 2004-12-12 Fernando Perez <fperez@colorado.edu>
2506 2004-12-12 Fernando Perez <fperez@colorado.edu>
2507
2507
2508 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2508 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2509 generated by pygtk upon initialization if it was built without
2509 generated by pygtk upon initialization if it was built without
2510 threads (for matplotlib users). After a crash reported by
2510 threads (for matplotlib users). After a crash reported by
2511 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2511 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2512
2512
2513 * IPython/ipmaker.py (make_IPython): fix small bug in the
2513 * IPython/ipmaker.py (make_IPython): fix small bug in the
2514 import_some parameter for multiple imports.
2514 import_some parameter for multiple imports.
2515
2515
2516 * IPython/iplib.py (ipmagic): simplified the interface of
2516 * IPython/iplib.py (ipmagic): simplified the interface of
2517 ipmagic() to take a single string argument, just as it would be
2517 ipmagic() to take a single string argument, just as it would be
2518 typed at the IPython cmd line.
2518 typed at the IPython cmd line.
2519 (ipalias): Added new ipalias() with an interface identical to
2519 (ipalias): Added new ipalias() with an interface identical to
2520 ipmagic(). This completes exposing a pure python interface to the
2520 ipmagic(). This completes exposing a pure python interface to the
2521 alias and magic system, which can be used in loops or more complex
2521 alias and magic system, which can be used in loops or more complex
2522 code where IPython's automatic line mangling is not active.
2522 code where IPython's automatic line mangling is not active.
2523
2523
2524 * IPython/genutils.py (timing): changed interface of timing to
2524 * IPython/genutils.py (timing): changed interface of timing to
2525 simply run code once, which is the most common case. timings()
2525 simply run code once, which is the most common case. timings()
2526 remains unchanged, for the cases where you want multiple runs.
2526 remains unchanged, for the cases where you want multiple runs.
2527
2527
2528 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2528 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2529 bug where Python2.2 crashes with exec'ing code which does not end
2529 bug where Python2.2 crashes with exec'ing code which does not end
2530 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2530 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2531 before.
2531 before.
2532
2532
2533 2004-12-10 Fernando Perez <fperez@colorado.edu>
2533 2004-12-10 Fernando Perez <fperez@colorado.edu>
2534
2534
2535 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2535 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2536 -t to -T, to accomodate the new -t flag in %run (the %run and
2536 -t to -T, to accomodate the new -t flag in %run (the %run and
2537 %prun options are kind of intermixed, and it's not easy to change
2537 %prun options are kind of intermixed, and it's not easy to change
2538 this with the limitations of python's getopt).
2538 this with the limitations of python's getopt).
2539
2539
2540 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2540 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2541 the execution of scripts. It's not as fine-tuned as timeit.py,
2541 the execution of scripts. It's not as fine-tuned as timeit.py,
2542 but it works from inside ipython (and under 2.2, which lacks
2542 but it works from inside ipython (and under 2.2, which lacks
2543 timeit.py). Optionally a number of runs > 1 can be given for
2543 timeit.py). Optionally a number of runs > 1 can be given for
2544 timing very short-running code.
2544 timing very short-running code.
2545
2545
2546 * IPython/genutils.py (uniq_stable): new routine which returns a
2546 * IPython/genutils.py (uniq_stable): new routine which returns a
2547 list of unique elements in any iterable, but in stable order of
2547 list of unique elements in any iterable, but in stable order of
2548 appearance. I needed this for the ultraTB fixes, and it's a handy
2548 appearance. I needed this for the ultraTB fixes, and it's a handy
2549 utility.
2549 utility.
2550
2550
2551 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2551 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2552 dotted names in Verbose exceptions. This had been broken since
2552 dotted names in Verbose exceptions. This had been broken since
2553 the very start, now x.y will properly be printed in a Verbose
2553 the very start, now x.y will properly be printed in a Verbose
2554 traceback, instead of x being shown and y appearing always as an
2554 traceback, instead of x being shown and y appearing always as an
2555 'undefined global'. Getting this to work was a bit tricky,
2555 'undefined global'. Getting this to work was a bit tricky,
2556 because by default python tokenizers are stateless. Saved by
2556 because by default python tokenizers are stateless. Saved by
2557 python's ability to easily add a bit of state to an arbitrary
2557 python's ability to easily add a bit of state to an arbitrary
2558 function (without needing to build a full-blown callable object).
2558 function (without needing to build a full-blown callable object).
2559
2559
2560 Also big cleanup of this code, which had horrendous runtime
2560 Also big cleanup of this code, which had horrendous runtime
2561 lookups of zillions of attributes for colorization. Moved all
2561 lookups of zillions of attributes for colorization. Moved all
2562 this code into a few templates, which make it cleaner and quicker.
2562 this code into a few templates, which make it cleaner and quicker.
2563
2563
2564 Printout quality was also improved for Verbose exceptions: one
2564 Printout quality was also improved for Verbose exceptions: one
2565 variable per line, and memory addresses are printed (this can be
2565 variable per line, and memory addresses are printed (this can be
2566 quite handy in nasty debugging situations, which is what Verbose
2566 quite handy in nasty debugging situations, which is what Verbose
2567 is for).
2567 is for).
2568
2568
2569 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2569 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2570 the command line as scripts to be loaded by embedded instances.
2570 the command line as scripts to be loaded by embedded instances.
2571 Doing so has the potential for an infinite recursion if there are
2571 Doing so has the potential for an infinite recursion if there are
2572 exceptions thrown in the process. This fixes a strange crash
2572 exceptions thrown in the process. This fixes a strange crash
2573 reported by Philippe MULLER <muller-AT-irit.fr>.
2573 reported by Philippe MULLER <muller-AT-irit.fr>.
2574
2574
2575 2004-12-09 Fernando Perez <fperez@colorado.edu>
2575 2004-12-09 Fernando Perez <fperez@colorado.edu>
2576
2576
2577 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2577 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2578 to reflect new names in matplotlib, which now expose the
2578 to reflect new names in matplotlib, which now expose the
2579 matlab-compatible interface via a pylab module instead of the
2579 matlab-compatible interface via a pylab module instead of the
2580 'matlab' name. The new code is backwards compatible, so users of
2580 'matlab' name. The new code is backwards compatible, so users of
2581 all matplotlib versions are OK. Patch by J. Hunter.
2581 all matplotlib versions are OK. Patch by J. Hunter.
2582
2582
2583 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2583 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2584 of __init__ docstrings for instances (class docstrings are already
2584 of __init__ docstrings for instances (class docstrings are already
2585 automatically printed). Instances with customized docstrings
2585 automatically printed). Instances with customized docstrings
2586 (indep. of the class) are also recognized and all 3 separate
2586 (indep. of the class) are also recognized and all 3 separate
2587 docstrings are printed (instance, class, constructor). After some
2587 docstrings are printed (instance, class, constructor). After some
2588 comments/suggestions by J. Hunter.
2588 comments/suggestions by J. Hunter.
2589
2589
2590 2004-12-05 Fernando Perez <fperez@colorado.edu>
2590 2004-12-05 Fernando Perez <fperez@colorado.edu>
2591
2591
2592 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2592 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2593 warnings when tab-completion fails and triggers an exception.
2593 warnings when tab-completion fails and triggers an exception.
2594
2594
2595 2004-12-03 Fernando Perez <fperez@colorado.edu>
2595 2004-12-03 Fernando Perez <fperez@colorado.edu>
2596
2596
2597 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2597 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2598 be triggered when using 'run -p'. An incorrect option flag was
2598 be triggered when using 'run -p'. An incorrect option flag was
2599 being set ('d' instead of 'D').
2599 being set ('d' instead of 'D').
2600 (manpage): fix missing escaped \- sign.
2600 (manpage): fix missing escaped \- sign.
2601
2601
2602 2004-11-30 *** Released version 0.6.5
2602 2004-11-30 *** Released version 0.6.5
2603
2603
2604 2004-11-30 Fernando Perez <fperez@colorado.edu>
2604 2004-11-30 Fernando Perez <fperez@colorado.edu>
2605
2605
2606 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2606 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2607 setting with -d option.
2607 setting with -d option.
2608
2608
2609 * setup.py (docfiles): Fix problem where the doc glob I was using
2609 * setup.py (docfiles): Fix problem where the doc glob I was using
2610 was COMPLETELY BROKEN. It was giving the right files by pure
2610 was COMPLETELY BROKEN. It was giving the right files by pure
2611 accident, but failed once I tried to include ipython.el. Note:
2611 accident, but failed once I tried to include ipython.el. Note:
2612 glob() does NOT allow you to do exclusion on multiple endings!
2612 glob() does NOT allow you to do exclusion on multiple endings!
2613
2613
2614 2004-11-29 Fernando Perez <fperez@colorado.edu>
2614 2004-11-29 Fernando Perez <fperez@colorado.edu>
2615
2615
2616 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2616 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2617 the manpage as the source. Better formatting & consistency.
2617 the manpage as the source. Better formatting & consistency.
2618
2618
2619 * IPython/Magic.py (magic_run): Added new -d option, to run
2619 * IPython/Magic.py (magic_run): Added new -d option, to run
2620 scripts under the control of the python pdb debugger. Note that
2620 scripts under the control of the python pdb debugger. Note that
2621 this required changing the %prun option -d to -D, to avoid a clash
2621 this required changing the %prun option -d to -D, to avoid a clash
2622 (since %run must pass options to %prun, and getopt is too dumb to
2622 (since %run must pass options to %prun, and getopt is too dumb to
2623 handle options with string values with embedded spaces). Thanks
2623 handle options with string values with embedded spaces). Thanks
2624 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2624 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2625 (magic_who_ls): added type matching to %who and %whos, so that one
2625 (magic_who_ls): added type matching to %who and %whos, so that one
2626 can filter their output to only include variables of certain
2626 can filter their output to only include variables of certain
2627 types. Another suggestion by Matthew.
2627 types. Another suggestion by Matthew.
2628 (magic_whos): Added memory summaries in kb and Mb for arrays.
2628 (magic_whos): Added memory summaries in kb and Mb for arrays.
2629 (magic_who): Improve formatting (break lines every 9 vars).
2629 (magic_who): Improve formatting (break lines every 9 vars).
2630
2630
2631 2004-11-28 Fernando Perez <fperez@colorado.edu>
2631 2004-11-28 Fernando Perez <fperez@colorado.edu>
2632
2632
2633 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2633 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2634 cache when empty lines were present.
2634 cache when empty lines were present.
2635
2635
2636 2004-11-24 Fernando Perez <fperez@colorado.edu>
2636 2004-11-24 Fernando Perez <fperez@colorado.edu>
2637
2637
2638 * IPython/usage.py (__doc__): document the re-activated threading
2638 * IPython/usage.py (__doc__): document the re-activated threading
2639 options for WX and GTK.
2639 options for WX and GTK.
2640
2640
2641 2004-11-23 Fernando Perez <fperez@colorado.edu>
2641 2004-11-23 Fernando Perez <fperez@colorado.edu>
2642
2642
2643 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2643 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2644 the -wthread and -gthread options, along with a new -tk one to try
2644 the -wthread and -gthread options, along with a new -tk one to try
2645 and coordinate Tk threading with wx/gtk. The tk support is very
2645 and coordinate Tk threading with wx/gtk. The tk support is very
2646 platform dependent, since it seems to require Tcl and Tk to be
2646 platform dependent, since it seems to require Tcl and Tk to be
2647 built with threads (Fedora1/2 appears NOT to have it, but in
2647 built with threads (Fedora1/2 appears NOT to have it, but in
2648 Prabhu's Debian boxes it works OK). But even with some Tk
2648 Prabhu's Debian boxes it works OK). But even with some Tk
2649 limitations, this is a great improvement.
2649 limitations, this is a great improvement.
2650
2650
2651 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2651 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2652 info in user prompts. Patch by Prabhu.
2652 info in user prompts. Patch by Prabhu.
2653
2653
2654 2004-11-18 Fernando Perez <fperez@colorado.edu>
2654 2004-11-18 Fernando Perez <fperez@colorado.edu>
2655
2655
2656 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2656 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2657 EOFErrors and bail, to avoid infinite loops if a non-terminating
2657 EOFErrors and bail, to avoid infinite loops if a non-terminating
2658 file is fed into ipython. Patch submitted in issue 19 by user,
2658 file is fed into ipython. Patch submitted in issue 19 by user,
2659 many thanks.
2659 many thanks.
2660
2660
2661 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2661 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2662 autoquote/parens in continuation prompts, which can cause lots of
2662 autoquote/parens in continuation prompts, which can cause lots of
2663 problems. Closes roundup issue 20.
2663 problems. Closes roundup issue 20.
2664
2664
2665 2004-11-17 Fernando Perez <fperez@colorado.edu>
2665 2004-11-17 Fernando Perez <fperez@colorado.edu>
2666
2666
2667 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2667 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2668 reported as debian bug #280505. I'm not sure my local changelog
2668 reported as debian bug #280505. I'm not sure my local changelog
2669 entry has the proper debian format (Jack?).
2669 entry has the proper debian format (Jack?).
2670
2670
2671 2004-11-08 *** Released version 0.6.4
2671 2004-11-08 *** Released version 0.6.4
2672
2672
2673 2004-11-08 Fernando Perez <fperez@colorado.edu>
2673 2004-11-08 Fernando Perez <fperez@colorado.edu>
2674
2674
2675 * IPython/iplib.py (init_readline): Fix exit message for Windows
2675 * IPython/iplib.py (init_readline): Fix exit message for Windows
2676 when readline is active. Thanks to a report by Eric Jones
2676 when readline is active. Thanks to a report by Eric Jones
2677 <eric-AT-enthought.com>.
2677 <eric-AT-enthought.com>.
2678
2678
2679 2004-11-07 Fernando Perez <fperez@colorado.edu>
2679 2004-11-07 Fernando Perez <fperez@colorado.edu>
2680
2680
2681 * IPython/genutils.py (page): Add a trap for OSError exceptions,
2681 * IPython/genutils.py (page): Add a trap for OSError exceptions,
2682 sometimes seen by win2k/cygwin users.
2682 sometimes seen by win2k/cygwin users.
2683
2683
2684 2004-11-06 Fernando Perez <fperez@colorado.edu>
2684 2004-11-06 Fernando Perez <fperez@colorado.edu>
2685
2685
2686 * IPython/iplib.py (interact): Change the handling of %Exit from
2686 * IPython/iplib.py (interact): Change the handling of %Exit from
2687 trying to propagate a SystemExit to an internal ipython flag.
2687 trying to propagate a SystemExit to an internal ipython flag.
2688 This is less elegant than using Python's exception mechanism, but
2688 This is less elegant than using Python's exception mechanism, but
2689 I can't get that to work reliably with threads, so under -pylab
2689 I can't get that to work reliably with threads, so under -pylab
2690 %Exit was hanging IPython. Cross-thread exception handling is
2690 %Exit was hanging IPython. Cross-thread exception handling is
2691 really a bitch. Thaks to a bug report by Stephen Walton
2691 really a bitch. Thaks to a bug report by Stephen Walton
2692 <stephen.walton-AT-csun.edu>.
2692 <stephen.walton-AT-csun.edu>.
2693
2693
2694 2004-11-04 Fernando Perez <fperez@colorado.edu>
2694 2004-11-04 Fernando Perez <fperez@colorado.edu>
2695
2695
2696 * IPython/iplib.py (raw_input_original): store a pointer to the
2696 * IPython/iplib.py (raw_input_original): store a pointer to the
2697 true raw_input to harden against code which can modify it
2697 true raw_input to harden against code which can modify it
2698 (wx.py.PyShell does this and would otherwise crash ipython).
2698 (wx.py.PyShell does this and would otherwise crash ipython).
2699 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
2699 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
2700
2700
2701 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
2701 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
2702 Ctrl-C problem, which does not mess up the input line.
2702 Ctrl-C problem, which does not mess up the input line.
2703
2703
2704 2004-11-03 Fernando Perez <fperez@colorado.edu>
2704 2004-11-03 Fernando Perez <fperez@colorado.edu>
2705
2705
2706 * IPython/Release.py: Changed licensing to BSD, in all files.
2706 * IPython/Release.py: Changed licensing to BSD, in all files.
2707 (name): lowercase name for tarball/RPM release.
2707 (name): lowercase name for tarball/RPM release.
2708
2708
2709 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
2709 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
2710 use throughout ipython.
2710 use throughout ipython.
2711
2711
2712 * IPython/Magic.py (Magic._ofind): Switch to using the new
2712 * IPython/Magic.py (Magic._ofind): Switch to using the new
2713 OInspect.getdoc() function.
2713 OInspect.getdoc() function.
2714
2714
2715 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
2715 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
2716 of the line currently being canceled via Ctrl-C. It's extremely
2716 of the line currently being canceled via Ctrl-C. It's extremely
2717 ugly, but I don't know how to do it better (the problem is one of
2717 ugly, but I don't know how to do it better (the problem is one of
2718 handling cross-thread exceptions).
2718 handling cross-thread exceptions).
2719
2719
2720 2004-10-28 Fernando Perez <fperez@colorado.edu>
2720 2004-10-28 Fernando Perez <fperez@colorado.edu>
2721
2721
2722 * IPython/Shell.py (signal_handler): add signal handlers to trap
2722 * IPython/Shell.py (signal_handler): add signal handlers to trap
2723 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
2723 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
2724 report by Francesc Alted.
2724 report by Francesc Alted.
2725
2725
2726 2004-10-21 Fernando Perez <fperez@colorado.edu>
2726 2004-10-21 Fernando Perez <fperez@colorado.edu>
2727
2727
2728 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
2728 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
2729 to % for pysh syntax extensions.
2729 to % for pysh syntax extensions.
2730
2730
2731 2004-10-09 Fernando Perez <fperez@colorado.edu>
2731 2004-10-09 Fernando Perez <fperez@colorado.edu>
2732
2732
2733 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
2733 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
2734 arrays to print a more useful summary, without calling str(arr).
2734 arrays to print a more useful summary, without calling str(arr).
2735 This avoids the problem of extremely lengthy computations which
2735 This avoids the problem of extremely lengthy computations which
2736 occur if arr is large, and appear to the user as a system lockup
2736 occur if arr is large, and appear to the user as a system lockup
2737 with 100% cpu activity. After a suggestion by Kristian Sandberg
2737 with 100% cpu activity. After a suggestion by Kristian Sandberg
2738 <Kristian.Sandberg@colorado.edu>.
2738 <Kristian.Sandberg@colorado.edu>.
2739 (Magic.__init__): fix bug in global magic escapes not being
2739 (Magic.__init__): fix bug in global magic escapes not being
2740 correctly set.
2740 correctly set.
2741
2741
2742 2004-10-08 Fernando Perez <fperez@colorado.edu>
2742 2004-10-08 Fernando Perez <fperez@colorado.edu>
2743
2743
2744 * IPython/Magic.py (__license__): change to absolute imports of
2744 * IPython/Magic.py (__license__): change to absolute imports of
2745 ipython's own internal packages, to start adapting to the absolute
2745 ipython's own internal packages, to start adapting to the absolute
2746 import requirement of PEP-328.
2746 import requirement of PEP-328.
2747
2747
2748 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
2748 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
2749 files, and standardize author/license marks through the Release
2749 files, and standardize author/license marks through the Release
2750 module instead of having per/file stuff (except for files with
2750 module instead of having per/file stuff (except for files with
2751 particular licenses, like the MIT/PSF-licensed codes).
2751 particular licenses, like the MIT/PSF-licensed codes).
2752
2752
2753 * IPython/Debugger.py: remove dead code for python 2.1
2753 * IPython/Debugger.py: remove dead code for python 2.1
2754
2754
2755 2004-10-04 Fernando Perez <fperez@colorado.edu>
2755 2004-10-04 Fernando Perez <fperez@colorado.edu>
2756
2756
2757 * IPython/iplib.py (ipmagic): New function for accessing magics
2757 * IPython/iplib.py (ipmagic): New function for accessing magics
2758 via a normal python function call.
2758 via a normal python function call.
2759
2759
2760 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
2760 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
2761 from '@' to '%', to accomodate the new @decorator syntax of python
2761 from '@' to '%', to accomodate the new @decorator syntax of python
2762 2.4.
2762 2.4.
2763
2763
2764 2004-09-29 Fernando Perez <fperez@colorado.edu>
2764 2004-09-29 Fernando Perez <fperez@colorado.edu>
2765
2765
2766 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
2766 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
2767 matplotlib.use to prevent running scripts which try to switch
2767 matplotlib.use to prevent running scripts which try to switch
2768 interactive backends from within ipython. This will just crash
2768 interactive backends from within ipython. This will just crash
2769 the python interpreter, so we can't allow it (but a detailed error
2769 the python interpreter, so we can't allow it (but a detailed error
2770 is given to the user).
2770 is given to the user).
2771
2771
2772 2004-09-28 Fernando Perez <fperez@colorado.edu>
2772 2004-09-28 Fernando Perez <fperez@colorado.edu>
2773
2773
2774 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
2774 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
2775 matplotlib-related fixes so that using @run with non-matplotlib
2775 matplotlib-related fixes so that using @run with non-matplotlib
2776 scripts doesn't pop up spurious plot windows. This requires
2776 scripts doesn't pop up spurious plot windows. This requires
2777 matplotlib >= 0.63, where I had to make some changes as well.
2777 matplotlib >= 0.63, where I had to make some changes as well.
2778
2778
2779 * IPython/ipmaker.py (make_IPython): update version requirement to
2779 * IPython/ipmaker.py (make_IPython): update version requirement to
2780 python 2.2.
2780 python 2.2.
2781
2781
2782 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
2782 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
2783 banner arg for embedded customization.
2783 banner arg for embedded customization.
2784
2784
2785 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
2785 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
2786 explicit uses of __IP as the IPython's instance name. Now things
2786 explicit uses of __IP as the IPython's instance name. Now things
2787 are properly handled via the shell.name value. The actual code
2787 are properly handled via the shell.name value. The actual code
2788 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
2788 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
2789 is much better than before. I'll clean things completely when the
2789 is much better than before. I'll clean things completely when the
2790 magic stuff gets a real overhaul.
2790 magic stuff gets a real overhaul.
2791
2791
2792 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
2792 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
2793 minor changes to debian dir.
2793 minor changes to debian dir.
2794
2794
2795 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
2795 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
2796 pointer to the shell itself in the interactive namespace even when
2796 pointer to the shell itself in the interactive namespace even when
2797 a user-supplied dict is provided. This is needed for embedding
2797 a user-supplied dict is provided. This is needed for embedding
2798 purposes (found by tests with Michel Sanner).
2798 purposes (found by tests with Michel Sanner).
2799
2799
2800 2004-09-27 Fernando Perez <fperez@colorado.edu>
2800 2004-09-27 Fernando Perez <fperez@colorado.edu>
2801
2801
2802 * IPython/UserConfig/ipythonrc: remove []{} from
2802 * IPython/UserConfig/ipythonrc: remove []{} from
2803 readline_remove_delims, so that things like [modname.<TAB> do
2803 readline_remove_delims, so that things like [modname.<TAB> do
2804 proper completion. This disables [].TAB, but that's a less common
2804 proper completion. This disables [].TAB, but that's a less common
2805 case than module names in list comprehensions, for example.
2805 case than module names in list comprehensions, for example.
2806 Thanks to a report by Andrea Riciputi.
2806 Thanks to a report by Andrea Riciputi.
2807
2807
2808 2004-09-09 Fernando Perez <fperez@colorado.edu>
2808 2004-09-09 Fernando Perez <fperez@colorado.edu>
2809
2809
2810 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
2810 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
2811 blocking problems in win32 and osx. Fix by John.
2811 blocking problems in win32 and osx. Fix by John.
2812
2812
2813 2004-09-08 Fernando Perez <fperez@colorado.edu>
2813 2004-09-08 Fernando Perez <fperez@colorado.edu>
2814
2814
2815 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
2815 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
2816 for Win32 and OSX. Fix by John Hunter.
2816 for Win32 and OSX. Fix by John Hunter.
2817
2817
2818 2004-08-30 *** Released version 0.6.3
2818 2004-08-30 *** Released version 0.6.3
2819
2819
2820 2004-08-30 Fernando Perez <fperez@colorado.edu>
2820 2004-08-30 Fernando Perez <fperez@colorado.edu>
2821
2821
2822 * setup.py (isfile): Add manpages to list of dependent files to be
2822 * setup.py (isfile): Add manpages to list of dependent files to be
2823 updated.
2823 updated.
2824
2824
2825 2004-08-27 Fernando Perez <fperez@colorado.edu>
2825 2004-08-27 Fernando Perez <fperez@colorado.edu>
2826
2826
2827 * IPython/Shell.py (start): I've disabled -wthread and -gthread
2827 * IPython/Shell.py (start): I've disabled -wthread and -gthread
2828 for now. They don't really work with standalone WX/GTK code
2828 for now. They don't really work with standalone WX/GTK code
2829 (though matplotlib IS working fine with both of those backends).
2829 (though matplotlib IS working fine with both of those backends).
2830 This will neeed much more testing. I disabled most things with
2830 This will neeed much more testing. I disabled most things with
2831 comments, so turning it back on later should be pretty easy.
2831 comments, so turning it back on later should be pretty easy.
2832
2832
2833 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
2833 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
2834 autocalling of expressions like r'foo', by modifying the line
2834 autocalling of expressions like r'foo', by modifying the line
2835 split regexp. Closes
2835 split regexp. Closes
2836 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
2836 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
2837 Riley <ipythonbugs-AT-sabi.net>.
2837 Riley <ipythonbugs-AT-sabi.net>.
2838 (InteractiveShell.mainloop): honor --nobanner with banner
2838 (InteractiveShell.mainloop): honor --nobanner with banner
2839 extensions.
2839 extensions.
2840
2840
2841 * IPython/Shell.py: Significant refactoring of all classes, so
2841 * IPython/Shell.py: Significant refactoring of all classes, so
2842 that we can really support ALL matplotlib backends and threading
2842 that we can really support ALL matplotlib backends and threading
2843 models (John spotted a bug with Tk which required this). Now we
2843 models (John spotted a bug with Tk which required this). Now we
2844 should support single-threaded, WX-threads and GTK-threads, both
2844 should support single-threaded, WX-threads and GTK-threads, both
2845 for generic code and for matplotlib.
2845 for generic code and for matplotlib.
2846
2846
2847 * IPython/ipmaker.py (__call__): Changed -mpthread option to
2847 * IPython/ipmaker.py (__call__): Changed -mpthread option to
2848 -pylab, to simplify things for users. Will also remove the pylab
2848 -pylab, to simplify things for users. Will also remove the pylab
2849 profile, since now all of matplotlib configuration is directly
2849 profile, since now all of matplotlib configuration is directly
2850 handled here. This also reduces startup time.
2850 handled here. This also reduces startup time.
2851
2851
2852 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
2852 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
2853 shell wasn't being correctly called. Also in IPShellWX.
2853 shell wasn't being correctly called. Also in IPShellWX.
2854
2854
2855 * IPython/iplib.py (InteractiveShell.__init__): Added option to
2855 * IPython/iplib.py (InteractiveShell.__init__): Added option to
2856 fine-tune banner.
2856 fine-tune banner.
2857
2857
2858 * IPython/numutils.py (spike): Deprecate these spike functions,
2858 * IPython/numutils.py (spike): Deprecate these spike functions,
2859 delete (long deprecated) gnuplot_exec handler.
2859 delete (long deprecated) gnuplot_exec handler.
2860
2860
2861 2004-08-26 Fernando Perez <fperez@colorado.edu>
2861 2004-08-26 Fernando Perez <fperez@colorado.edu>
2862
2862
2863 * ipython.1: Update for threading options, plus some others which
2863 * ipython.1: Update for threading options, plus some others which
2864 were missing.
2864 were missing.
2865
2865
2866 * IPython/ipmaker.py (__call__): Added -wthread option for
2866 * IPython/ipmaker.py (__call__): Added -wthread option for
2867 wxpython thread handling. Make sure threading options are only
2867 wxpython thread handling. Make sure threading options are only
2868 valid at the command line.
2868 valid at the command line.
2869
2869
2870 * scripts/ipython: moved shell selection into a factory function
2870 * scripts/ipython: moved shell selection into a factory function
2871 in Shell.py, to keep the starter script to a minimum.
2871 in Shell.py, to keep the starter script to a minimum.
2872
2872
2873 2004-08-25 Fernando Perez <fperez@colorado.edu>
2873 2004-08-25 Fernando Perez <fperez@colorado.edu>
2874
2874
2875 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
2875 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
2876 John. Along with some recent changes he made to matplotlib, the
2876 John. Along with some recent changes he made to matplotlib, the
2877 next versions of both systems should work very well together.
2877 next versions of both systems should work very well together.
2878
2878
2879 2004-08-24 Fernando Perez <fperez@colorado.edu>
2879 2004-08-24 Fernando Perez <fperez@colorado.edu>
2880
2880
2881 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
2881 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
2882 tried to switch the profiling to using hotshot, but I'm getting
2882 tried to switch the profiling to using hotshot, but I'm getting
2883 strange errors from prof.runctx() there. I may be misreading the
2883 strange errors from prof.runctx() there. I may be misreading the
2884 docs, but it looks weird. For now the profiling code will
2884 docs, but it looks weird. For now the profiling code will
2885 continue to use the standard profiler.
2885 continue to use the standard profiler.
2886
2886
2887 2004-08-23 Fernando Perez <fperez@colorado.edu>
2887 2004-08-23 Fernando Perez <fperez@colorado.edu>
2888
2888
2889 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
2889 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
2890 threaded shell, by John Hunter. It's not quite ready yet, but
2890 threaded shell, by John Hunter. It's not quite ready yet, but
2891 close.
2891 close.
2892
2892
2893 2004-08-22 Fernando Perez <fperez@colorado.edu>
2893 2004-08-22 Fernando Perez <fperez@colorado.edu>
2894
2894
2895 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
2895 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
2896 in Magic and ultraTB.
2896 in Magic and ultraTB.
2897
2897
2898 * ipython.1: document threading options in manpage.
2898 * ipython.1: document threading options in manpage.
2899
2899
2900 * scripts/ipython: Changed name of -thread option to -gthread,
2900 * scripts/ipython: Changed name of -thread option to -gthread,
2901 since this is GTK specific. I want to leave the door open for a
2901 since this is GTK specific. I want to leave the door open for a
2902 -wthread option for WX, which will most likely be necessary. This
2902 -wthread option for WX, which will most likely be necessary. This
2903 change affects usage and ipmaker as well.
2903 change affects usage and ipmaker as well.
2904
2904
2905 * IPython/Shell.py (matplotlib_shell): Add a factory function to
2905 * IPython/Shell.py (matplotlib_shell): Add a factory function to
2906 handle the matplotlib shell issues. Code by John Hunter
2906 handle the matplotlib shell issues. Code by John Hunter
2907 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2907 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2908 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
2908 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
2909 broken (and disabled for end users) for now, but it puts the
2909 broken (and disabled for end users) for now, but it puts the
2910 infrastructure in place.
2910 infrastructure in place.
2911
2911
2912 2004-08-21 Fernando Perez <fperez@colorado.edu>
2912 2004-08-21 Fernando Perez <fperez@colorado.edu>
2913
2913
2914 * ipythonrc-pylab: Add matplotlib support.
2914 * ipythonrc-pylab: Add matplotlib support.
2915
2915
2916 * matplotlib_config.py: new files for matplotlib support, part of
2916 * matplotlib_config.py: new files for matplotlib support, part of
2917 the pylab profile.
2917 the pylab profile.
2918
2918
2919 * IPython/usage.py (__doc__): documented the threading options.
2919 * IPython/usage.py (__doc__): documented the threading options.
2920
2920
2921 2004-08-20 Fernando Perez <fperez@colorado.edu>
2921 2004-08-20 Fernando Perez <fperez@colorado.edu>
2922
2922
2923 * ipython: Modified the main calling routine to handle the -thread
2923 * ipython: Modified the main calling routine to handle the -thread
2924 and -mpthread options. This needs to be done as a top-level hack,
2924 and -mpthread options. This needs to be done as a top-level hack,
2925 because it determines which class to instantiate for IPython
2925 because it determines which class to instantiate for IPython
2926 itself.
2926 itself.
2927
2927
2928 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
2928 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
2929 classes to support multithreaded GTK operation without blocking,
2929 classes to support multithreaded GTK operation without blocking,
2930 and matplotlib with all backends. This is a lot of still very
2930 and matplotlib with all backends. This is a lot of still very
2931 experimental code, and threads are tricky. So it may still have a
2931 experimental code, and threads are tricky. So it may still have a
2932 few rough edges... This code owes a lot to
2932 few rough edges... This code owes a lot to
2933 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
2933 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
2934 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
2934 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
2935 to John Hunter for all the matplotlib work.
2935 to John Hunter for all the matplotlib work.
2936
2936
2937 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
2937 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
2938 options for gtk thread and matplotlib support.
2938 options for gtk thread and matplotlib support.
2939
2939
2940 2004-08-16 Fernando Perez <fperez@colorado.edu>
2940 2004-08-16 Fernando Perez <fperez@colorado.edu>
2941
2941
2942 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
2942 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
2943 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
2943 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
2944 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
2944 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
2945
2945
2946 2004-08-11 Fernando Perez <fperez@colorado.edu>
2946 2004-08-11 Fernando Perez <fperez@colorado.edu>
2947
2947
2948 * setup.py (isfile): Fix build so documentation gets updated for
2948 * setup.py (isfile): Fix build so documentation gets updated for
2949 rpms (it was only done for .tgz builds).
2949 rpms (it was only done for .tgz builds).
2950
2950
2951 2004-08-10 Fernando Perez <fperez@colorado.edu>
2951 2004-08-10 Fernando Perez <fperez@colorado.edu>
2952
2952
2953 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
2953 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
2954
2954
2955 * iplib.py : Silence syntax error exceptions in tab-completion.
2955 * iplib.py : Silence syntax error exceptions in tab-completion.
2956
2956
2957 2004-08-05 Fernando Perez <fperez@colorado.edu>
2957 2004-08-05 Fernando Perez <fperez@colorado.edu>
2958
2958
2959 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
2959 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
2960 'color off' mark for continuation prompts. This was causing long
2960 'color off' mark for continuation prompts. This was causing long
2961 continuation lines to mis-wrap.
2961 continuation lines to mis-wrap.
2962
2962
2963 2004-08-01 Fernando Perez <fperez@colorado.edu>
2963 2004-08-01 Fernando Perez <fperez@colorado.edu>
2964
2964
2965 * IPython/ipmaker.py (make_IPython): Allow the shell class used
2965 * IPython/ipmaker.py (make_IPython): Allow the shell class used
2966 for building ipython to be a parameter. All this is necessary
2966 for building ipython to be a parameter. All this is necessary
2967 right now to have a multithreaded version, but this insane
2967 right now to have a multithreaded version, but this insane
2968 non-design will be cleaned up soon. For now, it's a hack that
2968 non-design will be cleaned up soon. For now, it's a hack that
2969 works.
2969 works.
2970
2970
2971 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
2971 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
2972 args in various places. No bugs so far, but it's a dangerous
2972 args in various places. No bugs so far, but it's a dangerous
2973 practice.
2973 practice.
2974
2974
2975 2004-07-31 Fernando Perez <fperez@colorado.edu>
2975 2004-07-31 Fernando Perez <fperez@colorado.edu>
2976
2976
2977 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
2977 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
2978 fix completion of files with dots in their names under most
2978 fix completion of files with dots in their names under most
2979 profiles (pysh was OK because the completion order is different).
2979 profiles (pysh was OK because the completion order is different).
2980
2980
2981 2004-07-27 Fernando Perez <fperez@colorado.edu>
2981 2004-07-27 Fernando Perez <fperez@colorado.edu>
2982
2982
2983 * IPython/iplib.py (InteractiveShell.__init__): build dict of
2983 * IPython/iplib.py (InteractiveShell.__init__): build dict of
2984 keywords manually, b/c the one in keyword.py was removed in python
2984 keywords manually, b/c the one in keyword.py was removed in python
2985 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
2985 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
2986 This is NOT a bug under python 2.3 and earlier.
2986 This is NOT a bug under python 2.3 and earlier.
2987
2987
2988 2004-07-26 Fernando Perez <fperez@colorado.edu>
2988 2004-07-26 Fernando Perez <fperez@colorado.edu>
2989
2989
2990 * IPython/ultraTB.py (VerboseTB.text): Add another
2990 * IPython/ultraTB.py (VerboseTB.text): Add another
2991 linecache.checkcache() call to try to prevent inspect.py from
2991 linecache.checkcache() call to try to prevent inspect.py from
2992 crashing under python 2.3. I think this fixes
2992 crashing under python 2.3. I think this fixes
2993 http://www.scipy.net/roundup/ipython/issue17.
2993 http://www.scipy.net/roundup/ipython/issue17.
2994
2994
2995 2004-07-26 *** Released version 0.6.2
2995 2004-07-26 *** Released version 0.6.2
2996
2996
2997 2004-07-26 Fernando Perez <fperez@colorado.edu>
2997 2004-07-26 Fernando Perez <fperez@colorado.edu>
2998
2998
2999 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
2999 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3000 fail for any number.
3000 fail for any number.
3001 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3001 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3002 empty bookmarks.
3002 empty bookmarks.
3003
3003
3004 2004-07-26 *** Released version 0.6.1
3004 2004-07-26 *** Released version 0.6.1
3005
3005
3006 2004-07-26 Fernando Perez <fperez@colorado.edu>
3006 2004-07-26 Fernando Perez <fperez@colorado.edu>
3007
3007
3008 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3008 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3009
3009
3010 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3010 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3011 escaping '()[]{}' in filenames.
3011 escaping '()[]{}' in filenames.
3012
3012
3013 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3013 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3014 Python 2.2 users who lack a proper shlex.split.
3014 Python 2.2 users who lack a proper shlex.split.
3015
3015
3016 2004-07-19 Fernando Perez <fperez@colorado.edu>
3016 2004-07-19 Fernando Perez <fperez@colorado.edu>
3017
3017
3018 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3018 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3019 for reading readline's init file. I follow the normal chain:
3019 for reading readline's init file. I follow the normal chain:
3020 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3020 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3021 report by Mike Heeter. This closes
3021 report by Mike Heeter. This closes
3022 http://www.scipy.net/roundup/ipython/issue16.
3022 http://www.scipy.net/roundup/ipython/issue16.
3023
3023
3024 2004-07-18 Fernando Perez <fperez@colorado.edu>
3024 2004-07-18 Fernando Perez <fperez@colorado.edu>
3025
3025
3026 * IPython/iplib.py (__init__): Add better handling of '\' under
3026 * IPython/iplib.py (__init__): Add better handling of '\' under
3027 Win32 for filenames. After a patch by Ville.
3027 Win32 for filenames. After a patch by Ville.
3028
3028
3029 2004-07-17 Fernando Perez <fperez@colorado.edu>
3029 2004-07-17 Fernando Perez <fperez@colorado.edu>
3030
3030
3031 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3031 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3032 autocalling would be triggered for 'foo is bar' if foo is
3032 autocalling would be triggered for 'foo is bar' if foo is
3033 callable. I also cleaned up the autocall detection code to use a
3033 callable. I also cleaned up the autocall detection code to use a
3034 regexp, which is faster. Bug reported by Alexander Schmolck.
3034 regexp, which is faster. Bug reported by Alexander Schmolck.
3035
3035
3036 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3036 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3037 '?' in them would confuse the help system. Reported by Alex
3037 '?' in them would confuse the help system. Reported by Alex
3038 Schmolck.
3038 Schmolck.
3039
3039
3040 2004-07-16 Fernando Perez <fperez@colorado.edu>
3040 2004-07-16 Fernando Perez <fperez@colorado.edu>
3041
3041
3042 * IPython/GnuplotInteractive.py (__all__): added plot2.
3042 * IPython/GnuplotInteractive.py (__all__): added plot2.
3043
3043
3044 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3044 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3045 plotting dictionaries, lists or tuples of 1d arrays.
3045 plotting dictionaries, lists or tuples of 1d arrays.
3046
3046
3047 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3047 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3048 optimizations.
3048 optimizations.
3049
3049
3050 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3050 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3051 the information which was there from Janko's original IPP code:
3051 the information which was there from Janko's original IPP code:
3052
3052
3053 03.05.99 20:53 porto.ifm.uni-kiel.de
3053 03.05.99 20:53 porto.ifm.uni-kiel.de
3054 --Started changelog.
3054 --Started changelog.
3055 --make clear do what it say it does
3055 --make clear do what it say it does
3056 --added pretty output of lines from inputcache
3056 --added pretty output of lines from inputcache
3057 --Made Logger a mixin class, simplifies handling of switches
3057 --Made Logger a mixin class, simplifies handling of switches
3058 --Added own completer class. .string<TAB> expands to last history
3058 --Added own completer class. .string<TAB> expands to last history
3059 line which starts with string. The new expansion is also present
3059 line which starts with string. The new expansion is also present
3060 with Ctrl-r from the readline library. But this shows, who this
3060 with Ctrl-r from the readline library. But this shows, who this
3061 can be done for other cases.
3061 can be done for other cases.
3062 --Added convention that all shell functions should accept a
3062 --Added convention that all shell functions should accept a
3063 parameter_string This opens the door for different behaviour for
3063 parameter_string This opens the door for different behaviour for
3064 each function. @cd is a good example of this.
3064 each function. @cd is a good example of this.
3065
3065
3066 04.05.99 12:12 porto.ifm.uni-kiel.de
3066 04.05.99 12:12 porto.ifm.uni-kiel.de
3067 --added logfile rotation
3067 --added logfile rotation
3068 --added new mainloop method which freezes first the namespace
3068 --added new mainloop method which freezes first the namespace
3069
3069
3070 07.05.99 21:24 porto.ifm.uni-kiel.de
3070 07.05.99 21:24 porto.ifm.uni-kiel.de
3071 --added the docreader classes. Now there is a help system.
3071 --added the docreader classes. Now there is a help system.
3072 -This is only a first try. Currently it's not easy to put new
3072 -This is only a first try. Currently it's not easy to put new
3073 stuff in the indices. But this is the way to go. Info would be
3073 stuff in the indices. But this is the way to go. Info would be
3074 better, but HTML is every where and not everybody has an info
3074 better, but HTML is every where and not everybody has an info
3075 system installed and it's not so easy to change html-docs to info.
3075 system installed and it's not so easy to change html-docs to info.
3076 --added global logfile option
3076 --added global logfile option
3077 --there is now a hook for object inspection method pinfo needs to
3077 --there is now a hook for object inspection method pinfo needs to
3078 be provided for this. Can be reached by two '??'.
3078 be provided for this. Can be reached by two '??'.
3079
3079
3080 08.05.99 20:51 porto.ifm.uni-kiel.de
3080 08.05.99 20:51 porto.ifm.uni-kiel.de
3081 --added a README
3081 --added a README
3082 --bug in rc file. Something has changed so functions in the rc
3082 --bug in rc file. Something has changed so functions in the rc
3083 file need to reference the shell and not self. Not clear if it's a
3083 file need to reference the shell and not self. Not clear if it's a
3084 bug or feature.
3084 bug or feature.
3085 --changed rc file for new behavior
3085 --changed rc file for new behavior
3086
3086
3087 2004-07-15 Fernando Perez <fperez@colorado.edu>
3087 2004-07-15 Fernando Perez <fperez@colorado.edu>
3088
3088
3089 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3089 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3090 cache was falling out of sync in bizarre manners when multi-line
3090 cache was falling out of sync in bizarre manners when multi-line
3091 input was present. Minor optimizations and cleanup.
3091 input was present. Minor optimizations and cleanup.
3092
3092
3093 (Logger): Remove old Changelog info for cleanup. This is the
3093 (Logger): Remove old Changelog info for cleanup. This is the
3094 information which was there from Janko's original code:
3094 information which was there from Janko's original code:
3095
3095
3096 Changes to Logger: - made the default log filename a parameter
3096 Changes to Logger: - made the default log filename a parameter
3097
3097
3098 - put a check for lines beginning with !@? in log(). Needed
3098 - put a check for lines beginning with !@? in log(). Needed
3099 (even if the handlers properly log their lines) for mid-session
3099 (even if the handlers properly log their lines) for mid-session
3100 logging activation to work properly. Without this, lines logged
3100 logging activation to work properly. Without this, lines logged
3101 in mid session, which get read from the cache, would end up
3101 in mid session, which get read from the cache, would end up
3102 'bare' (with !@? in the open) in the log. Now they are caught
3102 'bare' (with !@? in the open) in the log. Now they are caught
3103 and prepended with a #.
3103 and prepended with a #.
3104
3104
3105 * IPython/iplib.py (InteractiveShell.init_readline): added check
3105 * IPython/iplib.py (InteractiveShell.init_readline): added check
3106 in case MagicCompleter fails to be defined, so we don't crash.
3106 in case MagicCompleter fails to be defined, so we don't crash.
3107
3107
3108 2004-07-13 Fernando Perez <fperez@colorado.edu>
3108 2004-07-13 Fernando Perez <fperez@colorado.edu>
3109
3109
3110 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3110 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3111 of EPS if the requested filename ends in '.eps'.
3111 of EPS if the requested filename ends in '.eps'.
3112
3112
3113 2004-07-04 Fernando Perez <fperez@colorado.edu>
3113 2004-07-04 Fernando Perez <fperez@colorado.edu>
3114
3114
3115 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3115 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3116 escaping of quotes when calling the shell.
3116 escaping of quotes when calling the shell.
3117
3117
3118 2004-07-02 Fernando Perez <fperez@colorado.edu>
3118 2004-07-02 Fernando Perez <fperez@colorado.edu>
3119
3119
3120 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3120 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3121 gettext not working because we were clobbering '_'. Fixes
3121 gettext not working because we were clobbering '_'. Fixes
3122 http://www.scipy.net/roundup/ipython/issue6.
3122 http://www.scipy.net/roundup/ipython/issue6.
3123
3123
3124 2004-07-01 Fernando Perez <fperez@colorado.edu>
3124 2004-07-01 Fernando Perez <fperez@colorado.edu>
3125
3125
3126 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3126 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3127 into @cd. Patch by Ville.
3127 into @cd. Patch by Ville.
3128
3128
3129 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3129 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3130 new function to store things after ipmaker runs. Patch by Ville.
3130 new function to store things after ipmaker runs. Patch by Ville.
3131 Eventually this will go away once ipmaker is removed and the class
3131 Eventually this will go away once ipmaker is removed and the class
3132 gets cleaned up, but for now it's ok. Key functionality here is
3132 gets cleaned up, but for now it's ok. Key functionality here is
3133 the addition of the persistent storage mechanism, a dict for
3133 the addition of the persistent storage mechanism, a dict for
3134 keeping data across sessions (for now just bookmarks, but more can
3134 keeping data across sessions (for now just bookmarks, but more can
3135 be implemented later).
3135 be implemented later).
3136
3136
3137 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3137 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3138 persistent across sections. Patch by Ville, I modified it
3138 persistent across sections. Patch by Ville, I modified it
3139 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3139 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3140 added a '-l' option to list all bookmarks.
3140 added a '-l' option to list all bookmarks.
3141
3141
3142 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3142 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3143 center for cleanup. Registered with atexit.register(). I moved
3143 center for cleanup. Registered with atexit.register(). I moved
3144 here the old exit_cleanup(). After a patch by Ville.
3144 here the old exit_cleanup(). After a patch by Ville.
3145
3145
3146 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3146 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3147 characters in the hacked shlex_split for python 2.2.
3147 characters in the hacked shlex_split for python 2.2.
3148
3148
3149 * IPython/iplib.py (file_matches): more fixes to filenames with
3149 * IPython/iplib.py (file_matches): more fixes to filenames with
3150 whitespace in them. It's not perfect, but limitations in python's
3150 whitespace in them. It's not perfect, but limitations in python's
3151 readline make it impossible to go further.
3151 readline make it impossible to go further.
3152
3152
3153 2004-06-29 Fernando Perez <fperez@colorado.edu>
3153 2004-06-29 Fernando Perez <fperez@colorado.edu>
3154
3154
3155 * IPython/iplib.py (file_matches): escape whitespace correctly in
3155 * IPython/iplib.py (file_matches): escape whitespace correctly in
3156 filename completions. Bug reported by Ville.
3156 filename completions. Bug reported by Ville.
3157
3157
3158 2004-06-28 Fernando Perez <fperez@colorado.edu>
3158 2004-06-28 Fernando Perez <fperez@colorado.edu>
3159
3159
3160 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3160 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3161 the history file will be called 'history-PROFNAME' (or just
3161 the history file will be called 'history-PROFNAME' (or just
3162 'history' if no profile is loaded). I was getting annoyed at
3162 'history' if no profile is loaded). I was getting annoyed at
3163 getting my Numerical work history clobbered by pysh sessions.
3163 getting my Numerical work history clobbered by pysh sessions.
3164
3164
3165 * IPython/iplib.py (InteractiveShell.__init__): Internal
3165 * IPython/iplib.py (InteractiveShell.__init__): Internal
3166 getoutputerror() function so that we can honor the system_verbose
3166 getoutputerror() function so that we can honor the system_verbose
3167 flag for _all_ system calls. I also added escaping of #
3167 flag for _all_ system calls. I also added escaping of #
3168 characters here to avoid confusing Itpl.
3168 characters here to avoid confusing Itpl.
3169
3169
3170 * IPython/Magic.py (shlex_split): removed call to shell in
3170 * IPython/Magic.py (shlex_split): removed call to shell in
3171 parse_options and replaced it with shlex.split(). The annoying
3171 parse_options and replaced it with shlex.split(). The annoying
3172 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3172 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3173 to backport it from 2.3, with several frail hacks (the shlex
3173 to backport it from 2.3, with several frail hacks (the shlex
3174 module is rather limited in 2.2). Thanks to a suggestion by Ville
3174 module is rather limited in 2.2). Thanks to a suggestion by Ville
3175 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3175 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3176 problem.
3176 problem.
3177
3177
3178 (Magic.magic_system_verbose): new toggle to print the actual
3178 (Magic.magic_system_verbose): new toggle to print the actual
3179 system calls made by ipython. Mainly for debugging purposes.
3179 system calls made by ipython. Mainly for debugging purposes.
3180
3180
3181 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3181 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3182 doesn't support persistence. Reported (and fix suggested) by
3182 doesn't support persistence. Reported (and fix suggested) by
3183 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3183 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3184
3184
3185 2004-06-26 Fernando Perez <fperez@colorado.edu>
3185 2004-06-26 Fernando Perez <fperez@colorado.edu>
3186
3186
3187 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3187 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3188 continue prompts.
3188 continue prompts.
3189
3189
3190 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3190 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3191 function (basically a big docstring) and a few more things here to
3191 function (basically a big docstring) and a few more things here to
3192 speedup startup. pysh.py is now very lightweight. We want because
3192 speedup startup. pysh.py is now very lightweight. We want because
3193 it gets execfile'd, while InterpreterExec gets imported, so
3193 it gets execfile'd, while InterpreterExec gets imported, so
3194 byte-compilation saves time.
3194 byte-compilation saves time.
3195
3195
3196 2004-06-25 Fernando Perez <fperez@colorado.edu>
3196 2004-06-25 Fernando Perez <fperez@colorado.edu>
3197
3197
3198 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3198 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3199 -NUM', which was recently broken.
3199 -NUM', which was recently broken.
3200
3200
3201 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3201 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3202 in multi-line input (but not !!, which doesn't make sense there).
3202 in multi-line input (but not !!, which doesn't make sense there).
3203
3203
3204 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3204 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3205 It's just too useful, and people can turn it off in the less
3205 It's just too useful, and people can turn it off in the less
3206 common cases where it's a problem.
3206 common cases where it's a problem.
3207
3207
3208 2004-06-24 Fernando Perez <fperez@colorado.edu>
3208 2004-06-24 Fernando Perez <fperez@colorado.edu>
3209
3209
3210 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3210 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3211 special syntaxes (like alias calling) is now allied in multi-line
3211 special syntaxes (like alias calling) is now allied in multi-line
3212 input. This is still _very_ experimental, but it's necessary for
3212 input. This is still _very_ experimental, but it's necessary for
3213 efficient shell usage combining python looping syntax with system
3213 efficient shell usage combining python looping syntax with system
3214 calls. For now it's restricted to aliases, I don't think it
3214 calls. For now it's restricted to aliases, I don't think it
3215 really even makes sense to have this for magics.
3215 really even makes sense to have this for magics.
3216
3216
3217 2004-06-23 Fernando Perez <fperez@colorado.edu>
3217 2004-06-23 Fernando Perez <fperez@colorado.edu>
3218
3218
3219 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3219 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3220 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3220 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3221
3221
3222 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3222 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3223 extensions under Windows (after code sent by Gary Bishop). The
3223 extensions under Windows (after code sent by Gary Bishop). The
3224 extensions considered 'executable' are stored in IPython's rc
3224 extensions considered 'executable' are stored in IPython's rc
3225 structure as win_exec_ext.
3225 structure as win_exec_ext.
3226
3226
3227 * IPython/genutils.py (shell): new function, like system() but
3227 * IPython/genutils.py (shell): new function, like system() but
3228 without return value. Very useful for interactive shell work.
3228 without return value. Very useful for interactive shell work.
3229
3229
3230 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3230 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3231 delete aliases.
3231 delete aliases.
3232
3232
3233 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3233 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3234 sure that the alias table doesn't contain python keywords.
3234 sure that the alias table doesn't contain python keywords.
3235
3235
3236 2004-06-21 Fernando Perez <fperez@colorado.edu>
3236 2004-06-21 Fernando Perez <fperez@colorado.edu>
3237
3237
3238 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3238 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3239 non-existent items are found in $PATH. Reported by Thorsten.
3239 non-existent items are found in $PATH. Reported by Thorsten.
3240
3240
3241 2004-06-20 Fernando Perez <fperez@colorado.edu>
3241 2004-06-20 Fernando Perez <fperez@colorado.edu>
3242
3242
3243 * IPython/iplib.py (complete): modified the completer so that the
3243 * IPython/iplib.py (complete): modified the completer so that the
3244 order of priorities can be easily changed at runtime.
3244 order of priorities can be easily changed at runtime.
3245
3245
3246 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3246 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3247 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3247 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3248
3248
3249 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3249 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3250 expand Python variables prepended with $ in all system calls. The
3250 expand Python variables prepended with $ in all system calls. The
3251 same was done to InteractiveShell.handle_shell_escape. Now all
3251 same was done to InteractiveShell.handle_shell_escape. Now all
3252 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3252 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3253 expansion of python variables and expressions according to the
3253 expansion of python variables and expressions according to the
3254 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3254 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3255
3255
3256 Though PEP-215 has been rejected, a similar (but simpler) one
3256 Though PEP-215 has been rejected, a similar (but simpler) one
3257 seems like it will go into Python 2.4, PEP-292 -
3257 seems like it will go into Python 2.4, PEP-292 -
3258 http://www.python.org/peps/pep-0292.html.
3258 http://www.python.org/peps/pep-0292.html.
3259
3259
3260 I'll keep the full syntax of PEP-215, since IPython has since the
3260 I'll keep the full syntax of PEP-215, since IPython has since the
3261 start used Ka-Ping Yee's reference implementation discussed there
3261 start used Ka-Ping Yee's reference implementation discussed there
3262 (Itpl), and I actually like the powerful semantics it offers.
3262 (Itpl), and I actually like the powerful semantics it offers.
3263
3263
3264 In order to access normal shell variables, the $ has to be escaped
3264 In order to access normal shell variables, the $ has to be escaped
3265 via an extra $. For example:
3265 via an extra $. For example:
3266
3266
3267 In [7]: PATH='a python variable'
3267 In [7]: PATH='a python variable'
3268
3268
3269 In [8]: !echo $PATH
3269 In [8]: !echo $PATH
3270 a python variable
3270 a python variable
3271
3271
3272 In [9]: !echo $$PATH
3272 In [9]: !echo $$PATH
3273 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3273 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3274
3274
3275 (Magic.parse_options): escape $ so the shell doesn't evaluate
3275 (Magic.parse_options): escape $ so the shell doesn't evaluate
3276 things prematurely.
3276 things prematurely.
3277
3277
3278 * IPython/iplib.py (InteractiveShell.call_alias): added the
3278 * IPython/iplib.py (InteractiveShell.call_alias): added the
3279 ability for aliases to expand python variables via $.
3279 ability for aliases to expand python variables via $.
3280
3280
3281 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3281 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3282 system, now there's a @rehash/@rehashx pair of magics. These work
3282 system, now there's a @rehash/@rehashx pair of magics. These work
3283 like the csh rehash command, and can be invoked at any time. They
3283 like the csh rehash command, and can be invoked at any time. They
3284 build a table of aliases to everything in the user's $PATH
3284 build a table of aliases to everything in the user's $PATH
3285 (@rehash uses everything, @rehashx is slower but only adds
3285 (@rehash uses everything, @rehashx is slower but only adds
3286 executable files). With this, the pysh.py-based shell profile can
3286 executable files). With this, the pysh.py-based shell profile can
3287 now simply call rehash upon startup, and full access to all
3287 now simply call rehash upon startup, and full access to all
3288 programs in the user's path is obtained.
3288 programs in the user's path is obtained.
3289
3289
3290 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3290 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3291 functionality is now fully in place. I removed the old dynamic
3291 functionality is now fully in place. I removed the old dynamic
3292 code generation based approach, in favor of a much lighter one
3292 code generation based approach, in favor of a much lighter one
3293 based on a simple dict. The advantage is that this allows me to
3293 based on a simple dict. The advantage is that this allows me to
3294 now have thousands of aliases with negligible cost (unthinkable
3294 now have thousands of aliases with negligible cost (unthinkable
3295 with the old system).
3295 with the old system).
3296
3296
3297 2004-06-19 Fernando Perez <fperez@colorado.edu>
3297 2004-06-19 Fernando Perez <fperez@colorado.edu>
3298
3298
3299 * IPython/iplib.py (__init__): extended MagicCompleter class to
3299 * IPython/iplib.py (__init__): extended MagicCompleter class to
3300 also complete (last in priority) on user aliases.
3300 also complete (last in priority) on user aliases.
3301
3301
3302 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3302 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3303 call to eval.
3303 call to eval.
3304 (ItplNS.__init__): Added a new class which functions like Itpl,
3304 (ItplNS.__init__): Added a new class which functions like Itpl,
3305 but allows configuring the namespace for the evaluation to occur
3305 but allows configuring the namespace for the evaluation to occur
3306 in.
3306 in.
3307
3307
3308 2004-06-18 Fernando Perez <fperez@colorado.edu>
3308 2004-06-18 Fernando Perez <fperez@colorado.edu>
3309
3309
3310 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3310 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3311 better message when 'exit' or 'quit' are typed (a common newbie
3311 better message when 'exit' or 'quit' are typed (a common newbie
3312 confusion).
3312 confusion).
3313
3313
3314 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3314 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3315 check for Windows users.
3315 check for Windows users.
3316
3316
3317 * IPython/iplib.py (InteractiveShell.user_setup): removed
3317 * IPython/iplib.py (InteractiveShell.user_setup): removed
3318 disabling of colors for Windows. I'll test at runtime and issue a
3318 disabling of colors for Windows. I'll test at runtime and issue a
3319 warning if Gary's readline isn't found, as to nudge users to
3319 warning if Gary's readline isn't found, as to nudge users to
3320 download it.
3320 download it.
3321
3321
3322 2004-06-16 Fernando Perez <fperez@colorado.edu>
3322 2004-06-16 Fernando Perez <fperez@colorado.edu>
3323
3323
3324 * IPython/genutils.py (Stream.__init__): changed to print errors
3324 * IPython/genutils.py (Stream.__init__): changed to print errors
3325 to sys.stderr. I had a circular dependency here. Now it's
3325 to sys.stderr. I had a circular dependency here. Now it's
3326 possible to run ipython as IDLE's shell (consider this pre-alpha,
3326 possible to run ipython as IDLE's shell (consider this pre-alpha,
3327 since true stdout things end up in the starting terminal instead
3327 since true stdout things end up in the starting terminal instead
3328 of IDLE's out).
3328 of IDLE's out).
3329
3329
3330 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3330 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3331 users who haven't # updated their prompt_in2 definitions. Remove
3331 users who haven't # updated their prompt_in2 definitions. Remove
3332 eventually.
3332 eventually.
3333 (multiple_replace): added credit to original ASPN recipe.
3333 (multiple_replace): added credit to original ASPN recipe.
3334
3334
3335 2004-06-15 Fernando Perez <fperez@colorado.edu>
3335 2004-06-15 Fernando Perez <fperez@colorado.edu>
3336
3336
3337 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3337 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3338 list of auto-defined aliases.
3338 list of auto-defined aliases.
3339
3339
3340 2004-06-13 Fernando Perez <fperez@colorado.edu>
3340 2004-06-13 Fernando Perez <fperez@colorado.edu>
3341
3341
3342 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3342 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3343 install was really requested (so setup.py can be used for other
3343 install was really requested (so setup.py can be used for other
3344 things under Windows).
3344 things under Windows).
3345
3345
3346 2004-06-10 Fernando Perez <fperez@colorado.edu>
3346 2004-06-10 Fernando Perez <fperez@colorado.edu>
3347
3347
3348 * IPython/Logger.py (Logger.create_log): Manually remove any old
3348 * IPython/Logger.py (Logger.create_log): Manually remove any old
3349 backup, since os.remove may fail under Windows. Fixes bug
3349 backup, since os.remove may fail under Windows. Fixes bug
3350 reported by Thorsten.
3350 reported by Thorsten.
3351
3351
3352 2004-06-09 Fernando Perez <fperez@colorado.edu>
3352 2004-06-09 Fernando Perez <fperez@colorado.edu>
3353
3353
3354 * examples/example-embed.py: fixed all references to %n (replaced
3354 * examples/example-embed.py: fixed all references to %n (replaced
3355 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3355 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3356 for all examples and the manual as well.
3356 for all examples and the manual as well.
3357
3357
3358 2004-06-08 Fernando Perez <fperez@colorado.edu>
3358 2004-06-08 Fernando Perez <fperez@colorado.edu>
3359
3359
3360 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3360 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3361 alignment and color management. All 3 prompt subsystems now
3361 alignment and color management. All 3 prompt subsystems now
3362 inherit from BasePrompt.
3362 inherit from BasePrompt.
3363
3363
3364 * tools/release: updates for windows installer build and tag rpms
3364 * tools/release: updates for windows installer build and tag rpms
3365 with python version (since paths are fixed).
3365 with python version (since paths are fixed).
3366
3366
3367 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3367 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3368 which will become eventually obsolete. Also fixed the default
3368 which will become eventually obsolete. Also fixed the default
3369 prompt_in2 to use \D, so at least new users start with the correct
3369 prompt_in2 to use \D, so at least new users start with the correct
3370 defaults.
3370 defaults.
3371 WARNING: Users with existing ipythonrc files will need to apply
3371 WARNING: Users with existing ipythonrc files will need to apply
3372 this fix manually!
3372 this fix manually!
3373
3373
3374 * setup.py: make windows installer (.exe). This is finally the
3374 * setup.py: make windows installer (.exe). This is finally the
3375 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3375 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3376 which I hadn't included because it required Python 2.3 (or recent
3376 which I hadn't included because it required Python 2.3 (or recent
3377 distutils).
3377 distutils).
3378
3378
3379 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3379 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3380 usage of new '\D' escape.
3380 usage of new '\D' escape.
3381
3381
3382 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3382 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3383 lacks os.getuid())
3383 lacks os.getuid())
3384 (CachedOutput.set_colors): Added the ability to turn coloring
3384 (CachedOutput.set_colors): Added the ability to turn coloring
3385 on/off with @colors even for manually defined prompt colors. It
3385 on/off with @colors even for manually defined prompt colors. It
3386 uses a nasty global, but it works safely and via the generic color
3386 uses a nasty global, but it works safely and via the generic color
3387 handling mechanism.
3387 handling mechanism.
3388 (Prompt2.__init__): Introduced new escape '\D' for continuation
3388 (Prompt2.__init__): Introduced new escape '\D' for continuation
3389 prompts. It represents the counter ('\#') as dots.
3389 prompts. It represents the counter ('\#') as dots.
3390 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3390 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3391 need to update their ipythonrc files and replace '%n' with '\D' in
3391 need to update their ipythonrc files and replace '%n' with '\D' in
3392 their prompt_in2 settings everywhere. Sorry, but there's
3392 their prompt_in2 settings everywhere. Sorry, but there's
3393 otherwise no clean way to get all prompts to properly align. The
3393 otherwise no clean way to get all prompts to properly align. The
3394 ipythonrc shipped with IPython has been updated.
3394 ipythonrc shipped with IPython has been updated.
3395
3395
3396 2004-06-07 Fernando Perez <fperez@colorado.edu>
3396 2004-06-07 Fernando Perez <fperez@colorado.edu>
3397
3397
3398 * setup.py (isfile): Pass local_icons option to latex2html, so the
3398 * setup.py (isfile): Pass local_icons option to latex2html, so the
3399 resulting HTML file is self-contained. Thanks to
3399 resulting HTML file is self-contained. Thanks to
3400 dryice-AT-liu.com.cn for the tip.
3400 dryice-AT-liu.com.cn for the tip.
3401
3401
3402 * pysh.py: I created a new profile 'shell', which implements a
3402 * pysh.py: I created a new profile 'shell', which implements a
3403 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3403 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3404 system shell, nor will it become one anytime soon. It's mainly
3404 system shell, nor will it become one anytime soon. It's mainly
3405 meant to illustrate the use of the new flexible bash-like prompts.
3405 meant to illustrate the use of the new flexible bash-like prompts.
3406 I guess it could be used by hardy souls for true shell management,
3406 I guess it could be used by hardy souls for true shell management,
3407 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3407 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3408 profile. This uses the InterpreterExec extension provided by
3408 profile. This uses the InterpreterExec extension provided by
3409 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3409 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3410
3410
3411 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3411 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3412 auto-align itself with the length of the previous input prompt
3412 auto-align itself with the length of the previous input prompt
3413 (taking into account the invisible color escapes).
3413 (taking into account the invisible color escapes).
3414 (CachedOutput.__init__): Large restructuring of this class. Now
3414 (CachedOutput.__init__): Large restructuring of this class. Now
3415 all three prompts (primary1, primary2, output) are proper objects,
3415 all three prompts (primary1, primary2, output) are proper objects,
3416 managed by the 'parent' CachedOutput class. The code is still a
3416 managed by the 'parent' CachedOutput class. The code is still a
3417 bit hackish (all prompts share state via a pointer to the cache),
3417 bit hackish (all prompts share state via a pointer to the cache),
3418 but it's overall far cleaner than before.
3418 but it's overall far cleaner than before.
3419
3419
3420 * IPython/genutils.py (getoutputerror): modified to add verbose,
3420 * IPython/genutils.py (getoutputerror): modified to add verbose,
3421 debug and header options. This makes the interface of all getout*
3421 debug and header options. This makes the interface of all getout*
3422 functions uniform.
3422 functions uniform.
3423 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3423 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3424
3424
3425 * IPython/Magic.py (Magic.default_option): added a function to
3425 * IPython/Magic.py (Magic.default_option): added a function to
3426 allow registering default options for any magic command. This
3426 allow registering default options for any magic command. This
3427 makes it easy to have profiles which customize the magics globally
3427 makes it easy to have profiles which customize the magics globally
3428 for a certain use. The values set through this function are
3428 for a certain use. The values set through this function are
3429 picked up by the parse_options() method, which all magics should
3429 picked up by the parse_options() method, which all magics should
3430 use to parse their options.
3430 use to parse their options.
3431
3431
3432 * IPython/genutils.py (warn): modified the warnings framework to
3432 * IPython/genutils.py (warn): modified the warnings framework to
3433 use the Term I/O class. I'm trying to slowly unify all of
3433 use the Term I/O class. I'm trying to slowly unify all of
3434 IPython's I/O operations to pass through Term.
3434 IPython's I/O operations to pass through Term.
3435
3435
3436 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3436 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3437 the secondary prompt to correctly match the length of the primary
3437 the secondary prompt to correctly match the length of the primary
3438 one for any prompt. Now multi-line code will properly line up
3438 one for any prompt. Now multi-line code will properly line up
3439 even for path dependent prompts, such as the new ones available
3439 even for path dependent prompts, such as the new ones available
3440 via the prompt_specials.
3440 via the prompt_specials.
3441
3441
3442 2004-06-06 Fernando Perez <fperez@colorado.edu>
3442 2004-06-06 Fernando Perez <fperez@colorado.edu>
3443
3443
3444 * IPython/Prompts.py (prompt_specials): Added the ability to have
3444 * IPython/Prompts.py (prompt_specials): Added the ability to have
3445 bash-like special sequences in the prompts, which get
3445 bash-like special sequences in the prompts, which get
3446 automatically expanded. Things like hostname, current working
3446 automatically expanded. Things like hostname, current working
3447 directory and username are implemented already, but it's easy to
3447 directory and username are implemented already, but it's easy to
3448 add more in the future. Thanks to a patch by W.J. van der Laan
3448 add more in the future. Thanks to a patch by W.J. van der Laan
3449 <gnufnork-AT-hetdigitalegat.nl>
3449 <gnufnork-AT-hetdigitalegat.nl>
3450 (prompt_specials): Added color support for prompt strings, so
3450 (prompt_specials): Added color support for prompt strings, so
3451 users can define arbitrary color setups for their prompts.
3451 users can define arbitrary color setups for their prompts.
3452
3452
3453 2004-06-05 Fernando Perez <fperez@colorado.edu>
3453 2004-06-05 Fernando Perez <fperez@colorado.edu>
3454
3454
3455 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3455 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3456 code to load Gary Bishop's readline and configure it
3456 code to load Gary Bishop's readline and configure it
3457 automatically. Thanks to Gary for help on this.
3457 automatically. Thanks to Gary for help on this.
3458
3458
3459 2004-06-01 Fernando Perez <fperez@colorado.edu>
3459 2004-06-01 Fernando Perez <fperez@colorado.edu>
3460
3460
3461 * IPython/Logger.py (Logger.create_log): fix bug for logging
3461 * IPython/Logger.py (Logger.create_log): fix bug for logging
3462 with no filename (previous fix was incomplete).
3462 with no filename (previous fix was incomplete).
3463
3463
3464 2004-05-25 Fernando Perez <fperez@colorado.edu>
3464 2004-05-25 Fernando Perez <fperez@colorado.edu>
3465
3465
3466 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3466 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3467 parens would get passed to the shell.
3467 parens would get passed to the shell.
3468
3468
3469 2004-05-20 Fernando Perez <fperez@colorado.edu>
3469 2004-05-20 Fernando Perez <fperez@colorado.edu>
3470
3470
3471 * IPython/Magic.py (Magic.magic_prun): changed default profile
3471 * IPython/Magic.py (Magic.magic_prun): changed default profile
3472 sort order to 'time' (the more common profiling need).
3472 sort order to 'time' (the more common profiling need).
3473
3473
3474 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3474 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3475 so that source code shown is guaranteed in sync with the file on
3475 so that source code shown is guaranteed in sync with the file on
3476 disk (also changed in psource). Similar fix to the one for
3476 disk (also changed in psource). Similar fix to the one for
3477 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3477 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3478 <yann.ledu-AT-noos.fr>.
3478 <yann.ledu-AT-noos.fr>.
3479
3479
3480 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3480 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3481 with a single option would not be correctly parsed. Closes
3481 with a single option would not be correctly parsed. Closes
3482 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3482 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3483 introduced in 0.6.0 (on 2004-05-06).
3483 introduced in 0.6.0 (on 2004-05-06).
3484
3484
3485 2004-05-13 *** Released version 0.6.0
3485 2004-05-13 *** Released version 0.6.0
3486
3486
3487 2004-05-13 Fernando Perez <fperez@colorado.edu>
3487 2004-05-13 Fernando Perez <fperez@colorado.edu>
3488
3488
3489 * debian/: Added debian/ directory to CVS, so that debian support
3489 * debian/: Added debian/ directory to CVS, so that debian support
3490 is publicly accessible. The debian package is maintained by Jack
3490 is publicly accessible. The debian package is maintained by Jack
3491 Moffit <jack-AT-xiph.org>.
3491 Moffit <jack-AT-xiph.org>.
3492
3492
3493 * Documentation: included the notes about an ipython-based system
3493 * Documentation: included the notes about an ipython-based system
3494 shell (the hypothetical 'pysh') into the new_design.pdf document,
3494 shell (the hypothetical 'pysh') into the new_design.pdf document,
3495 so that these ideas get distributed to users along with the
3495 so that these ideas get distributed to users along with the
3496 official documentation.
3496 official documentation.
3497
3497
3498 2004-05-10 Fernando Perez <fperez@colorado.edu>
3498 2004-05-10 Fernando Perez <fperez@colorado.edu>
3499
3499
3500 * IPython/Logger.py (Logger.create_log): fix recently introduced
3500 * IPython/Logger.py (Logger.create_log): fix recently introduced
3501 bug (misindented line) where logstart would fail when not given an
3501 bug (misindented line) where logstart would fail when not given an
3502 explicit filename.
3502 explicit filename.
3503
3503
3504 2004-05-09 Fernando Perez <fperez@colorado.edu>
3504 2004-05-09 Fernando Perez <fperez@colorado.edu>
3505
3505
3506 * IPython/Magic.py (Magic.parse_options): skip system call when
3506 * IPython/Magic.py (Magic.parse_options): skip system call when
3507 there are no options to look for. Faster, cleaner for the common
3507 there are no options to look for. Faster, cleaner for the common
3508 case.
3508 case.
3509
3509
3510 * Documentation: many updates to the manual: describing Windows
3510 * Documentation: many updates to the manual: describing Windows
3511 support better, Gnuplot updates, credits, misc small stuff. Also
3511 support better, Gnuplot updates, credits, misc small stuff. Also
3512 updated the new_design doc a bit.
3512 updated the new_design doc a bit.
3513
3513
3514 2004-05-06 *** Released version 0.6.0.rc1
3514 2004-05-06 *** Released version 0.6.0.rc1
3515
3515
3516 2004-05-06 Fernando Perez <fperez@colorado.edu>
3516 2004-05-06 Fernando Perez <fperez@colorado.edu>
3517
3517
3518 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3518 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3519 operations to use the vastly more efficient list/''.join() method.
3519 operations to use the vastly more efficient list/''.join() method.
3520 (FormattedTB.text): Fix
3520 (FormattedTB.text): Fix
3521 http://www.scipy.net/roundup/ipython/issue12 - exception source
3521 http://www.scipy.net/roundup/ipython/issue12 - exception source
3522 extract not updated after reload. Thanks to Mike Salib
3522 extract not updated after reload. Thanks to Mike Salib
3523 <msalib-AT-mit.edu> for pinning the source of the problem.
3523 <msalib-AT-mit.edu> for pinning the source of the problem.
3524 Fortunately, the solution works inside ipython and doesn't require
3524 Fortunately, the solution works inside ipython and doesn't require
3525 any changes to python proper.
3525 any changes to python proper.
3526
3526
3527 * IPython/Magic.py (Magic.parse_options): Improved to process the
3527 * IPython/Magic.py (Magic.parse_options): Improved to process the
3528 argument list as a true shell would (by actually using the
3528 argument list as a true shell would (by actually using the
3529 underlying system shell). This way, all @magics automatically get
3529 underlying system shell). This way, all @magics automatically get
3530 shell expansion for variables. Thanks to a comment by Alex
3530 shell expansion for variables. Thanks to a comment by Alex
3531 Schmolck.
3531 Schmolck.
3532
3532
3533 2004-04-04 Fernando Perez <fperez@colorado.edu>
3533 2004-04-04 Fernando Perez <fperez@colorado.edu>
3534
3534
3535 * IPython/iplib.py (InteractiveShell.interact): Added a special
3535 * IPython/iplib.py (InteractiveShell.interact): Added a special
3536 trap for a debugger quit exception, which is basically impossible
3536 trap for a debugger quit exception, which is basically impossible
3537 to handle by normal mechanisms, given what pdb does to the stack.
3537 to handle by normal mechanisms, given what pdb does to the stack.
3538 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3538 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3539
3539
3540 2004-04-03 Fernando Perez <fperez@colorado.edu>
3540 2004-04-03 Fernando Perez <fperez@colorado.edu>
3541
3541
3542 * IPython/genutils.py (Term): Standardized the names of the Term
3542 * IPython/genutils.py (Term): Standardized the names of the Term
3543 class streams to cin/cout/cerr, following C++ naming conventions
3543 class streams to cin/cout/cerr, following C++ naming conventions
3544 (I can't use in/out/err because 'in' is not a valid attribute
3544 (I can't use in/out/err because 'in' is not a valid attribute
3545 name).
3545 name).
3546
3546
3547 * IPython/iplib.py (InteractiveShell.interact): don't increment
3547 * IPython/iplib.py (InteractiveShell.interact): don't increment
3548 the prompt if there's no user input. By Daniel 'Dang' Griffith
3548 the prompt if there's no user input. By Daniel 'Dang' Griffith
3549 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3549 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3550 Francois Pinard.
3550 Francois Pinard.
3551
3551
3552 2004-04-02 Fernando Perez <fperez@colorado.edu>
3552 2004-04-02 Fernando Perez <fperez@colorado.edu>
3553
3553
3554 * IPython/genutils.py (Stream.__init__): Modified to survive at
3554 * IPython/genutils.py (Stream.__init__): Modified to survive at
3555 least importing in contexts where stdin/out/err aren't true file
3555 least importing in contexts where stdin/out/err aren't true file
3556 objects, such as PyCrust (they lack fileno() and mode). However,
3556 objects, such as PyCrust (they lack fileno() and mode). However,
3557 the recovery facilities which rely on these things existing will
3557 the recovery facilities which rely on these things existing will
3558 not work.
3558 not work.
3559
3559
3560 2004-04-01 Fernando Perez <fperez@colorado.edu>
3560 2004-04-01 Fernando Perez <fperez@colorado.edu>
3561
3561
3562 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3562 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3563 use the new getoutputerror() function, so it properly
3563 use the new getoutputerror() function, so it properly
3564 distinguishes stdout/err.
3564 distinguishes stdout/err.
3565
3565
3566 * IPython/genutils.py (getoutputerror): added a function to
3566 * IPython/genutils.py (getoutputerror): added a function to
3567 capture separately the standard output and error of a command.
3567 capture separately the standard output and error of a command.
3568 After a comment from dang on the mailing lists. This code is
3568 After a comment from dang on the mailing lists. This code is
3569 basically a modified version of commands.getstatusoutput(), from
3569 basically a modified version of commands.getstatusoutput(), from
3570 the standard library.
3570 the standard library.
3571
3571
3572 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3572 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3573 '!!' as a special syntax (shorthand) to access @sx.
3573 '!!' as a special syntax (shorthand) to access @sx.
3574
3574
3575 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3575 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3576 command and return its output as a list split on '\n'.
3576 command and return its output as a list split on '\n'.
3577
3577
3578 2004-03-31 Fernando Perez <fperez@colorado.edu>
3578 2004-03-31 Fernando Perez <fperez@colorado.edu>
3579
3579
3580 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3580 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3581 method to dictionaries used as FakeModule instances if they lack
3581 method to dictionaries used as FakeModule instances if they lack
3582 it. At least pydoc in python2.3 breaks for runtime-defined
3582 it. At least pydoc in python2.3 breaks for runtime-defined
3583 functions without this hack. At some point I need to _really_
3583 functions without this hack. At some point I need to _really_
3584 understand what FakeModule is doing, because it's a gross hack.
3584 understand what FakeModule is doing, because it's a gross hack.
3585 But it solves Arnd's problem for now...
3585 But it solves Arnd's problem for now...
3586
3586
3587 2004-02-27 Fernando Perez <fperez@colorado.edu>
3587 2004-02-27 Fernando Perez <fperez@colorado.edu>
3588
3588
3589 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3589 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3590 mode would behave erratically. Also increased the number of
3590 mode would behave erratically. Also increased the number of
3591 possible logs in rotate mod to 999. Thanks to Rod Holland
3591 possible logs in rotate mod to 999. Thanks to Rod Holland
3592 <rhh@StructureLABS.com> for the report and fixes.
3592 <rhh@StructureLABS.com> for the report and fixes.
3593
3593
3594 2004-02-26 Fernando Perez <fperez@colorado.edu>
3594 2004-02-26 Fernando Perez <fperez@colorado.edu>
3595
3595
3596 * IPython/genutils.py (page): Check that the curses module really
3596 * IPython/genutils.py (page): Check that the curses module really
3597 has the initscr attribute before trying to use it. For some
3597 has the initscr attribute before trying to use it. For some
3598 reason, the Solaris curses module is missing this. I think this
3598 reason, the Solaris curses module is missing this. I think this
3599 should be considered a Solaris python bug, but I'm not sure.
3599 should be considered a Solaris python bug, but I'm not sure.
3600
3600
3601 2004-01-17 Fernando Perez <fperez@colorado.edu>
3601 2004-01-17 Fernando Perez <fperez@colorado.edu>
3602
3602
3603 * IPython/genutils.py (Stream.__init__): Changes to try to make
3603 * IPython/genutils.py (Stream.__init__): Changes to try to make
3604 ipython robust against stdin/out/err being closed by the user.
3604 ipython robust against stdin/out/err being closed by the user.
3605 This is 'user error' (and blocks a normal python session, at least
3605 This is 'user error' (and blocks a normal python session, at least
3606 the stdout case). However, Ipython should be able to survive such
3606 the stdout case). However, Ipython should be able to survive such
3607 instances of abuse as gracefully as possible. To simplify the
3607 instances of abuse as gracefully as possible. To simplify the
3608 coding and maintain compatibility with Gary Bishop's Term
3608 coding and maintain compatibility with Gary Bishop's Term
3609 contributions, I've made use of classmethods for this. I think
3609 contributions, I've made use of classmethods for this. I think
3610 this introduces a dependency on python 2.2.
3610 this introduces a dependency on python 2.2.
3611
3611
3612 2004-01-13 Fernando Perez <fperez@colorado.edu>
3612 2004-01-13 Fernando Perez <fperez@colorado.edu>
3613
3613
3614 * IPython/numutils.py (exp_safe): simplified the code a bit and
3614 * IPython/numutils.py (exp_safe): simplified the code a bit and
3615 removed the need for importing the kinds module altogether.
3615 removed the need for importing the kinds module altogether.
3616
3616
3617 2004-01-06 Fernando Perez <fperez@colorado.edu>
3617 2004-01-06 Fernando Perez <fperez@colorado.edu>
3618
3618
3619 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3619 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3620 a magic function instead, after some community feedback. No
3620 a magic function instead, after some community feedback. No
3621 special syntax will exist for it, but its name is deliberately
3621 special syntax will exist for it, but its name is deliberately
3622 very short.
3622 very short.
3623
3623
3624 2003-12-20 Fernando Perez <fperez@colorado.edu>
3624 2003-12-20 Fernando Perez <fperez@colorado.edu>
3625
3625
3626 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3626 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3627 new functionality, to automagically assign the result of a shell
3627 new functionality, to automagically assign the result of a shell
3628 command to a variable. I'll solicit some community feedback on
3628 command to a variable. I'll solicit some community feedback on
3629 this before making it permanent.
3629 this before making it permanent.
3630
3630
3631 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3631 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3632 requested about callables for which inspect couldn't obtain a
3632 requested about callables for which inspect couldn't obtain a
3633 proper argspec. Thanks to a crash report sent by Etienne
3633 proper argspec. Thanks to a crash report sent by Etienne
3634 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3634 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3635
3635
3636 2003-12-09 Fernando Perez <fperez@colorado.edu>
3636 2003-12-09 Fernando Perez <fperez@colorado.edu>
3637
3637
3638 * IPython/genutils.py (page): patch for the pager to work across
3638 * IPython/genutils.py (page): patch for the pager to work across
3639 various versions of Windows. By Gary Bishop.
3639 various versions of Windows. By Gary Bishop.
3640
3640
3641 2003-12-04 Fernando Perez <fperez@colorado.edu>
3641 2003-12-04 Fernando Perez <fperez@colorado.edu>
3642
3642
3643 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3643 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3644 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3644 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3645 While I tested this and it looks ok, there may still be corner
3645 While I tested this and it looks ok, there may still be corner
3646 cases I've missed.
3646 cases I've missed.
3647
3647
3648 2003-12-01 Fernando Perez <fperez@colorado.edu>
3648 2003-12-01 Fernando Perez <fperez@colorado.edu>
3649
3649
3650 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3650 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3651 where a line like 'p,q=1,2' would fail because the automagic
3651 where a line like 'p,q=1,2' would fail because the automagic
3652 system would be triggered for @p.
3652 system would be triggered for @p.
3653
3653
3654 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3654 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3655 cleanups, code unmodified.
3655 cleanups, code unmodified.
3656
3656
3657 * IPython/genutils.py (Term): added a class for IPython to handle
3657 * IPython/genutils.py (Term): added a class for IPython to handle
3658 output. In most cases it will just be a proxy for stdout/err, but
3658 output. In most cases it will just be a proxy for stdout/err, but
3659 having this allows modifications to be made for some platforms,
3659 having this allows modifications to be made for some platforms,
3660 such as handling color escapes under Windows. All of this code
3660 such as handling color escapes under Windows. All of this code
3661 was contributed by Gary Bishop, with minor modifications by me.
3661 was contributed by Gary Bishop, with minor modifications by me.
3662 The actual changes affect many files.
3662 The actual changes affect many files.
3663
3663
3664 2003-11-30 Fernando Perez <fperez@colorado.edu>
3664 2003-11-30 Fernando Perez <fperez@colorado.edu>
3665
3665
3666 * IPython/iplib.py (file_matches): new completion code, courtesy
3666 * IPython/iplib.py (file_matches): new completion code, courtesy
3667 of Jeff Collins. This enables filename completion again under
3667 of Jeff Collins. This enables filename completion again under
3668 python 2.3, which disabled it at the C level.
3668 python 2.3, which disabled it at the C level.
3669
3669
3670 2003-11-11 Fernando Perez <fperez@colorado.edu>
3670 2003-11-11 Fernando Perez <fperez@colorado.edu>
3671
3671
3672 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
3672 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
3673 for Numeric.array(map(...)), but often convenient.
3673 for Numeric.array(map(...)), but often convenient.
3674
3674
3675 2003-11-05 Fernando Perez <fperez@colorado.edu>
3675 2003-11-05 Fernando Perez <fperez@colorado.edu>
3676
3676
3677 * IPython/numutils.py (frange): Changed a call from int() to
3677 * IPython/numutils.py (frange): Changed a call from int() to
3678 int(round()) to prevent a problem reported with arange() in the
3678 int(round()) to prevent a problem reported with arange() in the
3679 numpy list.
3679 numpy list.
3680
3680
3681 2003-10-06 Fernando Perez <fperez@colorado.edu>
3681 2003-10-06 Fernando Perez <fperez@colorado.edu>
3682
3682
3683 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
3683 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
3684 prevent crashes if sys lacks an argv attribute (it happens with
3684 prevent crashes if sys lacks an argv attribute (it happens with
3685 embedded interpreters which build a bare-bones sys module).
3685 embedded interpreters which build a bare-bones sys module).
3686 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
3686 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
3687
3687
3688 2003-09-24 Fernando Perez <fperez@colorado.edu>
3688 2003-09-24 Fernando Perez <fperez@colorado.edu>
3689
3689
3690 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
3690 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
3691 to protect against poorly written user objects where __getattr__
3691 to protect against poorly written user objects where __getattr__
3692 raises exceptions other than AttributeError. Thanks to a bug
3692 raises exceptions other than AttributeError. Thanks to a bug
3693 report by Oliver Sander <osander-AT-gmx.de>.
3693 report by Oliver Sander <osander-AT-gmx.de>.
3694
3694
3695 * IPython/FakeModule.py (FakeModule.__repr__): this method was
3695 * IPython/FakeModule.py (FakeModule.__repr__): this method was
3696 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
3696 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
3697
3697
3698 2003-09-09 Fernando Perez <fperez@colorado.edu>
3698 2003-09-09 Fernando Perez <fperez@colorado.edu>
3699
3699
3700 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3700 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3701 unpacking a list whith a callable as first element would
3701 unpacking a list whith a callable as first element would
3702 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
3702 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
3703 Collins.
3703 Collins.
3704
3704
3705 2003-08-25 *** Released version 0.5.0
3705 2003-08-25 *** Released version 0.5.0
3706
3706
3707 2003-08-22 Fernando Perez <fperez@colorado.edu>
3707 2003-08-22 Fernando Perez <fperez@colorado.edu>
3708
3708
3709 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
3709 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
3710 improperly defined user exceptions. Thanks to feedback from Mark
3710 improperly defined user exceptions. Thanks to feedback from Mark
3711 Russell <mrussell-AT-verio.net>.
3711 Russell <mrussell-AT-verio.net>.
3712
3712
3713 2003-08-20 Fernando Perez <fperez@colorado.edu>
3713 2003-08-20 Fernando Perez <fperez@colorado.edu>
3714
3714
3715 * IPython/OInspect.py (Inspector.pinfo): changed String Form
3715 * IPython/OInspect.py (Inspector.pinfo): changed String Form
3716 printing so that it would print multi-line string forms starting
3716 printing so that it would print multi-line string forms starting
3717 with a new line. This way the formatting is better respected for
3717 with a new line. This way the formatting is better respected for
3718 objects which work hard to make nice string forms.
3718 objects which work hard to make nice string forms.
3719
3719
3720 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
3720 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
3721 autocall would overtake data access for objects with both
3721 autocall would overtake data access for objects with both
3722 __getitem__ and __call__.
3722 __getitem__ and __call__.
3723
3723
3724 2003-08-19 *** Released version 0.5.0-rc1
3724 2003-08-19 *** Released version 0.5.0-rc1
3725
3725
3726 2003-08-19 Fernando Perez <fperez@colorado.edu>
3726 2003-08-19 Fernando Perez <fperez@colorado.edu>
3727
3727
3728 * IPython/deep_reload.py (load_tail): single tiny change here
3728 * IPython/deep_reload.py (load_tail): single tiny change here
3729 seems to fix the long-standing bug of dreload() failing to work
3729 seems to fix the long-standing bug of dreload() failing to work
3730 for dotted names. But this module is pretty tricky, so I may have
3730 for dotted names. But this module is pretty tricky, so I may have
3731 missed some subtlety. Needs more testing!.
3731 missed some subtlety. Needs more testing!.
3732
3732
3733 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
3733 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
3734 exceptions which have badly implemented __str__ methods.
3734 exceptions which have badly implemented __str__ methods.
3735 (VerboseTB.text): harden against inspect.getinnerframes crashing,
3735 (VerboseTB.text): harden against inspect.getinnerframes crashing,
3736 which I've been getting reports about from Python 2.3 users. I
3736 which I've been getting reports about from Python 2.3 users. I
3737 wish I had a simple test case to reproduce the problem, so I could
3737 wish I had a simple test case to reproduce the problem, so I could
3738 either write a cleaner workaround or file a bug report if
3738 either write a cleaner workaround or file a bug report if
3739 necessary.
3739 necessary.
3740
3740
3741 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
3741 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
3742 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
3742 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
3743 a bug report by Tjabo Kloppenburg.
3743 a bug report by Tjabo Kloppenburg.
3744
3744
3745 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
3745 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
3746 crashes. Wrapped the pdb call in a blanket try/except, since pdb
3746 crashes. Wrapped the pdb call in a blanket try/except, since pdb
3747 seems rather unstable. Thanks to a bug report by Tjabo
3747 seems rather unstable. Thanks to a bug report by Tjabo
3748 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
3748 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
3749
3749
3750 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
3750 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
3751 this out soon because of the critical fixes in the inner loop for
3751 this out soon because of the critical fixes in the inner loop for
3752 generators.
3752 generators.
3753
3753
3754 * IPython/Magic.py (Magic.getargspec): removed. This (and
3754 * IPython/Magic.py (Magic.getargspec): removed. This (and
3755 _get_def) have been obsoleted by OInspect for a long time, I
3755 _get_def) have been obsoleted by OInspect for a long time, I
3756 hadn't noticed that they were dead code.
3756 hadn't noticed that they were dead code.
3757 (Magic._ofind): restored _ofind functionality for a few literals
3757 (Magic._ofind): restored _ofind functionality for a few literals
3758 (those in ["''",'""','[]','{}','()']). But it won't work anymore
3758 (those in ["''",'""','[]','{}','()']). But it won't work anymore
3759 for things like "hello".capitalize?, since that would require a
3759 for things like "hello".capitalize?, since that would require a
3760 potentially dangerous eval() again.
3760 potentially dangerous eval() again.
3761
3761
3762 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
3762 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
3763 logic a bit more to clean up the escapes handling and minimize the
3763 logic a bit more to clean up the escapes handling and minimize the
3764 use of _ofind to only necessary cases. The interactive 'feel' of
3764 use of _ofind to only necessary cases. The interactive 'feel' of
3765 IPython should have improved quite a bit with the changes in
3765 IPython should have improved quite a bit with the changes in
3766 _prefilter and _ofind (besides being far safer than before).
3766 _prefilter and _ofind (besides being far safer than before).
3767
3767
3768 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
3768 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
3769 obscure, never reported). Edit would fail to find the object to
3769 obscure, never reported). Edit would fail to find the object to
3770 edit under some circumstances.
3770 edit under some circumstances.
3771 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
3771 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
3772 which were causing double-calling of generators. Those eval calls
3772 which were causing double-calling of generators. Those eval calls
3773 were _very_ dangerous, since code with side effects could be
3773 were _very_ dangerous, since code with side effects could be
3774 triggered. As they say, 'eval is evil'... These were the
3774 triggered. As they say, 'eval is evil'... These were the
3775 nastiest evals in IPython. Besides, _ofind is now far simpler,
3775 nastiest evals in IPython. Besides, _ofind is now far simpler,
3776 and it should also be quite a bit faster. Its use of inspect is
3776 and it should also be quite a bit faster. Its use of inspect is
3777 also safer, so perhaps some of the inspect-related crashes I've
3777 also safer, so perhaps some of the inspect-related crashes I've
3778 seen lately with Python 2.3 might be taken care of. That will
3778 seen lately with Python 2.3 might be taken care of. That will
3779 need more testing.
3779 need more testing.
3780
3780
3781 2003-08-17 Fernando Perez <fperez@colorado.edu>
3781 2003-08-17 Fernando Perez <fperez@colorado.edu>
3782
3782
3783 * IPython/iplib.py (InteractiveShell._prefilter): significant
3783 * IPython/iplib.py (InteractiveShell._prefilter): significant
3784 simplifications to the logic for handling user escapes. Faster
3784 simplifications to the logic for handling user escapes. Faster
3785 and simpler code.
3785 and simpler code.
3786
3786
3787 2003-08-14 Fernando Perez <fperez@colorado.edu>
3787 2003-08-14 Fernando Perez <fperez@colorado.edu>
3788
3788
3789 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
3789 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
3790 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
3790 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
3791 but it should be quite a bit faster. And the recursive version
3791 but it should be quite a bit faster. And the recursive version
3792 generated O(log N) intermediate storage for all rank>1 arrays,
3792 generated O(log N) intermediate storage for all rank>1 arrays,
3793 even if they were contiguous.
3793 even if they were contiguous.
3794 (l1norm): Added this function.
3794 (l1norm): Added this function.
3795 (norm): Added this function for arbitrary norms (including
3795 (norm): Added this function for arbitrary norms (including
3796 l-infinity). l1 and l2 are still special cases for convenience
3796 l-infinity). l1 and l2 are still special cases for convenience
3797 and speed.
3797 and speed.
3798
3798
3799 2003-08-03 Fernando Perez <fperez@colorado.edu>
3799 2003-08-03 Fernando Perez <fperez@colorado.edu>
3800
3800
3801 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
3801 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
3802 exceptions, which now raise PendingDeprecationWarnings in Python
3802 exceptions, which now raise PendingDeprecationWarnings in Python
3803 2.3. There were some in Magic and some in Gnuplot2.
3803 2.3. There were some in Magic and some in Gnuplot2.
3804
3804
3805 2003-06-30 Fernando Perez <fperez@colorado.edu>
3805 2003-06-30 Fernando Perez <fperez@colorado.edu>
3806
3806
3807 * IPython/genutils.py (page): modified to call curses only for
3807 * IPython/genutils.py (page): modified to call curses only for
3808 terminals where TERM=='xterm'. After problems under many other
3808 terminals where TERM=='xterm'. After problems under many other
3809 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
3809 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
3810
3810
3811 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
3811 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
3812 would be triggered when readline was absent. This was just an old
3812 would be triggered when readline was absent. This was just an old
3813 debugging statement I'd forgotten to take out.
3813 debugging statement I'd forgotten to take out.
3814
3814
3815 2003-06-20 Fernando Perez <fperez@colorado.edu>
3815 2003-06-20 Fernando Perez <fperez@colorado.edu>
3816
3816
3817 * IPython/genutils.py (clock): modified to return only user time
3817 * IPython/genutils.py (clock): modified to return only user time
3818 (not counting system time), after a discussion on scipy. While
3818 (not counting system time), after a discussion on scipy. While
3819 system time may be a useful quantity occasionally, it may much
3819 system time may be a useful quantity occasionally, it may much
3820 more easily be skewed by occasional swapping or other similar
3820 more easily be skewed by occasional swapping or other similar
3821 activity.
3821 activity.
3822
3822
3823 2003-06-05 Fernando Perez <fperez@colorado.edu>
3823 2003-06-05 Fernando Perez <fperez@colorado.edu>
3824
3824
3825 * IPython/numutils.py (identity): new function, for building
3825 * IPython/numutils.py (identity): new function, for building
3826 arbitrary rank Kronecker deltas (mostly backwards compatible with
3826 arbitrary rank Kronecker deltas (mostly backwards compatible with
3827 Numeric.identity)
3827 Numeric.identity)
3828
3828
3829 2003-06-03 Fernando Perez <fperez@colorado.edu>
3829 2003-06-03 Fernando Perez <fperez@colorado.edu>
3830
3830
3831 * IPython/iplib.py (InteractiveShell.handle_magic): protect
3831 * IPython/iplib.py (InteractiveShell.handle_magic): protect
3832 arguments passed to magics with spaces, to allow trailing '\' to
3832 arguments passed to magics with spaces, to allow trailing '\' to
3833 work normally (mainly for Windows users).
3833 work normally (mainly for Windows users).
3834
3834
3835 2003-05-29 Fernando Perez <fperez@colorado.edu>
3835 2003-05-29 Fernando Perez <fperez@colorado.edu>
3836
3836
3837 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
3837 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
3838 instead of pydoc.help. This fixes a bizarre behavior where
3838 instead of pydoc.help. This fixes a bizarre behavior where
3839 printing '%s' % locals() would trigger the help system. Now
3839 printing '%s' % locals() would trigger the help system. Now
3840 ipython behaves like normal python does.
3840 ipython behaves like normal python does.
3841
3841
3842 Note that if one does 'from pydoc import help', the bizarre
3842 Note that if one does 'from pydoc import help', the bizarre
3843 behavior returns, but this will also happen in normal python, so
3843 behavior returns, but this will also happen in normal python, so
3844 it's not an ipython bug anymore (it has to do with how pydoc.help
3844 it's not an ipython bug anymore (it has to do with how pydoc.help
3845 is implemented).
3845 is implemented).
3846
3846
3847 2003-05-22 Fernando Perez <fperez@colorado.edu>
3847 2003-05-22 Fernando Perez <fperez@colorado.edu>
3848
3848
3849 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
3849 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
3850 return [] instead of None when nothing matches, also match to end
3850 return [] instead of None when nothing matches, also match to end
3851 of line. Patch by Gary Bishop.
3851 of line. Patch by Gary Bishop.
3852
3852
3853 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
3853 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
3854 protection as before, for files passed on the command line. This
3854 protection as before, for files passed on the command line. This
3855 prevents the CrashHandler from kicking in if user files call into
3855 prevents the CrashHandler from kicking in if user files call into
3856 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
3856 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
3857 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
3857 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
3858
3858
3859 2003-05-20 *** Released version 0.4.0
3859 2003-05-20 *** Released version 0.4.0
3860
3860
3861 2003-05-20 Fernando Perez <fperez@colorado.edu>
3861 2003-05-20 Fernando Perez <fperez@colorado.edu>
3862
3862
3863 * setup.py: added support for manpages. It's a bit hackish b/c of
3863 * setup.py: added support for manpages. It's a bit hackish b/c of
3864 a bug in the way the bdist_rpm distutils target handles gzipped
3864 a bug in the way the bdist_rpm distutils target handles gzipped
3865 manpages, but it works. After a patch by Jack.
3865 manpages, but it works. After a patch by Jack.
3866
3866
3867 2003-05-19 Fernando Perez <fperez@colorado.edu>
3867 2003-05-19 Fernando Perez <fperez@colorado.edu>
3868
3868
3869 * IPython/numutils.py: added a mockup of the kinds module, since
3869 * IPython/numutils.py: added a mockup of the kinds module, since
3870 it was recently removed from Numeric. This way, numutils will
3870 it was recently removed from Numeric. This way, numutils will
3871 work for all users even if they are missing kinds.
3871 work for all users even if they are missing kinds.
3872
3872
3873 * IPython/Magic.py (Magic._ofind): Harden against an inspect
3873 * IPython/Magic.py (Magic._ofind): Harden against an inspect
3874 failure, which can occur with SWIG-wrapped extensions. After a
3874 failure, which can occur with SWIG-wrapped extensions. After a
3875 crash report from Prabhu.
3875 crash report from Prabhu.
3876
3876
3877 2003-05-16 Fernando Perez <fperez@colorado.edu>
3877 2003-05-16 Fernando Perez <fperez@colorado.edu>
3878
3878
3879 * IPython/iplib.py (InteractiveShell.excepthook): New method to
3879 * IPython/iplib.py (InteractiveShell.excepthook): New method to
3880 protect ipython from user code which may call directly
3880 protect ipython from user code which may call directly
3881 sys.excepthook (this looks like an ipython crash to the user, even
3881 sys.excepthook (this looks like an ipython crash to the user, even
3882 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
3882 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
3883 This is especially important to help users of WxWindows, but may
3883 This is especially important to help users of WxWindows, but may
3884 also be useful in other cases.
3884 also be useful in other cases.
3885
3885
3886 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
3886 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
3887 an optional tb_offset to be specified, and to preserve exception
3887 an optional tb_offset to be specified, and to preserve exception
3888 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
3888 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
3889
3889
3890 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
3890 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
3891
3891
3892 2003-05-15 Fernando Perez <fperez@colorado.edu>
3892 2003-05-15 Fernando Perez <fperez@colorado.edu>
3893
3893
3894 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
3894 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
3895 installing for a new user under Windows.
3895 installing for a new user under Windows.
3896
3896
3897 2003-05-12 Fernando Perez <fperez@colorado.edu>
3897 2003-05-12 Fernando Perez <fperez@colorado.edu>
3898
3898
3899 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
3899 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
3900 handler for Emacs comint-based lines. Currently it doesn't do
3900 handler for Emacs comint-based lines. Currently it doesn't do
3901 much (but importantly, it doesn't update the history cache). In
3901 much (but importantly, it doesn't update the history cache). In
3902 the future it may be expanded if Alex needs more functionality
3902 the future it may be expanded if Alex needs more functionality
3903 there.
3903 there.
3904
3904
3905 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
3905 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
3906 info to crash reports.
3906 info to crash reports.
3907
3907
3908 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
3908 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
3909 just like Python's -c. Also fixed crash with invalid -color
3909 just like Python's -c. Also fixed crash with invalid -color
3910 option value at startup. Thanks to Will French
3910 option value at startup. Thanks to Will French
3911 <wfrench-AT-bestweb.net> for the bug report.
3911 <wfrench-AT-bestweb.net> for the bug report.
3912
3912
3913 2003-05-09 Fernando Perez <fperez@colorado.edu>
3913 2003-05-09 Fernando Perez <fperez@colorado.edu>
3914
3914
3915 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
3915 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
3916 to EvalDict (it's a mapping, after all) and simplified its code
3916 to EvalDict (it's a mapping, after all) and simplified its code
3917 quite a bit, after a nice discussion on c.l.py where Gustavo
3917 quite a bit, after a nice discussion on c.l.py where Gustavo
3918 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
3918 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
3919
3919
3920 2003-04-30 Fernando Perez <fperez@colorado.edu>
3920 2003-04-30 Fernando Perez <fperez@colorado.edu>
3921
3921
3922 * IPython/genutils.py (timings_out): modified it to reduce its
3922 * IPython/genutils.py (timings_out): modified it to reduce its
3923 overhead in the common reps==1 case.
3923 overhead in the common reps==1 case.
3924
3924
3925 2003-04-29 Fernando Perez <fperez@colorado.edu>
3925 2003-04-29 Fernando Perez <fperez@colorado.edu>
3926
3926
3927 * IPython/genutils.py (timings_out): Modified to use the resource
3927 * IPython/genutils.py (timings_out): Modified to use the resource
3928 module, which avoids the wraparound problems of time.clock().
3928 module, which avoids the wraparound problems of time.clock().
3929
3929
3930 2003-04-17 *** Released version 0.2.15pre4
3930 2003-04-17 *** Released version 0.2.15pre4
3931
3931
3932 2003-04-17 Fernando Perez <fperez@colorado.edu>
3932 2003-04-17 Fernando Perez <fperez@colorado.edu>
3933
3933
3934 * setup.py (scriptfiles): Split windows-specific stuff over to a
3934 * setup.py (scriptfiles): Split windows-specific stuff over to a
3935 separate file, in an attempt to have a Windows GUI installer.
3935 separate file, in an attempt to have a Windows GUI installer.
3936 That didn't work, but part of the groundwork is done.
3936 That didn't work, but part of the groundwork is done.
3937
3937
3938 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
3938 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
3939 indent/unindent with 4 spaces. Particularly useful in combination
3939 indent/unindent with 4 spaces. Particularly useful in combination
3940 with the new auto-indent option.
3940 with the new auto-indent option.
3941
3941
3942 2003-04-16 Fernando Perez <fperez@colorado.edu>
3942 2003-04-16 Fernando Perez <fperez@colorado.edu>
3943
3943
3944 * IPython/Magic.py: various replacements of self.rc for
3944 * IPython/Magic.py: various replacements of self.rc for
3945 self.shell.rc. A lot more remains to be done to fully disentangle
3945 self.shell.rc. A lot more remains to be done to fully disentangle
3946 this class from the main Shell class.
3946 this class from the main Shell class.
3947
3947
3948 * IPython/GnuplotRuntime.py: added checks for mouse support so
3948 * IPython/GnuplotRuntime.py: added checks for mouse support so
3949 that we don't try to enable it if the current gnuplot doesn't
3949 that we don't try to enable it if the current gnuplot doesn't
3950 really support it. Also added checks so that we don't try to
3950 really support it. Also added checks so that we don't try to
3951 enable persist under Windows (where Gnuplot doesn't recognize the
3951 enable persist under Windows (where Gnuplot doesn't recognize the
3952 option).
3952 option).
3953
3953
3954 * IPython/iplib.py (InteractiveShell.interact): Added optional
3954 * IPython/iplib.py (InteractiveShell.interact): Added optional
3955 auto-indenting code, after a patch by King C. Shu
3955 auto-indenting code, after a patch by King C. Shu
3956 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
3956 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
3957 get along well with pasting indented code. If I ever figure out
3957 get along well with pasting indented code. If I ever figure out
3958 how to make that part go well, it will become on by default.
3958 how to make that part go well, it will become on by default.
3959
3959
3960 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
3960 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
3961 crash ipython if there was an unmatched '%' in the user's prompt
3961 crash ipython if there was an unmatched '%' in the user's prompt
3962 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
3962 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
3963
3963
3964 * IPython/iplib.py (InteractiveShell.interact): removed the
3964 * IPython/iplib.py (InteractiveShell.interact): removed the
3965 ability to ask the user whether he wants to crash or not at the
3965 ability to ask the user whether he wants to crash or not at the
3966 'last line' exception handler. Calling functions at that point
3966 'last line' exception handler. Calling functions at that point
3967 changes the stack, and the error reports would have incorrect
3967 changes the stack, and the error reports would have incorrect
3968 tracebacks.
3968 tracebacks.
3969
3969
3970 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
3970 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
3971 pass through a peger a pretty-printed form of any object. After a
3971 pass through a peger a pretty-printed form of any object. After a
3972 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
3972 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
3973
3973
3974 2003-04-14 Fernando Perez <fperez@colorado.edu>
3974 2003-04-14 Fernando Perez <fperez@colorado.edu>
3975
3975
3976 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
3976 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
3977 all files in ~ would be modified at first install (instead of
3977 all files in ~ would be modified at first install (instead of
3978 ~/.ipython). This could be potentially disastrous, as the
3978 ~/.ipython). This could be potentially disastrous, as the
3979 modification (make line-endings native) could damage binary files.
3979 modification (make line-endings native) could damage binary files.
3980
3980
3981 2003-04-10 Fernando Perez <fperez@colorado.edu>
3981 2003-04-10 Fernando Perez <fperez@colorado.edu>
3982
3982
3983 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
3983 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
3984 handle only lines which are invalid python. This now means that
3984 handle only lines which are invalid python. This now means that
3985 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
3985 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
3986 for the bug report.
3986 for the bug report.
3987
3987
3988 2003-04-01 Fernando Perez <fperez@colorado.edu>
3988 2003-04-01 Fernando Perez <fperez@colorado.edu>
3989
3989
3990 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
3990 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
3991 where failing to set sys.last_traceback would crash pdb.pm().
3991 where failing to set sys.last_traceback would crash pdb.pm().
3992 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
3992 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
3993 report.
3993 report.
3994
3994
3995 2003-03-25 Fernando Perez <fperez@colorado.edu>
3995 2003-03-25 Fernando Perez <fperez@colorado.edu>
3996
3996
3997 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
3997 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
3998 before printing it (it had a lot of spurious blank lines at the
3998 before printing it (it had a lot of spurious blank lines at the
3999 end).
3999 end).
4000
4000
4001 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4001 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4002 output would be sent 21 times! Obviously people don't use this
4002 output would be sent 21 times! Obviously people don't use this
4003 too often, or I would have heard about it.
4003 too often, or I would have heard about it.
4004
4004
4005 2003-03-24 Fernando Perez <fperez@colorado.edu>
4005 2003-03-24 Fernando Perez <fperez@colorado.edu>
4006
4006
4007 * setup.py (scriptfiles): renamed the data_files parameter from
4007 * setup.py (scriptfiles): renamed the data_files parameter from
4008 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4008 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4009 for the patch.
4009 for the patch.
4010
4010
4011 2003-03-20 Fernando Perez <fperez@colorado.edu>
4011 2003-03-20 Fernando Perez <fperez@colorado.edu>
4012
4012
4013 * IPython/genutils.py (error): added error() and fatal()
4013 * IPython/genutils.py (error): added error() and fatal()
4014 functions.
4014 functions.
4015
4015
4016 2003-03-18 *** Released version 0.2.15pre3
4016 2003-03-18 *** Released version 0.2.15pre3
4017
4017
4018 2003-03-18 Fernando Perez <fperez@colorado.edu>
4018 2003-03-18 Fernando Perez <fperez@colorado.edu>
4019
4019
4020 * setupext/install_data_ext.py
4020 * setupext/install_data_ext.py
4021 (install_data_ext.initialize_options): Class contributed by Jack
4021 (install_data_ext.initialize_options): Class contributed by Jack
4022 Moffit for fixing the old distutils hack. He is sending this to
4022 Moffit for fixing the old distutils hack. He is sending this to
4023 the distutils folks so in the future we may not need it as a
4023 the distutils folks so in the future we may not need it as a
4024 private fix.
4024 private fix.
4025
4025
4026 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4026 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4027 changes for Debian packaging. See his patch for full details.
4027 changes for Debian packaging. See his patch for full details.
4028 The old distutils hack of making the ipythonrc* files carry a
4028 The old distutils hack of making the ipythonrc* files carry a
4029 bogus .py extension is gone, at last. Examples were moved to a
4029 bogus .py extension is gone, at last. Examples were moved to a
4030 separate subdir under doc/, and the separate executable scripts
4030 separate subdir under doc/, and the separate executable scripts
4031 now live in their own directory. Overall a great cleanup. The
4031 now live in their own directory. Overall a great cleanup. The
4032 manual was updated to use the new files, and setup.py has been
4032 manual was updated to use the new files, and setup.py has been
4033 fixed for this setup.
4033 fixed for this setup.
4034
4034
4035 * IPython/PyColorize.py (Parser.usage): made non-executable and
4035 * IPython/PyColorize.py (Parser.usage): made non-executable and
4036 created a pycolor wrapper around it to be included as a script.
4036 created a pycolor wrapper around it to be included as a script.
4037
4037
4038 2003-03-12 *** Released version 0.2.15pre2
4038 2003-03-12 *** Released version 0.2.15pre2
4039
4039
4040 2003-03-12 Fernando Perez <fperez@colorado.edu>
4040 2003-03-12 Fernando Perez <fperez@colorado.edu>
4041
4041
4042 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4042 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4043 long-standing problem with garbage characters in some terminals.
4043 long-standing problem with garbage characters in some terminals.
4044 The issue was really that the \001 and \002 escapes must _only_ be
4044 The issue was really that the \001 and \002 escapes must _only_ be
4045 passed to input prompts (which call readline), but _never_ to
4045 passed to input prompts (which call readline), but _never_ to
4046 normal text to be printed on screen. I changed ColorANSI to have
4046 normal text to be printed on screen. I changed ColorANSI to have
4047 two classes: TermColors and InputTermColors, each with the
4047 two classes: TermColors and InputTermColors, each with the
4048 appropriate escapes for input prompts or normal text. The code in
4048 appropriate escapes for input prompts or normal text. The code in
4049 Prompts.py got slightly more complicated, but this very old and
4049 Prompts.py got slightly more complicated, but this very old and
4050 annoying bug is finally fixed.
4050 annoying bug is finally fixed.
4051
4051
4052 All the credit for nailing down the real origin of this problem
4052 All the credit for nailing down the real origin of this problem
4053 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4053 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4054 *Many* thanks to him for spending quite a bit of effort on this.
4054 *Many* thanks to him for spending quite a bit of effort on this.
4055
4055
4056 2003-03-05 *** Released version 0.2.15pre1
4056 2003-03-05 *** Released version 0.2.15pre1
4057
4057
4058 2003-03-03 Fernando Perez <fperez@colorado.edu>
4058 2003-03-03 Fernando Perez <fperez@colorado.edu>
4059
4059
4060 * IPython/FakeModule.py: Moved the former _FakeModule to a
4060 * IPython/FakeModule.py: Moved the former _FakeModule to a
4061 separate file, because it's also needed by Magic (to fix a similar
4061 separate file, because it's also needed by Magic (to fix a similar
4062 pickle-related issue in @run).
4062 pickle-related issue in @run).
4063
4063
4064 2003-03-02 Fernando Perez <fperez@colorado.edu>
4064 2003-03-02 Fernando Perez <fperez@colorado.edu>
4065
4065
4066 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4066 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4067 the autocall option at runtime.
4067 the autocall option at runtime.
4068 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4068 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4069 across Magic.py to start separating Magic from InteractiveShell.
4069 across Magic.py to start separating Magic from InteractiveShell.
4070 (Magic._ofind): Fixed to return proper namespace for dotted
4070 (Magic._ofind): Fixed to return proper namespace for dotted
4071 names. Before, a dotted name would always return 'not currently
4071 names. Before, a dotted name would always return 'not currently
4072 defined', because it would find the 'parent'. s.x would be found,
4072 defined', because it would find the 'parent'. s.x would be found,
4073 but since 'x' isn't defined by itself, it would get confused.
4073 but since 'x' isn't defined by itself, it would get confused.
4074 (Magic.magic_run): Fixed pickling problems reported by Ralf
4074 (Magic.magic_run): Fixed pickling problems reported by Ralf
4075 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4075 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4076 that I'd used when Mike Heeter reported similar issues at the
4076 that I'd used when Mike Heeter reported similar issues at the
4077 top-level, but now for @run. It boils down to injecting the
4077 top-level, but now for @run. It boils down to injecting the
4078 namespace where code is being executed with something that looks
4078 namespace where code is being executed with something that looks
4079 enough like a module to fool pickle.dump(). Since a pickle stores
4079 enough like a module to fool pickle.dump(). Since a pickle stores
4080 a named reference to the importing module, we need this for
4080 a named reference to the importing module, we need this for
4081 pickles to save something sensible.
4081 pickles to save something sensible.
4082
4082
4083 * IPython/ipmaker.py (make_IPython): added an autocall option.
4083 * IPython/ipmaker.py (make_IPython): added an autocall option.
4084
4084
4085 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4085 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4086 the auto-eval code. Now autocalling is an option, and the code is
4086 the auto-eval code. Now autocalling is an option, and the code is
4087 also vastly safer. There is no more eval() involved at all.
4087 also vastly safer. There is no more eval() involved at all.
4088
4088
4089 2003-03-01 Fernando Perez <fperez@colorado.edu>
4089 2003-03-01 Fernando Perez <fperez@colorado.edu>
4090
4090
4091 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4091 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4092 dict with named keys instead of a tuple.
4092 dict with named keys instead of a tuple.
4093
4093
4094 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4094 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4095
4095
4096 * setup.py (make_shortcut): Fixed message about directories
4096 * setup.py (make_shortcut): Fixed message about directories
4097 created during Windows installation (the directories were ok, just
4097 created during Windows installation (the directories were ok, just
4098 the printed message was misleading). Thanks to Chris Liechti
4098 the printed message was misleading). Thanks to Chris Liechti
4099 <cliechti-AT-gmx.net> for the heads up.
4099 <cliechti-AT-gmx.net> for the heads up.
4100
4100
4101 2003-02-21 Fernando Perez <fperez@colorado.edu>
4101 2003-02-21 Fernando Perez <fperez@colorado.edu>
4102
4102
4103 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4103 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4104 of ValueError exception when checking for auto-execution. This
4104 of ValueError exception when checking for auto-execution. This
4105 one is raised by things like Numeric arrays arr.flat when the
4105 one is raised by things like Numeric arrays arr.flat when the
4106 array is non-contiguous.
4106 array is non-contiguous.
4107
4107
4108 2003-01-31 Fernando Perez <fperez@colorado.edu>
4108 2003-01-31 Fernando Perez <fperez@colorado.edu>
4109
4109
4110 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4110 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4111 not return any value at all (even though the command would get
4111 not return any value at all (even though the command would get
4112 executed).
4112 executed).
4113 (xsys): Flush stdout right after printing the command to ensure
4113 (xsys): Flush stdout right after printing the command to ensure
4114 proper ordering of commands and command output in the total
4114 proper ordering of commands and command output in the total
4115 output.
4115 output.
4116 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4116 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4117 system/getoutput as defaults. The old ones are kept for
4117 system/getoutput as defaults. The old ones are kept for
4118 compatibility reasons, so no code which uses this library needs
4118 compatibility reasons, so no code which uses this library needs
4119 changing.
4119 changing.
4120
4120
4121 2003-01-27 *** Released version 0.2.14
4121 2003-01-27 *** Released version 0.2.14
4122
4122
4123 2003-01-25 Fernando Perez <fperez@colorado.edu>
4123 2003-01-25 Fernando Perez <fperez@colorado.edu>
4124
4124
4125 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4125 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4126 functions defined in previous edit sessions could not be re-edited
4126 functions defined in previous edit sessions could not be re-edited
4127 (because the temp files were immediately removed). Now temp files
4127 (because the temp files were immediately removed). Now temp files
4128 are removed only at IPython's exit.
4128 are removed only at IPython's exit.
4129 (Magic.magic_run): Improved @run to perform shell-like expansions
4129 (Magic.magic_run): Improved @run to perform shell-like expansions
4130 on its arguments (~users and $VARS). With this, @run becomes more
4130 on its arguments (~users and $VARS). With this, @run becomes more
4131 like a normal command-line.
4131 like a normal command-line.
4132
4132
4133 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4133 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4134 bugs related to embedding and cleaned up that code. A fairly
4134 bugs related to embedding and cleaned up that code. A fairly
4135 important one was the impossibility to access the global namespace
4135 important one was the impossibility to access the global namespace
4136 through the embedded IPython (only local variables were visible).
4136 through the embedded IPython (only local variables were visible).
4137
4137
4138 2003-01-14 Fernando Perez <fperez@colorado.edu>
4138 2003-01-14 Fernando Perez <fperez@colorado.edu>
4139
4139
4140 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4140 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4141 auto-calling to be a bit more conservative. Now it doesn't get
4141 auto-calling to be a bit more conservative. Now it doesn't get
4142 triggered if any of '!=()<>' are in the rest of the input line, to
4142 triggered if any of '!=()<>' are in the rest of the input line, to
4143 allow comparing callables. Thanks to Alex for the heads up.
4143 allow comparing callables. Thanks to Alex for the heads up.
4144
4144
4145 2003-01-07 Fernando Perez <fperez@colorado.edu>
4145 2003-01-07 Fernando Perez <fperez@colorado.edu>
4146
4146
4147 * IPython/genutils.py (page): fixed estimation of the number of
4147 * IPython/genutils.py (page): fixed estimation of the number of
4148 lines in a string to be paged to simply count newlines. This
4148 lines in a string to be paged to simply count newlines. This
4149 prevents over-guessing due to embedded escape sequences. A better
4149 prevents over-guessing due to embedded escape sequences. A better
4150 long-term solution would involve stripping out the control chars
4150 long-term solution would involve stripping out the control chars
4151 for the count, but it's potentially so expensive I just don't
4151 for the count, but it's potentially so expensive I just don't
4152 think it's worth doing.
4152 think it's worth doing.
4153
4153
4154 2002-12-19 *** Released version 0.2.14pre50
4154 2002-12-19 *** Released version 0.2.14pre50
4155
4155
4156 2002-12-19 Fernando Perez <fperez@colorado.edu>
4156 2002-12-19 Fernando Perez <fperez@colorado.edu>
4157
4157
4158 * tools/release (version): Changed release scripts to inform
4158 * tools/release (version): Changed release scripts to inform
4159 Andrea and build a NEWS file with a list of recent changes.
4159 Andrea and build a NEWS file with a list of recent changes.
4160
4160
4161 * IPython/ColorANSI.py (__all__): changed terminal detection
4161 * IPython/ColorANSI.py (__all__): changed terminal detection
4162 code. Seems to work better for xterms without breaking
4162 code. Seems to work better for xterms without breaking
4163 konsole. Will need more testing to determine if WinXP and Mac OSX
4163 konsole. Will need more testing to determine if WinXP and Mac OSX
4164 also work ok.
4164 also work ok.
4165
4165
4166 2002-12-18 *** Released version 0.2.14pre49
4166 2002-12-18 *** Released version 0.2.14pre49
4167
4167
4168 2002-12-18 Fernando Perez <fperez@colorado.edu>
4168 2002-12-18 Fernando Perez <fperez@colorado.edu>
4169
4169
4170 * Docs: added new info about Mac OSX, from Andrea.
4170 * Docs: added new info about Mac OSX, from Andrea.
4171
4171
4172 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4172 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4173 allow direct plotting of python strings whose format is the same
4173 allow direct plotting of python strings whose format is the same
4174 of gnuplot data files.
4174 of gnuplot data files.
4175
4175
4176 2002-12-16 Fernando Perez <fperez@colorado.edu>
4176 2002-12-16 Fernando Perez <fperez@colorado.edu>
4177
4177
4178 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4178 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4179 value of exit question to be acknowledged.
4179 value of exit question to be acknowledged.
4180
4180
4181 2002-12-03 Fernando Perez <fperez@colorado.edu>
4181 2002-12-03 Fernando Perez <fperez@colorado.edu>
4182
4182
4183 * IPython/ipmaker.py: removed generators, which had been added
4183 * IPython/ipmaker.py: removed generators, which had been added
4184 by mistake in an earlier debugging run. This was causing trouble
4184 by mistake in an earlier debugging run. This was causing trouble
4185 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4185 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4186 for pointing this out.
4186 for pointing this out.
4187
4187
4188 2002-11-17 Fernando Perez <fperez@colorado.edu>
4188 2002-11-17 Fernando Perez <fperez@colorado.edu>
4189
4189
4190 * Manual: updated the Gnuplot section.
4190 * Manual: updated the Gnuplot section.
4191
4191
4192 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4192 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4193 a much better split of what goes in Runtime and what goes in
4193 a much better split of what goes in Runtime and what goes in
4194 Interactive.
4194 Interactive.
4195
4195
4196 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4196 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4197 being imported from iplib.
4197 being imported from iplib.
4198
4198
4199 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4199 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4200 for command-passing. Now the global Gnuplot instance is called
4200 for command-passing. Now the global Gnuplot instance is called
4201 'gp' instead of 'g', which was really a far too fragile and
4201 'gp' instead of 'g', which was really a far too fragile and
4202 common name.
4202 common name.
4203
4203
4204 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4204 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4205 bounding boxes generated by Gnuplot for square plots.
4205 bounding boxes generated by Gnuplot for square plots.
4206
4206
4207 * IPython/genutils.py (popkey): new function added. I should
4207 * IPython/genutils.py (popkey): new function added. I should
4208 suggest this on c.l.py as a dict method, it seems useful.
4208 suggest this on c.l.py as a dict method, it seems useful.
4209
4209
4210 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4210 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4211 to transparently handle PostScript generation. MUCH better than
4211 to transparently handle PostScript generation. MUCH better than
4212 the previous plot_eps/replot_eps (which I removed now). The code
4212 the previous plot_eps/replot_eps (which I removed now). The code
4213 is also fairly clean and well documented now (including
4213 is also fairly clean and well documented now (including
4214 docstrings).
4214 docstrings).
4215
4215
4216 2002-11-13 Fernando Perez <fperez@colorado.edu>
4216 2002-11-13 Fernando Perez <fperez@colorado.edu>
4217
4217
4218 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4218 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4219 (inconsistent with options).
4219 (inconsistent with options).
4220
4220
4221 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4221 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4222 manually disabled, I don't know why. Fixed it.
4222 manually disabled, I don't know why. Fixed it.
4223 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4223 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4224 eps output.
4224 eps output.
4225
4225
4226 2002-11-12 Fernando Perez <fperez@colorado.edu>
4226 2002-11-12 Fernando Perez <fperez@colorado.edu>
4227
4227
4228 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4228 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4229 don't propagate up to caller. Fixes crash reported by François
4229 don't propagate up to caller. Fixes crash reported by François
4230 Pinard.
4230 Pinard.
4231
4231
4232 2002-11-09 Fernando Perez <fperez@colorado.edu>
4232 2002-11-09 Fernando Perez <fperez@colorado.edu>
4233
4233
4234 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4234 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4235 history file for new users.
4235 history file for new users.
4236 (make_IPython): fixed bug where initial install would leave the
4236 (make_IPython): fixed bug where initial install would leave the
4237 user running in the .ipython dir.
4237 user running in the .ipython dir.
4238 (make_IPython): fixed bug where config dir .ipython would be
4238 (make_IPython): fixed bug where config dir .ipython would be
4239 created regardless of the given -ipythondir option. Thanks to Cory
4239 created regardless of the given -ipythondir option. Thanks to Cory
4240 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4240 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4241
4241
4242 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4242 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4243 type confirmations. Will need to use it in all of IPython's code
4243 type confirmations. Will need to use it in all of IPython's code
4244 consistently.
4244 consistently.
4245
4245
4246 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4246 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4247 context to print 31 lines instead of the default 5. This will make
4247 context to print 31 lines instead of the default 5. This will make
4248 the crash reports extremely detailed in case the problem is in
4248 the crash reports extremely detailed in case the problem is in
4249 libraries I don't have access to.
4249 libraries I don't have access to.
4250
4250
4251 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4251 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4252 line of defense' code to still crash, but giving users fair
4252 line of defense' code to still crash, but giving users fair
4253 warning. I don't want internal errors to go unreported: if there's
4253 warning. I don't want internal errors to go unreported: if there's
4254 an internal problem, IPython should crash and generate a full
4254 an internal problem, IPython should crash and generate a full
4255 report.
4255 report.
4256
4256
4257 2002-11-08 Fernando Perez <fperez@colorado.edu>
4257 2002-11-08 Fernando Perez <fperez@colorado.edu>
4258
4258
4259 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4259 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4260 otherwise uncaught exceptions which can appear if people set
4260 otherwise uncaught exceptions which can appear if people set
4261 sys.stdout to something badly broken. Thanks to a crash report
4261 sys.stdout to something badly broken. Thanks to a crash report
4262 from henni-AT-mail.brainbot.com.
4262 from henni-AT-mail.brainbot.com.
4263
4263
4264 2002-11-04 Fernando Perez <fperez@colorado.edu>
4264 2002-11-04 Fernando Perez <fperez@colorado.edu>
4265
4265
4266 * IPython/iplib.py (InteractiveShell.interact): added
4266 * IPython/iplib.py (InteractiveShell.interact): added
4267 __IPYTHON__active to the builtins. It's a flag which goes on when
4267 __IPYTHON__active to the builtins. It's a flag which goes on when
4268 the interaction starts and goes off again when it stops. This
4268 the interaction starts and goes off again when it stops. This
4269 allows embedding code to detect being inside IPython. Before this
4269 allows embedding code to detect being inside IPython. Before this
4270 was done via __IPYTHON__, but that only shows that an IPython
4270 was done via __IPYTHON__, but that only shows that an IPython
4271 instance has been created.
4271 instance has been created.
4272
4272
4273 * IPython/Magic.py (Magic.magic_env): I realized that in a
4273 * IPython/Magic.py (Magic.magic_env): I realized that in a
4274 UserDict, instance.data holds the data as a normal dict. So I
4274 UserDict, instance.data holds the data as a normal dict. So I
4275 modified @env to return os.environ.data instead of rebuilding a
4275 modified @env to return os.environ.data instead of rebuilding a
4276 dict by hand.
4276 dict by hand.
4277
4277
4278 2002-11-02 Fernando Perez <fperez@colorado.edu>
4278 2002-11-02 Fernando Perez <fperez@colorado.edu>
4279
4279
4280 * IPython/genutils.py (warn): changed so that level 1 prints no
4280 * IPython/genutils.py (warn): changed so that level 1 prints no
4281 header. Level 2 is now the default (with 'WARNING' header, as
4281 header. Level 2 is now the default (with 'WARNING' header, as
4282 before). I think I tracked all places where changes were needed in
4282 before). I think I tracked all places where changes were needed in
4283 IPython, but outside code using the old level numbering may have
4283 IPython, but outside code using the old level numbering may have
4284 broken.
4284 broken.
4285
4285
4286 * IPython/iplib.py (InteractiveShell.runcode): added this to
4286 * IPython/iplib.py (InteractiveShell.runcode): added this to
4287 handle the tracebacks in SystemExit traps correctly. The previous
4287 handle the tracebacks in SystemExit traps correctly. The previous
4288 code (through interact) was printing more of the stack than
4288 code (through interact) was printing more of the stack than
4289 necessary, showing IPython internal code to the user.
4289 necessary, showing IPython internal code to the user.
4290
4290
4291 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4291 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4292 default. Now that the default at the confirmation prompt is yes,
4292 default. Now that the default at the confirmation prompt is yes,
4293 it's not so intrusive. François' argument that ipython sessions
4293 it's not so intrusive. François' argument that ipython sessions
4294 tend to be complex enough not to lose them from an accidental C-d,
4294 tend to be complex enough not to lose them from an accidental C-d,
4295 is a valid one.
4295 is a valid one.
4296
4296
4297 * IPython/iplib.py (InteractiveShell.interact): added a
4297 * IPython/iplib.py (InteractiveShell.interact): added a
4298 showtraceback() call to the SystemExit trap, and modified the exit
4298 showtraceback() call to the SystemExit trap, and modified the exit
4299 confirmation to have yes as the default.
4299 confirmation to have yes as the default.
4300
4300
4301 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4301 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4302 this file. It's been gone from the code for a long time, this was
4302 this file. It's been gone from the code for a long time, this was
4303 simply leftover junk.
4303 simply leftover junk.
4304
4304
4305 2002-11-01 Fernando Perez <fperez@colorado.edu>
4305 2002-11-01 Fernando Perez <fperez@colorado.edu>
4306
4306
4307 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4307 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4308 added. If set, IPython now traps EOF and asks for
4308 added. If set, IPython now traps EOF and asks for
4309 confirmation. After a request by François Pinard.
4309 confirmation. After a request by François Pinard.
4310
4310
4311 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4311 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4312 of @abort, and with a new (better) mechanism for handling the
4312 of @abort, and with a new (better) mechanism for handling the
4313 exceptions.
4313 exceptions.
4314
4314
4315 2002-10-27 Fernando Perez <fperez@colorado.edu>
4315 2002-10-27 Fernando Perez <fperez@colorado.edu>
4316
4316
4317 * IPython/usage.py (__doc__): updated the --help information and
4317 * IPython/usage.py (__doc__): updated the --help information and
4318 the ipythonrc file to indicate that -log generates
4318 the ipythonrc file to indicate that -log generates
4319 ./ipython.log. Also fixed the corresponding info in @logstart.
4319 ./ipython.log. Also fixed the corresponding info in @logstart.
4320 This and several other fixes in the manuals thanks to reports by
4320 This and several other fixes in the manuals thanks to reports by
4321 François Pinard <pinard-AT-iro.umontreal.ca>.
4321 François Pinard <pinard-AT-iro.umontreal.ca>.
4322
4322
4323 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4323 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4324 refer to @logstart (instead of @log, which doesn't exist).
4324 refer to @logstart (instead of @log, which doesn't exist).
4325
4325
4326 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4326 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4327 AttributeError crash. Thanks to Christopher Armstrong
4327 AttributeError crash. Thanks to Christopher Armstrong
4328 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4328 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4329 introduced recently (in 0.2.14pre37) with the fix to the eval
4329 introduced recently (in 0.2.14pre37) with the fix to the eval
4330 problem mentioned below.
4330 problem mentioned below.
4331
4331
4332 2002-10-17 Fernando Perez <fperez@colorado.edu>
4332 2002-10-17 Fernando Perez <fperez@colorado.edu>
4333
4333
4334 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4334 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4335 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4335 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4336
4336
4337 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4337 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4338 this function to fix a problem reported by Alex Schmolck. He saw
4338 this function to fix a problem reported by Alex Schmolck. He saw
4339 it with list comprehensions and generators, which were getting
4339 it with list comprehensions and generators, which were getting
4340 called twice. The real problem was an 'eval' call in testing for
4340 called twice. The real problem was an 'eval' call in testing for
4341 automagic which was evaluating the input line silently.
4341 automagic which was evaluating the input line silently.
4342
4342
4343 This is a potentially very nasty bug, if the input has side
4343 This is a potentially very nasty bug, if the input has side
4344 effects which must not be repeated. The code is much cleaner now,
4344 effects which must not be repeated. The code is much cleaner now,
4345 without any blanket 'except' left and with a regexp test for
4345 without any blanket 'except' left and with a regexp test for
4346 actual function names.
4346 actual function names.
4347
4347
4348 But an eval remains, which I'm not fully comfortable with. I just
4348 But an eval remains, which I'm not fully comfortable with. I just
4349 don't know how to find out if an expression could be a callable in
4349 don't know how to find out if an expression could be a callable in
4350 the user's namespace without doing an eval on the string. However
4350 the user's namespace without doing an eval on the string. However
4351 that string is now much more strictly checked so that no code
4351 that string is now much more strictly checked so that no code
4352 slips by, so the eval should only happen for things that can
4352 slips by, so the eval should only happen for things that can
4353 really be only function/method names.
4353 really be only function/method names.
4354
4354
4355 2002-10-15 Fernando Perez <fperez@colorado.edu>
4355 2002-10-15 Fernando Perez <fperez@colorado.edu>
4356
4356
4357 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4357 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4358 OSX information to main manual, removed README_Mac_OSX file from
4358 OSX information to main manual, removed README_Mac_OSX file from
4359 distribution. Also updated credits for recent additions.
4359 distribution. Also updated credits for recent additions.
4360
4360
4361 2002-10-10 Fernando Perez <fperez@colorado.edu>
4361 2002-10-10 Fernando Perez <fperez@colorado.edu>
4362
4362
4363 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4363 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4364 terminal-related issues. Many thanks to Andrea Riciputi
4364 terminal-related issues. Many thanks to Andrea Riciputi
4365 <andrea.riciputi-AT-libero.it> for writing it.
4365 <andrea.riciputi-AT-libero.it> for writing it.
4366
4366
4367 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4367 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4368 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4368 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4369
4369
4370 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4370 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4371 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4371 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4372 <syver-en-AT-online.no> who both submitted patches for this problem.
4372 <syver-en-AT-online.no> who both submitted patches for this problem.
4373
4373
4374 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4374 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4375 global embedding to make sure that things don't overwrite user
4375 global embedding to make sure that things don't overwrite user
4376 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4376 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4377
4377
4378 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4378 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4379 compatibility. Thanks to Hayden Callow
4379 compatibility. Thanks to Hayden Callow
4380 <h.callow-AT-elec.canterbury.ac.nz>
4380 <h.callow-AT-elec.canterbury.ac.nz>
4381
4381
4382 2002-10-04 Fernando Perez <fperez@colorado.edu>
4382 2002-10-04 Fernando Perez <fperez@colorado.edu>
4383
4383
4384 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4384 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4385 Gnuplot.File objects.
4385 Gnuplot.File objects.
4386
4386
4387 2002-07-23 Fernando Perez <fperez@colorado.edu>
4387 2002-07-23 Fernando Perez <fperez@colorado.edu>
4388
4388
4389 * IPython/genutils.py (timing): Added timings() and timing() for
4389 * IPython/genutils.py (timing): Added timings() and timing() for
4390 quick access to the most commonly needed data, the execution
4390 quick access to the most commonly needed data, the execution
4391 times. Old timing() renamed to timings_out().
4391 times. Old timing() renamed to timings_out().
4392
4392
4393 2002-07-18 Fernando Perez <fperez@colorado.edu>
4393 2002-07-18 Fernando Perez <fperez@colorado.edu>
4394
4394
4395 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4395 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4396 bug with nested instances disrupting the parent's tab completion.
4396 bug with nested instances disrupting the parent's tab completion.
4397
4397
4398 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4398 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4399 all_completions code to begin the emacs integration.
4399 all_completions code to begin the emacs integration.
4400
4400
4401 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4401 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4402 argument to allow titling individual arrays when plotting.
4402 argument to allow titling individual arrays when plotting.
4403
4403
4404 2002-07-15 Fernando Perez <fperez@colorado.edu>
4404 2002-07-15 Fernando Perez <fperez@colorado.edu>
4405
4405
4406 * setup.py (make_shortcut): changed to retrieve the value of
4406 * setup.py (make_shortcut): changed to retrieve the value of
4407 'Program Files' directory from the registry (this value changes in
4407 'Program Files' directory from the registry (this value changes in
4408 non-english versions of Windows). Thanks to Thomas Fanslau
4408 non-english versions of Windows). Thanks to Thomas Fanslau
4409 <tfanslau-AT-gmx.de> for the report.
4409 <tfanslau-AT-gmx.de> for the report.
4410
4410
4411 2002-07-10 Fernando Perez <fperez@colorado.edu>
4411 2002-07-10 Fernando Perez <fperez@colorado.edu>
4412
4412
4413 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4413 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4414 a bug in pdb, which crashes if a line with only whitespace is
4414 a bug in pdb, which crashes if a line with only whitespace is
4415 entered. Bug report submitted to sourceforge.
4415 entered. Bug report submitted to sourceforge.
4416
4416
4417 2002-07-09 Fernando Perez <fperez@colorado.edu>
4417 2002-07-09 Fernando Perez <fperez@colorado.edu>
4418
4418
4419 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4419 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4420 reporting exceptions (it's a bug in inspect.py, I just set a
4420 reporting exceptions (it's a bug in inspect.py, I just set a
4421 workaround).
4421 workaround).
4422
4422
4423 2002-07-08 Fernando Perez <fperez@colorado.edu>
4423 2002-07-08 Fernando Perez <fperez@colorado.edu>
4424
4424
4425 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4425 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4426 __IPYTHON__ in __builtins__ to show up in user_ns.
4426 __IPYTHON__ in __builtins__ to show up in user_ns.
4427
4427
4428 2002-07-03 Fernando Perez <fperez@colorado.edu>
4428 2002-07-03 Fernando Perez <fperez@colorado.edu>
4429
4429
4430 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4430 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4431 name from @gp_set_instance to @gp_set_default.
4431 name from @gp_set_instance to @gp_set_default.
4432
4432
4433 * IPython/ipmaker.py (make_IPython): default editor value set to
4433 * IPython/ipmaker.py (make_IPython): default editor value set to
4434 '0' (a string), to match the rc file. Otherwise will crash when
4434 '0' (a string), to match the rc file. Otherwise will crash when
4435 .strip() is called on it.
4435 .strip() is called on it.
4436
4436
4437
4437
4438 2002-06-28 Fernando Perez <fperez@colorado.edu>
4438 2002-06-28 Fernando Perez <fperez@colorado.edu>
4439
4439
4440 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4440 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4441 of files in current directory when a file is executed via
4441 of files in current directory when a file is executed via
4442 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4442 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4443
4443
4444 * setup.py (manfiles): fix for rpm builds, submitted by RA
4444 * setup.py (manfiles): fix for rpm builds, submitted by RA
4445 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4445 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4446
4446
4447 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4447 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4448 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4448 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4449 string!). A. Schmolck caught this one.
4449 string!). A. Schmolck caught this one.
4450
4450
4451 2002-06-27 Fernando Perez <fperez@colorado.edu>
4451 2002-06-27 Fernando Perez <fperez@colorado.edu>
4452
4452
4453 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4453 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4454 defined files at the cmd line. __name__ wasn't being set to
4454 defined files at the cmd line. __name__ wasn't being set to
4455 __main__.
4455 __main__.
4456
4456
4457 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4457 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4458 regular lists and tuples besides Numeric arrays.
4458 regular lists and tuples besides Numeric arrays.
4459
4459
4460 * IPython/Prompts.py (CachedOutput.__call__): Added output
4460 * IPython/Prompts.py (CachedOutput.__call__): Added output
4461 supression for input ending with ';'. Similar to Mathematica and
4461 supression for input ending with ';'. Similar to Mathematica and
4462 Matlab. The _* vars and Out[] list are still updated, just like
4462 Matlab. The _* vars and Out[] list are still updated, just like
4463 Mathematica behaves.
4463 Mathematica behaves.
4464
4464
4465 2002-06-25 Fernando Perez <fperez@colorado.edu>
4465 2002-06-25 Fernando Perez <fperez@colorado.edu>
4466
4466
4467 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4467 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4468 .ini extensions for profiels under Windows.
4468 .ini extensions for profiels under Windows.
4469
4469
4470 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4470 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4471 string form. Fix contributed by Alexander Schmolck
4471 string form. Fix contributed by Alexander Schmolck
4472 <a.schmolck-AT-gmx.net>
4472 <a.schmolck-AT-gmx.net>
4473
4473
4474 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4474 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4475 pre-configured Gnuplot instance.
4475 pre-configured Gnuplot instance.
4476
4476
4477 2002-06-21 Fernando Perez <fperez@colorado.edu>
4477 2002-06-21 Fernando Perez <fperez@colorado.edu>
4478
4478
4479 * IPython/numutils.py (exp_safe): new function, works around the
4479 * IPython/numutils.py (exp_safe): new function, works around the
4480 underflow problems in Numeric.
4480 underflow problems in Numeric.
4481 (log2): New fn. Safe log in base 2: returns exact integer answer
4481 (log2): New fn. Safe log in base 2: returns exact integer answer
4482 for exact integer powers of 2.
4482 for exact integer powers of 2.
4483
4483
4484 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4484 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4485 properly.
4485 properly.
4486
4486
4487 2002-06-20 Fernando Perez <fperez@colorado.edu>
4487 2002-06-20 Fernando Perez <fperez@colorado.edu>
4488
4488
4489 * IPython/genutils.py (timing): new function like
4489 * IPython/genutils.py (timing): new function like
4490 Mathematica's. Similar to time_test, but returns more info.
4490 Mathematica's. Similar to time_test, but returns more info.
4491
4491
4492 2002-06-18 Fernando Perez <fperez@colorado.edu>
4492 2002-06-18 Fernando Perez <fperez@colorado.edu>
4493
4493
4494 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4494 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4495 according to Mike Heeter's suggestions.
4495 according to Mike Heeter's suggestions.
4496
4496
4497 2002-06-16 Fernando Perez <fperez@colorado.edu>
4497 2002-06-16 Fernando Perez <fperez@colorado.edu>
4498
4498
4499 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4499 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4500 system. GnuplotMagic is gone as a user-directory option. New files
4500 system. GnuplotMagic is gone as a user-directory option. New files
4501 make it easier to use all the gnuplot stuff both from external
4501 make it easier to use all the gnuplot stuff both from external
4502 programs as well as from IPython. Had to rewrite part of
4502 programs as well as from IPython. Had to rewrite part of
4503 hardcopy() b/c of a strange bug: often the ps files simply don't
4503 hardcopy() b/c of a strange bug: often the ps files simply don't
4504 get created, and require a repeat of the command (often several
4504 get created, and require a repeat of the command (often several
4505 times).
4505 times).
4506
4506
4507 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4507 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4508 resolve output channel at call time, so that if sys.stderr has
4508 resolve output channel at call time, so that if sys.stderr has
4509 been redirected by user this gets honored.
4509 been redirected by user this gets honored.
4510
4510
4511 2002-06-13 Fernando Perez <fperez@colorado.edu>
4511 2002-06-13 Fernando Perez <fperez@colorado.edu>
4512
4512
4513 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4513 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4514 IPShell. Kept a copy with the old names to avoid breaking people's
4514 IPShell. Kept a copy with the old names to avoid breaking people's
4515 embedded code.
4515 embedded code.
4516
4516
4517 * IPython/ipython: simplified it to the bare minimum after
4517 * IPython/ipython: simplified it to the bare minimum after
4518 Holger's suggestions. Added info about how to use it in
4518 Holger's suggestions. Added info about how to use it in
4519 PYTHONSTARTUP.
4519 PYTHONSTARTUP.
4520
4520
4521 * IPython/Shell.py (IPythonShell): changed the options passing
4521 * IPython/Shell.py (IPythonShell): changed the options passing
4522 from a string with funky %s replacements to a straight list. Maybe
4522 from a string with funky %s replacements to a straight list. Maybe
4523 a bit more typing, but it follows sys.argv conventions, so there's
4523 a bit more typing, but it follows sys.argv conventions, so there's
4524 less special-casing to remember.
4524 less special-casing to remember.
4525
4525
4526 2002-06-12 Fernando Perez <fperez@colorado.edu>
4526 2002-06-12 Fernando Perez <fperez@colorado.edu>
4527
4527
4528 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4528 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4529 command. Thanks to a suggestion by Mike Heeter.
4529 command. Thanks to a suggestion by Mike Heeter.
4530 (Magic.magic_pfile): added behavior to look at filenames if given
4530 (Magic.magic_pfile): added behavior to look at filenames if given
4531 arg is not a defined object.
4531 arg is not a defined object.
4532 (Magic.magic_save): New @save function to save code snippets. Also
4532 (Magic.magic_save): New @save function to save code snippets. Also
4533 a Mike Heeter idea.
4533 a Mike Heeter idea.
4534
4534
4535 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4535 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4536 plot() and replot(). Much more convenient now, especially for
4536 plot() and replot(). Much more convenient now, especially for
4537 interactive use.
4537 interactive use.
4538
4538
4539 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4539 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4540 filenames.
4540 filenames.
4541
4541
4542 2002-06-02 Fernando Perez <fperez@colorado.edu>
4542 2002-06-02 Fernando Perez <fperez@colorado.edu>
4543
4543
4544 * IPython/Struct.py (Struct.__init__): modified to admit
4544 * IPython/Struct.py (Struct.__init__): modified to admit
4545 initialization via another struct.
4545 initialization via another struct.
4546
4546
4547 * IPython/genutils.py (SystemExec.__init__): New stateful
4547 * IPython/genutils.py (SystemExec.__init__): New stateful
4548 interface to xsys and bq. Useful for writing system scripts.
4548 interface to xsys and bq. Useful for writing system scripts.
4549
4549
4550 2002-05-30 Fernando Perez <fperez@colorado.edu>
4550 2002-05-30 Fernando Perez <fperez@colorado.edu>
4551
4551
4552 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4552 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4553 documents. This will make the user download smaller (it's getting
4553 documents. This will make the user download smaller (it's getting
4554 too big).
4554 too big).
4555
4555
4556 2002-05-29 Fernando Perez <fperez@colorado.edu>
4556 2002-05-29 Fernando Perez <fperez@colorado.edu>
4557
4557
4558 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4558 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4559 fix problems with shelve and pickle. Seems to work, but I don't
4559 fix problems with shelve and pickle. Seems to work, but I don't
4560 know if corner cases break it. Thanks to Mike Heeter
4560 know if corner cases break it. Thanks to Mike Heeter
4561 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4561 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4562
4562
4563 2002-05-24 Fernando Perez <fperez@colorado.edu>
4563 2002-05-24 Fernando Perez <fperez@colorado.edu>
4564
4564
4565 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4565 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4566 macros having broken.
4566 macros having broken.
4567
4567
4568 2002-05-21 Fernando Perez <fperez@colorado.edu>
4568 2002-05-21 Fernando Perez <fperez@colorado.edu>
4569
4569
4570 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4570 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4571 introduced logging bug: all history before logging started was
4571 introduced logging bug: all history before logging started was
4572 being written one character per line! This came from the redesign
4572 being written one character per line! This came from the redesign
4573 of the input history as a special list which slices to strings,
4573 of the input history as a special list which slices to strings,
4574 not to lists.
4574 not to lists.
4575
4575
4576 2002-05-20 Fernando Perez <fperez@colorado.edu>
4576 2002-05-20 Fernando Perez <fperez@colorado.edu>
4577
4577
4578 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4578 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4579 be an attribute of all classes in this module. The design of these
4579 be an attribute of all classes in this module. The design of these
4580 classes needs some serious overhauling.
4580 classes needs some serious overhauling.
4581
4581
4582 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4582 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4583 which was ignoring '_' in option names.
4583 which was ignoring '_' in option names.
4584
4584
4585 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4585 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4586 'Verbose_novars' to 'Context' and made it the new default. It's a
4586 'Verbose_novars' to 'Context' and made it the new default. It's a
4587 bit more readable and also safer than verbose.
4587 bit more readable and also safer than verbose.
4588
4588
4589 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4589 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4590 triple-quoted strings.
4590 triple-quoted strings.
4591
4591
4592 * IPython/OInspect.py (__all__): new module exposing the object
4592 * IPython/OInspect.py (__all__): new module exposing the object
4593 introspection facilities. Now the corresponding magics are dummy
4593 introspection facilities. Now the corresponding magics are dummy
4594 wrappers around this. Having this module will make it much easier
4594 wrappers around this. Having this module will make it much easier
4595 to put these functions into our modified pdb.
4595 to put these functions into our modified pdb.
4596 This new object inspector system uses the new colorizing module,
4596 This new object inspector system uses the new colorizing module,
4597 so source code and other things are nicely syntax highlighted.
4597 so source code and other things are nicely syntax highlighted.
4598
4598
4599 2002-05-18 Fernando Perez <fperez@colorado.edu>
4599 2002-05-18 Fernando Perez <fperez@colorado.edu>
4600
4600
4601 * IPython/ColorANSI.py: Split the coloring tools into a separate
4601 * IPython/ColorANSI.py: Split the coloring tools into a separate
4602 module so I can use them in other code easier (they were part of
4602 module so I can use them in other code easier (they were part of
4603 ultraTB).
4603 ultraTB).
4604
4604
4605 2002-05-17 Fernando Perez <fperez@colorado.edu>
4605 2002-05-17 Fernando Perez <fperez@colorado.edu>
4606
4606
4607 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4607 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4608 fixed it to set the global 'g' also to the called instance, as
4608 fixed it to set the global 'g' also to the called instance, as
4609 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4609 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4610 user's 'g' variables).
4610 user's 'g' variables).
4611
4611
4612 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4612 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4613 global variables (aliases to _ih,_oh) so that users which expect
4613 global variables (aliases to _ih,_oh) so that users which expect
4614 In[5] or Out[7] to work aren't unpleasantly surprised.
4614 In[5] or Out[7] to work aren't unpleasantly surprised.
4615 (InputList.__getslice__): new class to allow executing slices of
4615 (InputList.__getslice__): new class to allow executing slices of
4616 input history directly. Very simple class, complements the use of
4616 input history directly. Very simple class, complements the use of
4617 macros.
4617 macros.
4618
4618
4619 2002-05-16 Fernando Perez <fperez@colorado.edu>
4619 2002-05-16 Fernando Perez <fperez@colorado.edu>
4620
4620
4621 * setup.py (docdirbase): make doc directory be just doc/IPython
4621 * setup.py (docdirbase): make doc directory be just doc/IPython
4622 without version numbers, it will reduce clutter for users.
4622 without version numbers, it will reduce clutter for users.
4623
4623
4624 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4624 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4625 execfile call to prevent possible memory leak. See for details:
4625 execfile call to prevent possible memory leak. See for details:
4626 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4626 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4627
4627
4628 2002-05-15 Fernando Perez <fperez@colorado.edu>
4628 2002-05-15 Fernando Perez <fperez@colorado.edu>
4629
4629
4630 * IPython/Magic.py (Magic.magic_psource): made the object
4630 * IPython/Magic.py (Magic.magic_psource): made the object
4631 introspection names be more standard: pdoc, pdef, pfile and
4631 introspection names be more standard: pdoc, pdef, pfile and
4632 psource. They all print/page their output, and it makes
4632 psource. They all print/page their output, and it makes
4633 remembering them easier. Kept old names for compatibility as
4633 remembering them easier. Kept old names for compatibility as
4634 aliases.
4634 aliases.
4635
4635
4636 2002-05-14 Fernando Perez <fperez@colorado.edu>
4636 2002-05-14 Fernando Perez <fperez@colorado.edu>
4637
4637
4638 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4638 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4639 what the mouse problem was. The trick is to use gnuplot with temp
4639 what the mouse problem was. The trick is to use gnuplot with temp
4640 files and NOT with pipes (for data communication), because having
4640 files and NOT with pipes (for data communication), because having
4641 both pipes and the mouse on is bad news.
4641 both pipes and the mouse on is bad news.
4642
4642
4643 2002-05-13 Fernando Perez <fperez@colorado.edu>
4643 2002-05-13 Fernando Perez <fperez@colorado.edu>
4644
4644
4645 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4645 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4646 bug. Information would be reported about builtins even when
4646 bug. Information would be reported about builtins even when
4647 user-defined functions overrode them.
4647 user-defined functions overrode them.
4648
4648
4649 2002-05-11 Fernando Perez <fperez@colorado.edu>
4649 2002-05-11 Fernando Perez <fperez@colorado.edu>
4650
4650
4651 * IPython/__init__.py (__all__): removed FlexCompleter from
4651 * IPython/__init__.py (__all__): removed FlexCompleter from
4652 __all__ so that things don't fail in platforms without readline.
4652 __all__ so that things don't fail in platforms without readline.
4653
4653
4654 2002-05-10 Fernando Perez <fperez@colorado.edu>
4654 2002-05-10 Fernando Perez <fperez@colorado.edu>
4655
4655
4656 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4656 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4657 it requires Numeric, effectively making Numeric a dependency for
4657 it requires Numeric, effectively making Numeric a dependency for
4658 IPython.
4658 IPython.
4659
4659
4660 * Released 0.2.13
4660 * Released 0.2.13
4661
4661
4662 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4662 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4663 profiler interface. Now all the major options from the profiler
4663 profiler interface. Now all the major options from the profiler
4664 module are directly supported in IPython, both for single
4664 module are directly supported in IPython, both for single
4665 expressions (@prun) and for full programs (@run -p).
4665 expressions (@prun) and for full programs (@run -p).
4666
4666
4667 2002-05-09 Fernando Perez <fperez@colorado.edu>
4667 2002-05-09 Fernando Perez <fperez@colorado.edu>
4668
4668
4669 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4669 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4670 magic properly formatted for screen.
4670 magic properly formatted for screen.
4671
4671
4672 * setup.py (make_shortcut): Changed things to put pdf version in
4672 * setup.py (make_shortcut): Changed things to put pdf version in
4673 doc/ instead of doc/manual (had to change lyxport a bit).
4673 doc/ instead of doc/manual (had to change lyxport a bit).
4674
4674
4675 * IPython/Magic.py (Profile.string_stats): made profile runs go
4675 * IPython/Magic.py (Profile.string_stats): made profile runs go
4676 through pager (they are long and a pager allows searching, saving,
4676 through pager (they are long and a pager allows searching, saving,
4677 etc.)
4677 etc.)
4678
4678
4679 2002-05-08 Fernando Perez <fperez@colorado.edu>
4679 2002-05-08 Fernando Perez <fperez@colorado.edu>
4680
4680
4681 * Released 0.2.12
4681 * Released 0.2.12
4682
4682
4683 2002-05-06 Fernando Perez <fperez@colorado.edu>
4683 2002-05-06 Fernando Perez <fperez@colorado.edu>
4684
4684
4685 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
4685 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
4686 introduced); 'hist n1 n2' was broken.
4686 introduced); 'hist n1 n2' was broken.
4687 (Magic.magic_pdb): added optional on/off arguments to @pdb
4687 (Magic.magic_pdb): added optional on/off arguments to @pdb
4688 (Magic.magic_run): added option -i to @run, which executes code in
4688 (Magic.magic_run): added option -i to @run, which executes code in
4689 the IPython namespace instead of a clean one. Also added @irun as
4689 the IPython namespace instead of a clean one. Also added @irun as
4690 an alias to @run -i.
4690 an alias to @run -i.
4691
4691
4692 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4692 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4693 fixed (it didn't really do anything, the namespaces were wrong).
4693 fixed (it didn't really do anything, the namespaces were wrong).
4694
4694
4695 * IPython/Debugger.py (__init__): Added workaround for python 2.1
4695 * IPython/Debugger.py (__init__): Added workaround for python 2.1
4696
4696
4697 * IPython/__init__.py (__all__): Fixed package namespace, now
4697 * IPython/__init__.py (__all__): Fixed package namespace, now
4698 'import IPython' does give access to IPython.<all> as
4698 'import IPython' does give access to IPython.<all> as
4699 expected. Also renamed __release__ to Release.
4699 expected. Also renamed __release__ to Release.
4700
4700
4701 * IPython/Debugger.py (__license__): created new Pdb class which
4701 * IPython/Debugger.py (__license__): created new Pdb class which
4702 functions like a drop-in for the normal pdb.Pdb but does NOT
4702 functions like a drop-in for the normal pdb.Pdb but does NOT
4703 import readline by default. This way it doesn't muck up IPython's
4703 import readline by default. This way it doesn't muck up IPython's
4704 readline handling, and now tab-completion finally works in the
4704 readline handling, and now tab-completion finally works in the
4705 debugger -- sort of. It completes things globally visible, but the
4705 debugger -- sort of. It completes things globally visible, but the
4706 completer doesn't track the stack as pdb walks it. That's a bit
4706 completer doesn't track the stack as pdb walks it. That's a bit
4707 tricky, and I'll have to implement it later.
4707 tricky, and I'll have to implement it later.
4708
4708
4709 2002-05-05 Fernando Perez <fperez@colorado.edu>
4709 2002-05-05 Fernando Perez <fperez@colorado.edu>
4710
4710
4711 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
4711 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
4712 magic docstrings when printed via ? (explicit \'s were being
4712 magic docstrings when printed via ? (explicit \'s were being
4713 printed).
4713 printed).
4714
4714
4715 * IPython/ipmaker.py (make_IPython): fixed namespace
4715 * IPython/ipmaker.py (make_IPython): fixed namespace
4716 identification bug. Now variables loaded via logs or command-line
4716 identification bug. Now variables loaded via logs or command-line
4717 files are recognized in the interactive namespace by @who.
4717 files are recognized in the interactive namespace by @who.
4718
4718
4719 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
4719 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
4720 log replay system stemming from the string form of Structs.
4720 log replay system stemming from the string form of Structs.
4721
4721
4722 * IPython/Magic.py (Macro.__init__): improved macros to properly
4722 * IPython/Magic.py (Macro.__init__): improved macros to properly
4723 handle magic commands in them.
4723 handle magic commands in them.
4724 (Magic.magic_logstart): usernames are now expanded so 'logstart
4724 (Magic.magic_logstart): usernames are now expanded so 'logstart
4725 ~/mylog' now works.
4725 ~/mylog' now works.
4726
4726
4727 * IPython/iplib.py (complete): fixed bug where paths starting with
4727 * IPython/iplib.py (complete): fixed bug where paths starting with
4728 '/' would be completed as magic names.
4728 '/' would be completed as magic names.
4729
4729
4730 2002-05-04 Fernando Perez <fperez@colorado.edu>
4730 2002-05-04 Fernando Perez <fperez@colorado.edu>
4731
4731
4732 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
4732 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
4733 allow running full programs under the profiler's control.
4733 allow running full programs under the profiler's control.
4734
4734
4735 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
4735 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
4736 mode to report exceptions verbosely but without formatting
4736 mode to report exceptions verbosely but without formatting
4737 variables. This addresses the issue of ipython 'freezing' (it's
4737 variables. This addresses the issue of ipython 'freezing' (it's
4738 not frozen, but caught in an expensive formatting loop) when huge
4738 not frozen, but caught in an expensive formatting loop) when huge
4739 variables are in the context of an exception.
4739 variables are in the context of an exception.
4740 (VerboseTB.text): Added '--->' markers at line where exception was
4740 (VerboseTB.text): Added '--->' markers at line where exception was
4741 triggered. Much clearer to read, especially in NoColor modes.
4741 triggered. Much clearer to read, especially in NoColor modes.
4742
4742
4743 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
4743 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
4744 implemented in reverse when changing to the new parse_options().
4744 implemented in reverse when changing to the new parse_options().
4745
4745
4746 2002-05-03 Fernando Perez <fperez@colorado.edu>
4746 2002-05-03 Fernando Perez <fperez@colorado.edu>
4747
4747
4748 * IPython/Magic.py (Magic.parse_options): new function so that
4748 * IPython/Magic.py (Magic.parse_options): new function so that
4749 magics can parse options easier.
4749 magics can parse options easier.
4750 (Magic.magic_prun): new function similar to profile.run(),
4750 (Magic.magic_prun): new function similar to profile.run(),
4751 suggested by Chris Hart.
4751 suggested by Chris Hart.
4752 (Magic.magic_cd): fixed behavior so that it only changes if
4752 (Magic.magic_cd): fixed behavior so that it only changes if
4753 directory actually is in history.
4753 directory actually is in history.
4754
4754
4755 * IPython/usage.py (__doc__): added information about potential
4755 * IPython/usage.py (__doc__): added information about potential
4756 slowness of Verbose exception mode when there are huge data
4756 slowness of Verbose exception mode when there are huge data
4757 structures to be formatted (thanks to Archie Paulson).
4757 structures to be formatted (thanks to Archie Paulson).
4758
4758
4759 * IPython/ipmaker.py (make_IPython): Changed default logging
4759 * IPython/ipmaker.py (make_IPython): Changed default logging
4760 (when simply called with -log) to use curr_dir/ipython.log in
4760 (when simply called with -log) to use curr_dir/ipython.log in
4761 rotate mode. Fixed crash which was occuring with -log before
4761 rotate mode. Fixed crash which was occuring with -log before
4762 (thanks to Jim Boyle).
4762 (thanks to Jim Boyle).
4763
4763
4764 2002-05-01 Fernando Perez <fperez@colorado.edu>
4764 2002-05-01 Fernando Perez <fperez@colorado.edu>
4765
4765
4766 * Released 0.2.11 for these fixes (mainly the ultraTB one which
4766 * Released 0.2.11 for these fixes (mainly the ultraTB one which
4767 was nasty -- though somewhat of a corner case).
4767 was nasty -- though somewhat of a corner case).
4768
4768
4769 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
4769 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
4770 text (was a bug).
4770 text (was a bug).
4771
4771
4772 2002-04-30 Fernando Perez <fperez@colorado.edu>
4772 2002-04-30 Fernando Perez <fperez@colorado.edu>
4773
4773
4774 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
4774 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
4775 a print after ^D or ^C from the user so that the In[] prompt
4775 a print after ^D or ^C from the user so that the In[] prompt
4776 doesn't over-run the gnuplot one.
4776 doesn't over-run the gnuplot one.
4777
4777
4778 2002-04-29 Fernando Perez <fperez@colorado.edu>
4778 2002-04-29 Fernando Perez <fperez@colorado.edu>
4779
4779
4780 * Released 0.2.10
4780 * Released 0.2.10
4781
4781
4782 * IPython/__release__.py (version): get date dynamically.
4782 * IPython/__release__.py (version): get date dynamically.
4783
4783
4784 * Misc. documentation updates thanks to Arnd's comments. Also ran
4784 * Misc. documentation updates thanks to Arnd's comments. Also ran
4785 a full spellcheck on the manual (hadn't been done in a while).
4785 a full spellcheck on the manual (hadn't been done in a while).
4786
4786
4787 2002-04-27 Fernando Perez <fperez@colorado.edu>
4787 2002-04-27 Fernando Perez <fperez@colorado.edu>
4788
4788
4789 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
4789 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
4790 starting a log in mid-session would reset the input history list.
4790 starting a log in mid-session would reset the input history list.
4791
4791
4792 2002-04-26 Fernando Perez <fperez@colorado.edu>
4792 2002-04-26 Fernando Perez <fperez@colorado.edu>
4793
4793
4794 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
4794 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
4795 all files were being included in an update. Now anything in
4795 all files were being included in an update. Now anything in
4796 UserConfig that matches [A-Za-z]*.py will go (this excludes
4796 UserConfig that matches [A-Za-z]*.py will go (this excludes
4797 __init__.py)
4797 __init__.py)
4798
4798
4799 2002-04-25 Fernando Perez <fperez@colorado.edu>
4799 2002-04-25 Fernando Perez <fperez@colorado.edu>
4800
4800
4801 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
4801 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
4802 to __builtins__ so that any form of embedded or imported code can
4802 to __builtins__ so that any form of embedded or imported code can
4803 test for being inside IPython.
4803 test for being inside IPython.
4804
4804
4805 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
4805 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
4806 changed to GnuplotMagic because it's now an importable module,
4806 changed to GnuplotMagic because it's now an importable module,
4807 this makes the name follow that of the standard Gnuplot module.
4807 this makes the name follow that of the standard Gnuplot module.
4808 GnuplotMagic can now be loaded at any time in mid-session.
4808 GnuplotMagic can now be loaded at any time in mid-session.
4809
4809
4810 2002-04-24 Fernando Perez <fperez@colorado.edu>
4810 2002-04-24 Fernando Perez <fperez@colorado.edu>
4811
4811
4812 * IPython/numutils.py: removed SIUnits. It doesn't properly set
4812 * IPython/numutils.py: removed SIUnits. It doesn't properly set
4813 the globals (IPython has its own namespace) and the
4813 the globals (IPython has its own namespace) and the
4814 PhysicalQuantity stuff is much better anyway.
4814 PhysicalQuantity stuff is much better anyway.
4815
4815
4816 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
4816 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
4817 embedding example to standard user directory for
4817 embedding example to standard user directory for
4818 distribution. Also put it in the manual.
4818 distribution. Also put it in the manual.
4819
4819
4820 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
4820 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
4821 instance as first argument (so it doesn't rely on some obscure
4821 instance as first argument (so it doesn't rely on some obscure
4822 hidden global).
4822 hidden global).
4823
4823
4824 * IPython/UserConfig/ipythonrc.py: put () back in accepted
4824 * IPython/UserConfig/ipythonrc.py: put () back in accepted
4825 delimiters. While it prevents ().TAB from working, it allows
4825 delimiters. While it prevents ().TAB from working, it allows
4826 completions in open (... expressions. This is by far a more common
4826 completions in open (... expressions. This is by far a more common
4827 case.
4827 case.
4828
4828
4829 2002-04-23 Fernando Perez <fperez@colorado.edu>
4829 2002-04-23 Fernando Perez <fperez@colorado.edu>
4830
4830
4831 * IPython/Extensions/InterpreterPasteInput.py: new
4831 * IPython/Extensions/InterpreterPasteInput.py: new
4832 syntax-processing module for pasting lines with >>> or ... at the
4832 syntax-processing module for pasting lines with >>> or ... at the
4833 start.
4833 start.
4834
4834
4835 * IPython/Extensions/PhysicalQ_Interactive.py
4835 * IPython/Extensions/PhysicalQ_Interactive.py
4836 (PhysicalQuantityInteractive.__int__): fixed to work with either
4836 (PhysicalQuantityInteractive.__int__): fixed to work with either
4837 Numeric or math.
4837 Numeric or math.
4838
4838
4839 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
4839 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
4840 provided profiles. Now we have:
4840 provided profiles. Now we have:
4841 -math -> math module as * and cmath with its own namespace.
4841 -math -> math module as * and cmath with its own namespace.
4842 -numeric -> Numeric as *, plus gnuplot & grace
4842 -numeric -> Numeric as *, plus gnuplot & grace
4843 -physics -> same as before
4843 -physics -> same as before
4844
4844
4845 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
4845 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
4846 user-defined magics wouldn't be found by @magic if they were
4846 user-defined magics wouldn't be found by @magic if they were
4847 defined as class methods. Also cleaned up the namespace search
4847 defined as class methods. Also cleaned up the namespace search
4848 logic and the string building (to use %s instead of many repeated
4848 logic and the string building (to use %s instead of many repeated
4849 string adds).
4849 string adds).
4850
4850
4851 * IPython/UserConfig/example-magic.py (magic_foo): updated example
4851 * IPython/UserConfig/example-magic.py (magic_foo): updated example
4852 of user-defined magics to operate with class methods (cleaner, in
4852 of user-defined magics to operate with class methods (cleaner, in
4853 line with the gnuplot code).
4853 line with the gnuplot code).
4854
4854
4855 2002-04-22 Fernando Perez <fperez@colorado.edu>
4855 2002-04-22 Fernando Perez <fperez@colorado.edu>
4856
4856
4857 * setup.py: updated dependency list so that manual is updated when
4857 * setup.py: updated dependency list so that manual is updated when
4858 all included files change.
4858 all included files change.
4859
4859
4860 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
4860 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
4861 the delimiter removal option (the fix is ugly right now).
4861 the delimiter removal option (the fix is ugly right now).
4862
4862
4863 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
4863 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
4864 all of the math profile (quicker loading, no conflict between
4864 all of the math profile (quicker loading, no conflict between
4865 g-9.8 and g-gnuplot).
4865 g-9.8 and g-gnuplot).
4866
4866
4867 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
4867 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
4868 name of post-mortem files to IPython_crash_report.txt.
4868 name of post-mortem files to IPython_crash_report.txt.
4869
4869
4870 * Cleanup/update of the docs. Added all the new readline info and
4870 * Cleanup/update of the docs. Added all the new readline info and
4871 formatted all lists as 'real lists'.
4871 formatted all lists as 'real lists'.
4872
4872
4873 * IPython/ipmaker.py (make_IPython): removed now-obsolete
4873 * IPython/ipmaker.py (make_IPython): removed now-obsolete
4874 tab-completion options, since the full readline parse_and_bind is
4874 tab-completion options, since the full readline parse_and_bind is
4875 now accessible.
4875 now accessible.
4876
4876
4877 * IPython/iplib.py (InteractiveShell.init_readline): Changed
4877 * IPython/iplib.py (InteractiveShell.init_readline): Changed
4878 handling of readline options. Now users can specify any string to
4878 handling of readline options. Now users can specify any string to
4879 be passed to parse_and_bind(), as well as the delimiters to be
4879 be passed to parse_and_bind(), as well as the delimiters to be
4880 removed.
4880 removed.
4881 (InteractiveShell.__init__): Added __name__ to the global
4881 (InteractiveShell.__init__): Added __name__ to the global
4882 namespace so that things like Itpl which rely on its existence
4882 namespace so that things like Itpl which rely on its existence
4883 don't crash.
4883 don't crash.
4884 (InteractiveShell._prefilter): Defined the default with a _ so
4884 (InteractiveShell._prefilter): Defined the default with a _ so
4885 that prefilter() is easier to override, while the default one
4885 that prefilter() is easier to override, while the default one
4886 remains available.
4886 remains available.
4887
4887
4888 2002-04-18 Fernando Perez <fperez@colorado.edu>
4888 2002-04-18 Fernando Perez <fperez@colorado.edu>
4889
4889
4890 * Added information about pdb in the docs.
4890 * Added information about pdb in the docs.
4891
4891
4892 2002-04-17 Fernando Perez <fperez@colorado.edu>
4892 2002-04-17 Fernando Perez <fperez@colorado.edu>
4893
4893
4894 * IPython/ipmaker.py (make_IPython): added rc_override option to
4894 * IPython/ipmaker.py (make_IPython): added rc_override option to
4895 allow passing config options at creation time which may override
4895 allow passing config options at creation time which may override
4896 anything set in the config files or command line. This is
4896 anything set in the config files or command line. This is
4897 particularly useful for configuring embedded instances.
4897 particularly useful for configuring embedded instances.
4898
4898
4899 2002-04-15 Fernando Perez <fperez@colorado.edu>
4899 2002-04-15 Fernando Perez <fperez@colorado.edu>
4900
4900
4901 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
4901 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
4902 crash embedded instances because of the input cache falling out of
4902 crash embedded instances because of the input cache falling out of
4903 sync with the output counter.
4903 sync with the output counter.
4904
4904
4905 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
4905 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
4906 mode which calls pdb after an uncaught exception in IPython itself.
4906 mode which calls pdb after an uncaught exception in IPython itself.
4907
4907
4908 2002-04-14 Fernando Perez <fperez@colorado.edu>
4908 2002-04-14 Fernando Perez <fperez@colorado.edu>
4909
4909
4910 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
4910 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
4911 readline, fix it back after each call.
4911 readline, fix it back after each call.
4912
4912
4913 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
4913 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
4914 method to force all access via __call__(), which guarantees that
4914 method to force all access via __call__(), which guarantees that
4915 traceback references are properly deleted.
4915 traceback references are properly deleted.
4916
4916
4917 * IPython/Prompts.py (CachedOutput._display): minor fixes to
4917 * IPython/Prompts.py (CachedOutput._display): minor fixes to
4918 improve printing when pprint is in use.
4918 improve printing when pprint is in use.
4919
4919
4920 2002-04-13 Fernando Perez <fperez@colorado.edu>
4920 2002-04-13 Fernando Perez <fperez@colorado.edu>
4921
4921
4922 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
4922 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
4923 exceptions aren't caught anymore. If the user triggers one, he
4923 exceptions aren't caught anymore. If the user triggers one, he
4924 should know why he's doing it and it should go all the way up,
4924 should know why he's doing it and it should go all the way up,
4925 just like any other exception. So now @abort will fully kill the
4925 just like any other exception. So now @abort will fully kill the
4926 embedded interpreter and the embedding code (unless that happens
4926 embedded interpreter and the embedding code (unless that happens
4927 to catch SystemExit).
4927 to catch SystemExit).
4928
4928
4929 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
4929 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
4930 and a debugger() method to invoke the interactive pdb debugger
4930 and a debugger() method to invoke the interactive pdb debugger
4931 after printing exception information. Also added the corresponding
4931 after printing exception information. Also added the corresponding
4932 -pdb option and @pdb magic to control this feature, and updated
4932 -pdb option and @pdb magic to control this feature, and updated
4933 the docs. After a suggestion from Christopher Hart
4933 the docs. After a suggestion from Christopher Hart
4934 (hart-AT-caltech.edu).
4934 (hart-AT-caltech.edu).
4935
4935
4936 2002-04-12 Fernando Perez <fperez@colorado.edu>
4936 2002-04-12 Fernando Perez <fperez@colorado.edu>
4937
4937
4938 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
4938 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
4939 the exception handlers defined by the user (not the CrashHandler)
4939 the exception handlers defined by the user (not the CrashHandler)
4940 so that user exceptions don't trigger an ipython bug report.
4940 so that user exceptions don't trigger an ipython bug report.
4941
4941
4942 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
4942 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
4943 configurable (it should have always been so).
4943 configurable (it should have always been so).
4944
4944
4945 2002-03-26 Fernando Perez <fperez@colorado.edu>
4945 2002-03-26 Fernando Perez <fperez@colorado.edu>
4946
4946
4947 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
4947 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
4948 and there to fix embedding namespace issues. This should all be
4948 and there to fix embedding namespace issues. This should all be
4949 done in a more elegant way.
4949 done in a more elegant way.
4950
4950
4951 2002-03-25 Fernando Perez <fperez@colorado.edu>
4951 2002-03-25 Fernando Perez <fperez@colorado.edu>
4952
4952
4953 * IPython/genutils.py (get_home_dir): Try to make it work under
4953 * IPython/genutils.py (get_home_dir): Try to make it work under
4954 win9x also.
4954 win9x also.
4955
4955
4956 2002-03-20 Fernando Perez <fperez@colorado.edu>
4956 2002-03-20 Fernando Perez <fperez@colorado.edu>
4957
4957
4958 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
4958 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
4959 sys.displayhook untouched upon __init__.
4959 sys.displayhook untouched upon __init__.
4960
4960
4961 2002-03-19 Fernando Perez <fperez@colorado.edu>
4961 2002-03-19 Fernando Perez <fperez@colorado.edu>
4962
4962
4963 * Released 0.2.9 (for embedding bug, basically).
4963 * Released 0.2.9 (for embedding bug, basically).
4964
4964
4965 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
4965 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
4966 exceptions so that enclosing shell's state can be restored.
4966 exceptions so that enclosing shell's state can be restored.
4967
4967
4968 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
4968 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
4969 naming conventions in the .ipython/ dir.
4969 naming conventions in the .ipython/ dir.
4970
4970
4971 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
4971 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
4972 from delimiters list so filenames with - in them get expanded.
4972 from delimiters list so filenames with - in them get expanded.
4973
4973
4974 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
4974 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
4975 sys.displayhook not being properly restored after an embedded call.
4975 sys.displayhook not being properly restored after an embedded call.
4976
4976
4977 2002-03-18 Fernando Perez <fperez@colorado.edu>
4977 2002-03-18 Fernando Perez <fperez@colorado.edu>
4978
4978
4979 * Released 0.2.8
4979 * Released 0.2.8
4980
4980
4981 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
4981 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
4982 some files weren't being included in a -upgrade.
4982 some files weren't being included in a -upgrade.
4983 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
4983 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
4984 on' so that the first tab completes.
4984 on' so that the first tab completes.
4985 (InteractiveShell.handle_magic): fixed bug with spaces around
4985 (InteractiveShell.handle_magic): fixed bug with spaces around
4986 quotes breaking many magic commands.
4986 quotes breaking many magic commands.
4987
4987
4988 * setup.py: added note about ignoring the syntax error messages at
4988 * setup.py: added note about ignoring the syntax error messages at
4989 installation.
4989 installation.
4990
4990
4991 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
4991 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
4992 streamlining the gnuplot interface, now there's only one magic @gp.
4992 streamlining the gnuplot interface, now there's only one magic @gp.
4993
4993
4994 2002-03-17 Fernando Perez <fperez@colorado.edu>
4994 2002-03-17 Fernando Perez <fperez@colorado.edu>
4995
4995
4996 * IPython/UserConfig/magic_gnuplot.py: new name for the
4996 * IPython/UserConfig/magic_gnuplot.py: new name for the
4997 example-magic_pm.py file. Much enhanced system, now with a shell
4997 example-magic_pm.py file. Much enhanced system, now with a shell
4998 for communicating directly with gnuplot, one command at a time.
4998 for communicating directly with gnuplot, one command at a time.
4999
4999
5000 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5000 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5001 setting __name__=='__main__'.
5001 setting __name__=='__main__'.
5002
5002
5003 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5003 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5004 mini-shell for accessing gnuplot from inside ipython. Should
5004 mini-shell for accessing gnuplot from inside ipython. Should
5005 extend it later for grace access too. Inspired by Arnd's
5005 extend it later for grace access too. Inspired by Arnd's
5006 suggestion.
5006 suggestion.
5007
5007
5008 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5008 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5009 calling magic functions with () in their arguments. Thanks to Arnd
5009 calling magic functions with () in their arguments. Thanks to Arnd
5010 Baecker for pointing this to me.
5010 Baecker for pointing this to me.
5011
5011
5012 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5012 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5013 infinitely for integer or complex arrays (only worked with floats).
5013 infinitely for integer or complex arrays (only worked with floats).
5014
5014
5015 2002-03-16 Fernando Perez <fperez@colorado.edu>
5015 2002-03-16 Fernando Perez <fperez@colorado.edu>
5016
5016
5017 * setup.py: Merged setup and setup_windows into a single script
5017 * setup.py: Merged setup and setup_windows into a single script
5018 which properly handles things for windows users.
5018 which properly handles things for windows users.
5019
5019
5020 2002-03-15 Fernando Perez <fperez@colorado.edu>
5020 2002-03-15 Fernando Perez <fperez@colorado.edu>
5021
5021
5022 * Big change to the manual: now the magics are all automatically
5022 * Big change to the manual: now the magics are all automatically
5023 documented. This information is generated from their docstrings
5023 documented. This information is generated from their docstrings
5024 and put in a latex file included by the manual lyx file. This way
5024 and put in a latex file included by the manual lyx file. This way
5025 we get always up to date information for the magics. The manual
5025 we get always up to date information for the magics. The manual
5026 now also has proper version information, also auto-synced.
5026 now also has proper version information, also auto-synced.
5027
5027
5028 For this to work, an undocumented --magic_docstrings option was added.
5028 For this to work, an undocumented --magic_docstrings option was added.
5029
5029
5030 2002-03-13 Fernando Perez <fperez@colorado.edu>
5030 2002-03-13 Fernando Perez <fperez@colorado.edu>
5031
5031
5032 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5032 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5033 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5033 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5034
5034
5035 2002-03-12 Fernando Perez <fperez@colorado.edu>
5035 2002-03-12 Fernando Perez <fperez@colorado.edu>
5036
5036
5037 * IPython/ultraTB.py (TermColors): changed color escapes again to
5037 * IPython/ultraTB.py (TermColors): changed color escapes again to
5038 fix the (old, reintroduced) line-wrapping bug. Basically, if
5038 fix the (old, reintroduced) line-wrapping bug. Basically, if
5039 \001..\002 aren't given in the color escapes, lines get wrapped
5039 \001..\002 aren't given in the color escapes, lines get wrapped
5040 weirdly. But giving those screws up old xterms and emacs terms. So
5040 weirdly. But giving those screws up old xterms and emacs terms. So
5041 I added some logic for emacs terms to be ok, but I can't identify old
5041 I added some logic for emacs terms to be ok, but I can't identify old
5042 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5042 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5043
5043
5044 2002-03-10 Fernando Perez <fperez@colorado.edu>
5044 2002-03-10 Fernando Perez <fperez@colorado.edu>
5045
5045
5046 * IPython/usage.py (__doc__): Various documentation cleanups and
5046 * IPython/usage.py (__doc__): Various documentation cleanups and
5047 updates, both in usage docstrings and in the manual.
5047 updates, both in usage docstrings and in the manual.
5048
5048
5049 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5049 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5050 handling of caching. Set minimum acceptabe value for having a
5050 handling of caching. Set minimum acceptabe value for having a
5051 cache at 20 values.
5051 cache at 20 values.
5052
5052
5053 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5053 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5054 install_first_time function to a method, renamed it and added an
5054 install_first_time function to a method, renamed it and added an
5055 'upgrade' mode. Now people can update their config directory with
5055 'upgrade' mode. Now people can update their config directory with
5056 a simple command line switch (-upgrade, also new).
5056 a simple command line switch (-upgrade, also new).
5057
5057
5058 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5058 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5059 @file (convenient for automagic users under Python >= 2.2).
5059 @file (convenient for automagic users under Python >= 2.2).
5060 Removed @files (it seemed more like a plural than an abbrev. of
5060 Removed @files (it seemed more like a plural than an abbrev. of
5061 'file show').
5061 'file show').
5062
5062
5063 * IPython/iplib.py (install_first_time): Fixed crash if there were
5063 * IPython/iplib.py (install_first_time): Fixed crash if there were
5064 backup files ('~') in .ipython/ install directory.
5064 backup files ('~') in .ipython/ install directory.
5065
5065
5066 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5066 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5067 system. Things look fine, but these changes are fairly
5067 system. Things look fine, but these changes are fairly
5068 intrusive. Test them for a few days.
5068 intrusive. Test them for a few days.
5069
5069
5070 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5070 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5071 the prompts system. Now all in/out prompt strings are user
5071 the prompts system. Now all in/out prompt strings are user
5072 controllable. This is particularly useful for embedding, as one
5072 controllable. This is particularly useful for embedding, as one
5073 can tag embedded instances with particular prompts.
5073 can tag embedded instances with particular prompts.
5074
5074
5075 Also removed global use of sys.ps1/2, which now allows nested
5075 Also removed global use of sys.ps1/2, which now allows nested
5076 embeddings without any problems. Added command-line options for
5076 embeddings without any problems. Added command-line options for
5077 the prompt strings.
5077 the prompt strings.
5078
5078
5079 2002-03-08 Fernando Perez <fperez@colorado.edu>
5079 2002-03-08 Fernando Perez <fperez@colorado.edu>
5080
5080
5081 * IPython/UserConfig/example-embed-short.py (ipshell): added
5081 * IPython/UserConfig/example-embed-short.py (ipshell): added
5082 example file with the bare minimum code for embedding.
5082 example file with the bare minimum code for embedding.
5083
5083
5084 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5084 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5085 functionality for the embeddable shell to be activated/deactivated
5085 functionality for the embeddable shell to be activated/deactivated
5086 either globally or at each call.
5086 either globally or at each call.
5087
5087
5088 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5088 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5089 rewriting the prompt with '--->' for auto-inputs with proper
5089 rewriting the prompt with '--->' for auto-inputs with proper
5090 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5090 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5091 this is handled by the prompts class itself, as it should.
5091 this is handled by the prompts class itself, as it should.
5092
5092
5093 2002-03-05 Fernando Perez <fperez@colorado.edu>
5093 2002-03-05 Fernando Perez <fperez@colorado.edu>
5094
5094
5095 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5095 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5096 @logstart to avoid name clashes with the math log function.
5096 @logstart to avoid name clashes with the math log function.
5097
5097
5098 * Big updates to X/Emacs section of the manual.
5098 * Big updates to X/Emacs section of the manual.
5099
5099
5100 * Removed ipython_emacs. Milan explained to me how to pass
5100 * Removed ipython_emacs. Milan explained to me how to pass
5101 arguments to ipython through Emacs. Some day I'm going to end up
5101 arguments to ipython through Emacs. Some day I'm going to end up
5102 learning some lisp...
5102 learning some lisp...
5103
5103
5104 2002-03-04 Fernando Perez <fperez@colorado.edu>
5104 2002-03-04 Fernando Perez <fperez@colorado.edu>
5105
5105
5106 * IPython/ipython_emacs: Created script to be used as the
5106 * IPython/ipython_emacs: Created script to be used as the
5107 py-python-command Emacs variable so we can pass IPython
5107 py-python-command Emacs variable so we can pass IPython
5108 parameters. I can't figure out how to tell Emacs directly to pass
5108 parameters. I can't figure out how to tell Emacs directly to pass
5109 parameters to IPython, so a dummy shell script will do it.
5109 parameters to IPython, so a dummy shell script will do it.
5110
5110
5111 Other enhancements made for things to work better under Emacs'
5111 Other enhancements made for things to work better under Emacs'
5112 various types of terminals. Many thanks to Milan Zamazal
5112 various types of terminals. Many thanks to Milan Zamazal
5113 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5113 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5114
5114
5115 2002-03-01 Fernando Perez <fperez@colorado.edu>
5115 2002-03-01 Fernando Perez <fperez@colorado.edu>
5116
5116
5117 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5117 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5118 that loading of readline is now optional. This gives better
5118 that loading of readline is now optional. This gives better
5119 control to emacs users.
5119 control to emacs users.
5120
5120
5121 * IPython/ultraTB.py (__date__): Modified color escape sequences
5121 * IPython/ultraTB.py (__date__): Modified color escape sequences
5122 and now things work fine under xterm and in Emacs' term buffers
5122 and now things work fine under xterm and in Emacs' term buffers
5123 (though not shell ones). Well, in emacs you get colors, but all
5123 (though not shell ones). Well, in emacs you get colors, but all
5124 seem to be 'light' colors (no difference between dark and light
5124 seem to be 'light' colors (no difference between dark and light
5125 ones). But the garbage chars are gone, and also in xterms. It
5125 ones). But the garbage chars are gone, and also in xterms. It
5126 seems that now I'm using 'cleaner' ansi sequences.
5126 seems that now I'm using 'cleaner' ansi sequences.
5127
5127
5128 2002-02-21 Fernando Perez <fperez@colorado.edu>
5128 2002-02-21 Fernando Perez <fperez@colorado.edu>
5129
5129
5130 * Released 0.2.7 (mainly to publish the scoping fix).
5130 * Released 0.2.7 (mainly to publish the scoping fix).
5131
5131
5132 * IPython/Logger.py (Logger.logstate): added. A corresponding
5132 * IPython/Logger.py (Logger.logstate): added. A corresponding
5133 @logstate magic was created.
5133 @logstate magic was created.
5134
5134
5135 * IPython/Magic.py: fixed nested scoping problem under Python
5135 * IPython/Magic.py: fixed nested scoping problem under Python
5136 2.1.x (automagic wasn't working).
5136 2.1.x (automagic wasn't working).
5137
5137
5138 2002-02-20 Fernando Perez <fperez@colorado.edu>
5138 2002-02-20 Fernando Perez <fperez@colorado.edu>
5139
5139
5140 * Released 0.2.6.
5140 * Released 0.2.6.
5141
5141
5142 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5142 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5143 option so that logs can come out without any headers at all.
5143 option so that logs can come out without any headers at all.
5144
5144
5145 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5145 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5146 SciPy.
5146 SciPy.
5147
5147
5148 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5148 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5149 that embedded IPython calls don't require vars() to be explicitly
5149 that embedded IPython calls don't require vars() to be explicitly
5150 passed. Now they are extracted from the caller's frame (code
5150 passed. Now they are extracted from the caller's frame (code
5151 snatched from Eric Jones' weave). Added better documentation to
5151 snatched from Eric Jones' weave). Added better documentation to
5152 the section on embedding and the example file.
5152 the section on embedding and the example file.
5153
5153
5154 * IPython/genutils.py (page): Changed so that under emacs, it just
5154 * IPython/genutils.py (page): Changed so that under emacs, it just
5155 prints the string. You can then page up and down in the emacs
5155 prints the string. You can then page up and down in the emacs
5156 buffer itself. This is how the builtin help() works.
5156 buffer itself. This is how the builtin help() works.
5157
5157
5158 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5158 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5159 macro scoping: macros need to be executed in the user's namespace
5159 macro scoping: macros need to be executed in the user's namespace
5160 to work as if they had been typed by the user.
5160 to work as if they had been typed by the user.
5161
5161
5162 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5162 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5163 execute automatically (no need to type 'exec...'). They then
5163 execute automatically (no need to type 'exec...'). They then
5164 behave like 'true macros'. The printing system was also modified
5164 behave like 'true macros'. The printing system was also modified
5165 for this to work.
5165 for this to work.
5166
5166
5167 2002-02-19 Fernando Perez <fperez@colorado.edu>
5167 2002-02-19 Fernando Perez <fperez@colorado.edu>
5168
5168
5169 * IPython/genutils.py (page_file): new function for paging files
5169 * IPython/genutils.py (page_file): new function for paging files
5170 in an OS-independent way. Also necessary for file viewing to work
5170 in an OS-independent way. Also necessary for file viewing to work
5171 well inside Emacs buffers.
5171 well inside Emacs buffers.
5172 (page): Added checks for being in an emacs buffer.
5172 (page): Added checks for being in an emacs buffer.
5173 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5173 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5174 same bug in iplib.
5174 same bug in iplib.
5175
5175
5176 2002-02-18 Fernando Perez <fperez@colorado.edu>
5176 2002-02-18 Fernando Perez <fperez@colorado.edu>
5177
5177
5178 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5178 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5179 of readline so that IPython can work inside an Emacs buffer.
5179 of readline so that IPython can work inside an Emacs buffer.
5180
5180
5181 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5181 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5182 method signatures (they weren't really bugs, but it looks cleaner
5182 method signatures (they weren't really bugs, but it looks cleaner
5183 and keeps PyChecker happy).
5183 and keeps PyChecker happy).
5184
5184
5185 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5185 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5186 for implementing various user-defined hooks. Currently only
5186 for implementing various user-defined hooks. Currently only
5187 display is done.
5187 display is done.
5188
5188
5189 * IPython/Prompts.py (CachedOutput._display): changed display
5189 * IPython/Prompts.py (CachedOutput._display): changed display
5190 functions so that they can be dynamically changed by users easily.
5190 functions so that they can be dynamically changed by users easily.
5191
5191
5192 * IPython/Extensions/numeric_formats.py (num_display): added an
5192 * IPython/Extensions/numeric_formats.py (num_display): added an
5193 extension for printing NumPy arrays in flexible manners. It
5193 extension for printing NumPy arrays in flexible manners. It
5194 doesn't do anything yet, but all the structure is in
5194 doesn't do anything yet, but all the structure is in
5195 place. Ultimately the plan is to implement output format control
5195 place. Ultimately the plan is to implement output format control
5196 like in Octave.
5196 like in Octave.
5197
5197
5198 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5198 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5199 methods are found at run-time by all the automatic machinery.
5199 methods are found at run-time by all the automatic machinery.
5200
5200
5201 2002-02-17 Fernando Perez <fperez@colorado.edu>
5201 2002-02-17 Fernando Perez <fperez@colorado.edu>
5202
5202
5203 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5203 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5204 whole file a little.
5204 whole file a little.
5205
5205
5206 * ToDo: closed this document. Now there's a new_design.lyx
5206 * ToDo: closed this document. Now there's a new_design.lyx
5207 document for all new ideas. Added making a pdf of it for the
5207 document for all new ideas. Added making a pdf of it for the
5208 end-user distro.
5208 end-user distro.
5209
5209
5210 * IPython/Logger.py (Logger.switch_log): Created this to replace
5210 * IPython/Logger.py (Logger.switch_log): Created this to replace
5211 logon() and logoff(). It also fixes a nasty crash reported by
5211 logon() and logoff(). It also fixes a nasty crash reported by
5212 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5212 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5213
5213
5214 * IPython/iplib.py (complete): got auto-completion to work with
5214 * IPython/iplib.py (complete): got auto-completion to work with
5215 automagic (I had wanted this for a long time).
5215 automagic (I had wanted this for a long time).
5216
5216
5217 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5217 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5218 to @file, since file() is now a builtin and clashes with automagic
5218 to @file, since file() is now a builtin and clashes with automagic
5219 for @file.
5219 for @file.
5220
5220
5221 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5221 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5222 of this was previously in iplib, which had grown to more than 2000
5222 of this was previously in iplib, which had grown to more than 2000
5223 lines, way too long. No new functionality, but it makes managing
5223 lines, way too long. No new functionality, but it makes managing
5224 the code a bit easier.
5224 the code a bit easier.
5225
5225
5226 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5226 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5227 information to crash reports.
5227 information to crash reports.
5228
5228
5229 2002-02-12 Fernando Perez <fperez@colorado.edu>
5229 2002-02-12 Fernando Perez <fperez@colorado.edu>
5230
5230
5231 * Released 0.2.5.
5231 * Released 0.2.5.
5232
5232
5233 2002-02-11 Fernando Perez <fperez@colorado.edu>
5233 2002-02-11 Fernando Perez <fperez@colorado.edu>
5234
5234
5235 * Wrote a relatively complete Windows installer. It puts
5235 * Wrote a relatively complete Windows installer. It puts
5236 everything in place, creates Start Menu entries and fixes the
5236 everything in place, creates Start Menu entries and fixes the
5237 color issues. Nothing fancy, but it works.
5237 color issues. Nothing fancy, but it works.
5238
5238
5239 2002-02-10 Fernando Perez <fperez@colorado.edu>
5239 2002-02-10 Fernando Perez <fperez@colorado.edu>
5240
5240
5241 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5241 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5242 os.path.expanduser() call so that we can type @run ~/myfile.py and
5242 os.path.expanduser() call so that we can type @run ~/myfile.py and
5243 have thigs work as expected.
5243 have thigs work as expected.
5244
5244
5245 * IPython/genutils.py (page): fixed exception handling so things
5245 * IPython/genutils.py (page): fixed exception handling so things
5246 work both in Unix and Windows correctly. Quitting a pager triggers
5246 work both in Unix and Windows correctly. Quitting a pager triggers
5247 an IOError/broken pipe in Unix, and in windows not finding a pager
5247 an IOError/broken pipe in Unix, and in windows not finding a pager
5248 is also an IOError, so I had to actually look at the return value
5248 is also an IOError, so I had to actually look at the return value
5249 of the exception, not just the exception itself. Should be ok now.
5249 of the exception, not just the exception itself. Should be ok now.
5250
5250
5251 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5251 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5252 modified to allow case-insensitive color scheme changes.
5252 modified to allow case-insensitive color scheme changes.
5253
5253
5254 2002-02-09 Fernando Perez <fperez@colorado.edu>
5254 2002-02-09 Fernando Perez <fperez@colorado.edu>
5255
5255
5256 * IPython/genutils.py (native_line_ends): new function to leave
5256 * IPython/genutils.py (native_line_ends): new function to leave
5257 user config files with os-native line-endings.
5257 user config files with os-native line-endings.
5258
5258
5259 * README and manual updates.
5259 * README and manual updates.
5260
5260
5261 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5261 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5262 instead of StringType to catch Unicode strings.
5262 instead of StringType to catch Unicode strings.
5263
5263
5264 * IPython/genutils.py (filefind): fixed bug for paths with
5264 * IPython/genutils.py (filefind): fixed bug for paths with
5265 embedded spaces (very common in Windows).
5265 embedded spaces (very common in Windows).
5266
5266
5267 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5267 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5268 files under Windows, so that they get automatically associated
5268 files under Windows, so that they get automatically associated
5269 with a text editor. Windows makes it a pain to handle
5269 with a text editor. Windows makes it a pain to handle
5270 extension-less files.
5270 extension-less files.
5271
5271
5272 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5272 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5273 warning about readline only occur for Posix. In Windows there's no
5273 warning about readline only occur for Posix. In Windows there's no
5274 way to get readline, so why bother with the warning.
5274 way to get readline, so why bother with the warning.
5275
5275
5276 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5276 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5277 for __str__ instead of dir(self), since dir() changed in 2.2.
5277 for __str__ instead of dir(self), since dir() changed in 2.2.
5278
5278
5279 * Ported to Windows! Tested on XP, I suspect it should work fine
5279 * Ported to Windows! Tested on XP, I suspect it should work fine
5280 on NT/2000, but I don't think it will work on 98 et al. That
5280 on NT/2000, but I don't think it will work on 98 et al. That
5281 series of Windows is such a piece of junk anyway that I won't try
5281 series of Windows is such a piece of junk anyway that I won't try
5282 porting it there. The XP port was straightforward, showed a few
5282 porting it there. The XP port was straightforward, showed a few
5283 bugs here and there (fixed all), in particular some string
5283 bugs here and there (fixed all), in particular some string
5284 handling stuff which required considering Unicode strings (which
5284 handling stuff which required considering Unicode strings (which
5285 Windows uses). This is good, but hasn't been too tested :) No
5285 Windows uses). This is good, but hasn't been too tested :) No
5286 fancy installer yet, I'll put a note in the manual so people at
5286 fancy installer yet, I'll put a note in the manual so people at
5287 least make manually a shortcut.
5287 least make manually a shortcut.
5288
5288
5289 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5289 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5290 into a single one, "colors". This now controls both prompt and
5290 into a single one, "colors". This now controls both prompt and
5291 exception color schemes, and can be changed both at startup
5291 exception color schemes, and can be changed both at startup
5292 (either via command-line switches or via ipythonrc files) and at
5292 (either via command-line switches or via ipythonrc files) and at
5293 runtime, with @colors.
5293 runtime, with @colors.
5294 (Magic.magic_run): renamed @prun to @run and removed the old
5294 (Magic.magic_run): renamed @prun to @run and removed the old
5295 @run. The two were too similar to warrant keeping both.
5295 @run. The two were too similar to warrant keeping both.
5296
5296
5297 2002-02-03 Fernando Perez <fperez@colorado.edu>
5297 2002-02-03 Fernando Perez <fperez@colorado.edu>
5298
5298
5299 * IPython/iplib.py (install_first_time): Added comment on how to
5299 * IPython/iplib.py (install_first_time): Added comment on how to
5300 configure the color options for first-time users. Put a <return>
5300 configure the color options for first-time users. Put a <return>
5301 request at the end so that small-terminal users get a chance to
5301 request at the end so that small-terminal users get a chance to
5302 read the startup info.
5302 read the startup info.
5303
5303
5304 2002-01-23 Fernando Perez <fperez@colorado.edu>
5304 2002-01-23 Fernando Perez <fperez@colorado.edu>
5305
5305
5306 * IPython/iplib.py (CachedOutput.update): Changed output memory
5306 * IPython/iplib.py (CachedOutput.update): Changed output memory
5307 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5307 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5308 input history we still use _i. Did this b/c these variable are
5308 input history we still use _i. Did this b/c these variable are
5309 very commonly used in interactive work, so the less we need to
5309 very commonly used in interactive work, so the less we need to
5310 type the better off we are.
5310 type the better off we are.
5311 (Magic.magic_prun): updated @prun to better handle the namespaces
5311 (Magic.magic_prun): updated @prun to better handle the namespaces
5312 the file will run in, including a fix for __name__ not being set
5312 the file will run in, including a fix for __name__ not being set
5313 before.
5313 before.
5314
5314
5315 2002-01-20 Fernando Perez <fperez@colorado.edu>
5315 2002-01-20 Fernando Perez <fperez@colorado.edu>
5316
5316
5317 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5317 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5318 extra garbage for Python 2.2. Need to look more carefully into
5318 extra garbage for Python 2.2. Need to look more carefully into
5319 this later.
5319 this later.
5320
5320
5321 2002-01-19 Fernando Perez <fperez@colorado.edu>
5321 2002-01-19 Fernando Perez <fperez@colorado.edu>
5322
5322
5323 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5323 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5324 display SyntaxError exceptions properly formatted when they occur
5324 display SyntaxError exceptions properly formatted when they occur
5325 (they can be triggered by imported code).
5325 (they can be triggered by imported code).
5326
5326
5327 2002-01-18 Fernando Perez <fperez@colorado.edu>
5327 2002-01-18 Fernando Perez <fperez@colorado.edu>
5328
5328
5329 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5329 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5330 SyntaxError exceptions are reported nicely formatted, instead of
5330 SyntaxError exceptions are reported nicely formatted, instead of
5331 spitting out only offset information as before.
5331 spitting out only offset information as before.
5332 (Magic.magic_prun): Added the @prun function for executing
5332 (Magic.magic_prun): Added the @prun function for executing
5333 programs with command line args inside IPython.
5333 programs with command line args inside IPython.
5334
5334
5335 2002-01-16 Fernando Perez <fperez@colorado.edu>
5335 2002-01-16 Fernando Perez <fperez@colorado.edu>
5336
5336
5337 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5337 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5338 to *not* include the last item given in a range. This brings their
5338 to *not* include the last item given in a range. This brings their
5339 behavior in line with Python's slicing:
5339 behavior in line with Python's slicing:
5340 a[n1:n2] -> a[n1]...a[n2-1]
5340 a[n1:n2] -> a[n1]...a[n2-1]
5341 It may be a bit less convenient, but I prefer to stick to Python's
5341 It may be a bit less convenient, but I prefer to stick to Python's
5342 conventions *everywhere*, so users never have to wonder.
5342 conventions *everywhere*, so users never have to wonder.
5343 (Magic.magic_macro): Added @macro function to ease the creation of
5343 (Magic.magic_macro): Added @macro function to ease the creation of
5344 macros.
5344 macros.
5345
5345
5346 2002-01-05 Fernando Perez <fperez@colorado.edu>
5346 2002-01-05 Fernando Perez <fperez@colorado.edu>
5347
5347
5348 * Released 0.2.4.
5348 * Released 0.2.4.
5349
5349
5350 * IPython/iplib.py (Magic.magic_pdef):
5350 * IPython/iplib.py (Magic.magic_pdef):
5351 (InteractiveShell.safe_execfile): report magic lines and error
5351 (InteractiveShell.safe_execfile): report magic lines and error
5352 lines without line numbers so one can easily copy/paste them for
5352 lines without line numbers so one can easily copy/paste them for
5353 re-execution.
5353 re-execution.
5354
5354
5355 * Updated manual with recent changes.
5355 * Updated manual with recent changes.
5356
5356
5357 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5357 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5358 docstring printing when class? is called. Very handy for knowing
5358 docstring printing when class? is called. Very handy for knowing
5359 how to create class instances (as long as __init__ is well
5359 how to create class instances (as long as __init__ is well
5360 documented, of course :)
5360 documented, of course :)
5361 (Magic.magic_doc): print both class and constructor docstrings.
5361 (Magic.magic_doc): print both class and constructor docstrings.
5362 (Magic.magic_pdef): give constructor info if passed a class and
5362 (Magic.magic_pdef): give constructor info if passed a class and
5363 __call__ info for callable object instances.
5363 __call__ info for callable object instances.
5364
5364
5365 2002-01-04 Fernando Perez <fperez@colorado.edu>
5365 2002-01-04 Fernando Perez <fperez@colorado.edu>
5366
5366
5367 * Made deep_reload() off by default. It doesn't always work
5367 * Made deep_reload() off by default. It doesn't always work
5368 exactly as intended, so it's probably safer to have it off. It's
5368 exactly as intended, so it's probably safer to have it off. It's
5369 still available as dreload() anyway, so nothing is lost.
5369 still available as dreload() anyway, so nothing is lost.
5370
5370
5371 2002-01-02 Fernando Perez <fperez@colorado.edu>
5371 2002-01-02 Fernando Perez <fperez@colorado.edu>
5372
5372
5373 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5373 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5374 so I wanted an updated release).
5374 so I wanted an updated release).
5375
5375
5376 2001-12-27 Fernando Perez <fperez@colorado.edu>
5376 2001-12-27 Fernando Perez <fperez@colorado.edu>
5377
5377
5378 * IPython/iplib.py (InteractiveShell.interact): Added the original
5378 * IPython/iplib.py (InteractiveShell.interact): Added the original
5379 code from 'code.py' for this module in order to change the
5379 code from 'code.py' for this module in order to change the
5380 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5380 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5381 the history cache would break when the user hit Ctrl-C, and
5381 the history cache would break when the user hit Ctrl-C, and
5382 interact() offers no way to add any hooks to it.
5382 interact() offers no way to add any hooks to it.
5383
5383
5384 2001-12-23 Fernando Perez <fperez@colorado.edu>
5384 2001-12-23 Fernando Perez <fperez@colorado.edu>
5385
5385
5386 * setup.py: added check for 'MANIFEST' before trying to remove
5386 * setup.py: added check for 'MANIFEST' before trying to remove
5387 it. Thanks to Sean Reifschneider.
5387 it. Thanks to Sean Reifschneider.
5388
5388
5389 2001-12-22 Fernando Perez <fperez@colorado.edu>
5389 2001-12-22 Fernando Perez <fperez@colorado.edu>
5390
5390
5391 * Released 0.2.2.
5391 * Released 0.2.2.
5392
5392
5393 * Finished (reasonably) writing the manual. Later will add the
5393 * Finished (reasonably) writing the manual. Later will add the
5394 python-standard navigation stylesheets, but for the time being
5394 python-standard navigation stylesheets, but for the time being
5395 it's fairly complete. Distribution will include html and pdf
5395 it's fairly complete. Distribution will include html and pdf
5396 versions.
5396 versions.
5397
5397
5398 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5398 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5399 (MayaVi author).
5399 (MayaVi author).
5400
5400
5401 2001-12-21 Fernando Perez <fperez@colorado.edu>
5401 2001-12-21 Fernando Perez <fperez@colorado.edu>
5402
5402
5403 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5403 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5404 good public release, I think (with the manual and the distutils
5404 good public release, I think (with the manual and the distutils
5405 installer). The manual can use some work, but that can go
5405 installer). The manual can use some work, but that can go
5406 slowly. Otherwise I think it's quite nice for end users. Next
5406 slowly. Otherwise I think it's quite nice for end users. Next
5407 summer, rewrite the guts of it...
5407 summer, rewrite the guts of it...
5408
5408
5409 * Changed format of ipythonrc files to use whitespace as the
5409 * Changed format of ipythonrc files to use whitespace as the
5410 separator instead of an explicit '='. Cleaner.
5410 separator instead of an explicit '='. Cleaner.
5411
5411
5412 2001-12-20 Fernando Perez <fperez@colorado.edu>
5412 2001-12-20 Fernando Perez <fperez@colorado.edu>
5413
5413
5414 * Started a manual in LyX. For now it's just a quick merge of the
5414 * Started a manual in LyX. For now it's just a quick merge of the
5415 various internal docstrings and READMEs. Later it may grow into a
5415 various internal docstrings and READMEs. Later it may grow into a
5416 nice, full-blown manual.
5416 nice, full-blown manual.
5417
5417
5418 * Set up a distutils based installer. Installation should now be
5418 * Set up a distutils based installer. Installation should now be
5419 trivially simple for end-users.
5419 trivially simple for end-users.
5420
5420
5421 2001-12-11 Fernando Perez <fperez@colorado.edu>
5421 2001-12-11 Fernando Perez <fperez@colorado.edu>
5422
5422
5423 * Released 0.2.0. First public release, announced it at
5423 * Released 0.2.0. First public release, announced it at
5424 comp.lang.python. From now on, just bugfixes...
5424 comp.lang.python. From now on, just bugfixes...
5425
5425
5426 * Went through all the files, set copyright/license notices and
5426 * Went through all the files, set copyright/license notices and
5427 cleaned up things. Ready for release.
5427 cleaned up things. Ready for release.
5428
5428
5429 2001-12-10 Fernando Perez <fperez@colorado.edu>
5429 2001-12-10 Fernando Perez <fperez@colorado.edu>
5430
5430
5431 * Changed the first-time installer not to use tarfiles. It's more
5431 * Changed the first-time installer not to use tarfiles. It's more
5432 robust now and less unix-dependent. Also makes it easier for
5432 robust now and less unix-dependent. Also makes it easier for
5433 people to later upgrade versions.
5433 people to later upgrade versions.
5434
5434
5435 * Changed @exit to @abort to reflect the fact that it's pretty
5435 * Changed @exit to @abort to reflect the fact that it's pretty
5436 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5436 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5437 becomes significant only when IPyhton is embedded: in that case,
5437 becomes significant only when IPyhton is embedded: in that case,
5438 C-D closes IPython only, but @abort kills the enclosing program
5438 C-D closes IPython only, but @abort kills the enclosing program
5439 too (unless it had called IPython inside a try catching
5439 too (unless it had called IPython inside a try catching
5440 SystemExit).
5440 SystemExit).
5441
5441
5442 * Created Shell module which exposes the actuall IPython Shell
5442 * Created Shell module which exposes the actuall IPython Shell
5443 classes, currently the normal and the embeddable one. This at
5443 classes, currently the normal and the embeddable one. This at
5444 least offers a stable interface we won't need to change when
5444 least offers a stable interface we won't need to change when
5445 (later) the internals are rewritten. That rewrite will be confined
5445 (later) the internals are rewritten. That rewrite will be confined
5446 to iplib and ipmaker, but the Shell interface should remain as is.
5446 to iplib and ipmaker, but the Shell interface should remain as is.
5447
5447
5448 * Added embed module which offers an embeddable IPShell object,
5448 * Added embed module which offers an embeddable IPShell object,
5449 useful to fire up IPython *inside* a running program. Great for
5449 useful to fire up IPython *inside* a running program. Great for
5450 debugging or dynamical data analysis.
5450 debugging or dynamical data analysis.
5451
5451
5452 2001-12-08 Fernando Perez <fperez@colorado.edu>
5452 2001-12-08 Fernando Perez <fperez@colorado.edu>
5453
5453
5454 * Fixed small bug preventing seeing info from methods of defined
5454 * Fixed small bug preventing seeing info from methods of defined
5455 objects (incorrect namespace in _ofind()).
5455 objects (incorrect namespace in _ofind()).
5456
5456
5457 * Documentation cleanup. Moved the main usage docstrings to a
5457 * Documentation cleanup. Moved the main usage docstrings to a
5458 separate file, usage.py (cleaner to maintain, and hopefully in the
5458 separate file, usage.py (cleaner to maintain, and hopefully in the
5459 future some perlpod-like way of producing interactive, man and
5459 future some perlpod-like way of producing interactive, man and
5460 html docs out of it will be found).
5460 html docs out of it will be found).
5461
5461
5462 * Added @profile to see your profile at any time.
5462 * Added @profile to see your profile at any time.
5463
5463
5464 * Added @p as an alias for 'print'. It's especially convenient if
5464 * Added @p as an alias for 'print'. It's especially convenient if
5465 using automagic ('p x' prints x).
5465 using automagic ('p x' prints x).
5466
5466
5467 * Small cleanups and fixes after a pychecker run.
5467 * Small cleanups and fixes after a pychecker run.
5468
5468
5469 * Changed the @cd command to handle @cd - and @cd -<n> for
5469 * Changed the @cd command to handle @cd - and @cd -<n> for
5470 visiting any directory in _dh.
5470 visiting any directory in _dh.
5471
5471
5472 * Introduced _dh, a history of visited directories. @dhist prints
5472 * Introduced _dh, a history of visited directories. @dhist prints
5473 it out with numbers.
5473 it out with numbers.
5474
5474
5475 2001-12-07 Fernando Perez <fperez@colorado.edu>
5475 2001-12-07 Fernando Perez <fperez@colorado.edu>
5476
5476
5477 * Released 0.1.22
5477 * Released 0.1.22
5478
5478
5479 * Made initialization a bit more robust against invalid color
5479 * Made initialization a bit more robust against invalid color
5480 options in user input (exit, not traceback-crash).
5480 options in user input (exit, not traceback-crash).
5481
5481
5482 * Changed the bug crash reporter to write the report only in the
5482 * Changed the bug crash reporter to write the report only in the
5483 user's .ipython directory. That way IPython won't litter people's
5483 user's .ipython directory. That way IPython won't litter people's
5484 hard disks with crash files all over the place. Also print on
5484 hard disks with crash files all over the place. Also print on
5485 screen the necessary mail command.
5485 screen the necessary mail command.
5486
5486
5487 * With the new ultraTB, implemented LightBG color scheme for light
5487 * With the new ultraTB, implemented LightBG color scheme for light
5488 background terminals. A lot of people like white backgrounds, so I
5488 background terminals. A lot of people like white backgrounds, so I
5489 guess we should at least give them something readable.
5489 guess we should at least give them something readable.
5490
5490
5491 2001-12-06 Fernando Perez <fperez@colorado.edu>
5491 2001-12-06 Fernando Perez <fperez@colorado.edu>
5492
5492
5493 * Modified the structure of ultraTB. Now there's a proper class
5493 * Modified the structure of ultraTB. Now there's a proper class
5494 for tables of color schemes which allow adding schemes easily and
5494 for tables of color schemes which allow adding schemes easily and
5495 switching the active scheme without creating a new instance every
5495 switching the active scheme without creating a new instance every
5496 time (which was ridiculous). The syntax for creating new schemes
5496 time (which was ridiculous). The syntax for creating new schemes
5497 is also cleaner. I think ultraTB is finally done, with a clean
5497 is also cleaner. I think ultraTB is finally done, with a clean
5498 class structure. Names are also much cleaner (now there's proper
5498 class structure. Names are also much cleaner (now there's proper
5499 color tables, no need for every variable to also have 'color' in
5499 color tables, no need for every variable to also have 'color' in
5500 its name).
5500 its name).
5501
5501
5502 * Broke down genutils into separate files. Now genutils only
5502 * Broke down genutils into separate files. Now genutils only
5503 contains utility functions, and classes have been moved to their
5503 contains utility functions, and classes have been moved to their
5504 own files (they had enough independent functionality to warrant
5504 own files (they had enough independent functionality to warrant
5505 it): ConfigLoader, OutputTrap, Struct.
5505 it): ConfigLoader, OutputTrap, Struct.
5506
5506
5507 2001-12-05 Fernando Perez <fperez@colorado.edu>
5507 2001-12-05 Fernando Perez <fperez@colorado.edu>
5508
5508
5509 * IPython turns 21! Released version 0.1.21, as a candidate for
5509 * IPython turns 21! Released version 0.1.21, as a candidate for
5510 public consumption. If all goes well, release in a few days.
5510 public consumption. If all goes well, release in a few days.
5511
5511
5512 * Fixed path bug (files in Extensions/ directory wouldn't be found
5512 * Fixed path bug (files in Extensions/ directory wouldn't be found
5513 unless IPython/ was explicitly in sys.path).
5513 unless IPython/ was explicitly in sys.path).
5514
5514
5515 * Extended the FlexCompleter class as MagicCompleter to allow
5515 * Extended the FlexCompleter class as MagicCompleter to allow
5516 completion of @-starting lines.
5516 completion of @-starting lines.
5517
5517
5518 * Created __release__.py file as a central repository for release
5518 * Created __release__.py file as a central repository for release
5519 info that other files can read from.
5519 info that other files can read from.
5520
5520
5521 * Fixed small bug in logging: when logging was turned on in
5521 * Fixed small bug in logging: when logging was turned on in
5522 mid-session, old lines with special meanings (!@?) were being
5522 mid-session, old lines with special meanings (!@?) were being
5523 logged without the prepended comment, which is necessary since
5523 logged without the prepended comment, which is necessary since
5524 they are not truly valid python syntax. This should make session
5524 they are not truly valid python syntax. This should make session
5525 restores produce less errors.
5525 restores produce less errors.
5526
5526
5527 * The namespace cleanup forced me to make a FlexCompleter class
5527 * The namespace cleanup forced me to make a FlexCompleter class
5528 which is nothing but a ripoff of rlcompleter, but with selectable
5528 which is nothing but a ripoff of rlcompleter, but with selectable
5529 namespace (rlcompleter only works in __main__.__dict__). I'll try
5529 namespace (rlcompleter only works in __main__.__dict__). I'll try
5530 to submit a note to the authors to see if this change can be
5530 to submit a note to the authors to see if this change can be
5531 incorporated in future rlcompleter releases (Dec.6: done)
5531 incorporated in future rlcompleter releases (Dec.6: done)
5532
5532
5533 * More fixes to namespace handling. It was a mess! Now all
5533 * More fixes to namespace handling. It was a mess! Now all
5534 explicit references to __main__.__dict__ are gone (except when
5534 explicit references to __main__.__dict__ are gone (except when
5535 really needed) and everything is handled through the namespace
5535 really needed) and everything is handled through the namespace
5536 dicts in the IPython instance. We seem to be getting somewhere
5536 dicts in the IPython instance. We seem to be getting somewhere
5537 with this, finally...
5537 with this, finally...
5538
5538
5539 * Small documentation updates.
5539 * Small documentation updates.
5540
5540
5541 * Created the Extensions directory under IPython (with an
5541 * Created the Extensions directory under IPython (with an
5542 __init__.py). Put the PhysicalQ stuff there. This directory should
5542 __init__.py). Put the PhysicalQ stuff there. This directory should
5543 be used for all special-purpose extensions.
5543 be used for all special-purpose extensions.
5544
5544
5545 * File renaming:
5545 * File renaming:
5546 ipythonlib --> ipmaker
5546 ipythonlib --> ipmaker
5547 ipplib --> iplib
5547 ipplib --> iplib
5548 This makes a bit more sense in terms of what these files actually do.
5548 This makes a bit more sense in terms of what these files actually do.
5549
5549
5550 * Moved all the classes and functions in ipythonlib to ipplib, so
5550 * Moved all the classes and functions in ipythonlib to ipplib, so
5551 now ipythonlib only has make_IPython(). This will ease up its
5551 now ipythonlib only has make_IPython(). This will ease up its
5552 splitting in smaller functional chunks later.
5552 splitting in smaller functional chunks later.
5553
5553
5554 * Cleaned up (done, I think) output of @whos. Better column
5554 * Cleaned up (done, I think) output of @whos. Better column
5555 formatting, and now shows str(var) for as much as it can, which is
5555 formatting, and now shows str(var) for as much as it can, which is
5556 typically what one gets with a 'print var'.
5556 typically what one gets with a 'print var'.
5557
5557
5558 2001-12-04 Fernando Perez <fperez@colorado.edu>
5558 2001-12-04 Fernando Perez <fperez@colorado.edu>
5559
5559
5560 * Fixed namespace problems. Now builtin/IPyhton/user names get
5560 * Fixed namespace problems. Now builtin/IPyhton/user names get
5561 properly reported in their namespace. Internal namespace handling
5561 properly reported in their namespace. Internal namespace handling
5562 is finally getting decent (not perfect yet, but much better than
5562 is finally getting decent (not perfect yet, but much better than
5563 the ad-hoc mess we had).
5563 the ad-hoc mess we had).
5564
5564
5565 * Removed -exit option. If people just want to run a python
5565 * Removed -exit option. If people just want to run a python
5566 script, that's what the normal interpreter is for. Less
5566 script, that's what the normal interpreter is for. Less
5567 unnecessary options, less chances for bugs.
5567 unnecessary options, less chances for bugs.
5568
5568
5569 * Added a crash handler which generates a complete post-mortem if
5569 * Added a crash handler which generates a complete post-mortem if
5570 IPython crashes. This will help a lot in tracking bugs down the
5570 IPython crashes. This will help a lot in tracking bugs down the
5571 road.
5571 road.
5572
5572
5573 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5573 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5574 which were boud to functions being reassigned would bypass the
5574 which were boud to functions being reassigned would bypass the
5575 logger, breaking the sync of _il with the prompt counter. This
5575 logger, breaking the sync of _il with the prompt counter. This
5576 would then crash IPython later when a new line was logged.
5576 would then crash IPython later when a new line was logged.
5577
5577
5578 2001-12-02 Fernando Perez <fperez@colorado.edu>
5578 2001-12-02 Fernando Perez <fperez@colorado.edu>
5579
5579
5580 * Made IPython a package. This means people don't have to clutter
5580 * Made IPython a package. This means people don't have to clutter
5581 their sys.path with yet another directory. Changed the INSTALL
5581 their sys.path with yet another directory. Changed the INSTALL
5582 file accordingly.
5582 file accordingly.
5583
5583
5584 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5584 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5585 sorts its output (so @who shows it sorted) and @whos formats the
5585 sorts its output (so @who shows it sorted) and @whos formats the
5586 table according to the width of the first column. Nicer, easier to
5586 table according to the width of the first column. Nicer, easier to
5587 read. Todo: write a generic table_format() which takes a list of
5587 read. Todo: write a generic table_format() which takes a list of
5588 lists and prints it nicely formatted, with optional row/column
5588 lists and prints it nicely formatted, with optional row/column
5589 separators and proper padding and justification.
5589 separators and proper padding and justification.
5590
5590
5591 * Released 0.1.20
5591 * Released 0.1.20
5592
5592
5593 * Fixed bug in @log which would reverse the inputcache list (a
5593 * Fixed bug in @log which would reverse the inputcache list (a
5594 copy operation was missing).
5594 copy operation was missing).
5595
5595
5596 * Code cleanup. @config was changed to use page(). Better, since
5596 * Code cleanup. @config was changed to use page(). Better, since
5597 its output is always quite long.
5597 its output is always quite long.
5598
5598
5599 * Itpl is back as a dependency. I was having too many problems
5599 * Itpl is back as a dependency. I was having too many problems
5600 getting the parametric aliases to work reliably, and it's just
5600 getting the parametric aliases to work reliably, and it's just
5601 easier to code weird string operations with it than playing %()s
5601 easier to code weird string operations with it than playing %()s
5602 games. It's only ~6k, so I don't think it's too big a deal.
5602 games. It's only ~6k, so I don't think it's too big a deal.
5603
5603
5604 * Found (and fixed) a very nasty bug with history. !lines weren't
5604 * Found (and fixed) a very nasty bug with history. !lines weren't
5605 getting cached, and the out of sync caches would crash
5605 getting cached, and the out of sync caches would crash
5606 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5606 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5607 division of labor a bit better. Bug fixed, cleaner structure.
5607 division of labor a bit better. Bug fixed, cleaner structure.
5608
5608
5609 2001-12-01 Fernando Perez <fperez@colorado.edu>
5609 2001-12-01 Fernando Perez <fperez@colorado.edu>
5610
5610
5611 * Released 0.1.19
5611 * Released 0.1.19
5612
5612
5613 * Added option -n to @hist to prevent line number printing. Much
5613 * Added option -n to @hist to prevent line number printing. Much
5614 easier to copy/paste code this way.
5614 easier to copy/paste code this way.
5615
5615
5616 * Created global _il to hold the input list. Allows easy
5616 * Created global _il to hold the input list. Allows easy
5617 re-execution of blocks of code by slicing it (inspired by Janko's
5617 re-execution of blocks of code by slicing it (inspired by Janko's
5618 comment on 'macros').
5618 comment on 'macros').
5619
5619
5620 * Small fixes and doc updates.
5620 * Small fixes and doc updates.
5621
5621
5622 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5622 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5623 much too fragile with automagic. Handles properly multi-line
5623 much too fragile with automagic. Handles properly multi-line
5624 statements and takes parameters.
5624 statements and takes parameters.
5625
5625
5626 2001-11-30 Fernando Perez <fperez@colorado.edu>
5626 2001-11-30 Fernando Perez <fperez@colorado.edu>
5627
5627
5628 * Version 0.1.18 released.
5628 * Version 0.1.18 released.
5629
5629
5630 * Fixed nasty namespace bug in initial module imports.
5630 * Fixed nasty namespace bug in initial module imports.
5631
5631
5632 * Added copyright/license notes to all code files (except
5632 * Added copyright/license notes to all code files (except
5633 DPyGetOpt). For the time being, LGPL. That could change.
5633 DPyGetOpt). For the time being, LGPL. That could change.
5634
5634
5635 * Rewrote a much nicer README, updated INSTALL, cleaned up
5635 * Rewrote a much nicer README, updated INSTALL, cleaned up
5636 ipythonrc-* samples.
5636 ipythonrc-* samples.
5637
5637
5638 * Overall code/documentation cleanup. Basically ready for
5638 * Overall code/documentation cleanup. Basically ready for
5639 release. Only remaining thing: licence decision (LGPL?).
5639 release. Only remaining thing: licence decision (LGPL?).
5640
5640
5641 * Converted load_config to a class, ConfigLoader. Now recursion
5641 * Converted load_config to a class, ConfigLoader. Now recursion
5642 control is better organized. Doesn't include the same file twice.
5642 control is better organized. Doesn't include the same file twice.
5643
5643
5644 2001-11-29 Fernando Perez <fperez@colorado.edu>
5644 2001-11-29 Fernando Perez <fperez@colorado.edu>
5645
5645
5646 * Got input history working. Changed output history variables from
5646 * Got input history working. Changed output history variables from
5647 _p to _o so that _i is for input and _o for output. Just cleaner
5647 _p to _o so that _i is for input and _o for output. Just cleaner
5648 convention.
5648 convention.
5649
5649
5650 * Implemented parametric aliases. This pretty much allows the
5650 * Implemented parametric aliases. This pretty much allows the
5651 alias system to offer full-blown shell convenience, I think.
5651 alias system to offer full-blown shell convenience, I think.
5652
5652
5653 * Version 0.1.17 released, 0.1.18 opened.
5653 * Version 0.1.17 released, 0.1.18 opened.
5654
5654
5655 * dot_ipython/ipythonrc (alias): added documentation.
5655 * dot_ipython/ipythonrc (alias): added documentation.
5656 (xcolor): Fixed small bug (xcolors -> xcolor)
5656 (xcolor): Fixed small bug (xcolors -> xcolor)
5657
5657
5658 * Changed the alias system. Now alias is a magic command to define
5658 * Changed the alias system. Now alias is a magic command to define
5659 aliases just like the shell. Rationale: the builtin magics should
5659 aliases just like the shell. Rationale: the builtin magics should
5660 be there for things deeply connected to IPython's
5660 be there for things deeply connected to IPython's
5661 architecture. And this is a much lighter system for what I think
5661 architecture. And this is a much lighter system for what I think
5662 is the really important feature: allowing users to define quickly
5662 is the really important feature: allowing users to define quickly
5663 magics that will do shell things for them, so they can customize
5663 magics that will do shell things for them, so they can customize
5664 IPython easily to match their work habits. If someone is really
5664 IPython easily to match their work habits. If someone is really
5665 desperate to have another name for a builtin alias, they can
5665 desperate to have another name for a builtin alias, they can
5666 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5666 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5667 works.
5667 works.
5668
5668
5669 2001-11-28 Fernando Perez <fperez@colorado.edu>
5669 2001-11-28 Fernando Perez <fperez@colorado.edu>
5670
5670
5671 * Changed @file so that it opens the source file at the proper
5671 * Changed @file so that it opens the source file at the proper
5672 line. Since it uses less, if your EDITOR environment is
5672 line. Since it uses less, if your EDITOR environment is
5673 configured, typing v will immediately open your editor of choice
5673 configured, typing v will immediately open your editor of choice
5674 right at the line where the object is defined. Not as quick as
5674 right at the line where the object is defined. Not as quick as
5675 having a direct @edit command, but for all intents and purposes it
5675 having a direct @edit command, but for all intents and purposes it
5676 works. And I don't have to worry about writing @edit to deal with
5676 works. And I don't have to worry about writing @edit to deal with
5677 all the editors, less does that.
5677 all the editors, less does that.
5678
5678
5679 * Version 0.1.16 released, 0.1.17 opened.
5679 * Version 0.1.16 released, 0.1.17 opened.
5680
5680
5681 * Fixed some nasty bugs in the page/page_dumb combo that could
5681 * Fixed some nasty bugs in the page/page_dumb combo that could
5682 crash IPython.
5682 crash IPython.
5683
5683
5684 2001-11-27 Fernando Perez <fperez@colorado.edu>
5684 2001-11-27 Fernando Perez <fperez@colorado.edu>
5685
5685
5686 * Version 0.1.15 released, 0.1.16 opened.
5686 * Version 0.1.15 released, 0.1.16 opened.
5687
5687
5688 * Finally got ? and ?? to work for undefined things: now it's
5688 * Finally got ? and ?? to work for undefined things: now it's
5689 possible to type {}.get? and get information about the get method
5689 possible to type {}.get? and get information about the get method
5690 of dicts, or os.path? even if only os is defined (so technically
5690 of dicts, or os.path? even if only os is defined (so technically
5691 os.path isn't). Works at any level. For example, after import os,
5691 os.path isn't). Works at any level. For example, after import os,
5692 os?, os.path?, os.path.abspath? all work. This is great, took some
5692 os?, os.path?, os.path.abspath? all work. This is great, took some
5693 work in _ofind.
5693 work in _ofind.
5694
5694
5695 * Fixed more bugs with logging. The sanest way to do it was to add
5695 * Fixed more bugs with logging. The sanest way to do it was to add
5696 to @log a 'mode' parameter. Killed two in one shot (this mode
5696 to @log a 'mode' parameter. Killed two in one shot (this mode
5697 option was a request of Janko's). I think it's finally clean
5697 option was a request of Janko's). I think it's finally clean
5698 (famous last words).
5698 (famous last words).
5699
5699
5700 * Added a page_dumb() pager which does a decent job of paging on
5700 * Added a page_dumb() pager which does a decent job of paging on
5701 screen, if better things (like less) aren't available. One less
5701 screen, if better things (like less) aren't available. One less
5702 unix dependency (someday maybe somebody will port this to
5702 unix dependency (someday maybe somebody will port this to
5703 windows).
5703 windows).
5704
5704
5705 * Fixed problem in magic_log: would lock of logging out if log
5705 * Fixed problem in magic_log: would lock of logging out if log
5706 creation failed (because it would still think it had succeeded).
5706 creation failed (because it would still think it had succeeded).
5707
5707
5708 * Improved the page() function using curses to auto-detect screen
5708 * Improved the page() function using curses to auto-detect screen
5709 size. Now it can make a much better decision on whether to print
5709 size. Now it can make a much better decision on whether to print
5710 or page a string. Option screen_length was modified: a value 0
5710 or page a string. Option screen_length was modified: a value 0
5711 means auto-detect, and that's the default now.
5711 means auto-detect, and that's the default now.
5712
5712
5713 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
5713 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
5714 go out. I'll test it for a few days, then talk to Janko about
5714 go out. I'll test it for a few days, then talk to Janko about
5715 licences and announce it.
5715 licences and announce it.
5716
5716
5717 * Fixed the length of the auto-generated ---> prompt which appears
5717 * Fixed the length of the auto-generated ---> prompt which appears
5718 for auto-parens and auto-quotes. Getting this right isn't trivial,
5718 for auto-parens and auto-quotes. Getting this right isn't trivial,
5719 with all the color escapes, different prompt types and optional
5719 with all the color escapes, different prompt types and optional
5720 separators. But it seems to be working in all the combinations.
5720 separators. But it seems to be working in all the combinations.
5721
5721
5722 2001-11-26 Fernando Perez <fperez@colorado.edu>
5722 2001-11-26 Fernando Perez <fperez@colorado.edu>
5723
5723
5724 * Wrote a regexp filter to get option types from the option names
5724 * Wrote a regexp filter to get option types from the option names
5725 string. This eliminates the need to manually keep two duplicate
5725 string. This eliminates the need to manually keep two duplicate
5726 lists.
5726 lists.
5727
5727
5728 * Removed the unneeded check_option_names. Now options are handled
5728 * Removed the unneeded check_option_names. Now options are handled
5729 in a much saner manner and it's easy to visually check that things
5729 in a much saner manner and it's easy to visually check that things
5730 are ok.
5730 are ok.
5731
5731
5732 * Updated version numbers on all files I modified to carry a
5732 * Updated version numbers on all files I modified to carry a
5733 notice so Janko and Nathan have clear version markers.
5733 notice so Janko and Nathan have clear version markers.
5734
5734
5735 * Updated docstring for ultraTB with my changes. I should send
5735 * Updated docstring for ultraTB with my changes. I should send
5736 this to Nathan.
5736 this to Nathan.
5737
5737
5738 * Lots of small fixes. Ran everything through pychecker again.
5738 * Lots of small fixes. Ran everything through pychecker again.
5739
5739
5740 * Made loading of deep_reload an cmd line option. If it's not too
5740 * Made loading of deep_reload an cmd line option. If it's not too
5741 kosher, now people can just disable it. With -nodeep_reload it's
5741 kosher, now people can just disable it. With -nodeep_reload it's
5742 still available as dreload(), it just won't overwrite reload().
5742 still available as dreload(), it just won't overwrite reload().
5743
5743
5744 * Moved many options to the no| form (-opt and -noopt
5744 * Moved many options to the no| form (-opt and -noopt
5745 accepted). Cleaner.
5745 accepted). Cleaner.
5746
5746
5747 * Changed magic_log so that if called with no parameters, it uses
5747 * Changed magic_log so that if called with no parameters, it uses
5748 'rotate' mode. That way auto-generated logs aren't automatically
5748 'rotate' mode. That way auto-generated logs aren't automatically
5749 over-written. For normal logs, now a backup is made if it exists
5749 over-written. For normal logs, now a backup is made if it exists
5750 (only 1 level of backups). A new 'backup' mode was added to the
5750 (only 1 level of backups). A new 'backup' mode was added to the
5751 Logger class to support this. This was a request by Janko.
5751 Logger class to support this. This was a request by Janko.
5752
5752
5753 * Added @logoff/@logon to stop/restart an active log.
5753 * Added @logoff/@logon to stop/restart an active log.
5754
5754
5755 * Fixed a lot of bugs in log saving/replay. It was pretty
5755 * Fixed a lot of bugs in log saving/replay. It was pretty
5756 broken. Now special lines (!@,/) appear properly in the command
5756 broken. Now special lines (!@,/) appear properly in the command
5757 history after a log replay.
5757 history after a log replay.
5758
5758
5759 * Tried and failed to implement full session saving via pickle. My
5759 * Tried and failed to implement full session saving via pickle. My
5760 idea was to pickle __main__.__dict__, but modules can't be
5760 idea was to pickle __main__.__dict__, but modules can't be
5761 pickled. This would be a better alternative to replaying logs, but
5761 pickled. This would be a better alternative to replaying logs, but
5762 seems quite tricky to get to work. Changed -session to be called
5762 seems quite tricky to get to work. Changed -session to be called
5763 -logplay, which more accurately reflects what it does. And if we
5763 -logplay, which more accurately reflects what it does. And if we
5764 ever get real session saving working, -session is now available.
5764 ever get real session saving working, -session is now available.
5765
5765
5766 * Implemented color schemes for prompts also. As for tracebacks,
5766 * Implemented color schemes for prompts also. As for tracebacks,
5767 currently only NoColor and Linux are supported. But now the
5767 currently only NoColor and Linux are supported. But now the
5768 infrastructure is in place, based on a generic ColorScheme
5768 infrastructure is in place, based on a generic ColorScheme
5769 class. So writing and activating new schemes both for the prompts
5769 class. So writing and activating new schemes both for the prompts
5770 and the tracebacks should be straightforward.
5770 and the tracebacks should be straightforward.
5771
5771
5772 * Version 0.1.13 released, 0.1.14 opened.
5772 * Version 0.1.13 released, 0.1.14 opened.
5773
5773
5774 * Changed handling of options for output cache. Now counter is
5774 * Changed handling of options for output cache. Now counter is
5775 hardwired starting at 1 and one specifies the maximum number of
5775 hardwired starting at 1 and one specifies the maximum number of
5776 entries *in the outcache* (not the max prompt counter). This is
5776 entries *in the outcache* (not the max prompt counter). This is
5777 much better, since many statements won't increase the cache
5777 much better, since many statements won't increase the cache
5778 count. It also eliminated some confusing options, now there's only
5778 count. It also eliminated some confusing options, now there's only
5779 one: cache_size.
5779 one: cache_size.
5780
5780
5781 * Added 'alias' magic function and magic_alias option in the
5781 * Added 'alias' magic function and magic_alias option in the
5782 ipythonrc file. Now the user can easily define whatever names he
5782 ipythonrc file. Now the user can easily define whatever names he
5783 wants for the magic functions without having to play weird
5783 wants for the magic functions without having to play weird
5784 namespace games. This gives IPython a real shell-like feel.
5784 namespace games. This gives IPython a real shell-like feel.
5785
5785
5786 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
5786 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
5787 @ or not).
5787 @ or not).
5788
5788
5789 This was one of the last remaining 'visible' bugs (that I know
5789 This was one of the last remaining 'visible' bugs (that I know
5790 of). I think if I can clean up the session loading so it works
5790 of). I think if I can clean up the session loading so it works
5791 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
5791 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
5792 about licensing).
5792 about licensing).
5793
5793
5794 2001-11-25 Fernando Perez <fperez@colorado.edu>
5794 2001-11-25 Fernando Perez <fperez@colorado.edu>
5795
5795
5796 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
5796 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
5797 there's a cleaner distinction between what ? and ?? show.
5797 there's a cleaner distinction between what ? and ?? show.
5798
5798
5799 * Added screen_length option. Now the user can define his own
5799 * Added screen_length option. Now the user can define his own
5800 screen size for page() operations.
5800 screen size for page() operations.
5801
5801
5802 * Implemented magic shell-like functions with automatic code
5802 * Implemented magic shell-like functions with automatic code
5803 generation. Now adding another function is just a matter of adding
5803 generation. Now adding another function is just a matter of adding
5804 an entry to a dict, and the function is dynamically generated at
5804 an entry to a dict, and the function is dynamically generated at
5805 run-time. Python has some really cool features!
5805 run-time. Python has some really cool features!
5806
5806
5807 * Renamed many options to cleanup conventions a little. Now all
5807 * Renamed many options to cleanup conventions a little. Now all
5808 are lowercase, and only underscores where needed. Also in the code
5808 are lowercase, and only underscores where needed. Also in the code
5809 option name tables are clearer.
5809 option name tables are clearer.
5810
5810
5811 * Changed prompts a little. Now input is 'In [n]:' instead of
5811 * Changed prompts a little. Now input is 'In [n]:' instead of
5812 'In[n]:='. This allows it the numbers to be aligned with the
5812 'In[n]:='. This allows it the numbers to be aligned with the
5813 Out[n] numbers, and removes usage of ':=' which doesn't exist in
5813 Out[n] numbers, and removes usage of ':=' which doesn't exist in
5814 Python (it was a Mathematica thing). The '...' continuation prompt
5814 Python (it was a Mathematica thing). The '...' continuation prompt
5815 was also changed a little to align better.
5815 was also changed a little to align better.
5816
5816
5817 * Fixed bug when flushing output cache. Not all _p<n> variables
5817 * Fixed bug when flushing output cache. Not all _p<n> variables
5818 exist, so their deletion needs to be wrapped in a try:
5818 exist, so their deletion needs to be wrapped in a try:
5819
5819
5820 * Figured out how to properly use inspect.formatargspec() (it
5820 * Figured out how to properly use inspect.formatargspec() (it
5821 requires the args preceded by *). So I removed all the code from
5821 requires the args preceded by *). So I removed all the code from
5822 _get_pdef in Magic, which was just replicating that.
5822 _get_pdef in Magic, which was just replicating that.
5823
5823
5824 * Added test to prefilter to allow redefining magic function names
5824 * Added test to prefilter to allow redefining magic function names
5825 as variables. This is ok, since the @ form is always available,
5825 as variables. This is ok, since the @ form is always available,
5826 but whe should allow the user to define a variable called 'ls' if
5826 but whe should allow the user to define a variable called 'ls' if
5827 he needs it.
5827 he needs it.
5828
5828
5829 * Moved the ToDo information from README into a separate ToDo.
5829 * Moved the ToDo information from README into a separate ToDo.
5830
5830
5831 * General code cleanup and small bugfixes. I think it's close to a
5831 * General code cleanup and small bugfixes. I think it's close to a
5832 state where it can be released, obviously with a big 'beta'
5832 state where it can be released, obviously with a big 'beta'
5833 warning on it.
5833 warning on it.
5834
5834
5835 * Got the magic function split to work. Now all magics are defined
5835 * Got the magic function split to work. Now all magics are defined
5836 in a separate class. It just organizes things a bit, and now
5836 in a separate class. It just organizes things a bit, and now
5837 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
5837 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
5838 was too long).
5838 was too long).
5839
5839
5840 * Changed @clear to @reset to avoid potential confusions with
5840 * Changed @clear to @reset to avoid potential confusions with
5841 the shell command clear. Also renamed @cl to @clear, which does
5841 the shell command clear. Also renamed @cl to @clear, which does
5842 exactly what people expect it to from their shell experience.
5842 exactly what people expect it to from their shell experience.
5843
5843
5844 Added a check to the @reset command (since it's so
5844 Added a check to the @reset command (since it's so
5845 destructive, it's probably a good idea to ask for confirmation).
5845 destructive, it's probably a good idea to ask for confirmation).
5846 But now reset only works for full namespace resetting. Since the
5846 But now reset only works for full namespace resetting. Since the
5847 del keyword is already there for deleting a few specific
5847 del keyword is already there for deleting a few specific
5848 variables, I don't see the point of having a redundant magic
5848 variables, I don't see the point of having a redundant magic
5849 function for the same task.
5849 function for the same task.
5850
5850
5851 2001-11-24 Fernando Perez <fperez@colorado.edu>
5851 2001-11-24 Fernando Perez <fperez@colorado.edu>
5852
5852
5853 * Updated the builtin docs (esp. the ? ones).
5853 * Updated the builtin docs (esp. the ? ones).
5854
5854
5855 * Ran all the code through pychecker. Not terribly impressed with
5855 * Ran all the code through pychecker. Not terribly impressed with
5856 it: lots of spurious warnings and didn't really find anything of
5856 it: lots of spurious warnings and didn't really find anything of
5857 substance (just a few modules being imported and not used).
5857 substance (just a few modules being imported and not used).
5858
5858
5859 * Implemented the new ultraTB functionality into IPython. New
5859 * Implemented the new ultraTB functionality into IPython. New
5860 option: xcolors. This chooses color scheme. xmode now only selects
5860 option: xcolors. This chooses color scheme. xmode now only selects
5861 between Plain and Verbose. Better orthogonality.
5861 between Plain and Verbose. Better orthogonality.
5862
5862
5863 * Large rewrite of ultraTB. Much cleaner now, with a separation of
5863 * Large rewrite of ultraTB. Much cleaner now, with a separation of
5864 mode and color scheme for the exception handlers. Now it's
5864 mode and color scheme for the exception handlers. Now it's
5865 possible to have the verbose traceback with no coloring.
5865 possible to have the verbose traceback with no coloring.
5866
5866
5867 2001-11-23 Fernando Perez <fperez@colorado.edu>
5867 2001-11-23 Fernando Perez <fperez@colorado.edu>
5868
5868
5869 * Version 0.1.12 released, 0.1.13 opened.
5869 * Version 0.1.12 released, 0.1.13 opened.
5870
5870
5871 * Removed option to set auto-quote and auto-paren escapes by
5871 * Removed option to set auto-quote and auto-paren escapes by
5872 user. The chances of breaking valid syntax are just too high. If
5872 user. The chances of breaking valid syntax are just too high. If
5873 someone *really* wants, they can always dig into the code.
5873 someone *really* wants, they can always dig into the code.
5874
5874
5875 * Made prompt separators configurable.
5875 * Made prompt separators configurable.
5876
5876
5877 2001-11-22 Fernando Perez <fperez@colorado.edu>
5877 2001-11-22 Fernando Perez <fperez@colorado.edu>
5878
5878
5879 * Small bugfixes in many places.
5879 * Small bugfixes in many places.
5880
5880
5881 * Removed the MyCompleter class from ipplib. It seemed redundant
5881 * Removed the MyCompleter class from ipplib. It seemed redundant
5882 with the C-p,C-n history search functionality. Less code to
5882 with the C-p,C-n history search functionality. Less code to
5883 maintain.
5883 maintain.
5884
5884
5885 * Moved all the original ipython.py code into ipythonlib.py. Right
5885 * Moved all the original ipython.py code into ipythonlib.py. Right
5886 now it's just one big dump into a function called make_IPython, so
5886 now it's just one big dump into a function called make_IPython, so
5887 no real modularity has been gained. But at least it makes the
5887 no real modularity has been gained. But at least it makes the
5888 wrapper script tiny, and since ipythonlib is a module, it gets
5888 wrapper script tiny, and since ipythonlib is a module, it gets
5889 compiled and startup is much faster.
5889 compiled and startup is much faster.
5890
5890
5891 This is a reasobably 'deep' change, so we should test it for a
5891 This is a reasobably 'deep' change, so we should test it for a
5892 while without messing too much more with the code.
5892 while without messing too much more with the code.
5893
5893
5894 2001-11-21 Fernando Perez <fperez@colorado.edu>
5894 2001-11-21 Fernando Perez <fperez@colorado.edu>
5895
5895
5896 * Version 0.1.11 released, 0.1.12 opened for further work.
5896 * Version 0.1.11 released, 0.1.12 opened for further work.
5897
5897
5898 * Removed dependency on Itpl. It was only needed in one place. It
5898 * Removed dependency on Itpl. It was only needed in one place. It
5899 would be nice if this became part of python, though. It makes life
5899 would be nice if this became part of python, though. It makes life
5900 *a lot* easier in some cases.
5900 *a lot* easier in some cases.
5901
5901
5902 * Simplified the prefilter code a bit. Now all handlers are
5902 * Simplified the prefilter code a bit. Now all handlers are
5903 expected to explicitly return a value (at least a blank string).
5903 expected to explicitly return a value (at least a blank string).
5904
5904
5905 * Heavy edits in ipplib. Removed the help system altogether. Now
5905 * Heavy edits in ipplib. Removed the help system altogether. Now
5906 obj?/?? is used for inspecting objects, a magic @doc prints
5906 obj?/?? is used for inspecting objects, a magic @doc prints
5907 docstrings, and full-blown Python help is accessed via the 'help'
5907 docstrings, and full-blown Python help is accessed via the 'help'
5908 keyword. This cleans up a lot of code (less to maintain) and does
5908 keyword. This cleans up a lot of code (less to maintain) and does
5909 the job. Since 'help' is now a standard Python component, might as
5909 the job. Since 'help' is now a standard Python component, might as
5910 well use it and remove duplicate functionality.
5910 well use it and remove duplicate functionality.
5911
5911
5912 Also removed the option to use ipplib as a standalone program. By
5912 Also removed the option to use ipplib as a standalone program. By
5913 now it's too dependent on other parts of IPython to function alone.
5913 now it's too dependent on other parts of IPython to function alone.
5914
5914
5915 * Fixed bug in genutils.pager. It would crash if the pager was
5915 * Fixed bug in genutils.pager. It would crash if the pager was
5916 exited immediately after opening (broken pipe).
5916 exited immediately after opening (broken pipe).
5917
5917
5918 * Trimmed down the VerboseTB reporting a little. The header is
5918 * Trimmed down the VerboseTB reporting a little. The header is
5919 much shorter now and the repeated exception arguments at the end
5919 much shorter now and the repeated exception arguments at the end
5920 have been removed. For interactive use the old header seemed a bit
5920 have been removed. For interactive use the old header seemed a bit
5921 excessive.
5921 excessive.
5922
5922
5923 * Fixed small bug in output of @whos for variables with multi-word
5923 * Fixed small bug in output of @whos for variables with multi-word
5924 types (only first word was displayed).
5924 types (only first word was displayed).
5925
5925
5926 2001-11-17 Fernando Perez <fperez@colorado.edu>
5926 2001-11-17 Fernando Perez <fperez@colorado.edu>
5927
5927
5928 * Version 0.1.10 released, 0.1.11 opened for further work.
5928 * Version 0.1.10 released, 0.1.11 opened for further work.
5929
5929
5930 * Modified dirs and friends. dirs now *returns* the stack (not
5930 * Modified dirs and friends. dirs now *returns* the stack (not
5931 prints), so one can manipulate it as a variable. Convenient to
5931 prints), so one can manipulate it as a variable. Convenient to
5932 travel along many directories.
5932 travel along many directories.
5933
5933
5934 * Fixed bug in magic_pdef: would only work with functions with
5934 * Fixed bug in magic_pdef: would only work with functions with
5935 arguments with default values.
5935 arguments with default values.
5936
5936
5937 2001-11-14 Fernando Perez <fperez@colorado.edu>
5937 2001-11-14 Fernando Perez <fperez@colorado.edu>
5938
5938
5939 * Added the PhysicsInput stuff to dot_ipython so it ships as an
5939 * Added the PhysicsInput stuff to dot_ipython so it ships as an
5940 example with IPython. Various other minor fixes and cleanups.
5940 example with IPython. Various other minor fixes and cleanups.
5941
5941
5942 * Version 0.1.9 released, 0.1.10 opened for further work.
5942 * Version 0.1.9 released, 0.1.10 opened for further work.
5943
5943
5944 * Added sys.path to the list of directories searched in the
5944 * Added sys.path to the list of directories searched in the
5945 execfile= option. It used to be the current directory and the
5945 execfile= option. It used to be the current directory and the
5946 user's IPYTHONDIR only.
5946 user's IPYTHONDIR only.
5947
5947
5948 2001-11-13 Fernando Perez <fperez@colorado.edu>
5948 2001-11-13 Fernando Perez <fperez@colorado.edu>
5949
5949
5950 * Reinstated the raw_input/prefilter separation that Janko had
5950 * Reinstated the raw_input/prefilter separation that Janko had
5951 initially. This gives a more convenient setup for extending the
5951 initially. This gives a more convenient setup for extending the
5952 pre-processor from the outside: raw_input always gets a string,
5952 pre-processor from the outside: raw_input always gets a string,
5953 and prefilter has to process it. We can then redefine prefilter
5953 and prefilter has to process it. We can then redefine prefilter
5954 from the outside and implement extensions for special
5954 from the outside and implement extensions for special
5955 purposes.
5955 purposes.
5956
5956
5957 Today I got one for inputting PhysicalQuantity objects
5957 Today I got one for inputting PhysicalQuantity objects
5958 (from Scientific) without needing any function calls at
5958 (from Scientific) without needing any function calls at
5959 all. Extremely convenient, and it's all done as a user-level
5959 all. Extremely convenient, and it's all done as a user-level
5960 extension (no IPython code was touched). Now instead of:
5960 extension (no IPython code was touched). Now instead of:
5961 a = PhysicalQuantity(4.2,'m/s**2')
5961 a = PhysicalQuantity(4.2,'m/s**2')
5962 one can simply say
5962 one can simply say
5963 a = 4.2 m/s**2
5963 a = 4.2 m/s**2
5964 or even
5964 or even
5965 a = 4.2 m/s^2
5965 a = 4.2 m/s^2
5966
5966
5967 I use this, but it's also a proof of concept: IPython really is
5967 I use this, but it's also a proof of concept: IPython really is
5968 fully user-extensible, even at the level of the parsing of the
5968 fully user-extensible, even at the level of the parsing of the
5969 command line. It's not trivial, but it's perfectly doable.
5969 command line. It's not trivial, but it's perfectly doable.
5970
5970
5971 * Added 'add_flip' method to inclusion conflict resolver. Fixes
5971 * Added 'add_flip' method to inclusion conflict resolver. Fixes
5972 the problem of modules being loaded in the inverse order in which
5972 the problem of modules being loaded in the inverse order in which
5973 they were defined in
5973 they were defined in
5974
5974
5975 * Version 0.1.8 released, 0.1.9 opened for further work.
5975 * Version 0.1.8 released, 0.1.9 opened for further work.
5976
5976
5977 * Added magics pdef, source and file. They respectively show the
5977 * Added magics pdef, source and file. They respectively show the
5978 definition line ('prototype' in C), source code and full python
5978 definition line ('prototype' in C), source code and full python
5979 file for any callable object. The object inspector oinfo uses
5979 file for any callable object. The object inspector oinfo uses
5980 these to show the same information.
5980 these to show the same information.
5981
5981
5982 * Version 0.1.7 released, 0.1.8 opened for further work.
5982 * Version 0.1.7 released, 0.1.8 opened for further work.
5983
5983
5984 * Separated all the magic functions into a class called Magic. The
5984 * Separated all the magic functions into a class called Magic. The
5985 InteractiveShell class was becoming too big for Xemacs to handle
5985 InteractiveShell class was becoming too big for Xemacs to handle
5986 (de-indenting a line would lock it up for 10 seconds while it
5986 (de-indenting a line would lock it up for 10 seconds while it
5987 backtracked on the whole class!)
5987 backtracked on the whole class!)
5988
5988
5989 FIXME: didn't work. It can be done, but right now namespaces are
5989 FIXME: didn't work. It can be done, but right now namespaces are
5990 all messed up. Do it later (reverted it for now, so at least
5990 all messed up. Do it later (reverted it for now, so at least
5991 everything works as before).
5991 everything works as before).
5992
5992
5993 * Got the object introspection system (magic_oinfo) working! I
5993 * Got the object introspection system (magic_oinfo) working! I
5994 think this is pretty much ready for release to Janko, so he can
5994 think this is pretty much ready for release to Janko, so he can
5995 test it for a while and then announce it. Pretty much 100% of what
5995 test it for a while and then announce it. Pretty much 100% of what
5996 I wanted for the 'phase 1' release is ready. Happy, tired.
5996 I wanted for the 'phase 1' release is ready. Happy, tired.
5997
5997
5998 2001-11-12 Fernando Perez <fperez@colorado.edu>
5998 2001-11-12 Fernando Perez <fperez@colorado.edu>
5999
5999
6000 * Version 0.1.6 released, 0.1.7 opened for further work.
6000 * Version 0.1.6 released, 0.1.7 opened for further work.
6001
6001
6002 * Fixed bug in printing: it used to test for truth before
6002 * Fixed bug in printing: it used to test for truth before
6003 printing, so 0 wouldn't print. Now checks for None.
6003 printing, so 0 wouldn't print. Now checks for None.
6004
6004
6005 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6005 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6006 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6006 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6007 reaches by hand into the outputcache. Think of a better way to do
6007 reaches by hand into the outputcache. Think of a better way to do
6008 this later.
6008 this later.
6009
6009
6010 * Various small fixes thanks to Nathan's comments.
6010 * Various small fixes thanks to Nathan's comments.
6011
6011
6012 * Changed magic_pprint to magic_Pprint. This way it doesn't
6012 * Changed magic_pprint to magic_Pprint. This way it doesn't
6013 collide with pprint() and the name is consistent with the command
6013 collide with pprint() and the name is consistent with the command
6014 line option.
6014 line option.
6015
6015
6016 * Changed prompt counter behavior to be fully like
6016 * Changed prompt counter behavior to be fully like
6017 Mathematica's. That is, even input that doesn't return a result
6017 Mathematica's. That is, even input that doesn't return a result
6018 raises the prompt counter. The old behavior was kind of confusing
6018 raises the prompt counter. The old behavior was kind of confusing
6019 (getting the same prompt number several times if the operation
6019 (getting the same prompt number several times if the operation
6020 didn't return a result).
6020 didn't return a result).
6021
6021
6022 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6022 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6023
6023
6024 * Fixed -Classic mode (wasn't working anymore).
6024 * Fixed -Classic mode (wasn't working anymore).
6025
6025
6026 * Added colored prompts using Nathan's new code. Colors are
6026 * Added colored prompts using Nathan's new code. Colors are
6027 currently hardwired, they can be user-configurable. For
6027 currently hardwired, they can be user-configurable. For
6028 developers, they can be chosen in file ipythonlib.py, at the
6028 developers, they can be chosen in file ipythonlib.py, at the
6029 beginning of the CachedOutput class def.
6029 beginning of the CachedOutput class def.
6030
6030
6031 2001-11-11 Fernando Perez <fperez@colorado.edu>
6031 2001-11-11 Fernando Perez <fperez@colorado.edu>
6032
6032
6033 * Version 0.1.5 released, 0.1.6 opened for further work.
6033 * Version 0.1.5 released, 0.1.6 opened for further work.
6034
6034
6035 * Changed magic_env to *return* the environment as a dict (not to
6035 * Changed magic_env to *return* the environment as a dict (not to
6036 print it). This way it prints, but it can also be processed.
6036 print it). This way it prints, but it can also be processed.
6037
6037
6038 * Added Verbose exception reporting to interactive
6038 * Added Verbose exception reporting to interactive
6039 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6039 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6040 traceback. Had to make some changes to the ultraTB file. This is
6040 traceback. Had to make some changes to the ultraTB file. This is
6041 probably the last 'big' thing in my mental todo list. This ties
6041 probably the last 'big' thing in my mental todo list. This ties
6042 in with the next entry:
6042 in with the next entry:
6043
6043
6044 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6044 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6045 has to specify is Plain, Color or Verbose for all exception
6045 has to specify is Plain, Color or Verbose for all exception
6046 handling.
6046 handling.
6047
6047
6048 * Removed ShellServices option. All this can really be done via
6048 * Removed ShellServices option. All this can really be done via
6049 the magic system. It's easier to extend, cleaner and has automatic
6049 the magic system. It's easier to extend, cleaner and has automatic
6050 namespace protection and documentation.
6050 namespace protection and documentation.
6051
6051
6052 2001-11-09 Fernando Perez <fperez@colorado.edu>
6052 2001-11-09 Fernando Perez <fperez@colorado.edu>
6053
6053
6054 * Fixed bug in output cache flushing (missing parameter to
6054 * Fixed bug in output cache flushing (missing parameter to
6055 __init__). Other small bugs fixed (found using pychecker).
6055 __init__). Other small bugs fixed (found using pychecker).
6056
6056
6057 * Version 0.1.4 opened for bugfixing.
6057 * Version 0.1.4 opened for bugfixing.
6058
6058
6059 2001-11-07 Fernando Perez <fperez@colorado.edu>
6059 2001-11-07 Fernando Perez <fperez@colorado.edu>
6060
6060
6061 * Version 0.1.3 released, mainly because of the raw_input bug.
6061 * Version 0.1.3 released, mainly because of the raw_input bug.
6062
6062
6063 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6063 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6064 and when testing for whether things were callable, a call could
6064 and when testing for whether things were callable, a call could
6065 actually be made to certain functions. They would get called again
6065 actually be made to certain functions. They would get called again
6066 once 'really' executed, with a resulting double call. A disaster
6066 once 'really' executed, with a resulting double call. A disaster
6067 in many cases (list.reverse() would never work!).
6067 in many cases (list.reverse() would never work!).
6068
6068
6069 * Removed prefilter() function, moved its code to raw_input (which
6069 * Removed prefilter() function, moved its code to raw_input (which
6070 after all was just a near-empty caller for prefilter). This saves
6070 after all was just a near-empty caller for prefilter). This saves
6071 a function call on every prompt, and simplifies the class a tiny bit.
6071 a function call on every prompt, and simplifies the class a tiny bit.
6072
6072
6073 * Fix _ip to __ip name in magic example file.
6073 * Fix _ip to __ip name in magic example file.
6074
6074
6075 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6075 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6076 work with non-gnu versions of tar.
6076 work with non-gnu versions of tar.
6077
6077
6078 2001-11-06 Fernando Perez <fperez@colorado.edu>
6078 2001-11-06 Fernando Perez <fperez@colorado.edu>
6079
6079
6080 * Version 0.1.2. Just to keep track of the recent changes.
6080 * Version 0.1.2. Just to keep track of the recent changes.
6081
6081
6082 * Fixed nasty bug in output prompt routine. It used to check 'if
6082 * Fixed nasty bug in output prompt routine. It used to check 'if
6083 arg != None...'. Problem is, this fails if arg implements a
6083 arg != None...'. Problem is, this fails if arg implements a
6084 special comparison (__cmp__) which disallows comparing to
6084 special comparison (__cmp__) which disallows comparing to
6085 None. Found it when trying to use the PhysicalQuantity module from
6085 None. Found it when trying to use the PhysicalQuantity module from
6086 ScientificPython.
6086 ScientificPython.
6087
6087
6088 2001-11-05 Fernando Perez <fperez@colorado.edu>
6088 2001-11-05 Fernando Perez <fperez@colorado.edu>
6089
6089
6090 * Also added dirs. Now the pushd/popd/dirs family functions
6090 * Also added dirs. Now the pushd/popd/dirs family functions
6091 basically like the shell, with the added convenience of going home
6091 basically like the shell, with the added convenience of going home
6092 when called with no args.
6092 when called with no args.
6093
6093
6094 * pushd/popd slightly modified to mimic shell behavior more
6094 * pushd/popd slightly modified to mimic shell behavior more
6095 closely.
6095 closely.
6096
6096
6097 * Added env,pushd,popd from ShellServices as magic functions. I
6097 * Added env,pushd,popd from ShellServices as magic functions. I
6098 think the cleanest will be to port all desired functions from
6098 think the cleanest will be to port all desired functions from
6099 ShellServices as magics and remove ShellServices altogether. This
6099 ShellServices as magics and remove ShellServices altogether. This
6100 will provide a single, clean way of adding functionality
6100 will provide a single, clean way of adding functionality
6101 (shell-type or otherwise) to IP.
6101 (shell-type or otherwise) to IP.
6102
6102
6103 2001-11-04 Fernando Perez <fperez@colorado.edu>
6103 2001-11-04 Fernando Perez <fperez@colorado.edu>
6104
6104
6105 * Added .ipython/ directory to sys.path. This way users can keep
6105 * Added .ipython/ directory to sys.path. This way users can keep
6106 customizations there and access them via import.
6106 customizations there and access them via import.
6107
6107
6108 2001-11-03 Fernando Perez <fperez@colorado.edu>
6108 2001-11-03 Fernando Perez <fperez@colorado.edu>
6109
6109
6110 * Opened version 0.1.1 for new changes.
6110 * Opened version 0.1.1 for new changes.
6111
6111
6112 * Changed version number to 0.1.0: first 'public' release, sent to
6112 * Changed version number to 0.1.0: first 'public' release, sent to
6113 Nathan and Janko.
6113 Nathan and Janko.
6114
6114
6115 * Lots of small fixes and tweaks.
6115 * Lots of small fixes and tweaks.
6116
6116
6117 * Minor changes to whos format. Now strings are shown, snipped if
6117 * Minor changes to whos format. Now strings are shown, snipped if
6118 too long.
6118 too long.
6119
6119
6120 * Changed ShellServices to work on __main__ so they show up in @who
6120 * Changed ShellServices to work on __main__ so they show up in @who
6121
6121
6122 * Help also works with ? at the end of a line:
6122 * Help also works with ? at the end of a line:
6123 ?sin and sin?
6123 ?sin and sin?
6124 both produce the same effect. This is nice, as often I use the
6124 both produce the same effect. This is nice, as often I use the
6125 tab-complete to find the name of a method, but I used to then have
6125 tab-complete to find the name of a method, but I used to then have
6126 to go to the beginning of the line to put a ? if I wanted more
6126 to go to the beginning of the line to put a ? if I wanted more
6127 info. Now I can just add the ? and hit return. Convenient.
6127 info. Now I can just add the ? and hit return. Convenient.
6128
6128
6129 2001-11-02 Fernando Perez <fperez@colorado.edu>
6129 2001-11-02 Fernando Perez <fperez@colorado.edu>
6130
6130
6131 * Python version check (>=2.1) added.
6131 * Python version check (>=2.1) added.
6132
6132
6133 * Added LazyPython documentation. At this point the docs are quite
6133 * Added LazyPython documentation. At this point the docs are quite
6134 a mess. A cleanup is in order.
6134 a mess. A cleanup is in order.
6135
6135
6136 * Auto-installer created. For some bizarre reason, the zipfiles
6136 * Auto-installer created. For some bizarre reason, the zipfiles
6137 module isn't working on my system. So I made a tar version
6137 module isn't working on my system. So I made a tar version
6138 (hopefully the command line options in various systems won't kill
6138 (hopefully the command line options in various systems won't kill
6139 me).
6139 me).
6140
6140
6141 * Fixes to Struct in genutils. Now all dictionary-like methods are
6141 * Fixes to Struct in genutils. Now all dictionary-like methods are
6142 protected (reasonably).
6142 protected (reasonably).
6143
6143
6144 * Added pager function to genutils and changed ? to print usage
6144 * Added pager function to genutils and changed ? to print usage
6145 note through it (it was too long).
6145 note through it (it was too long).
6146
6146
6147 * Added the LazyPython functionality. Works great! I changed the
6147 * Added the LazyPython functionality. Works great! I changed the
6148 auto-quote escape to ';', it's on home row and next to '. But
6148 auto-quote escape to ';', it's on home row and next to '. But
6149 both auto-quote and auto-paren (still /) escapes are command-line
6149 both auto-quote and auto-paren (still /) escapes are command-line
6150 parameters.
6150 parameters.
6151
6151
6152
6152
6153 2001-11-01 Fernando Perez <fperez@colorado.edu>
6153 2001-11-01 Fernando Perez <fperez@colorado.edu>
6154
6154
6155 * Version changed to 0.0.7. Fairly large change: configuration now
6155 * Version changed to 0.0.7. Fairly large change: configuration now
6156 is all stored in a directory, by default .ipython. There, all
6156 is all stored in a directory, by default .ipython. There, all
6157 config files have normal looking names (not .names)
6157 config files have normal looking names (not .names)
6158
6158
6159 * Version 0.0.6 Released first to Lucas and Archie as a test
6159 * Version 0.0.6 Released first to Lucas and Archie as a test
6160 run. Since it's the first 'semi-public' release, change version to
6160 run. Since it's the first 'semi-public' release, change version to
6161 > 0.0.6 for any changes now.
6161 > 0.0.6 for any changes now.
6162
6162
6163 * Stuff I had put in the ipplib.py changelog:
6163 * Stuff I had put in the ipplib.py changelog:
6164
6164
6165 Changes to InteractiveShell:
6165 Changes to InteractiveShell:
6166
6166
6167 - Made the usage message a parameter.
6167 - Made the usage message a parameter.
6168
6168
6169 - Require the name of the shell variable to be given. It's a bit
6169 - Require the name of the shell variable to be given. It's a bit
6170 of a hack, but allows the name 'shell' not to be hardwired in the
6170 of a hack, but allows the name 'shell' not to be hardwired in the
6171 magic (@) handler, which is problematic b/c it requires
6171 magic (@) handler, which is problematic b/c it requires
6172 polluting the global namespace with 'shell'. This in turn is
6172 polluting the global namespace with 'shell'. This in turn is
6173 fragile: if a user redefines a variable called shell, things
6173 fragile: if a user redefines a variable called shell, things
6174 break.
6174 break.
6175
6175
6176 - magic @: all functions available through @ need to be defined
6176 - magic @: all functions available through @ need to be defined
6177 as magic_<name>, even though they can be called simply as
6177 as magic_<name>, even though they can be called simply as
6178 @<name>. This allows the special command @magic to gather
6178 @<name>. This allows the special command @magic to gather
6179 information automatically about all existing magic functions,
6179 information automatically about all existing magic functions,
6180 even if they are run-time user extensions, by parsing the shell
6180 even if they are run-time user extensions, by parsing the shell
6181 instance __dict__ looking for special magic_ names.
6181 instance __dict__ looking for special magic_ names.
6182
6182
6183 - mainloop: added *two* local namespace parameters. This allows
6183 - mainloop: added *two* local namespace parameters. This allows
6184 the class to differentiate between parameters which were there
6184 the class to differentiate between parameters which were there
6185 before and after command line initialization was processed. This
6185 before and after command line initialization was processed. This
6186 way, later @who can show things loaded at startup by the
6186 way, later @who can show things loaded at startup by the
6187 user. This trick was necessary to make session saving/reloading
6187 user. This trick was necessary to make session saving/reloading
6188 really work: ideally after saving/exiting/reloading a session,
6188 really work: ideally after saving/exiting/reloading a session,
6189 *everything* should look the same, including the output of @who. I
6189 *everything* should look the same, including the output of @who. I
6190 was only able to make this work with this double namespace
6190 was only able to make this work with this double namespace
6191 trick.
6191 trick.
6192
6192
6193 - added a header to the logfile which allows (almost) full
6193 - added a header to the logfile which allows (almost) full
6194 session restoring.
6194 session restoring.
6195
6195
6196 - prepend lines beginning with @ or !, with a and log
6196 - prepend lines beginning with @ or !, with a and log
6197 them. Why? !lines: may be useful to know what you did @lines:
6197 them. Why? !lines: may be useful to know what you did @lines:
6198 they may affect session state. So when restoring a session, at
6198 they may affect session state. So when restoring a session, at
6199 least inform the user of their presence. I couldn't quite get
6199 least inform the user of their presence. I couldn't quite get
6200 them to properly re-execute, but at least the user is warned.
6200 them to properly re-execute, but at least the user is warned.
6201
6201
6202 * Started ChangeLog.
6202 * Started ChangeLog.
General Comments 0
You need to be logged in to leave comments. Login now