##// END OF EJS Templates
update changelog
vivainio -
Show More
@@ -1,6687 +1,6695 b''
1 2007-05-23 Ville Vainio <vivainio@gmail.com>
2
3 * macro.py: %store uses __getstate__ properly
4
5 * exesetup.py: added new setup script for creating
6 standalone IPython executables with py2exe (i.e.
7 no python installation required).
8
1 2007-05-17 Walter Doerwald <walter@livinglogic.de>
9 2007-05-17 Walter Doerwald <walter@livinglogic.de>
2
10
3 * IPython/Extensions/ipipe.py: Fix xrepr for ifiles.
11 * IPython/Extensions/ipipe.py: Fix xrepr for ifiles.
4 (Bug detected by Paul Mueller).
12 (Bug detected by Paul Mueller).
5
13
6 2007-05-16 Ville Vainio <vivainio@gmail.com>
14 2007-05-16 Ville Vainio <vivainio@gmail.com>
7
15
8 * ipy_profile_sci.py, ipython_win_post_install.py: Create
16 * ipy_profile_sci.py, ipython_win_post_install.py: Create
9 new "sci" profile, effectively a modern version of the old
17 new "sci" profile, effectively a modern version of the old
10 "scipy" profile (which is now slated for deprecation).
18 "scipy" profile (which is now slated for deprecation).
11
19
12 2007-05-15 Ville Vainio <vivainio@gmail.com>
20 2007-05-15 Ville Vainio <vivainio@gmail.com>
13
21
14 * pycolorize.py, pycolor.1: Paul Mueller's patches that
22 * pycolorize.py, pycolor.1: Paul Mueller's patches that
15 make pycolorize read input from stdin when run without arguments.
23 make pycolorize read input from stdin when run without arguments.
16
24
17 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
25 * Magic.py: do not require 'PATH' in %rehash/%rehashx. Closes #155
18
26
19 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
27 * ipy_rehashdir.py: rename ext_rehashdir to ipy_rehashdir, import
20 it in sh profile (instead of ipy_system_conf.py).
28 it in sh profile (instead of ipy_system_conf.py).
21
29
22 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
30 * Magic.py, ipy_rehashdir.py, ipy_profile_sh.py: System command
23 aliases are now lower case on windows (MyCommand.exe => mycommand).
31 aliases are now lower case on windows (MyCommand.exe => mycommand).
24
32
25 * macro.py, ipapi.py, iplib.py, Prompts.py: Macro system rehaul.
33 * macro.py, ipapi.py, iplib.py, Prompts.py: Macro system rehaul.
26 Macros are now callable objects that inherit from ipapi.IPyAutocall,
34 Macros are now callable objects that inherit from ipapi.IPyAutocall,
27 i.e. get autocalled regardless of system autocall setting.
35 i.e. get autocalled regardless of system autocall setting.
28
36
29 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
37 2007-05-10 Fernando Perez <Fernando.Perez@colorado.edu>
30
38
31 * IPython/rlineimpl.py: check for clear_history in readline and
39 * IPython/rlineimpl.py: check for clear_history in readline and
32 make it a dummy no-op if not available. This function isn't
40 make it a dummy no-op if not available. This function isn't
33 guaranteed to be in the API and appeared in Python 2.4, so we need
41 guaranteed to be in the API and appeared in Python 2.4, so we need
34 to check it ourselves. Also, clean up this file quite a bit.
42 to check it ourselves. Also, clean up this file quite a bit.
35
43
36 * ipython.1: update man page and full manual with information
44 * ipython.1: update man page and full manual with information
37 about threads (remove outdated warning). Closes #151.
45 about threads (remove outdated warning). Closes #151.
38
46
39 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
47 2007-05-09 Fernando Perez <Fernando.Perez@colorado.edu>
40
48
41 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
49 * IPython/Extensions/ipy_constants.py: Add Gael's constants module
42 in trunk (note that this made it into the 0.8.1 release already,
50 in trunk (note that this made it into the 0.8.1 release already,
43 but the changelogs didn't get coordinated). Many thanks to Gael
51 but the changelogs didn't get coordinated). Many thanks to Gael
44 Varoquaux <gael.varoquaux-AT-normalesup.org>
52 Varoquaux <gael.varoquaux-AT-normalesup.org>
45
53
46 2007-05-09 *** Released version 0.8.1
54 2007-05-09 *** Released version 0.8.1
47
55
48 2007-05-10 Walter Doerwald <walter@livinglogic.de>
56 2007-05-10 Walter Doerwald <walter@livinglogic.de>
49
57
50 * IPython/Extensions/igrid.py: Incorporate html help into
58 * IPython/Extensions/igrid.py: Incorporate html help into
51 the module, so we don't have to search for the file.
59 the module, so we don't have to search for the file.
52
60
53 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
61 2007-05-02 Fernando Perez <Fernando.Perez@colorado.edu>
54
62
55 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
63 * test/test_irunner.py (RunnerTestCase._test_runner): Close #147.
56
64
57 2007-04-30 Ville Vainio <vivainio@gmail.com>
65 2007-04-30 Ville Vainio <vivainio@gmail.com>
58
66
59 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
67 * iplib.py: (pre_config_initialization) Catch UnicodeDecodeError if the
60 user has illegal (non-ascii) home directory name
68 user has illegal (non-ascii) home directory name
61
69
62 2007-04-27 Ville Vainio <vivainio@gmail.com>
70 2007-04-27 Ville Vainio <vivainio@gmail.com>
63
71
64 * platutils_win32.py: implement set_term_title for windows
72 * platutils_win32.py: implement set_term_title for windows
65
73
66 * Update version number
74 * Update version number
67
75
68 * ipy_profile_sh.py: more informative prompt (2 dir levels)
76 * ipy_profile_sh.py: more informative prompt (2 dir levels)
69
77
70 2007-04-26 Walter Doerwald <walter@livinglogic.de>
78 2007-04-26 Walter Doerwald <walter@livinglogic.de>
71
79
72 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
80 * IPython/Extensions/igrid.py: (igrid) Fix bug that surfaced
73 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
81 when the igrid input raised an exception. (Patch by Nik Tautenhahn,
74 bug discovered by Ville).
82 bug discovered by Ville).
75
83
76 2007-04-26 Ville Vainio <vivainio@gmail.com>
84 2007-04-26 Ville Vainio <vivainio@gmail.com>
77
85
78 * Extensions/ipy_completers.py: Olivier's module completer now
86 * Extensions/ipy_completers.py: Olivier's module completer now
79 saves the list of root modules if it takes > 4 secs on the first run.
87 saves the list of root modules if it takes > 4 secs on the first run.
80
88
81 * Magic.py (%rehashx): %rehashx now clears the completer cache
89 * Magic.py (%rehashx): %rehashx now clears the completer cache
82
90
83
91
84 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
92 2007-04-26 Fernando Perez <Fernando.Perez@colorado.edu>
85
93
86 * ipython.el: fix incorrect color scheme, reported by Stefan.
94 * ipython.el: fix incorrect color scheme, reported by Stefan.
87 Closes #149.
95 Closes #149.
88
96
89 * IPython/PyColorize.py (Parser.format2): fix state-handling
97 * IPython/PyColorize.py (Parser.format2): fix state-handling
90 logic. I still don't like how that code handles state, but at
98 logic. I still don't like how that code handles state, but at
91 least now it should be correct, if inelegant. Closes #146.
99 least now it should be correct, if inelegant. Closes #146.
92
100
93 2007-04-25 Ville Vainio <vivainio@gmail.com>
101 2007-04-25 Ville Vainio <vivainio@gmail.com>
94
102
95 * Extensions/ipy_which.py: added extension for %which magic, works
103 * Extensions/ipy_which.py: added extension for %which magic, works
96 a lot like unix 'which' but also finds and expands aliases, and
104 a lot like unix 'which' but also finds and expands aliases, and
97 allows wildcards.
105 allows wildcards.
98
106
99 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
107 * ipapi.py (expand_alias): Now actually *return* the expanded alias,
100 as opposed to returning nothing.
108 as opposed to returning nothing.
101
109
102 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
110 * UserConfig/ipy_user_conf.py, ipy_profile_sh.py: do not import
103 ipy_stock_completers on default profile, do import on sh profile.
111 ipy_stock_completers on default profile, do import on sh profile.
104
112
105 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
113 2007-04-22 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
106
114
107 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
115 * Fix bug in iplib.py/safe_execfile when launching ipython with a script
108 like ipython.py foo.py which raised a IndexError.
116 like ipython.py foo.py which raised a IndexError.
109
117
110 2007-04-21 Ville Vainio <vivainio@gmail.com>
118 2007-04-21 Ville Vainio <vivainio@gmail.com>
111
119
112 * Extensions/ipy_extutil.py: added extension to manage other ipython
120 * Extensions/ipy_extutil.py: added extension to manage other ipython
113 extensions. Now only supports 'ls' == list extensions.
121 extensions. Now only supports 'ls' == list extensions.
114
122
115 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
123 2007-04-20 Fernando Perez <Fernando.Perez@colorado.edu>
116
124
117 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
125 * IPython/Debugger.py (BdbQuit_excepthook): fix small bug that
118 would prevent use of the exception system outside of a running
126 would prevent use of the exception system outside of a running
119 IPython instance.
127 IPython instance.
120
128
121 2007-04-20 Ville Vainio <vivainio@gmail.com>
129 2007-04-20 Ville Vainio <vivainio@gmail.com>
122
130
123 * Extensions/ipy_render.py: added extension for easy
131 * Extensions/ipy_render.py: added extension for easy
124 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
132 interactive text template rendering (to clipboard). Uses Ka-Ping Yee's
125 'Iptl' template notation,
133 'Iptl' template notation,
126
134
127 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
135 * Extensions/ipy_completers.py: introduced Olivier Lauzanne's
128 safer & faster 'import' completer.
136 safer & faster 'import' completer.
129
137
130 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
138 * ipapi.py: Introduced new ipapi methods, _ip.defmacro(name, value)
131 and _ip.defalias(name, command).
139 and _ip.defalias(name, command).
132
140
133 * Extensions/ipy_exportdb.py: New extension for exporting all the
141 * Extensions/ipy_exportdb.py: New extension for exporting all the
134 %store'd data in a portable format (normal ipapi calls like
142 %store'd data in a portable format (normal ipapi calls like
135 defmacro() etc.)
143 defmacro() etc.)
136
144
137 2007-04-19 Ville Vainio <vivainio@gmail.com>
145 2007-04-19 Ville Vainio <vivainio@gmail.com>
138
146
139 * upgrade_dir.py: skip junk files like *.pyc
147 * upgrade_dir.py: skip junk files like *.pyc
140
148
141 * Release.py: version number to 0.8.1
149 * Release.py: version number to 0.8.1
142
150
143 2007-04-18 Ville Vainio <vivainio@gmail.com>
151 2007-04-18 Ville Vainio <vivainio@gmail.com>
144
152
145 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
153 * iplib.py (safe_execfile): make "ipython foo.py" work with 2.5.1c1
146 and later on win32.
154 and later on win32.
147
155
148 2007-04-16 Ville Vainio <vivainio@gmail.com>
156 2007-04-16 Ville Vainio <vivainio@gmail.com>
149
157
150 * iplib.py (showtraceback): Do not crash when running w/o readline.
158 * iplib.py (showtraceback): Do not crash when running w/o readline.
151
159
152 2007-04-12 Walter Doerwald <walter@livinglogic.de>
160 2007-04-12 Walter Doerwald <walter@livinglogic.de>
153
161
154 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
162 * IPython/Extensions/ipipe.py: (ils) Directoy listings are now
155 sorted (case sensitive with files and dirs mixed).
163 sorted (case sensitive with files and dirs mixed).
156
164
157 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
165 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
158
166
159 * IPython/Release.py (version): Open trunk for 0.8.1 development.
167 * IPython/Release.py (version): Open trunk for 0.8.1 development.
160
168
161 2007-04-10 *** Released version 0.8.0
169 2007-04-10 *** Released version 0.8.0
162
170
163 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
171 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
164
172
165 * Tag 0.8.0 for release.
173 * Tag 0.8.0 for release.
166
174
167 * IPython/iplib.py (reloadhist): add API function to cleanly
175 * IPython/iplib.py (reloadhist): add API function to cleanly
168 reload the readline history, which was growing inappropriately on
176 reload the readline history, which was growing inappropriately on
169 every %run call.
177 every %run call.
170
178
171 * win32_manual_post_install.py (run): apply last part of Nicolas
179 * win32_manual_post_install.py (run): apply last part of Nicolas
172 Pernetty's patch (I'd accidentally applied it in a different
180 Pernetty's patch (I'd accidentally applied it in a different
173 directory and this particular file didn't get patched).
181 directory and this particular file didn't get patched).
174
182
175 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
183 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
176
184
177 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
185 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
178 find the main thread id and use the proper API call. Thanks to
186 find the main thread id and use the proper API call. Thanks to
179 Stefan for the fix.
187 Stefan for the fix.
180
188
181 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
189 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
182 unit tests to reflect fixed ticket #52, and add more tests sent by
190 unit tests to reflect fixed ticket #52, and add more tests sent by
183 him.
191 him.
184
192
185 * IPython/iplib.py (raw_input): restore the readline completer
193 * IPython/iplib.py (raw_input): restore the readline completer
186 state on every input, in case third-party code messed it up.
194 state on every input, in case third-party code messed it up.
187 (_prefilter): revert recent addition of early-escape checks which
195 (_prefilter): revert recent addition of early-escape checks which
188 prevent many valid alias calls from working.
196 prevent many valid alias calls from working.
189
197
190 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
198 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
191 flag for sigint handler so we don't run a full signal() call on
199 flag for sigint handler so we don't run a full signal() call on
192 each runcode access.
200 each runcode access.
193
201
194 * IPython/Magic.py (magic_whos): small improvement to diagnostic
202 * IPython/Magic.py (magic_whos): small improvement to diagnostic
195 message.
203 message.
196
204
197 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
205 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
198
206
199 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
207 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
200 asynchronous exceptions working, i.e., Ctrl-C can actually
208 asynchronous exceptions working, i.e., Ctrl-C can actually
201 interrupt long-running code in the multithreaded shells.
209 interrupt long-running code in the multithreaded shells.
202
210
203 This is using Tomer Filiba's great ctypes-based trick:
211 This is using Tomer Filiba's great ctypes-based trick:
204 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
212 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
205 this in the past, but hadn't been able to make it work before. So
213 this in the past, but hadn't been able to make it work before. So
206 far it looks like it's actually running, but this needs more
214 far it looks like it's actually running, but this needs more
207 testing. If it really works, I'll be *very* happy, and we'll owe
215 testing. If it really works, I'll be *very* happy, and we'll owe
208 a huge thank you to Tomer. My current implementation is ugly,
216 a huge thank you to Tomer. My current implementation is ugly,
209 hackish and uses nasty globals, but I don't want to try and clean
217 hackish and uses nasty globals, but I don't want to try and clean
210 anything up until we know if it actually works.
218 anything up until we know if it actually works.
211
219
212 NOTE: this feature needs ctypes to work. ctypes is included in
220 NOTE: this feature needs ctypes to work. ctypes is included in
213 Python2.5, but 2.4 users will need to manually install it. This
221 Python2.5, but 2.4 users will need to manually install it. This
214 feature makes multi-threaded shells so much more usable that it's
222 feature makes multi-threaded shells so much more usable that it's
215 a minor price to pay (ctypes is very easy to install, already a
223 a minor price to pay (ctypes is very easy to install, already a
216 requirement for win32 and available in major linux distros).
224 requirement for win32 and available in major linux distros).
217
225
218 2007-04-04 Ville Vainio <vivainio@gmail.com>
226 2007-04-04 Ville Vainio <vivainio@gmail.com>
219
227
220 * Extensions/ipy_completers.py, ipy_stock_completers.py:
228 * Extensions/ipy_completers.py, ipy_stock_completers.py:
221 Moved implementations of 'bundled' completers to ipy_completers.py,
229 Moved implementations of 'bundled' completers to ipy_completers.py,
222 they are only enabled in ipy_stock_completers.py.
230 they are only enabled in ipy_stock_completers.py.
223
231
224 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
232 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
225
233
226 * IPython/PyColorize.py (Parser.format2): Fix identation of
234 * IPython/PyColorize.py (Parser.format2): Fix identation of
227 colorzied output and return early if color scheme is NoColor, to
235 colorzied output and return early if color scheme is NoColor, to
228 avoid unnecessary and expensive tokenization. Closes #131.
236 avoid unnecessary and expensive tokenization. Closes #131.
229
237
230 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
238 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
231
239
232 * IPython/Debugger.py: disable the use of pydb version 1.17. It
240 * IPython/Debugger.py: disable the use of pydb version 1.17. It
233 has a critical bug (a missing import that makes post-mortem not
241 has a critical bug (a missing import that makes post-mortem not
234 work at all). Unfortunately as of this time, this is the version
242 work at all). Unfortunately as of this time, this is the version
235 shipped with Ubuntu Edgy, so quite a few people have this one. I
243 shipped with Ubuntu Edgy, so quite a few people have this one. I
236 hope Edgy will update to a more recent package.
244 hope Edgy will update to a more recent package.
237
245
238 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
246 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
239
247
240 * IPython/iplib.py (_prefilter): close #52, second part of a patch
248 * IPython/iplib.py (_prefilter): close #52, second part of a patch
241 set by Stefan (only the first part had been applied before).
249 set by Stefan (only the first part had been applied before).
242
250
243 * IPython/Extensions/ipy_stock_completers.py (module_completer):
251 * IPython/Extensions/ipy_stock_completers.py (module_completer):
244 remove usage of the dangerous pkgutil.walk_packages(). See
252 remove usage of the dangerous pkgutil.walk_packages(). See
245 details in comments left in the code.
253 details in comments left in the code.
246
254
247 * IPython/Magic.py (magic_whos): add support for numpy arrays
255 * IPython/Magic.py (magic_whos): add support for numpy arrays
248 similar to what we had for Numeric.
256 similar to what we had for Numeric.
249
257
250 * IPython/completer.py (IPCompleter.complete): extend the
258 * IPython/completer.py (IPCompleter.complete): extend the
251 complete() call API to support completions by other mechanisms
259 complete() call API to support completions by other mechanisms
252 than readline. Closes #109.
260 than readline. Closes #109.
253
261
254 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
262 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
255 protect against a bug in Python's execfile(). Closes #123.
263 protect against a bug in Python's execfile(). Closes #123.
256
264
257 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
265 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
258
266
259 * IPython/iplib.py (split_user_input): ensure that when splitting
267 * IPython/iplib.py (split_user_input): ensure that when splitting
260 user input, the part that can be treated as a python name is pure
268 user input, the part that can be treated as a python name is pure
261 ascii (Python identifiers MUST be pure ascii). Part of the
269 ascii (Python identifiers MUST be pure ascii). Part of the
262 ongoing Unicode support work.
270 ongoing Unicode support work.
263
271
264 * IPython/Prompts.py (prompt_specials_color): Add \N for the
272 * IPython/Prompts.py (prompt_specials_color): Add \N for the
265 actual prompt number, without any coloring. This allows users to
273 actual prompt number, without any coloring. This allows users to
266 produce numbered prompts with their own colors. Added after a
274 produce numbered prompts with their own colors. Added after a
267 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
275 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
268
276
269 2007-03-31 Walter Doerwald <walter@livinglogic.de>
277 2007-03-31 Walter Doerwald <walter@livinglogic.de>
270
278
271 * IPython/Extensions/igrid.py: Map the return key
279 * IPython/Extensions/igrid.py: Map the return key
272 to enter() and shift-return to enterattr().
280 to enter() and shift-return to enterattr().
273
281
274 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
282 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
275
283
276 * IPython/Magic.py (magic_psearch): add unicode support by
284 * IPython/Magic.py (magic_psearch): add unicode support by
277 encoding to ascii the input, since this routine also only deals
285 encoding to ascii the input, since this routine also only deals
278 with valid Python names. Fixes a bug reported by Stefan.
286 with valid Python names. Fixes a bug reported by Stefan.
279
287
280 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
288 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
281
289
282 * IPython/Magic.py (_inspect): convert unicode input into ascii
290 * IPython/Magic.py (_inspect): convert unicode input into ascii
283 before trying to evaluate it as a Python identifier. This fixes a
291 before trying to evaluate it as a Python identifier. This fixes a
284 problem that the new unicode support had introduced when analyzing
292 problem that the new unicode support had introduced when analyzing
285 long definition lines for functions.
293 long definition lines for functions.
286
294
287 2007-03-24 Walter Doerwald <walter@livinglogic.de>
295 2007-03-24 Walter Doerwald <walter@livinglogic.de>
288
296
289 * IPython/Extensions/igrid.py: Fix picking. Using
297 * IPython/Extensions/igrid.py: Fix picking. Using
290 igrid with wxPython 2.6 and -wthread should work now.
298 igrid with wxPython 2.6 and -wthread should work now.
291 igrid.display() simply tries to create a frame without
299 igrid.display() simply tries to create a frame without
292 an application. Only if this fails an application is created.
300 an application. Only if this fails an application is created.
293
301
294 2007-03-23 Walter Doerwald <walter@livinglogic.de>
302 2007-03-23 Walter Doerwald <walter@livinglogic.de>
295
303
296 * IPython/Extensions/path.py: Updated to version 2.2.
304 * IPython/Extensions/path.py: Updated to version 2.2.
297
305
298 2007-03-23 Ville Vainio <vivainio@gmail.com>
306 2007-03-23 Ville Vainio <vivainio@gmail.com>
299
307
300 * iplib.py: recursive alias expansion now works better, so that
308 * iplib.py: recursive alias expansion now works better, so that
301 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
309 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
302 doesn't trip up the process, if 'd' has been aliased to 'ls'.
310 doesn't trip up the process, if 'd' has been aliased to 'ls'.
303
311
304 * Extensions/ipy_gnuglobal.py added, provides %global magic
312 * Extensions/ipy_gnuglobal.py added, provides %global magic
305 for users of http://www.gnu.org/software/global
313 for users of http://www.gnu.org/software/global
306
314
307 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
315 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
308 Closes #52. Patch by Stefan van der Walt.
316 Closes #52. Patch by Stefan van der Walt.
309
317
310 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
318 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
311
319
312 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
320 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
313 respect the __file__ attribute when using %run. Thanks to a bug
321 respect the __file__ attribute when using %run. Thanks to a bug
314 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
322 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
315
323
316 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
324 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
317
325
318 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
326 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
319 input. Patch sent by Stefan.
327 input. Patch sent by Stefan.
320
328
321 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
329 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
322 * IPython/Extensions/ipy_stock_completer.py
330 * IPython/Extensions/ipy_stock_completer.py
323 shlex_split, fix bug in shlex_split. len function
331 shlex_split, fix bug in shlex_split. len function
324 call was missing an if statement. Caused shlex_split to
332 call was missing an if statement. Caused shlex_split to
325 sometimes return "" as last element.
333 sometimes return "" as last element.
326
334
327 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
335 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
328
336
329 * IPython/completer.py
337 * IPython/completer.py
330 (IPCompleter.file_matches.single_dir_expand): fix a problem
338 (IPCompleter.file_matches.single_dir_expand): fix a problem
331 reported by Stefan, where directories containign a single subdir
339 reported by Stefan, where directories containign a single subdir
332 would be completed too early.
340 would be completed too early.
333
341
334 * IPython/Shell.py (_load_pylab): Make the execution of 'from
342 * IPython/Shell.py (_load_pylab): Make the execution of 'from
335 pylab import *' when -pylab is given be optional. A new flag,
343 pylab import *' when -pylab is given be optional. A new flag,
336 pylab_import_all controls this behavior, the default is True for
344 pylab_import_all controls this behavior, the default is True for
337 backwards compatibility.
345 backwards compatibility.
338
346
339 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
347 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
340 modified) R. Bernstein's patch for fully syntax highlighted
348 modified) R. Bernstein's patch for fully syntax highlighted
341 tracebacks. The functionality is also available under ultraTB for
349 tracebacks. The functionality is also available under ultraTB for
342 non-ipython users (someone using ultraTB but outside an ipython
350 non-ipython users (someone using ultraTB but outside an ipython
343 session). They can select the color scheme by setting the
351 session). They can select the color scheme by setting the
344 module-level global DEFAULT_SCHEME. The highlight functionality
352 module-level global DEFAULT_SCHEME. The highlight functionality
345 also works when debugging.
353 also works when debugging.
346
354
347 * IPython/genutils.py (IOStream.close): small patch by
355 * IPython/genutils.py (IOStream.close): small patch by
348 R. Bernstein for improved pydb support.
356 R. Bernstein for improved pydb support.
349
357
350 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
358 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
351 DaveS <davls@telus.net> to improve support of debugging under
359 DaveS <davls@telus.net> to improve support of debugging under
352 NTEmacs, including improved pydb behavior.
360 NTEmacs, including improved pydb behavior.
353
361
354 * IPython/Magic.py (magic_prun): Fix saving of profile info for
362 * IPython/Magic.py (magic_prun): Fix saving of profile info for
355 Python 2.5, where the stats object API changed a little. Thanks
363 Python 2.5, where the stats object API changed a little. Thanks
356 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
364 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
357
365
358 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
366 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
359 Pernetty's patch to improve support for (X)Emacs under Win32.
367 Pernetty's patch to improve support for (X)Emacs under Win32.
360
368
361 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
369 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
362
370
363 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
371 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
364 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
372 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
365 a report by Nik Tautenhahn.
373 a report by Nik Tautenhahn.
366
374
367 2007-03-16 Walter Doerwald <walter@livinglogic.de>
375 2007-03-16 Walter Doerwald <walter@livinglogic.de>
368
376
369 * setup.py: Add the igrid help files to the list of data files
377 * setup.py: Add the igrid help files to the list of data files
370 to be installed alongside igrid.
378 to be installed alongside igrid.
371 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
379 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
372 Show the input object of the igrid browser as the window tile.
380 Show the input object of the igrid browser as the window tile.
373 Show the object the cursor is on in the statusbar.
381 Show the object the cursor is on in the statusbar.
374
382
375 2007-03-15 Ville Vainio <vivainio@gmail.com>
383 2007-03-15 Ville Vainio <vivainio@gmail.com>
376
384
377 * Extensions/ipy_stock_completers.py: Fixed exception
385 * Extensions/ipy_stock_completers.py: Fixed exception
378 on mismatching quotes in %run completer. Patch by
386 on mismatching quotes in %run completer. Patch by
379 JοΏ½rgen Stenarson. Closes #127.
387 JοΏ½rgen Stenarson. Closes #127.
380
388
381 2007-03-14 Ville Vainio <vivainio@gmail.com>
389 2007-03-14 Ville Vainio <vivainio@gmail.com>
382
390
383 * Extensions/ext_rehashdir.py: Do not do auto_alias
391 * Extensions/ext_rehashdir.py: Do not do auto_alias
384 in %rehashdir, it clobbers %store'd aliases.
392 in %rehashdir, it clobbers %store'd aliases.
385
393
386 * UserConfig/ipy_profile_sh.py: envpersist.py extension
394 * UserConfig/ipy_profile_sh.py: envpersist.py extension
387 (beefed up %env) imported for sh profile.
395 (beefed up %env) imported for sh profile.
388
396
389 2007-03-10 Walter Doerwald <walter@livinglogic.de>
397 2007-03-10 Walter Doerwald <walter@livinglogic.de>
390
398
391 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
399 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
392 as the default browser.
400 as the default browser.
393 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
401 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
394 As igrid displays all attributes it ever encounters, fetch() (which has
402 As igrid displays all attributes it ever encounters, fetch() (which has
395 been renamed to _fetch()) doesn't have to recalculate the display attributes
403 been renamed to _fetch()) doesn't have to recalculate the display attributes
396 every time a new item is fetched. This should speed up scrolling.
404 every time a new item is fetched. This should speed up scrolling.
397
405
398 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
406 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
399
407
400 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
408 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
401 Schmolck's recently reported tab-completion bug (my previous one
409 Schmolck's recently reported tab-completion bug (my previous one
402 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
410 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
403
411
404 2007-03-09 Walter Doerwald <walter@livinglogic.de>
412 2007-03-09 Walter Doerwald <walter@livinglogic.de>
405
413
406 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
414 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
407 Close help window if exiting igrid.
415 Close help window if exiting igrid.
408
416
409 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
417 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
410
418
411 * IPython/Extensions/ipy_defaults.py: Check if readline is available
419 * IPython/Extensions/ipy_defaults.py: Check if readline is available
412 before calling functions from readline.
420 before calling functions from readline.
413
421
414 2007-03-02 Walter Doerwald <walter@livinglogic.de>
422 2007-03-02 Walter Doerwald <walter@livinglogic.de>
415
423
416 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
424 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
417 igrid is a wxPython-based display object for ipipe. If your system has
425 igrid is a wxPython-based display object for ipipe. If your system has
418 wx installed igrid will be the default display. Without wx ipipe falls
426 wx installed igrid will be the default display. Without wx ipipe falls
419 back to ibrowse (which needs curses). If no curses is installed ipipe
427 back to ibrowse (which needs curses). If no curses is installed ipipe
420 falls back to idump.
428 falls back to idump.
421
429
422 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
430 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
423
431
424 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
432 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
425 my changes from yesterday, they introduced bugs. Will reactivate
433 my changes from yesterday, they introduced bugs. Will reactivate
426 once I get a correct solution, which will be much easier thanks to
434 once I get a correct solution, which will be much easier thanks to
427 Dan Milstein's new prefilter test suite.
435 Dan Milstein's new prefilter test suite.
428
436
429 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
437 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
430
438
431 * IPython/iplib.py (split_user_input): fix input splitting so we
439 * IPython/iplib.py (split_user_input): fix input splitting so we
432 don't attempt attribute accesses on things that can't possibly be
440 don't attempt attribute accesses on things that can't possibly be
433 valid Python attributes. After a bug report by Alex Schmolck.
441 valid Python attributes. After a bug report by Alex Schmolck.
434 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
442 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
435 %magic with explicit % prefix.
443 %magic with explicit % prefix.
436
444
437 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
445 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
438
446
439 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
447 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
440 avoid a DeprecationWarning from GTK.
448 avoid a DeprecationWarning from GTK.
441
449
442 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
450 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
443
451
444 * IPython/genutils.py (clock): I modified clock() to return total
452 * IPython/genutils.py (clock): I modified clock() to return total
445 time, user+system. This is a more commonly needed metric. I also
453 time, user+system. This is a more commonly needed metric. I also
446 introduced the new clocku/clocks to get only user/system time if
454 introduced the new clocku/clocks to get only user/system time if
447 one wants those instead.
455 one wants those instead.
448
456
449 ***WARNING: API CHANGE*** clock() used to return only user time,
457 ***WARNING: API CHANGE*** clock() used to return only user time,
450 so if you want exactly the same results as before, use clocku
458 so if you want exactly the same results as before, use clocku
451 instead.
459 instead.
452
460
453 2007-02-22 Ville Vainio <vivainio@gmail.com>
461 2007-02-22 Ville Vainio <vivainio@gmail.com>
454
462
455 * IPython/Extensions/ipy_p4.py: Extension for improved
463 * IPython/Extensions/ipy_p4.py: Extension for improved
456 p4 (perforce version control system) experience.
464 p4 (perforce version control system) experience.
457 Adds %p4 magic with p4 command completion and
465 Adds %p4 magic with p4 command completion and
458 automatic -G argument (marshall output as python dict)
466 automatic -G argument (marshall output as python dict)
459
467
460 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
468 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
461
469
462 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
470 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
463 stop marks.
471 stop marks.
464 (ClearingMixin): a simple mixin to easily make a Demo class clear
472 (ClearingMixin): a simple mixin to easily make a Demo class clear
465 the screen in between blocks and have empty marquees. The
473 the screen in between blocks and have empty marquees. The
466 ClearDemo and ClearIPDemo classes that use it are included.
474 ClearDemo and ClearIPDemo classes that use it are included.
467
475
468 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
476 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
469
477
470 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
478 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
471 protect against exceptions at Python shutdown time. Patch
479 protect against exceptions at Python shutdown time. Patch
472 sumbmitted to upstream.
480 sumbmitted to upstream.
473
481
474 2007-02-14 Walter Doerwald <walter@livinglogic.de>
482 2007-02-14 Walter Doerwald <walter@livinglogic.de>
475
483
476 * IPython/Extensions/ibrowse.py: If entering the first object level
484 * IPython/Extensions/ibrowse.py: If entering the first object level
477 (i.e. the object for which the browser has been started) fails,
485 (i.e. the object for which the browser has been started) fails,
478 now the error is raised directly (aborting the browser) instead of
486 now the error is raised directly (aborting the browser) instead of
479 running into an empty levels list later.
487 running into an empty levels list later.
480
488
481 2007-02-03 Walter Doerwald <walter@livinglogic.de>
489 2007-02-03 Walter Doerwald <walter@livinglogic.de>
482
490
483 * IPython/Extensions/ipipe.py: Add an xrepr implementation
491 * IPython/Extensions/ipipe.py: Add an xrepr implementation
484 for the noitem object.
492 for the noitem object.
485
493
486 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
494 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
487
495
488 * IPython/completer.py (Completer.attr_matches): Fix small
496 * IPython/completer.py (Completer.attr_matches): Fix small
489 tab-completion bug with Enthought Traits objects with units.
497 tab-completion bug with Enthought Traits objects with units.
490 Thanks to a bug report by Tom Denniston
498 Thanks to a bug report by Tom Denniston
491 <tom.denniston-AT-alum.dartmouth.org>.
499 <tom.denniston-AT-alum.dartmouth.org>.
492
500
493 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
501 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
494
502
495 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
503 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
496 bug where only .ipy or .py would be completed. Once the first
504 bug where only .ipy or .py would be completed. Once the first
497 argument to %run has been given, all completions are valid because
505 argument to %run has been given, all completions are valid because
498 they are the arguments to the script, which may well be non-python
506 they are the arguments to the script, which may well be non-python
499 filenames.
507 filenames.
500
508
501 * IPython/irunner.py (InteractiveRunner.run_source): major updates
509 * IPython/irunner.py (InteractiveRunner.run_source): major updates
502 to irunner to allow it to correctly support real doctesting of
510 to irunner to allow it to correctly support real doctesting of
503 out-of-process ipython code.
511 out-of-process ipython code.
504
512
505 * IPython/Magic.py (magic_cd): Make the setting of the terminal
513 * IPython/Magic.py (magic_cd): Make the setting of the terminal
506 title an option (-noterm_title) because it completely breaks
514 title an option (-noterm_title) because it completely breaks
507 doctesting.
515 doctesting.
508
516
509 * IPython/demo.py: fix IPythonDemo class that was not actually working.
517 * IPython/demo.py: fix IPythonDemo class that was not actually working.
510
518
511 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
519 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
512
520
513 * IPython/irunner.py (main): fix small bug where extensions were
521 * IPython/irunner.py (main): fix small bug where extensions were
514 not being correctly recognized.
522 not being correctly recognized.
515
523
516 2007-01-23 Walter Doerwald <walter@livinglogic.de>
524 2007-01-23 Walter Doerwald <walter@livinglogic.de>
517
525
518 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
526 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
519 a string containing a single line yields the string itself as the
527 a string containing a single line yields the string itself as the
520 only item.
528 only item.
521
529
522 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
530 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
523 object if it's the same as the one on the last level (This avoids
531 object if it's the same as the one on the last level (This avoids
524 infinite recursion for one line strings).
532 infinite recursion for one line strings).
525
533
526 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
534 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
527
535
528 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
536 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
529 all output streams before printing tracebacks. This ensures that
537 all output streams before printing tracebacks. This ensures that
530 user output doesn't end up interleaved with traceback output.
538 user output doesn't end up interleaved with traceback output.
531
539
532 2007-01-10 Ville Vainio <vivainio@gmail.com>
540 2007-01-10 Ville Vainio <vivainio@gmail.com>
533
541
534 * Extensions/envpersist.py: Turbocharged %env that remembers
542 * Extensions/envpersist.py: Turbocharged %env that remembers
535 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
543 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
536 "%env VISUAL=jed".
544 "%env VISUAL=jed".
537
545
538 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
546 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
539
547
540 * IPython/iplib.py (showtraceback): ensure that we correctly call
548 * IPython/iplib.py (showtraceback): ensure that we correctly call
541 custom handlers in all cases (some with pdb were slipping through,
549 custom handlers in all cases (some with pdb were slipping through,
542 but I'm not exactly sure why).
550 but I'm not exactly sure why).
543
551
544 * IPython/Debugger.py (Tracer.__init__): added new class to
552 * IPython/Debugger.py (Tracer.__init__): added new class to
545 support set_trace-like usage of IPython's enhanced debugger.
553 support set_trace-like usage of IPython's enhanced debugger.
546
554
547 2006-12-24 Ville Vainio <vivainio@gmail.com>
555 2006-12-24 Ville Vainio <vivainio@gmail.com>
548
556
549 * ipmaker.py: more informative message when ipy_user_conf
557 * ipmaker.py: more informative message when ipy_user_conf
550 import fails (suggest running %upgrade).
558 import fails (suggest running %upgrade).
551
559
552 * tools/run_ipy_in_profiler.py: Utility to see where
560 * tools/run_ipy_in_profiler.py: Utility to see where
553 the time during IPython startup is spent.
561 the time during IPython startup is spent.
554
562
555 2006-12-20 Ville Vainio <vivainio@gmail.com>
563 2006-12-20 Ville Vainio <vivainio@gmail.com>
556
564
557 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
565 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
558
566
559 * ipapi.py: Add new ipapi method, expand_alias.
567 * ipapi.py: Add new ipapi method, expand_alias.
560
568
561 * Release.py: Bump up version to 0.7.4.svn
569 * Release.py: Bump up version to 0.7.4.svn
562
570
563 2006-12-17 Ville Vainio <vivainio@gmail.com>
571 2006-12-17 Ville Vainio <vivainio@gmail.com>
564
572
565 * Extensions/jobctrl.py: Fixed &cmd arg arg...
573 * Extensions/jobctrl.py: Fixed &cmd arg arg...
566 to work properly on posix too
574 to work properly on posix too
567
575
568 * Release.py: Update revnum (version is still just 0.7.3).
576 * Release.py: Update revnum (version is still just 0.7.3).
569
577
570 2006-12-15 Ville Vainio <vivainio@gmail.com>
578 2006-12-15 Ville Vainio <vivainio@gmail.com>
571
579
572 * scripts/ipython_win_post_install: create ipython.py in
580 * scripts/ipython_win_post_install: create ipython.py in
573 prefix + "/scripts".
581 prefix + "/scripts".
574
582
575 * Release.py: Update version to 0.7.3.
583 * Release.py: Update version to 0.7.3.
576
584
577 2006-12-14 Ville Vainio <vivainio@gmail.com>
585 2006-12-14 Ville Vainio <vivainio@gmail.com>
578
586
579 * scripts/ipython_win_post_install: Overwrite old shortcuts
587 * scripts/ipython_win_post_install: Overwrite old shortcuts
580 if they already exist
588 if they already exist
581
589
582 * Release.py: release 0.7.3rc2
590 * Release.py: release 0.7.3rc2
583
591
584 2006-12-13 Ville Vainio <vivainio@gmail.com>
592 2006-12-13 Ville Vainio <vivainio@gmail.com>
585
593
586 * Branch and update Release.py for 0.7.3rc1
594 * Branch and update Release.py for 0.7.3rc1
587
595
588 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
596 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
589
597
590 * IPython/Shell.py (IPShellWX): update for current WX naming
598 * IPython/Shell.py (IPShellWX): update for current WX naming
591 conventions, to avoid a deprecation warning with current WX
599 conventions, to avoid a deprecation warning with current WX
592 versions. Thanks to a report by Danny Shevitz.
600 versions. Thanks to a report by Danny Shevitz.
593
601
594 2006-12-12 Ville Vainio <vivainio@gmail.com>
602 2006-12-12 Ville Vainio <vivainio@gmail.com>
595
603
596 * ipmaker.py: apply david cournapeau's patch to make
604 * ipmaker.py: apply david cournapeau's patch to make
597 import_some work properly even when ipythonrc does
605 import_some work properly even when ipythonrc does
598 import_some on empty list (it was an old bug!).
606 import_some on empty list (it was an old bug!).
599
607
600 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
608 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
601 Add deprecation note to ipythonrc and a url to wiki
609 Add deprecation note to ipythonrc and a url to wiki
602 in ipy_user_conf.py
610 in ipy_user_conf.py
603
611
604
612
605 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
613 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
606 as if it was typed on IPython command prompt, i.e.
614 as if it was typed on IPython command prompt, i.e.
607 as IPython script.
615 as IPython script.
608
616
609 * example-magic.py, magic_grepl.py: remove outdated examples
617 * example-magic.py, magic_grepl.py: remove outdated examples
610
618
611 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
619 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
612
620
613 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
621 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
614 is called before any exception has occurred.
622 is called before any exception has occurred.
615
623
616 2006-12-08 Ville Vainio <vivainio@gmail.com>
624 2006-12-08 Ville Vainio <vivainio@gmail.com>
617
625
618 * Extensions/ipy_stock_completers.py: fix cd completer
626 * Extensions/ipy_stock_completers.py: fix cd completer
619 to translate /'s to \'s again.
627 to translate /'s to \'s again.
620
628
621 * completer.py: prevent traceback on file completions w/
629 * completer.py: prevent traceback on file completions w/
622 backslash.
630 backslash.
623
631
624 * Release.py: Update release number to 0.7.3b3 for release
632 * Release.py: Update release number to 0.7.3b3 for release
625
633
626 2006-12-07 Ville Vainio <vivainio@gmail.com>
634 2006-12-07 Ville Vainio <vivainio@gmail.com>
627
635
628 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
636 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
629 while executing external code. Provides more shell-like behaviour
637 while executing external code. Provides more shell-like behaviour
630 and overall better response to ctrl + C / ctrl + break.
638 and overall better response to ctrl + C / ctrl + break.
631
639
632 * tools/make_tarball.py: new script to create tarball straight from svn
640 * tools/make_tarball.py: new script to create tarball straight from svn
633 (setup.py sdist doesn't work on win32).
641 (setup.py sdist doesn't work on win32).
634
642
635 * Extensions/ipy_stock_completers.py: fix cd completer to give up
643 * Extensions/ipy_stock_completers.py: fix cd completer to give up
636 on dirnames with spaces and use the default completer instead.
644 on dirnames with spaces and use the default completer instead.
637
645
638 * Revision.py: Change version to 0.7.3b2 for release.
646 * Revision.py: Change version to 0.7.3b2 for release.
639
647
640 2006-12-05 Ville Vainio <vivainio@gmail.com>
648 2006-12-05 Ville Vainio <vivainio@gmail.com>
641
649
642 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
650 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
643 pydb patch 4 (rm debug printing, py 2.5 checking)
651 pydb patch 4 (rm debug printing, py 2.5 checking)
644
652
645 2006-11-30 Walter Doerwald <walter@livinglogic.de>
653 2006-11-30 Walter Doerwald <walter@livinglogic.de>
646 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
654 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
647 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
655 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
648 "refreshfind" (mapped to "R") does the same but tries to go back to the same
656 "refreshfind" (mapped to "R") does the same but tries to go back to the same
649 object the cursor was on before the refresh. The command "markrange" is
657 object the cursor was on before the refresh. The command "markrange" is
650 mapped to "%" now.
658 mapped to "%" now.
651 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
659 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
652
660
653 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
661 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
654
662
655 * IPython/Magic.py (magic_debug): new %debug magic to activate the
663 * IPython/Magic.py (magic_debug): new %debug magic to activate the
656 interactive debugger on the last traceback, without having to call
664 interactive debugger on the last traceback, without having to call
657 %pdb and rerun your code. Made minor changes in various modules,
665 %pdb and rerun your code. Made minor changes in various modules,
658 should automatically recognize pydb if available.
666 should automatically recognize pydb if available.
659
667
660 2006-11-28 Ville Vainio <vivainio@gmail.com>
668 2006-11-28 Ville Vainio <vivainio@gmail.com>
661
669
662 * completer.py: If the text start with !, show file completions
670 * completer.py: If the text start with !, show file completions
663 properly. This helps when trying to complete command name
671 properly. This helps when trying to complete command name
664 for shell escapes.
672 for shell escapes.
665
673
666 2006-11-27 Ville Vainio <vivainio@gmail.com>
674 2006-11-27 Ville Vainio <vivainio@gmail.com>
667
675
668 * ipy_stock_completers.py: bzr completer submitted by Stefan van
676 * ipy_stock_completers.py: bzr completer submitted by Stefan van
669 der Walt. Clean up svn and hg completers by using a common
677 der Walt. Clean up svn and hg completers by using a common
670 vcs_completer.
678 vcs_completer.
671
679
672 2006-11-26 Ville Vainio <vivainio@gmail.com>
680 2006-11-26 Ville Vainio <vivainio@gmail.com>
673
681
674 * Remove ipconfig and %config; you should use _ip.options structure
682 * Remove ipconfig and %config; you should use _ip.options structure
675 directly instead!
683 directly instead!
676
684
677 * genutils.py: add wrap_deprecated function for deprecating callables
685 * genutils.py: add wrap_deprecated function for deprecating callables
678
686
679 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
687 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
680 _ip.system instead. ipalias is redundant.
688 _ip.system instead. ipalias is redundant.
681
689
682 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
690 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
683 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
691 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
684 explicit.
692 explicit.
685
693
686 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
694 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
687 completer. Try it by entering 'hg ' and pressing tab.
695 completer. Try it by entering 'hg ' and pressing tab.
688
696
689 * macro.py: Give Macro a useful __repr__ method
697 * macro.py: Give Macro a useful __repr__ method
690
698
691 * Magic.py: %whos abbreviates the typename of Macro for brevity.
699 * Magic.py: %whos abbreviates the typename of Macro for brevity.
692
700
693 2006-11-24 Walter Doerwald <walter@livinglogic.de>
701 2006-11-24 Walter Doerwald <walter@livinglogic.de>
694 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
702 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
695 we don't get a duplicate ipipe module, where registration of the xrepr
703 we don't get a duplicate ipipe module, where registration of the xrepr
696 implementation for Text is useless.
704 implementation for Text is useless.
697
705
698 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
706 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
699
707
700 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
708 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
701
709
702 2006-11-24 Ville Vainio <vivainio@gmail.com>
710 2006-11-24 Ville Vainio <vivainio@gmail.com>
703
711
704 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
712 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
705 try to use "cProfile" instead of the slower pure python
713 try to use "cProfile" instead of the slower pure python
706 "profile"
714 "profile"
707
715
708 2006-11-23 Ville Vainio <vivainio@gmail.com>
716 2006-11-23 Ville Vainio <vivainio@gmail.com>
709
717
710 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
718 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
711 Qt+IPython+Designer link in documentation.
719 Qt+IPython+Designer link in documentation.
712
720
713 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
721 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
714 correct Pdb object to %pydb.
722 correct Pdb object to %pydb.
715
723
716
724
717 2006-11-22 Walter Doerwald <walter@livinglogic.de>
725 2006-11-22 Walter Doerwald <walter@livinglogic.de>
718 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
726 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
719 generic xrepr(), otherwise the list implementation would kick in.
727 generic xrepr(), otherwise the list implementation would kick in.
720
728
721 2006-11-21 Ville Vainio <vivainio@gmail.com>
729 2006-11-21 Ville Vainio <vivainio@gmail.com>
722
730
723 * upgrade_dir.py: Now actually overwrites a nonmodified user file
731 * upgrade_dir.py: Now actually overwrites a nonmodified user file
724 with one from UserConfig.
732 with one from UserConfig.
725
733
726 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
734 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
727 it was missing which broke the sh profile.
735 it was missing which broke the sh profile.
728
736
729 * completer.py: file completer now uses explicit '/' instead
737 * completer.py: file completer now uses explicit '/' instead
730 of os.path.join, expansion of 'foo' was broken on win32
738 of os.path.join, expansion of 'foo' was broken on win32
731 if there was one directory with name 'foobar'.
739 if there was one directory with name 'foobar'.
732
740
733 * A bunch of patches from Kirill Smelkov:
741 * A bunch of patches from Kirill Smelkov:
734
742
735 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
743 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
736
744
737 * [patch 7/9] Implement %page -r (page in raw mode) -
745 * [patch 7/9] Implement %page -r (page in raw mode) -
738
746
739 * [patch 5/9] ScientificPython webpage has moved
747 * [patch 5/9] ScientificPython webpage has moved
740
748
741 * [patch 4/9] The manual mentions %ds, should be %dhist
749 * [patch 4/9] The manual mentions %ds, should be %dhist
742
750
743 * [patch 3/9] Kill old bits from %prun doc.
751 * [patch 3/9] Kill old bits from %prun doc.
744
752
745 * [patch 1/9] Fix typos here and there.
753 * [patch 1/9] Fix typos here and there.
746
754
747 2006-11-08 Ville Vainio <vivainio@gmail.com>
755 2006-11-08 Ville Vainio <vivainio@gmail.com>
748
756
749 * completer.py (attr_matches): catch all exceptions raised
757 * completer.py (attr_matches): catch all exceptions raised
750 by eval of expr with dots.
758 by eval of expr with dots.
751
759
752 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
760 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
753
761
754 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
762 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
755 input if it starts with whitespace. This allows you to paste
763 input if it starts with whitespace. This allows you to paste
756 indented input from any editor without manually having to type in
764 indented input from any editor without manually having to type in
757 the 'if 1:', which is convenient when working interactively.
765 the 'if 1:', which is convenient when working interactively.
758 Slightly modifed version of a patch by Bo Peng
766 Slightly modifed version of a patch by Bo Peng
759 <bpeng-AT-rice.edu>.
767 <bpeng-AT-rice.edu>.
760
768
761 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
769 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
762
770
763 * IPython/irunner.py (main): modified irunner so it automatically
771 * IPython/irunner.py (main): modified irunner so it automatically
764 recognizes the right runner to use based on the extension (.py for
772 recognizes the right runner to use based on the extension (.py for
765 python, .ipy for ipython and .sage for sage).
773 python, .ipy for ipython and .sage for sage).
766
774
767 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
775 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
768 visible in ipapi as ip.config(), to programatically control the
776 visible in ipapi as ip.config(), to programatically control the
769 internal rc object. There's an accompanying %config magic for
777 internal rc object. There's an accompanying %config magic for
770 interactive use, which has been enhanced to match the
778 interactive use, which has been enhanced to match the
771 funtionality in ipconfig.
779 funtionality in ipconfig.
772
780
773 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
781 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
774 so it's not just a toggle, it now takes an argument. Add support
782 so it's not just a toggle, it now takes an argument. Add support
775 for a customizable header when making system calls, as the new
783 for a customizable header when making system calls, as the new
776 system_header variable in the ipythonrc file.
784 system_header variable in the ipythonrc file.
777
785
778 2006-11-03 Walter Doerwald <walter@livinglogic.de>
786 2006-11-03 Walter Doerwald <walter@livinglogic.de>
779
787
780 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
788 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
781 generic functions (using Philip J. Eby's simplegeneric package).
789 generic functions (using Philip J. Eby's simplegeneric package).
782 This makes it possible to customize the display of third-party classes
790 This makes it possible to customize the display of third-party classes
783 without having to monkeypatch them. xiter() no longer supports a mode
791 without having to monkeypatch them. xiter() no longer supports a mode
784 argument and the XMode class has been removed. The same functionality can
792 argument and the XMode class has been removed. The same functionality can
785 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
793 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
786 One consequence of the switch to generic functions is that xrepr() and
794 One consequence of the switch to generic functions is that xrepr() and
787 xattrs() implementation must define the default value for the mode
795 xattrs() implementation must define the default value for the mode
788 argument themselves and xattrs() implementations must return real
796 argument themselves and xattrs() implementations must return real
789 descriptors.
797 descriptors.
790
798
791 * IPython/external: This new subpackage will contain all third-party
799 * IPython/external: This new subpackage will contain all third-party
792 packages that are bundled with IPython. (The first one is simplegeneric).
800 packages that are bundled with IPython. (The first one is simplegeneric).
793
801
794 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
802 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
795 directory which as been dropped in r1703.
803 directory which as been dropped in r1703.
796
804
797 * IPython/Extensions/ipipe.py (iless): Fixed.
805 * IPython/Extensions/ipipe.py (iless): Fixed.
798
806
799 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
807 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
800
808
801 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
809 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
802
810
803 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
811 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
804 handling in variable expansion so that shells and magics recognize
812 handling in variable expansion so that shells and magics recognize
805 function local scopes correctly. Bug reported by Brian.
813 function local scopes correctly. Bug reported by Brian.
806
814
807 * scripts/ipython: remove the very first entry in sys.path which
815 * scripts/ipython: remove the very first entry in sys.path which
808 Python auto-inserts for scripts, so that sys.path under IPython is
816 Python auto-inserts for scripts, so that sys.path under IPython is
809 as similar as possible to that under plain Python.
817 as similar as possible to that under plain Python.
810
818
811 * IPython/completer.py (IPCompleter.file_matches): Fix
819 * IPython/completer.py (IPCompleter.file_matches): Fix
812 tab-completion so that quotes are not closed unless the completion
820 tab-completion so that quotes are not closed unless the completion
813 is unambiguous. After a request by Stefan. Minor cleanups in
821 is unambiguous. After a request by Stefan. Minor cleanups in
814 ipy_stock_completers.
822 ipy_stock_completers.
815
823
816 2006-11-02 Ville Vainio <vivainio@gmail.com>
824 2006-11-02 Ville Vainio <vivainio@gmail.com>
817
825
818 * ipy_stock_completers.py: Add %run and %cd completers.
826 * ipy_stock_completers.py: Add %run and %cd completers.
819
827
820 * completer.py: Try running custom completer for both
828 * completer.py: Try running custom completer for both
821 "foo" and "%foo" if the command is just "foo". Ignore case
829 "foo" and "%foo" if the command is just "foo". Ignore case
822 when filtering possible completions.
830 when filtering possible completions.
823
831
824 * UserConfig/ipy_user_conf.py: install stock completers as default
832 * UserConfig/ipy_user_conf.py: install stock completers as default
825
833
826 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
834 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
827 simplified readline history save / restore through a wrapper
835 simplified readline history save / restore through a wrapper
828 function
836 function
829
837
830
838
831 2006-10-31 Ville Vainio <vivainio@gmail.com>
839 2006-10-31 Ville Vainio <vivainio@gmail.com>
832
840
833 * strdispatch.py, completer.py, ipy_stock_completers.py:
841 * strdispatch.py, completer.py, ipy_stock_completers.py:
834 Allow str_key ("command") in completer hooks. Implement
842 Allow str_key ("command") in completer hooks. Implement
835 trivial completer for 'import' (stdlib modules only). Rename
843 trivial completer for 'import' (stdlib modules only). Rename
836 ipy_linux_package_managers.py to ipy_stock_completers.py.
844 ipy_linux_package_managers.py to ipy_stock_completers.py.
837 SVN completer.
845 SVN completer.
838
846
839 * Extensions/ledit.py: %magic line editor for easily and
847 * Extensions/ledit.py: %magic line editor for easily and
840 incrementally manipulating lists of strings. The magic command
848 incrementally manipulating lists of strings. The magic command
841 name is %led.
849 name is %led.
842
850
843 2006-10-30 Ville Vainio <vivainio@gmail.com>
851 2006-10-30 Ville Vainio <vivainio@gmail.com>
844
852
845 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
853 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
846 Bernsteins's patches for pydb integration.
854 Bernsteins's patches for pydb integration.
847 http://bashdb.sourceforge.net/pydb/
855 http://bashdb.sourceforge.net/pydb/
848
856
849 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
857 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
850 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
858 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
851 custom completer hook to allow the users to implement their own
859 custom completer hook to allow the users to implement their own
852 completers. See ipy_linux_package_managers.py for example. The
860 completers. See ipy_linux_package_managers.py for example. The
853 hook name is 'complete_command'.
861 hook name is 'complete_command'.
854
862
855 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
863 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
856
864
857 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
865 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
858 Numeric leftovers.
866 Numeric leftovers.
859
867
860 * ipython.el (py-execute-region): apply Stefan's patch to fix
868 * ipython.el (py-execute-region): apply Stefan's patch to fix
861 garbled results if the python shell hasn't been previously started.
869 garbled results if the python shell hasn't been previously started.
862
870
863 * IPython/genutils.py (arg_split): moved to genutils, since it's a
871 * IPython/genutils.py (arg_split): moved to genutils, since it's a
864 pretty generic function and useful for other things.
872 pretty generic function and useful for other things.
865
873
866 * IPython/OInspect.py (getsource): Add customizable source
874 * IPython/OInspect.py (getsource): Add customizable source
867 extractor. After a request/patch form W. Stein (SAGE).
875 extractor. After a request/patch form W. Stein (SAGE).
868
876
869 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
877 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
870 window size to a more reasonable value from what pexpect does,
878 window size to a more reasonable value from what pexpect does,
871 since their choice causes wrapping bugs with long input lines.
879 since their choice causes wrapping bugs with long input lines.
872
880
873 2006-10-28 Ville Vainio <vivainio@gmail.com>
881 2006-10-28 Ville Vainio <vivainio@gmail.com>
874
882
875 * Magic.py (%run): Save and restore the readline history from
883 * Magic.py (%run): Save and restore the readline history from
876 file around %run commands to prevent side effects from
884 file around %run commands to prevent side effects from
877 %runned programs that might use readline (e.g. pydb).
885 %runned programs that might use readline (e.g. pydb).
878
886
879 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
887 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
880 invoking the pydb enhanced debugger.
888 invoking the pydb enhanced debugger.
881
889
882 2006-10-23 Walter Doerwald <walter@livinglogic.de>
890 2006-10-23 Walter Doerwald <walter@livinglogic.de>
883
891
884 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
892 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
885 call the base class method and propagate the return value to
893 call the base class method and propagate the return value to
886 ifile. This is now done by path itself.
894 ifile. This is now done by path itself.
887
895
888 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
896 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
889
897
890 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
898 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
891 api: set_crash_handler(), to expose the ability to change the
899 api: set_crash_handler(), to expose the ability to change the
892 internal crash handler.
900 internal crash handler.
893
901
894 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
902 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
895 the various parameters of the crash handler so that apps using
903 the various parameters of the crash handler so that apps using
896 IPython as their engine can customize crash handling. Ipmlemented
904 IPython as their engine can customize crash handling. Ipmlemented
897 at the request of SAGE.
905 at the request of SAGE.
898
906
899 2006-10-14 Ville Vainio <vivainio@gmail.com>
907 2006-10-14 Ville Vainio <vivainio@gmail.com>
900
908
901 * Magic.py, ipython.el: applied first "safe" part of Rocky
909 * Magic.py, ipython.el: applied first "safe" part of Rocky
902 Bernstein's patch set for pydb integration.
910 Bernstein's patch set for pydb integration.
903
911
904 * Magic.py (%unalias, %alias): %store'd aliases can now be
912 * Magic.py (%unalias, %alias): %store'd aliases can now be
905 removed with '%unalias'. %alias w/o args now shows most
913 removed with '%unalias'. %alias w/o args now shows most
906 interesting (stored / manually defined) aliases last
914 interesting (stored / manually defined) aliases last
907 where they catch the eye w/o scrolling.
915 where they catch the eye w/o scrolling.
908
916
909 * Magic.py (%rehashx), ext_rehashdir.py: files with
917 * Magic.py (%rehashx), ext_rehashdir.py: files with
910 'py' extension are always considered executable, even
918 'py' extension are always considered executable, even
911 when not in PATHEXT environment variable.
919 when not in PATHEXT environment variable.
912
920
913 2006-10-12 Ville Vainio <vivainio@gmail.com>
921 2006-10-12 Ville Vainio <vivainio@gmail.com>
914
922
915 * jobctrl.py: Add new "jobctrl" extension for spawning background
923 * jobctrl.py: Add new "jobctrl" extension for spawning background
916 processes with "&find /". 'import jobctrl' to try it out. Requires
924 processes with "&find /". 'import jobctrl' to try it out. Requires
917 'subprocess' module, standard in python 2.4+.
925 'subprocess' module, standard in python 2.4+.
918
926
919 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
927 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
920 so if foo -> bar and bar -> baz, then foo -> baz.
928 so if foo -> bar and bar -> baz, then foo -> baz.
921
929
922 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
930 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
923
931
924 * IPython/Magic.py (Magic.parse_options): add a new posix option
932 * IPython/Magic.py (Magic.parse_options): add a new posix option
925 to allow parsing of input args in magics that doesn't strip quotes
933 to allow parsing of input args in magics that doesn't strip quotes
926 (if posix=False). This also closes %timeit bug reported by
934 (if posix=False). This also closes %timeit bug reported by
927 Stefan.
935 Stefan.
928
936
929 2006-10-03 Ville Vainio <vivainio@gmail.com>
937 2006-10-03 Ville Vainio <vivainio@gmail.com>
930
938
931 * iplib.py (raw_input, interact): Return ValueError catching for
939 * iplib.py (raw_input, interact): Return ValueError catching for
932 raw_input. Fixes infinite loop for sys.stdin.close() or
940 raw_input. Fixes infinite loop for sys.stdin.close() or
933 sys.stdout.close().
941 sys.stdout.close().
934
942
935 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
943 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
936
944
937 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
945 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
938 to help in handling doctests. irunner is now pretty useful for
946 to help in handling doctests. irunner is now pretty useful for
939 running standalone scripts and simulate a full interactive session
947 running standalone scripts and simulate a full interactive session
940 in a format that can be then pasted as a doctest.
948 in a format that can be then pasted as a doctest.
941
949
942 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
950 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
943 on top of the default (useless) ones. This also fixes the nasty
951 on top of the default (useless) ones. This also fixes the nasty
944 way in which 2.5's Quitter() exits (reverted [1785]).
952 way in which 2.5's Quitter() exits (reverted [1785]).
945
953
946 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
954 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
947 2.5.
955 2.5.
948
956
949 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
957 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
950 color scheme is updated as well when color scheme is changed
958 color scheme is updated as well when color scheme is changed
951 interactively.
959 interactively.
952
960
953 2006-09-27 Ville Vainio <vivainio@gmail.com>
961 2006-09-27 Ville Vainio <vivainio@gmail.com>
954
962
955 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
963 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
956 infinite loop and just exit. It's a hack, but will do for a while.
964 infinite loop and just exit. It's a hack, but will do for a while.
957
965
958 2006-08-25 Walter Doerwald <walter@livinglogic.de>
966 2006-08-25 Walter Doerwald <walter@livinglogic.de>
959
967
960 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
968 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
961 the constructor, this makes it possible to get a list of only directories
969 the constructor, this makes it possible to get a list of only directories
962 or only files.
970 or only files.
963
971
964 2006-08-12 Ville Vainio <vivainio@gmail.com>
972 2006-08-12 Ville Vainio <vivainio@gmail.com>
965
973
966 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
974 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
967 they broke unittest
975 they broke unittest
968
976
969 2006-08-11 Ville Vainio <vivainio@gmail.com>
977 2006-08-11 Ville Vainio <vivainio@gmail.com>
970
978
971 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
979 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
972 by resolving issue properly, i.e. by inheriting FakeModule
980 by resolving issue properly, i.e. by inheriting FakeModule
973 from types.ModuleType. Pickling ipython interactive data
981 from types.ModuleType. Pickling ipython interactive data
974 should still work as usual (testing appreciated).
982 should still work as usual (testing appreciated).
975
983
976 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
984 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
977
985
978 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
986 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
979 running under python 2.3 with code from 2.4 to fix a bug with
987 running under python 2.3 with code from 2.4 to fix a bug with
980 help(). Reported by the Debian maintainers, Norbert Tretkowski
988 help(). Reported by the Debian maintainers, Norbert Tretkowski
981 <norbert-AT-tretkowski.de> and Alexandre Fayolle
989 <norbert-AT-tretkowski.de> and Alexandre Fayolle
982 <afayolle-AT-debian.org>.
990 <afayolle-AT-debian.org>.
983
991
984 2006-08-04 Walter Doerwald <walter@livinglogic.de>
992 2006-08-04 Walter Doerwald <walter@livinglogic.de>
985
993
986 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
994 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
987 (which was displaying "quit" twice).
995 (which was displaying "quit" twice).
988
996
989 2006-07-28 Walter Doerwald <walter@livinglogic.de>
997 2006-07-28 Walter Doerwald <walter@livinglogic.de>
990
998
991 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
999 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
992 the mode argument).
1000 the mode argument).
993
1001
994 2006-07-27 Walter Doerwald <walter@livinglogic.de>
1002 2006-07-27 Walter Doerwald <walter@livinglogic.de>
995
1003
996 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
1004 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
997 not running under IPython.
1005 not running under IPython.
998
1006
999 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
1007 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
1000 and make it iterable (iterating over the attribute itself). Add two new
1008 and make it iterable (iterating over the attribute itself). Add two new
1001 magic strings for __xattrs__(): If the string starts with "-", the attribute
1009 magic strings for __xattrs__(): If the string starts with "-", the attribute
1002 will not be displayed in ibrowse's detail view (but it can still be
1010 will not be displayed in ibrowse's detail view (but it can still be
1003 iterated over). This makes it possible to add attributes that are large
1011 iterated over). This makes it possible to add attributes that are large
1004 lists or generator methods to the detail view. Replace magic attribute names
1012 lists or generator methods to the detail view. Replace magic attribute names
1005 and _attrname() and _getattr() with "descriptors": For each type of magic
1013 and _attrname() and _getattr() with "descriptors": For each type of magic
1006 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
1014 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
1007 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
1015 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
1008 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
1016 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
1009 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
1017 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
1010 are still supported.
1018 are still supported.
1011
1019
1012 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
1020 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
1013 fails in ibrowse.fetch(), the exception object is added as the last item
1021 fails in ibrowse.fetch(), the exception object is added as the last item
1014 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
1022 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
1015 a generator throws an exception midway through execution.
1023 a generator throws an exception midway through execution.
1016
1024
1017 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1025 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
1018 encoding into methods.
1026 encoding into methods.
1019
1027
1020 2006-07-26 Ville Vainio <vivainio@gmail.com>
1028 2006-07-26 Ville Vainio <vivainio@gmail.com>
1021
1029
1022 * iplib.py: history now stores multiline input as single
1030 * iplib.py: history now stores multiline input as single
1023 history entries. Patch by Jorgen Cederlof.
1031 history entries. Patch by Jorgen Cederlof.
1024
1032
1025 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1033 2006-07-18 Walter Doerwald <walter@livinglogic.de>
1026
1034
1027 * IPython/Extensions/ibrowse.py: Make cursor visible over
1035 * IPython/Extensions/ibrowse.py: Make cursor visible over
1028 non existing attributes.
1036 non existing attributes.
1029
1037
1030 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1038 2006-07-14 Walter Doerwald <walter@livinglogic.de>
1031
1039
1032 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1040 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
1033 error output of the running command doesn't mess up the screen.
1041 error output of the running command doesn't mess up the screen.
1034
1042
1035 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1043 2006-07-13 Walter Doerwald <walter@livinglogic.de>
1036
1044
1037 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1045 * IPython/Extensions/ipipe.py (isort): Make isort usable without
1038 argument. This sorts the items themselves.
1046 argument. This sorts the items themselves.
1039
1047
1040 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1048 2006-07-12 Walter Doerwald <walter@livinglogic.de>
1041
1049
1042 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1050 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
1043 Compile expression strings into code objects. This should speed
1051 Compile expression strings into code objects. This should speed
1044 up ifilter and friends somewhat.
1052 up ifilter and friends somewhat.
1045
1053
1046 2006-07-08 Ville Vainio <vivainio@gmail.com>
1054 2006-07-08 Ville Vainio <vivainio@gmail.com>
1047
1055
1048 * Magic.py: %cpaste now strips > from the beginning of lines
1056 * Magic.py: %cpaste now strips > from the beginning of lines
1049 to ease pasting quoted code from emails. Contributed by
1057 to ease pasting quoted code from emails. Contributed by
1050 Stefan van der Walt.
1058 Stefan van der Walt.
1051
1059
1052 2006-06-29 Ville Vainio <vivainio@gmail.com>
1060 2006-06-29 Ville Vainio <vivainio@gmail.com>
1053
1061
1054 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1062 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
1055 mode, patch contributed by Darren Dale. NEEDS TESTING!
1063 mode, patch contributed by Darren Dale. NEEDS TESTING!
1056
1064
1057 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1065 2006-06-28 Walter Doerwald <walter@livinglogic.de>
1058
1066
1059 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1067 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
1060 a blue background. Fix fetching new display rows when the browser
1068 a blue background. Fix fetching new display rows when the browser
1061 scrolls more than a screenful (e.g. by using the goto command).
1069 scrolls more than a screenful (e.g. by using the goto command).
1062
1070
1063 2006-06-27 Ville Vainio <vivainio@gmail.com>
1071 2006-06-27 Ville Vainio <vivainio@gmail.com>
1064
1072
1065 * Magic.py (_inspect, _ofind) Apply David Huard's
1073 * Magic.py (_inspect, _ofind) Apply David Huard's
1066 patch for displaying the correct docstring for 'property'
1074 patch for displaying the correct docstring for 'property'
1067 attributes.
1075 attributes.
1068
1076
1069 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1077 2006-06-23 Walter Doerwald <walter@livinglogic.de>
1070
1078
1071 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1079 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
1072 commands into the methods implementing them.
1080 commands into the methods implementing them.
1073
1081
1074 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1082 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
1075
1083
1076 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1084 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
1077 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1085 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
1078 autoindent support was authored by Jin Liu.
1086 autoindent support was authored by Jin Liu.
1079
1087
1080 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1088 2006-06-22 Walter Doerwald <walter@livinglogic.de>
1081
1089
1082 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1090 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
1083 for keymaps with a custom class that simplifies handling.
1091 for keymaps with a custom class that simplifies handling.
1084
1092
1085 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1093 2006-06-19 Walter Doerwald <walter@livinglogic.de>
1086
1094
1087 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1095 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
1088 resizing. This requires Python 2.5 to work.
1096 resizing. This requires Python 2.5 to work.
1089
1097
1090 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1098 2006-06-16 Walter Doerwald <walter@livinglogic.de>
1091
1099
1092 * IPython/Extensions/ibrowse.py: Add two new commands to
1100 * IPython/Extensions/ibrowse.py: Add two new commands to
1093 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1101 ibrowse: "hideattr" (mapped to "h") hides the attribute under
1094 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1102 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
1095 attributes again. Remapped the help command to "?". Display
1103 attributes again. Remapped the help command to "?". Display
1096 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1104 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
1097 as keys for the "home" and "end" commands. Add three new commands
1105 as keys for the "home" and "end" commands. Add three new commands
1098 to the input mode for "find" and friends: "delend" (CTRL-K)
1106 to the input mode for "find" and friends: "delend" (CTRL-K)
1099 deletes to the end of line. "incsearchup" searches upwards in the
1107 deletes to the end of line. "incsearchup" searches upwards in the
1100 command history for an input that starts with the text before the cursor.
1108 command history for an input that starts with the text before the cursor.
1101 "incsearchdown" does the same downwards. Removed a bogus mapping of
1109 "incsearchdown" does the same downwards. Removed a bogus mapping of
1102 the x key to "delete".
1110 the x key to "delete".
1103
1111
1104 2006-06-15 Ville Vainio <vivainio@gmail.com>
1112 2006-06-15 Ville Vainio <vivainio@gmail.com>
1105
1113
1106 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1114 * iplib.py, hooks.py: Added new generate_prompt hook that can be
1107 used to create prompts dynamically, instead of the "old" way of
1115 used to create prompts dynamically, instead of the "old" way of
1108 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1116 assigning "magic" strings to prompt_in1 and prompt_in2. The old
1109 way still works (it's invoked by the default hook), of course.
1117 way still works (it's invoked by the default hook), of course.
1110
1118
1111 * Prompts.py: added generate_output_prompt hook for altering output
1119 * Prompts.py: added generate_output_prompt hook for altering output
1112 prompt
1120 prompt
1113
1121
1114 * Release.py: Changed version string to 0.7.3.svn.
1122 * Release.py: Changed version string to 0.7.3.svn.
1115
1123
1116 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1124 2006-06-15 Walter Doerwald <walter@livinglogic.de>
1117
1125
1118 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1126 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
1119 the call to fetch() always tries to fetch enough data for at least one
1127 the call to fetch() always tries to fetch enough data for at least one
1120 full screen. This makes it possible to simply call moveto(0,0,True) in
1128 full screen. This makes it possible to simply call moveto(0,0,True) in
1121 the constructor. Fix typos and removed the obsolete goto attribute.
1129 the constructor. Fix typos and removed the obsolete goto attribute.
1122
1130
1123 2006-06-12 Ville Vainio <vivainio@gmail.com>
1131 2006-06-12 Ville Vainio <vivainio@gmail.com>
1124
1132
1125 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1133 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
1126 allowing $variable interpolation within multiline statements,
1134 allowing $variable interpolation within multiline statements,
1127 though so far only with "sh" profile for a testing period.
1135 though so far only with "sh" profile for a testing period.
1128 The patch also enables splitting long commands with \ but it
1136 The patch also enables splitting long commands with \ but it
1129 doesn't work properly yet.
1137 doesn't work properly yet.
1130
1138
1131 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1139 2006-06-12 Walter Doerwald <walter@livinglogic.de>
1132
1140
1133 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1141 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
1134 input history and the position of the cursor in the input history for
1142 input history and the position of the cursor in the input history for
1135 the find, findbackwards and goto command.
1143 the find, findbackwards and goto command.
1136
1144
1137 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1145 2006-06-10 Walter Doerwald <walter@livinglogic.de>
1138
1146
1139 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1147 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
1140 implements the basic functionality of browser commands that require
1148 implements the basic functionality of browser commands that require
1141 input. Reimplement the goto, find and findbackwards commands as
1149 input. Reimplement the goto, find and findbackwards commands as
1142 subclasses of _CommandInput. Add an input history and keymaps to those
1150 subclasses of _CommandInput. Add an input history and keymaps to those
1143 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1151 commands. Add "\r" as a keyboard shortcut for the enterdefault and
1144 execute commands.
1152 execute commands.
1145
1153
1146 2006-06-07 Ville Vainio <vivainio@gmail.com>
1154 2006-06-07 Ville Vainio <vivainio@gmail.com>
1147
1155
1148 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1156 * iplib.py: ipython mybatch.ipy exits ipython immediately after
1149 running the batch files instead of leaving the session open.
1157 running the batch files instead of leaving the session open.
1150
1158
1151 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1159 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
1152
1160
1153 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1161 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
1154 the original fix was incomplete. Patch submitted by W. Maier.
1162 the original fix was incomplete. Patch submitted by W. Maier.
1155
1163
1156 2006-06-07 Ville Vainio <vivainio@gmail.com>
1164 2006-06-07 Ville Vainio <vivainio@gmail.com>
1157
1165
1158 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1166 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1159 Confirmation prompts can be supressed by 'quiet' option.
1167 Confirmation prompts can be supressed by 'quiet' option.
1160 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1168 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1161
1169
1162 2006-06-06 *** Released version 0.7.2
1170 2006-06-06 *** Released version 0.7.2
1163
1171
1164 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1172 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1165
1173
1166 * IPython/Release.py (version): Made 0.7.2 final for release.
1174 * IPython/Release.py (version): Made 0.7.2 final for release.
1167 Repo tagged and release cut.
1175 Repo tagged and release cut.
1168
1176
1169 2006-06-05 Ville Vainio <vivainio@gmail.com>
1177 2006-06-05 Ville Vainio <vivainio@gmail.com>
1170
1178
1171 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1179 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1172 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1180 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1173
1181
1174 * upgrade_dir.py: try import 'path' module a bit harder
1182 * upgrade_dir.py: try import 'path' module a bit harder
1175 (for %upgrade)
1183 (for %upgrade)
1176
1184
1177 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1185 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1178
1186
1179 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1187 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1180 instead of looping 20 times.
1188 instead of looping 20 times.
1181
1189
1182 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1190 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1183 correctly at initialization time. Bug reported by Krishna Mohan
1191 correctly at initialization time. Bug reported by Krishna Mohan
1184 Gundu <gkmohan-AT-gmail.com> on the user list.
1192 Gundu <gkmohan-AT-gmail.com> on the user list.
1185
1193
1186 * IPython/Release.py (version): Mark 0.7.2 version to start
1194 * IPython/Release.py (version): Mark 0.7.2 version to start
1187 testing for release on 06/06.
1195 testing for release on 06/06.
1188
1196
1189 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1197 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1190
1198
1191 * scripts/irunner: thin script interface so users don't have to
1199 * scripts/irunner: thin script interface so users don't have to
1192 find the module and call it as an executable, since modules rarely
1200 find the module and call it as an executable, since modules rarely
1193 live in people's PATH.
1201 live in people's PATH.
1194
1202
1195 * IPython/irunner.py (InteractiveRunner.__init__): added
1203 * IPython/irunner.py (InteractiveRunner.__init__): added
1196 delaybeforesend attribute to control delays with newer versions of
1204 delaybeforesend attribute to control delays with newer versions of
1197 pexpect. Thanks to detailed help from pexpect's author, Noah
1205 pexpect. Thanks to detailed help from pexpect's author, Noah
1198 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1206 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1199 correctly (it works in NoColor mode).
1207 correctly (it works in NoColor mode).
1200
1208
1201 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1209 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1202 SAGE list, from improper log() calls.
1210 SAGE list, from improper log() calls.
1203
1211
1204 2006-05-31 Ville Vainio <vivainio@gmail.com>
1212 2006-05-31 Ville Vainio <vivainio@gmail.com>
1205
1213
1206 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1214 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1207 with args in parens to work correctly with dirs that have spaces.
1215 with args in parens to work correctly with dirs that have spaces.
1208
1216
1209 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1217 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1210
1218
1211 * IPython/Logger.py (Logger.logstart): add option to log raw input
1219 * IPython/Logger.py (Logger.logstart): add option to log raw input
1212 instead of the processed one. A -r flag was added to the
1220 instead of the processed one. A -r flag was added to the
1213 %logstart magic used for controlling logging.
1221 %logstart magic used for controlling logging.
1214
1222
1215 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1223 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1216
1224
1217 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1225 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1218 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1226 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1219 recognize the option. After a bug report by Will Maier. This
1227 recognize the option. After a bug report by Will Maier. This
1220 closes #64 (will do it after confirmation from W. Maier).
1228 closes #64 (will do it after confirmation from W. Maier).
1221
1229
1222 * IPython/irunner.py: New module to run scripts as if manually
1230 * IPython/irunner.py: New module to run scripts as if manually
1223 typed into an interactive environment, based on pexpect. After a
1231 typed into an interactive environment, based on pexpect. After a
1224 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1232 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1225 ipython-user list. Simple unittests in the tests/ directory.
1233 ipython-user list. Simple unittests in the tests/ directory.
1226
1234
1227 * tools/release: add Will Maier, OpenBSD port maintainer, to
1235 * tools/release: add Will Maier, OpenBSD port maintainer, to
1228 recepients list. We are now officially part of the OpenBSD ports:
1236 recepients list. We are now officially part of the OpenBSD ports:
1229 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1237 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1230 work.
1238 work.
1231
1239
1232 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1240 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1233
1241
1234 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1242 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1235 so that it doesn't break tkinter apps.
1243 so that it doesn't break tkinter apps.
1236
1244
1237 * IPython/iplib.py (_prefilter): fix bug where aliases would
1245 * IPython/iplib.py (_prefilter): fix bug where aliases would
1238 shadow variables when autocall was fully off. Reported by SAGE
1246 shadow variables when autocall was fully off. Reported by SAGE
1239 author William Stein.
1247 author William Stein.
1240
1248
1241 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1249 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1242 at what detail level strings are computed when foo? is requested.
1250 at what detail level strings are computed when foo? is requested.
1243 This allows users to ask for example that the string form of an
1251 This allows users to ask for example that the string form of an
1244 object is only computed when foo?? is called, or even never, by
1252 object is only computed when foo?? is called, or even never, by
1245 setting the object_info_string_level >= 2 in the configuration
1253 setting the object_info_string_level >= 2 in the configuration
1246 file. This new option has been added and documented. After a
1254 file. This new option has been added and documented. After a
1247 request by SAGE to be able to control the printing of very large
1255 request by SAGE to be able to control the printing of very large
1248 objects more easily.
1256 objects more easily.
1249
1257
1250 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1258 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1251
1259
1252 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1260 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1253 from sys.argv, to be 100% consistent with how Python itself works
1261 from sys.argv, to be 100% consistent with how Python itself works
1254 (as seen for example with python -i file.py). After a bug report
1262 (as seen for example with python -i file.py). After a bug report
1255 by Jeffrey Collins.
1263 by Jeffrey Collins.
1256
1264
1257 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1265 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1258 nasty bug which was preventing custom namespaces with -pylab,
1266 nasty bug which was preventing custom namespaces with -pylab,
1259 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1267 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1260 compatibility (long gone from mpl).
1268 compatibility (long gone from mpl).
1261
1269
1262 * IPython/ipapi.py (make_session): name change: create->make. We
1270 * IPython/ipapi.py (make_session): name change: create->make. We
1263 use make in other places (ipmaker,...), it's shorter and easier to
1271 use make in other places (ipmaker,...), it's shorter and easier to
1264 type and say, etc. I'm trying to clean things before 0.7.2 so
1272 type and say, etc. I'm trying to clean things before 0.7.2 so
1265 that I can keep things stable wrt to ipapi in the chainsaw branch.
1273 that I can keep things stable wrt to ipapi in the chainsaw branch.
1266
1274
1267 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1275 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1268 python-mode recognizes our debugger mode. Add support for
1276 python-mode recognizes our debugger mode. Add support for
1269 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1277 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1270 <m.liu.jin-AT-gmail.com> originally written by
1278 <m.liu.jin-AT-gmail.com> originally written by
1271 doxgen-AT-newsmth.net (with minor modifications for xemacs
1279 doxgen-AT-newsmth.net (with minor modifications for xemacs
1272 compatibility)
1280 compatibility)
1273
1281
1274 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1282 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1275 tracebacks when walking the stack so that the stack tracking system
1283 tracebacks when walking the stack so that the stack tracking system
1276 in emacs' python-mode can identify the frames correctly.
1284 in emacs' python-mode can identify the frames correctly.
1277
1285
1278 * IPython/ipmaker.py (make_IPython): make the internal (and
1286 * IPython/ipmaker.py (make_IPython): make the internal (and
1279 default config) autoedit_syntax value false by default. Too many
1287 default config) autoedit_syntax value false by default. Too many
1280 users have complained to me (both on and off-list) about problems
1288 users have complained to me (both on and off-list) about problems
1281 with this option being on by default, so I'm making it default to
1289 with this option being on by default, so I'm making it default to
1282 off. It can still be enabled by anyone via the usual mechanisms.
1290 off. It can still be enabled by anyone via the usual mechanisms.
1283
1291
1284 * IPython/completer.py (Completer.attr_matches): add support for
1292 * IPython/completer.py (Completer.attr_matches): add support for
1285 PyCrust-style _getAttributeNames magic method. Patch contributed
1293 PyCrust-style _getAttributeNames magic method. Patch contributed
1286 by <mscott-AT-goldenspud.com>. Closes #50.
1294 by <mscott-AT-goldenspud.com>. Closes #50.
1287
1295
1288 * IPython/iplib.py (InteractiveShell.__init__): remove the
1296 * IPython/iplib.py (InteractiveShell.__init__): remove the
1289 deletion of exit/quit from __builtin__, which can break
1297 deletion of exit/quit from __builtin__, which can break
1290 third-party tools like the Zope debugging console. The
1298 third-party tools like the Zope debugging console. The
1291 %exit/%quit magics remain. In general, it's probably a good idea
1299 %exit/%quit magics remain. In general, it's probably a good idea
1292 not to delete anything from __builtin__, since we never know what
1300 not to delete anything from __builtin__, since we never know what
1293 that will break. In any case, python now (for 2.5) will support
1301 that will break. In any case, python now (for 2.5) will support
1294 'real' exit/quit, so this issue is moot. Closes #55.
1302 'real' exit/quit, so this issue is moot. Closes #55.
1295
1303
1296 * IPython/genutils.py (with_obj): rename the 'with' function to
1304 * IPython/genutils.py (with_obj): rename the 'with' function to
1297 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1305 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1298 becomes a language keyword. Closes #53.
1306 becomes a language keyword. Closes #53.
1299
1307
1300 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1308 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1301 __file__ attribute to this so it fools more things into thinking
1309 __file__ attribute to this so it fools more things into thinking
1302 it is a real module. Closes #59.
1310 it is a real module. Closes #59.
1303
1311
1304 * IPython/Magic.py (magic_edit): add -n option to open the editor
1312 * IPython/Magic.py (magic_edit): add -n option to open the editor
1305 at a specific line number. After a patch by Stefan van der Walt.
1313 at a specific line number. After a patch by Stefan van der Walt.
1306
1314
1307 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1315 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1308
1316
1309 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1317 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1310 reason the file could not be opened. After automatic crash
1318 reason the file could not be opened. After automatic crash
1311 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1319 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1312 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1320 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1313 (_should_recompile): Don't fire editor if using %bg, since there
1321 (_should_recompile): Don't fire editor if using %bg, since there
1314 is no file in the first place. From the same report as above.
1322 is no file in the first place. From the same report as above.
1315 (raw_input): protect against faulty third-party prefilters. After
1323 (raw_input): protect against faulty third-party prefilters. After
1316 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1324 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1317 while running under SAGE.
1325 while running under SAGE.
1318
1326
1319 2006-05-23 Ville Vainio <vivainio@gmail.com>
1327 2006-05-23 Ville Vainio <vivainio@gmail.com>
1320
1328
1321 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1329 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1322 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1330 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1323 now returns None (again), unless dummy is specifically allowed by
1331 now returns None (again), unless dummy is specifically allowed by
1324 ipapi.get(allow_dummy=True).
1332 ipapi.get(allow_dummy=True).
1325
1333
1326 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1334 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1327
1335
1328 * IPython: remove all 2.2-compatibility objects and hacks from
1336 * IPython: remove all 2.2-compatibility objects and hacks from
1329 everywhere, since we only support 2.3 at this point. Docs
1337 everywhere, since we only support 2.3 at this point. Docs
1330 updated.
1338 updated.
1331
1339
1332 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1340 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1333 Anything requiring extra validation can be turned into a Python
1341 Anything requiring extra validation can be turned into a Python
1334 property in the future. I used a property for the db one b/c
1342 property in the future. I used a property for the db one b/c
1335 there was a nasty circularity problem with the initialization
1343 there was a nasty circularity problem with the initialization
1336 order, which right now I don't have time to clean up.
1344 order, which right now I don't have time to clean up.
1337
1345
1338 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1346 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1339 another locking bug reported by Jorgen. I'm not 100% sure though,
1347 another locking bug reported by Jorgen. I'm not 100% sure though,
1340 so more testing is needed...
1348 so more testing is needed...
1341
1349
1342 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1350 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1343
1351
1344 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1352 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1345 local variables from any routine in user code (typically executed
1353 local variables from any routine in user code (typically executed
1346 with %run) directly into the interactive namespace. Very useful
1354 with %run) directly into the interactive namespace. Very useful
1347 when doing complex debugging.
1355 when doing complex debugging.
1348 (IPythonNotRunning): Changed the default None object to a dummy
1356 (IPythonNotRunning): Changed the default None object to a dummy
1349 whose attributes can be queried as well as called without
1357 whose attributes can be queried as well as called without
1350 exploding, to ease writing code which works transparently both in
1358 exploding, to ease writing code which works transparently both in
1351 and out of ipython and uses some of this API.
1359 and out of ipython and uses some of this API.
1352
1360
1353 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1361 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1354
1362
1355 * IPython/hooks.py (result_display): Fix the fact that our display
1363 * IPython/hooks.py (result_display): Fix the fact that our display
1356 hook was using str() instead of repr(), as the default python
1364 hook was using str() instead of repr(), as the default python
1357 console does. This had gone unnoticed b/c it only happened if
1365 console does. This had gone unnoticed b/c it only happened if
1358 %Pprint was off, but the inconsistency was there.
1366 %Pprint was off, but the inconsistency was there.
1359
1367
1360 2006-05-15 Ville Vainio <vivainio@gmail.com>
1368 2006-05-15 Ville Vainio <vivainio@gmail.com>
1361
1369
1362 * Oinspect.py: Only show docstring for nonexisting/binary files
1370 * Oinspect.py: Only show docstring for nonexisting/binary files
1363 when doing object??, closing ticket #62
1371 when doing object??, closing ticket #62
1364
1372
1365 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1373 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1366
1374
1367 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1375 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1368 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1376 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1369 was being released in a routine which hadn't checked if it had
1377 was being released in a routine which hadn't checked if it had
1370 been the one to acquire it.
1378 been the one to acquire it.
1371
1379
1372 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1380 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1373
1381
1374 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1382 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1375
1383
1376 2006-04-11 Ville Vainio <vivainio@gmail.com>
1384 2006-04-11 Ville Vainio <vivainio@gmail.com>
1377
1385
1378 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1386 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1379 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1387 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1380 prefilters, allowing stuff like magics and aliases in the file.
1388 prefilters, allowing stuff like magics and aliases in the file.
1381
1389
1382 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1390 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1383 added. Supported now are "%clear in" and "%clear out" (clear input and
1391 added. Supported now are "%clear in" and "%clear out" (clear input and
1384 output history, respectively). Also fixed CachedOutput.flush to
1392 output history, respectively). Also fixed CachedOutput.flush to
1385 properly flush the output cache.
1393 properly flush the output cache.
1386
1394
1387 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1395 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1388 half-success (and fail explicitly).
1396 half-success (and fail explicitly).
1389
1397
1390 2006-03-28 Ville Vainio <vivainio@gmail.com>
1398 2006-03-28 Ville Vainio <vivainio@gmail.com>
1391
1399
1392 * iplib.py: Fix quoting of aliases so that only argless ones
1400 * iplib.py: Fix quoting of aliases so that only argless ones
1393 are quoted
1401 are quoted
1394
1402
1395 2006-03-28 Ville Vainio <vivainio@gmail.com>
1403 2006-03-28 Ville Vainio <vivainio@gmail.com>
1396
1404
1397 * iplib.py: Quote aliases with spaces in the name.
1405 * iplib.py: Quote aliases with spaces in the name.
1398 "c:\program files\blah\bin" is now legal alias target.
1406 "c:\program files\blah\bin" is now legal alias target.
1399
1407
1400 * ext_rehashdir.py: Space no longer allowed as arg
1408 * ext_rehashdir.py: Space no longer allowed as arg
1401 separator, since space is legal in path names.
1409 separator, since space is legal in path names.
1402
1410
1403 2006-03-16 Ville Vainio <vivainio@gmail.com>
1411 2006-03-16 Ville Vainio <vivainio@gmail.com>
1404
1412
1405 * upgrade_dir.py: Take path.py from Extensions, correcting
1413 * upgrade_dir.py: Take path.py from Extensions, correcting
1406 %upgrade magic
1414 %upgrade magic
1407
1415
1408 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1416 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1409
1417
1410 * hooks.py: Only enclose editor binary in quotes if legal and
1418 * hooks.py: Only enclose editor binary in quotes if legal and
1411 necessary (space in the name, and is an existing file). Fixes a bug
1419 necessary (space in the name, and is an existing file). Fixes a bug
1412 reported by Zachary Pincus.
1420 reported by Zachary Pincus.
1413
1421
1414 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1422 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1415
1423
1416 * Manual: thanks to a tip on proper color handling for Emacs, by
1424 * Manual: thanks to a tip on proper color handling for Emacs, by
1417 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1425 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1418
1426
1419 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1427 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1420 by applying the provided patch. Thanks to Liu Jin
1428 by applying the provided patch. Thanks to Liu Jin
1421 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1429 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1422 XEmacs/Linux, I'm trusting the submitter that it actually helps
1430 XEmacs/Linux, I'm trusting the submitter that it actually helps
1423 under win32/GNU Emacs. Will revisit if any problems are reported.
1431 under win32/GNU Emacs. Will revisit if any problems are reported.
1424
1432
1425 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1433 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1426
1434
1427 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1435 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1428 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1436 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1429
1437
1430 2006-03-12 Ville Vainio <vivainio@gmail.com>
1438 2006-03-12 Ville Vainio <vivainio@gmail.com>
1431
1439
1432 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1440 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1433 Torsten Marek.
1441 Torsten Marek.
1434
1442
1435 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1443 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1436
1444
1437 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1445 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1438 line ranges works again.
1446 line ranges works again.
1439
1447
1440 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1448 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1441
1449
1442 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1450 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1443 and friends, after a discussion with Zach Pincus on ipython-user.
1451 and friends, after a discussion with Zach Pincus on ipython-user.
1444 I'm not 100% sure, but after thinking about it quite a bit, it may
1452 I'm not 100% sure, but after thinking about it quite a bit, it may
1445 be OK. Testing with the multithreaded shells didn't reveal any
1453 be OK. Testing with the multithreaded shells didn't reveal any
1446 problems, but let's keep an eye out.
1454 problems, but let's keep an eye out.
1447
1455
1448 In the process, I fixed a few things which were calling
1456 In the process, I fixed a few things which were calling
1449 self.InteractiveTB() directly (like safe_execfile), which is a
1457 self.InteractiveTB() directly (like safe_execfile), which is a
1450 mistake: ALL exception reporting should be done by calling
1458 mistake: ALL exception reporting should be done by calling
1451 self.showtraceback(), which handles state and tab-completion and
1459 self.showtraceback(), which handles state and tab-completion and
1452 more.
1460 more.
1453
1461
1454 2006-03-01 Ville Vainio <vivainio@gmail.com>
1462 2006-03-01 Ville Vainio <vivainio@gmail.com>
1455
1463
1456 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1464 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1457 To use, do "from ipipe import *".
1465 To use, do "from ipipe import *".
1458
1466
1459 2006-02-24 Ville Vainio <vivainio@gmail.com>
1467 2006-02-24 Ville Vainio <vivainio@gmail.com>
1460
1468
1461 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1469 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1462 "cleanly" and safely than the older upgrade mechanism.
1470 "cleanly" and safely than the older upgrade mechanism.
1463
1471
1464 2006-02-21 Ville Vainio <vivainio@gmail.com>
1472 2006-02-21 Ville Vainio <vivainio@gmail.com>
1465
1473
1466 * Magic.py: %save works again.
1474 * Magic.py: %save works again.
1467
1475
1468 2006-02-15 Ville Vainio <vivainio@gmail.com>
1476 2006-02-15 Ville Vainio <vivainio@gmail.com>
1469
1477
1470 * Magic.py: %Pprint works again
1478 * Magic.py: %Pprint works again
1471
1479
1472 * Extensions/ipy_sane_defaults.py: Provide everything provided
1480 * Extensions/ipy_sane_defaults.py: Provide everything provided
1473 in default ipythonrc, to make it possible to have a completely empty
1481 in default ipythonrc, to make it possible to have a completely empty
1474 ipythonrc (and thus completely rc-file free configuration)
1482 ipythonrc (and thus completely rc-file free configuration)
1475
1483
1476 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1484 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1477
1485
1478 * IPython/hooks.py (editor): quote the call to the editor command,
1486 * IPython/hooks.py (editor): quote the call to the editor command,
1479 to allow commands with spaces in them. Problem noted by watching
1487 to allow commands with spaces in them. Problem noted by watching
1480 Ian Oswald's video about textpad under win32 at
1488 Ian Oswald's video about textpad under win32 at
1481 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1489 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1482
1490
1483 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1491 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1484 describing magics (we haven't used @ for a loong time).
1492 describing magics (we haven't used @ for a loong time).
1485
1493
1486 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1494 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1487 contributed by marienz to close
1495 contributed by marienz to close
1488 http://www.scipy.net/roundup/ipython/issue53.
1496 http://www.scipy.net/roundup/ipython/issue53.
1489
1497
1490 2006-02-10 Ville Vainio <vivainio@gmail.com>
1498 2006-02-10 Ville Vainio <vivainio@gmail.com>
1491
1499
1492 * genutils.py: getoutput now works in win32 too
1500 * genutils.py: getoutput now works in win32 too
1493
1501
1494 * completer.py: alias and magic completion only invoked
1502 * completer.py: alias and magic completion only invoked
1495 at the first "item" in the line, to avoid "cd %store"
1503 at the first "item" in the line, to avoid "cd %store"
1496 nonsense.
1504 nonsense.
1497
1505
1498 2006-02-09 Ville Vainio <vivainio@gmail.com>
1506 2006-02-09 Ville Vainio <vivainio@gmail.com>
1499
1507
1500 * test/*: Added a unit testing framework (finally).
1508 * test/*: Added a unit testing framework (finally).
1501 '%run runtests.py' to run test_*.
1509 '%run runtests.py' to run test_*.
1502
1510
1503 * ipapi.py: Exposed runlines and set_custom_exc
1511 * ipapi.py: Exposed runlines and set_custom_exc
1504
1512
1505 2006-02-07 Ville Vainio <vivainio@gmail.com>
1513 2006-02-07 Ville Vainio <vivainio@gmail.com>
1506
1514
1507 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1515 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1508 instead use "f(1 2)" as before.
1516 instead use "f(1 2)" as before.
1509
1517
1510 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1518 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1511
1519
1512 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1520 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1513 facilities, for demos processed by the IPython input filter
1521 facilities, for demos processed by the IPython input filter
1514 (IPythonDemo), and for running a script one-line-at-a-time as a
1522 (IPythonDemo), and for running a script one-line-at-a-time as a
1515 demo, both for pure Python (LineDemo) and for IPython-processed
1523 demo, both for pure Python (LineDemo) and for IPython-processed
1516 input (IPythonLineDemo). After a request by Dave Kohel, from the
1524 input (IPythonLineDemo). After a request by Dave Kohel, from the
1517 SAGE team.
1525 SAGE team.
1518 (Demo.edit): added an edit() method to the demo objects, to edit
1526 (Demo.edit): added an edit() method to the demo objects, to edit
1519 the in-memory copy of the last executed block.
1527 the in-memory copy of the last executed block.
1520
1528
1521 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1529 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1522 processing to %edit, %macro and %save. These commands can now be
1530 processing to %edit, %macro and %save. These commands can now be
1523 invoked on the unprocessed input as it was typed by the user
1531 invoked on the unprocessed input as it was typed by the user
1524 (without any prefilters applied). After requests by the SAGE team
1532 (without any prefilters applied). After requests by the SAGE team
1525 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1533 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1526
1534
1527 2006-02-01 Ville Vainio <vivainio@gmail.com>
1535 2006-02-01 Ville Vainio <vivainio@gmail.com>
1528
1536
1529 * setup.py, eggsetup.py: easy_install ipython==dev works
1537 * setup.py, eggsetup.py: easy_install ipython==dev works
1530 correctly now (on Linux)
1538 correctly now (on Linux)
1531
1539
1532 * ipy_user_conf,ipmaker: user config changes, removed spurious
1540 * ipy_user_conf,ipmaker: user config changes, removed spurious
1533 warnings
1541 warnings
1534
1542
1535 * iplib: if rc.banner is string, use it as is.
1543 * iplib: if rc.banner is string, use it as is.
1536
1544
1537 * Magic: %pycat accepts a string argument and pages it's contents.
1545 * Magic: %pycat accepts a string argument and pages it's contents.
1538
1546
1539
1547
1540 2006-01-30 Ville Vainio <vivainio@gmail.com>
1548 2006-01-30 Ville Vainio <vivainio@gmail.com>
1541
1549
1542 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1550 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1543 Now %store and bookmarks work through PickleShare, meaning that
1551 Now %store and bookmarks work through PickleShare, meaning that
1544 concurrent access is possible and all ipython sessions see the
1552 concurrent access is possible and all ipython sessions see the
1545 same database situation all the time, instead of snapshot of
1553 same database situation all the time, instead of snapshot of
1546 the situation when the session was started. Hence, %bookmark
1554 the situation when the session was started. Hence, %bookmark
1547 results are immediately accessible from othes sessions. The database
1555 results are immediately accessible from othes sessions. The database
1548 is also available for use by user extensions. See:
1556 is also available for use by user extensions. See:
1549 http://www.python.org/pypi/pickleshare
1557 http://www.python.org/pypi/pickleshare
1550
1558
1551 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1559 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1552
1560
1553 * aliases can now be %store'd
1561 * aliases can now be %store'd
1554
1562
1555 * path.py moved to Extensions so that pickleshare does not need
1563 * path.py moved to Extensions so that pickleshare does not need
1556 IPython-specific import. Extensions added to pythonpath right
1564 IPython-specific import. Extensions added to pythonpath right
1557 at __init__.
1565 at __init__.
1558
1566
1559 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1567 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1560 called with _ip.system and the pre-transformed command string.
1568 called with _ip.system and the pre-transformed command string.
1561
1569
1562 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1570 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1563
1571
1564 * IPython/iplib.py (interact): Fix that we were not catching
1572 * IPython/iplib.py (interact): Fix that we were not catching
1565 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1573 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1566 logic here had to change, but it's fixed now.
1574 logic here had to change, but it's fixed now.
1567
1575
1568 2006-01-29 Ville Vainio <vivainio@gmail.com>
1576 2006-01-29 Ville Vainio <vivainio@gmail.com>
1569
1577
1570 * iplib.py: Try to import pyreadline on Windows.
1578 * iplib.py: Try to import pyreadline on Windows.
1571
1579
1572 2006-01-27 Ville Vainio <vivainio@gmail.com>
1580 2006-01-27 Ville Vainio <vivainio@gmail.com>
1573
1581
1574 * iplib.py: Expose ipapi as _ip in builtin namespace.
1582 * iplib.py: Expose ipapi as _ip in builtin namespace.
1575 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1583 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1576 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1584 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1577 syntax now produce _ip.* variant of the commands.
1585 syntax now produce _ip.* variant of the commands.
1578
1586
1579 * "_ip.options().autoedit_syntax = 2" automatically throws
1587 * "_ip.options().autoedit_syntax = 2" automatically throws
1580 user to editor for syntax error correction without prompting.
1588 user to editor for syntax error correction without prompting.
1581
1589
1582 2006-01-27 Ville Vainio <vivainio@gmail.com>
1590 2006-01-27 Ville Vainio <vivainio@gmail.com>
1583
1591
1584 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1592 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1585 'ipython' at argv[0]) executed through command line.
1593 'ipython' at argv[0]) executed through command line.
1586 NOTE: this DEPRECATES calling ipython with multiple scripts
1594 NOTE: this DEPRECATES calling ipython with multiple scripts
1587 ("ipython a.py b.py c.py")
1595 ("ipython a.py b.py c.py")
1588
1596
1589 * iplib.py, hooks.py: Added configurable input prefilter,
1597 * iplib.py, hooks.py: Added configurable input prefilter,
1590 named 'input_prefilter'. See ext_rescapture.py for example
1598 named 'input_prefilter'. See ext_rescapture.py for example
1591 usage.
1599 usage.
1592
1600
1593 * ext_rescapture.py, Magic.py: Better system command output capture
1601 * ext_rescapture.py, Magic.py: Better system command output capture
1594 through 'var = !ls' (deprecates user-visible %sc). Same notation
1602 through 'var = !ls' (deprecates user-visible %sc). Same notation
1595 applies for magics, 'var = %alias' assigns alias list to var.
1603 applies for magics, 'var = %alias' assigns alias list to var.
1596
1604
1597 * ipapi.py: added meta() for accessing extension-usable data store.
1605 * ipapi.py: added meta() for accessing extension-usable data store.
1598
1606
1599 * iplib.py: added InteractiveShell.getapi(). New magics should be
1607 * iplib.py: added InteractiveShell.getapi(). New magics should be
1600 written doing self.getapi() instead of using the shell directly.
1608 written doing self.getapi() instead of using the shell directly.
1601
1609
1602 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1610 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1603 %store foo >> ~/myfoo.txt to store variables to files (in clean
1611 %store foo >> ~/myfoo.txt to store variables to files (in clean
1604 textual form, not a restorable pickle).
1612 textual form, not a restorable pickle).
1605
1613
1606 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1614 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1607
1615
1608 * usage.py, Magic.py: added %quickref
1616 * usage.py, Magic.py: added %quickref
1609
1617
1610 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1618 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1611
1619
1612 * GetoptErrors when invoking magics etc. with wrong args
1620 * GetoptErrors when invoking magics etc. with wrong args
1613 are now more helpful:
1621 are now more helpful:
1614 GetoptError: option -l not recognized (allowed: "qb" )
1622 GetoptError: option -l not recognized (allowed: "qb" )
1615
1623
1616 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1624 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1617
1625
1618 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1626 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1619 computationally intensive blocks don't appear to stall the demo.
1627 computationally intensive blocks don't appear to stall the demo.
1620
1628
1621 2006-01-24 Ville Vainio <vivainio@gmail.com>
1629 2006-01-24 Ville Vainio <vivainio@gmail.com>
1622
1630
1623 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1631 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1624 value to manipulate resulting history entry.
1632 value to manipulate resulting history entry.
1625
1633
1626 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1634 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1627 to instance methods of IPApi class, to make extending an embedded
1635 to instance methods of IPApi class, to make extending an embedded
1628 IPython feasible. See ext_rehashdir.py for example usage.
1636 IPython feasible. See ext_rehashdir.py for example usage.
1629
1637
1630 * Merged 1071-1076 from branches/0.7.1
1638 * Merged 1071-1076 from branches/0.7.1
1631
1639
1632
1640
1633 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1641 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1634
1642
1635 * tools/release (daystamp): Fix build tools to use the new
1643 * tools/release (daystamp): Fix build tools to use the new
1636 eggsetup.py script to build lightweight eggs.
1644 eggsetup.py script to build lightweight eggs.
1637
1645
1638 * Applied changesets 1062 and 1064 before 0.7.1 release.
1646 * Applied changesets 1062 and 1064 before 0.7.1 release.
1639
1647
1640 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1648 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1641 see the raw input history (without conversions like %ls ->
1649 see the raw input history (without conversions like %ls ->
1642 ipmagic("ls")). After a request from W. Stein, SAGE
1650 ipmagic("ls")). After a request from W. Stein, SAGE
1643 (http://modular.ucsd.edu/sage) developer. This information is
1651 (http://modular.ucsd.edu/sage) developer. This information is
1644 stored in the input_hist_raw attribute of the IPython instance, so
1652 stored in the input_hist_raw attribute of the IPython instance, so
1645 developers can access it if needed (it's an InputList instance).
1653 developers can access it if needed (it's an InputList instance).
1646
1654
1647 * Versionstring = 0.7.2.svn
1655 * Versionstring = 0.7.2.svn
1648
1656
1649 * eggsetup.py: A separate script for constructing eggs, creates
1657 * eggsetup.py: A separate script for constructing eggs, creates
1650 proper launch scripts even on Windows (an .exe file in
1658 proper launch scripts even on Windows (an .exe file in
1651 \python24\scripts).
1659 \python24\scripts).
1652
1660
1653 * ipapi.py: launch_new_instance, launch entry point needed for the
1661 * ipapi.py: launch_new_instance, launch entry point needed for the
1654 egg.
1662 egg.
1655
1663
1656 2006-01-23 Ville Vainio <vivainio@gmail.com>
1664 2006-01-23 Ville Vainio <vivainio@gmail.com>
1657
1665
1658 * Added %cpaste magic for pasting python code
1666 * Added %cpaste magic for pasting python code
1659
1667
1660 2006-01-22 Ville Vainio <vivainio@gmail.com>
1668 2006-01-22 Ville Vainio <vivainio@gmail.com>
1661
1669
1662 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1670 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1663
1671
1664 * Versionstring = 0.7.2.svn
1672 * Versionstring = 0.7.2.svn
1665
1673
1666 * eggsetup.py: A separate script for constructing eggs, creates
1674 * eggsetup.py: A separate script for constructing eggs, creates
1667 proper launch scripts even on Windows (an .exe file in
1675 proper launch scripts even on Windows (an .exe file in
1668 \python24\scripts).
1676 \python24\scripts).
1669
1677
1670 * ipapi.py: launch_new_instance, launch entry point needed for the
1678 * ipapi.py: launch_new_instance, launch entry point needed for the
1671 egg.
1679 egg.
1672
1680
1673 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1681 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1674
1682
1675 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1683 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1676 %pfile foo would print the file for foo even if it was a binary.
1684 %pfile foo would print the file for foo even if it was a binary.
1677 Now, extensions '.so' and '.dll' are skipped.
1685 Now, extensions '.so' and '.dll' are skipped.
1678
1686
1679 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1687 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1680 bug, where macros would fail in all threaded modes. I'm not 100%
1688 bug, where macros would fail in all threaded modes. I'm not 100%
1681 sure, so I'm going to put out an rc instead of making a release
1689 sure, so I'm going to put out an rc instead of making a release
1682 today, and wait for feedback for at least a few days.
1690 today, and wait for feedback for at least a few days.
1683
1691
1684 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1692 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1685 it...) the handling of pasting external code with autoindent on.
1693 it...) the handling of pasting external code with autoindent on.
1686 To get out of a multiline input, the rule will appear for most
1694 To get out of a multiline input, the rule will appear for most
1687 users unchanged: two blank lines or change the indent level
1695 users unchanged: two blank lines or change the indent level
1688 proposed by IPython. But there is a twist now: you can
1696 proposed by IPython. But there is a twist now: you can
1689 add/subtract only *one or two spaces*. If you add/subtract three
1697 add/subtract only *one or two spaces*. If you add/subtract three
1690 or more (unless you completely delete the line), IPython will
1698 or more (unless you completely delete the line), IPython will
1691 accept that line, and you'll need to enter a second one of pure
1699 accept that line, and you'll need to enter a second one of pure
1692 whitespace. I know it sounds complicated, but I can't find a
1700 whitespace. I know it sounds complicated, but I can't find a
1693 different solution that covers all the cases, with the right
1701 different solution that covers all the cases, with the right
1694 heuristics. Hopefully in actual use, nobody will really notice
1702 heuristics. Hopefully in actual use, nobody will really notice
1695 all these strange rules and things will 'just work'.
1703 all these strange rules and things will 'just work'.
1696
1704
1697 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1705 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1698
1706
1699 * IPython/iplib.py (interact): catch exceptions which can be
1707 * IPython/iplib.py (interact): catch exceptions which can be
1700 triggered asynchronously by signal handlers. Thanks to an
1708 triggered asynchronously by signal handlers. Thanks to an
1701 automatic crash report, submitted by Colin Kingsley
1709 automatic crash report, submitted by Colin Kingsley
1702 <tercel-AT-gentoo.org>.
1710 <tercel-AT-gentoo.org>.
1703
1711
1704 2006-01-20 Ville Vainio <vivainio@gmail.com>
1712 2006-01-20 Ville Vainio <vivainio@gmail.com>
1705
1713
1706 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1714 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1707 (%rehashdir, very useful, try it out) of how to extend ipython
1715 (%rehashdir, very useful, try it out) of how to extend ipython
1708 with new magics. Also added Extensions dir to pythonpath to make
1716 with new magics. Also added Extensions dir to pythonpath to make
1709 importing extensions easy.
1717 importing extensions easy.
1710
1718
1711 * %store now complains when trying to store interactively declared
1719 * %store now complains when trying to store interactively declared
1712 classes / instances of those classes.
1720 classes / instances of those classes.
1713
1721
1714 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1722 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1715 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1723 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1716 if they exist, and ipy_user_conf.py with some defaults is created for
1724 if they exist, and ipy_user_conf.py with some defaults is created for
1717 the user.
1725 the user.
1718
1726
1719 * Startup rehashing done by the config file, not InterpreterExec.
1727 * Startup rehashing done by the config file, not InterpreterExec.
1720 This means system commands are available even without selecting the
1728 This means system commands are available even without selecting the
1721 pysh profile. It's the sensible default after all.
1729 pysh profile. It's the sensible default after all.
1722
1730
1723 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1731 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1724
1732
1725 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1733 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1726 multiline code with autoindent on working. But I am really not
1734 multiline code with autoindent on working. But I am really not
1727 sure, so this needs more testing. Will commit a debug-enabled
1735 sure, so this needs more testing. Will commit a debug-enabled
1728 version for now, while I test it some more, so that Ville and
1736 version for now, while I test it some more, so that Ville and
1729 others may also catch any problems. Also made
1737 others may also catch any problems. Also made
1730 self.indent_current_str() a method, to ensure that there's no
1738 self.indent_current_str() a method, to ensure that there's no
1731 chance of the indent space count and the corresponding string
1739 chance of the indent space count and the corresponding string
1732 falling out of sync. All code needing the string should just call
1740 falling out of sync. All code needing the string should just call
1733 the method.
1741 the method.
1734
1742
1735 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1743 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1736
1744
1737 * IPython/Magic.py (magic_edit): fix check for when users don't
1745 * IPython/Magic.py (magic_edit): fix check for when users don't
1738 save their output files, the try/except was in the wrong section.
1746 save their output files, the try/except was in the wrong section.
1739
1747
1740 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1748 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1741
1749
1742 * IPython/Magic.py (magic_run): fix __file__ global missing from
1750 * IPython/Magic.py (magic_run): fix __file__ global missing from
1743 script's namespace when executed via %run. After a report by
1751 script's namespace when executed via %run. After a report by
1744 Vivian.
1752 Vivian.
1745
1753
1746 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1754 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1747 when using python 2.4. The parent constructor changed in 2.4, and
1755 when using python 2.4. The parent constructor changed in 2.4, and
1748 we need to track it directly (we can't call it, as it messes up
1756 we need to track it directly (we can't call it, as it messes up
1749 readline and tab-completion inside our pdb would stop working).
1757 readline and tab-completion inside our pdb would stop working).
1750 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1758 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1751
1759
1752 2006-01-16 Ville Vainio <vivainio@gmail.com>
1760 2006-01-16 Ville Vainio <vivainio@gmail.com>
1753
1761
1754 * Ipython/magic.py: Reverted back to old %edit functionality
1762 * Ipython/magic.py: Reverted back to old %edit functionality
1755 that returns file contents on exit.
1763 that returns file contents on exit.
1756
1764
1757 * IPython/path.py: Added Jason Orendorff's "path" module to
1765 * IPython/path.py: Added Jason Orendorff's "path" module to
1758 IPython tree, http://www.jorendorff.com/articles/python/path/.
1766 IPython tree, http://www.jorendorff.com/articles/python/path/.
1759 You can get path objects conveniently through %sc, and !!, e.g.:
1767 You can get path objects conveniently through %sc, and !!, e.g.:
1760 sc files=ls
1768 sc files=ls
1761 for p in files.paths: # or files.p
1769 for p in files.paths: # or files.p
1762 print p,p.mtime
1770 print p,p.mtime
1763
1771
1764 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1772 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1765 now work again without considering the exclusion regexp -
1773 now work again without considering the exclusion regexp -
1766 hence, things like ',foo my/path' turn to 'foo("my/path")'
1774 hence, things like ',foo my/path' turn to 'foo("my/path")'
1767 instead of syntax error.
1775 instead of syntax error.
1768
1776
1769
1777
1770 2006-01-14 Ville Vainio <vivainio@gmail.com>
1778 2006-01-14 Ville Vainio <vivainio@gmail.com>
1771
1779
1772 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1780 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1773 ipapi decorators for python 2.4 users, options() provides access to rc
1781 ipapi decorators for python 2.4 users, options() provides access to rc
1774 data.
1782 data.
1775
1783
1776 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1784 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1777 as path separators (even on Linux ;-). Space character after
1785 as path separators (even on Linux ;-). Space character after
1778 backslash (as yielded by tab completer) is still space;
1786 backslash (as yielded by tab completer) is still space;
1779 "%cd long\ name" works as expected.
1787 "%cd long\ name" works as expected.
1780
1788
1781 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1789 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1782 as "chain of command", with priority. API stays the same,
1790 as "chain of command", with priority. API stays the same,
1783 TryNext exception raised by a hook function signals that
1791 TryNext exception raised by a hook function signals that
1784 current hook failed and next hook should try handling it, as
1792 current hook failed and next hook should try handling it, as
1785 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1793 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1786 requested configurable display hook, which is now implemented.
1794 requested configurable display hook, which is now implemented.
1787
1795
1788 2006-01-13 Ville Vainio <vivainio@gmail.com>
1796 2006-01-13 Ville Vainio <vivainio@gmail.com>
1789
1797
1790 * IPython/platutils*.py: platform specific utility functions,
1798 * IPython/platutils*.py: platform specific utility functions,
1791 so far only set_term_title is implemented (change terminal
1799 so far only set_term_title is implemented (change terminal
1792 label in windowing systems). %cd now changes the title to
1800 label in windowing systems). %cd now changes the title to
1793 current dir.
1801 current dir.
1794
1802
1795 * IPython/Release.py: Added myself to "authors" list,
1803 * IPython/Release.py: Added myself to "authors" list,
1796 had to create new files.
1804 had to create new files.
1797
1805
1798 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1806 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1799 shell escape; not a known bug but had potential to be one in the
1807 shell escape; not a known bug but had potential to be one in the
1800 future.
1808 future.
1801
1809
1802 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1810 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1803 extension API for IPython! See the module for usage example. Fix
1811 extension API for IPython! See the module for usage example. Fix
1804 OInspect for docstring-less magic functions.
1812 OInspect for docstring-less magic functions.
1805
1813
1806
1814
1807 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1815 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1808
1816
1809 * IPython/iplib.py (raw_input): temporarily deactivate all
1817 * IPython/iplib.py (raw_input): temporarily deactivate all
1810 attempts at allowing pasting of code with autoindent on. It
1818 attempts at allowing pasting of code with autoindent on. It
1811 introduced bugs (reported by Prabhu) and I can't seem to find a
1819 introduced bugs (reported by Prabhu) and I can't seem to find a
1812 robust combination which works in all cases. Will have to revisit
1820 robust combination which works in all cases. Will have to revisit
1813 later.
1821 later.
1814
1822
1815 * IPython/genutils.py: remove isspace() function. We've dropped
1823 * IPython/genutils.py: remove isspace() function. We've dropped
1816 2.2 compatibility, so it's OK to use the string method.
1824 2.2 compatibility, so it's OK to use the string method.
1817
1825
1818 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1826 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1819
1827
1820 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1828 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1821 matching what NOT to autocall on, to include all python binary
1829 matching what NOT to autocall on, to include all python binary
1822 operators (including things like 'and', 'or', 'is' and 'in').
1830 operators (including things like 'and', 'or', 'is' and 'in').
1823 Prompted by a bug report on 'foo & bar', but I realized we had
1831 Prompted by a bug report on 'foo & bar', but I realized we had
1824 many more potential bug cases with other operators. The regexp is
1832 many more potential bug cases with other operators. The regexp is
1825 self.re_exclude_auto, it's fairly commented.
1833 self.re_exclude_auto, it's fairly commented.
1826
1834
1827 2006-01-12 Ville Vainio <vivainio@gmail.com>
1835 2006-01-12 Ville Vainio <vivainio@gmail.com>
1828
1836
1829 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1837 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1830 Prettified and hardened string/backslash quoting with ipsystem(),
1838 Prettified and hardened string/backslash quoting with ipsystem(),
1831 ipalias() and ipmagic(). Now even \ characters are passed to
1839 ipalias() and ipmagic(). Now even \ characters are passed to
1832 %magics, !shell escapes and aliases exactly as they are in the
1840 %magics, !shell escapes and aliases exactly as they are in the
1833 ipython command line. Should improve backslash experience,
1841 ipython command line. Should improve backslash experience,
1834 particularly in Windows (path delimiter for some commands that
1842 particularly in Windows (path delimiter for some commands that
1835 won't understand '/'), but Unix benefits as well (regexps). %cd
1843 won't understand '/'), but Unix benefits as well (regexps). %cd
1836 magic still doesn't support backslash path delimiters, though. Also
1844 magic still doesn't support backslash path delimiters, though. Also
1837 deleted all pretense of supporting multiline command strings in
1845 deleted all pretense of supporting multiline command strings in
1838 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1846 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1839
1847
1840 * doc/build_doc_instructions.txt added. Documentation on how to
1848 * doc/build_doc_instructions.txt added. Documentation on how to
1841 use doc/update_manual.py, added yesterday. Both files contributed
1849 use doc/update_manual.py, added yesterday. Both files contributed
1842 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1850 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1843 doc/*.sh for deprecation at a later date.
1851 doc/*.sh for deprecation at a later date.
1844
1852
1845 * /ipython.py Added ipython.py to root directory for
1853 * /ipython.py Added ipython.py to root directory for
1846 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1854 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1847 ipython.py) and development convenience (no need to keep doing
1855 ipython.py) and development convenience (no need to keep doing
1848 "setup.py install" between changes).
1856 "setup.py install" between changes).
1849
1857
1850 * Made ! and !! shell escapes work (again) in multiline expressions:
1858 * Made ! and !! shell escapes work (again) in multiline expressions:
1851 if 1:
1859 if 1:
1852 !ls
1860 !ls
1853 !!ls
1861 !!ls
1854
1862
1855 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1863 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1856
1864
1857 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1865 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1858 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1866 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1859 module in case-insensitive installation. Was causing crashes
1867 module in case-insensitive installation. Was causing crashes
1860 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1868 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1861
1869
1862 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1870 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1863 <marienz-AT-gentoo.org>, closes
1871 <marienz-AT-gentoo.org>, closes
1864 http://www.scipy.net/roundup/ipython/issue51.
1872 http://www.scipy.net/roundup/ipython/issue51.
1865
1873
1866 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1874 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1867
1875
1868 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1876 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1869 problem of excessive CPU usage under *nix and keyboard lag under
1877 problem of excessive CPU usage under *nix and keyboard lag under
1870 win32.
1878 win32.
1871
1879
1872 2006-01-10 *** Released version 0.7.0
1880 2006-01-10 *** Released version 0.7.0
1873
1881
1874 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1882 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1875
1883
1876 * IPython/Release.py (revision): tag version number to 0.7.0,
1884 * IPython/Release.py (revision): tag version number to 0.7.0,
1877 ready for release.
1885 ready for release.
1878
1886
1879 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1887 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1880 it informs the user of the name of the temp. file used. This can
1888 it informs the user of the name of the temp. file used. This can
1881 help if you decide later to reuse that same file, so you know
1889 help if you decide later to reuse that same file, so you know
1882 where to copy the info from.
1890 where to copy the info from.
1883
1891
1884 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1892 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1885
1893
1886 * setup_bdist_egg.py: little script to build an egg. Added
1894 * setup_bdist_egg.py: little script to build an egg. Added
1887 support in the release tools as well.
1895 support in the release tools as well.
1888
1896
1889 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1897 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1890
1898
1891 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1899 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1892 version selection (new -wxversion command line and ipythonrc
1900 version selection (new -wxversion command line and ipythonrc
1893 parameter). Patch contributed by Arnd Baecker
1901 parameter). Patch contributed by Arnd Baecker
1894 <arnd.baecker-AT-web.de>.
1902 <arnd.baecker-AT-web.de>.
1895
1903
1896 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1904 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1897 embedded instances, for variables defined at the interactive
1905 embedded instances, for variables defined at the interactive
1898 prompt of the embedded ipython. Reported by Arnd.
1906 prompt of the embedded ipython. Reported by Arnd.
1899
1907
1900 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1908 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1901 it can be used as a (stateful) toggle, or with a direct parameter.
1909 it can be used as a (stateful) toggle, or with a direct parameter.
1902
1910
1903 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1911 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1904 could be triggered in certain cases and cause the traceback
1912 could be triggered in certain cases and cause the traceback
1905 printer not to work.
1913 printer not to work.
1906
1914
1907 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1915 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1908
1916
1909 * IPython/iplib.py (_should_recompile): Small fix, closes
1917 * IPython/iplib.py (_should_recompile): Small fix, closes
1910 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1918 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1911
1919
1912 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1920 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1913
1921
1914 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1922 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1915 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1923 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1916 Moad for help with tracking it down.
1924 Moad for help with tracking it down.
1917
1925
1918 * IPython/iplib.py (handle_auto): fix autocall handling for
1926 * IPython/iplib.py (handle_auto): fix autocall handling for
1919 objects which support BOTH __getitem__ and __call__ (so that f [x]
1927 objects which support BOTH __getitem__ and __call__ (so that f [x]
1920 is left alone, instead of becoming f([x]) automatically).
1928 is left alone, instead of becoming f([x]) automatically).
1921
1929
1922 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1930 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1923 Ville's patch.
1931 Ville's patch.
1924
1932
1925 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1933 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1926
1934
1927 * IPython/iplib.py (handle_auto): changed autocall semantics to
1935 * IPython/iplib.py (handle_auto): changed autocall semantics to
1928 include 'smart' mode, where the autocall transformation is NOT
1936 include 'smart' mode, where the autocall transformation is NOT
1929 applied if there are no arguments on the line. This allows you to
1937 applied if there are no arguments on the line. This allows you to
1930 just type 'foo' if foo is a callable to see its internal form,
1938 just type 'foo' if foo is a callable to see its internal form,
1931 instead of having it called with no arguments (typically a
1939 instead of having it called with no arguments (typically a
1932 mistake). The old 'full' autocall still exists: for that, you
1940 mistake). The old 'full' autocall still exists: for that, you
1933 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1941 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1934
1942
1935 * IPython/completer.py (Completer.attr_matches): add
1943 * IPython/completer.py (Completer.attr_matches): add
1936 tab-completion support for Enthoughts' traits. After a report by
1944 tab-completion support for Enthoughts' traits. After a report by
1937 Arnd and a patch by Prabhu.
1945 Arnd and a patch by Prabhu.
1938
1946
1939 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1947 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1940
1948
1941 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1949 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1942 Schmolck's patch to fix inspect.getinnerframes().
1950 Schmolck's patch to fix inspect.getinnerframes().
1943
1951
1944 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1952 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1945 for embedded instances, regarding handling of namespaces and items
1953 for embedded instances, regarding handling of namespaces and items
1946 added to the __builtin__ one. Multiple embedded instances and
1954 added to the __builtin__ one. Multiple embedded instances and
1947 recursive embeddings should work better now (though I'm not sure
1955 recursive embeddings should work better now (though I'm not sure
1948 I've got all the corner cases fixed, that code is a bit of a brain
1956 I've got all the corner cases fixed, that code is a bit of a brain
1949 twister).
1957 twister).
1950
1958
1951 * IPython/Magic.py (magic_edit): added support to edit in-memory
1959 * IPython/Magic.py (magic_edit): added support to edit in-memory
1952 macros (automatically creates the necessary temp files). %edit
1960 macros (automatically creates the necessary temp files). %edit
1953 also doesn't return the file contents anymore, it's just noise.
1961 also doesn't return the file contents anymore, it's just noise.
1954
1962
1955 * IPython/completer.py (Completer.attr_matches): revert change to
1963 * IPython/completer.py (Completer.attr_matches): revert change to
1956 complete only on attributes listed in __all__. I realized it
1964 complete only on attributes listed in __all__. I realized it
1957 cripples the tab-completion system as a tool for exploring the
1965 cripples the tab-completion system as a tool for exploring the
1958 internals of unknown libraries (it renders any non-__all__
1966 internals of unknown libraries (it renders any non-__all__
1959 attribute off-limits). I got bit by this when trying to see
1967 attribute off-limits). I got bit by this when trying to see
1960 something inside the dis module.
1968 something inside the dis module.
1961
1969
1962 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1970 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1963
1971
1964 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1972 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1965 namespace for users and extension writers to hold data in. This
1973 namespace for users and extension writers to hold data in. This
1966 follows the discussion in
1974 follows the discussion in
1967 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1975 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1968
1976
1969 * IPython/completer.py (IPCompleter.complete): small patch to help
1977 * IPython/completer.py (IPCompleter.complete): small patch to help
1970 tab-completion under Emacs, after a suggestion by John Barnard
1978 tab-completion under Emacs, after a suggestion by John Barnard
1971 <barnarj-AT-ccf.org>.
1979 <barnarj-AT-ccf.org>.
1972
1980
1973 * IPython/Magic.py (Magic.extract_input_slices): added support for
1981 * IPython/Magic.py (Magic.extract_input_slices): added support for
1974 the slice notation in magics to use N-M to represent numbers N...M
1982 the slice notation in magics to use N-M to represent numbers N...M
1975 (closed endpoints). This is used by %macro and %save.
1983 (closed endpoints). This is used by %macro and %save.
1976
1984
1977 * IPython/completer.py (Completer.attr_matches): for modules which
1985 * IPython/completer.py (Completer.attr_matches): for modules which
1978 define __all__, complete only on those. After a patch by Jeffrey
1986 define __all__, complete only on those. After a patch by Jeffrey
1979 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1987 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1980 speed up this routine.
1988 speed up this routine.
1981
1989
1982 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1990 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1983 don't know if this is the end of it, but the behavior now is
1991 don't know if this is the end of it, but the behavior now is
1984 certainly much more correct. Note that coupled with macros,
1992 certainly much more correct. Note that coupled with macros,
1985 slightly surprising (at first) behavior may occur: a macro will in
1993 slightly surprising (at first) behavior may occur: a macro will in
1986 general expand to multiple lines of input, so upon exiting, the
1994 general expand to multiple lines of input, so upon exiting, the
1987 in/out counters will both be bumped by the corresponding amount
1995 in/out counters will both be bumped by the corresponding amount
1988 (as if the macro's contents had been typed interactively). Typing
1996 (as if the macro's contents had been typed interactively). Typing
1989 %hist will reveal the intermediate (silently processed) lines.
1997 %hist will reveal the intermediate (silently processed) lines.
1990
1998
1991 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1999 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1992 pickle to fail (%run was overwriting __main__ and not restoring
2000 pickle to fail (%run was overwriting __main__ and not restoring
1993 it, but pickle relies on __main__ to operate).
2001 it, but pickle relies on __main__ to operate).
1994
2002
1995 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
2003 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1996 using properties, but forgot to make the main InteractiveShell
2004 using properties, but forgot to make the main InteractiveShell
1997 class a new-style class. Properties fail silently, and
2005 class a new-style class. Properties fail silently, and
1998 mysteriously, with old-style class (getters work, but
2006 mysteriously, with old-style class (getters work, but
1999 setters don't do anything).
2007 setters don't do anything).
2000
2008
2001 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
2009 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
2002
2010
2003 * IPython/Magic.py (magic_history): fix history reporting bug (I
2011 * IPython/Magic.py (magic_history): fix history reporting bug (I
2004 know some nasties are still there, I just can't seem to find a
2012 know some nasties are still there, I just can't seem to find a
2005 reproducible test case to track them down; the input history is
2013 reproducible test case to track them down; the input history is
2006 falling out of sync...)
2014 falling out of sync...)
2007
2015
2008 * IPython/iplib.py (handle_shell_escape): fix bug where both
2016 * IPython/iplib.py (handle_shell_escape): fix bug where both
2009 aliases and system accesses where broken for indented code (such
2017 aliases and system accesses where broken for indented code (such
2010 as loops).
2018 as loops).
2011
2019
2012 * IPython/genutils.py (shell): fix small but critical bug for
2020 * IPython/genutils.py (shell): fix small but critical bug for
2013 win32 system access.
2021 win32 system access.
2014
2022
2015 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2023 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
2016
2024
2017 * IPython/iplib.py (showtraceback): remove use of the
2025 * IPython/iplib.py (showtraceback): remove use of the
2018 sys.last_{type/value/traceback} structures, which are non
2026 sys.last_{type/value/traceback} structures, which are non
2019 thread-safe.
2027 thread-safe.
2020 (_prefilter): change control flow to ensure that we NEVER
2028 (_prefilter): change control flow to ensure that we NEVER
2021 introspect objects when autocall is off. This will guarantee that
2029 introspect objects when autocall is off. This will guarantee that
2022 having an input line of the form 'x.y', where access to attribute
2030 having an input line of the form 'x.y', where access to attribute
2023 'y' has side effects, doesn't trigger the side effect TWICE. It
2031 'y' has side effects, doesn't trigger the side effect TWICE. It
2024 is important to note that, with autocall on, these side effects
2032 is important to note that, with autocall on, these side effects
2025 can still happen.
2033 can still happen.
2026 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2034 (ipsystem): new builtin, to complete the ip{magic/alias/system}
2027 trio. IPython offers these three kinds of special calls which are
2035 trio. IPython offers these three kinds of special calls which are
2028 not python code, and it's a good thing to have their call method
2036 not python code, and it's a good thing to have their call method
2029 be accessible as pure python functions (not just special syntax at
2037 be accessible as pure python functions (not just special syntax at
2030 the command line). It gives us a better internal implementation
2038 the command line). It gives us a better internal implementation
2031 structure, as well as exposing these for user scripting more
2039 structure, as well as exposing these for user scripting more
2032 cleanly.
2040 cleanly.
2033
2041
2034 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2042 * IPython/macro.py (Macro.__init__): moved macros to a standalone
2035 file. Now that they'll be more likely to be used with the
2043 file. Now that they'll be more likely to be used with the
2036 persistance system (%store), I want to make sure their module path
2044 persistance system (%store), I want to make sure their module path
2037 doesn't change in the future, so that we don't break things for
2045 doesn't change in the future, so that we don't break things for
2038 users' persisted data.
2046 users' persisted data.
2039
2047
2040 * IPython/iplib.py (autoindent_update): move indentation
2048 * IPython/iplib.py (autoindent_update): move indentation
2041 management into the _text_ processing loop, not the keyboard
2049 management into the _text_ processing loop, not the keyboard
2042 interactive one. This is necessary to correctly process non-typed
2050 interactive one. This is necessary to correctly process non-typed
2043 multiline input (such as macros).
2051 multiline input (such as macros).
2044
2052
2045 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2053 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
2046 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2054 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
2047 which was producing problems in the resulting manual.
2055 which was producing problems in the resulting manual.
2048 (magic_whos): improve reporting of instances (show their class,
2056 (magic_whos): improve reporting of instances (show their class,
2049 instead of simply printing 'instance' which isn't terribly
2057 instead of simply printing 'instance' which isn't terribly
2050 informative).
2058 informative).
2051
2059
2052 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2060 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
2053 (minor mods) to support network shares under win32.
2061 (minor mods) to support network shares under win32.
2054
2062
2055 * IPython/winconsole.py (get_console_size): add new winconsole
2063 * IPython/winconsole.py (get_console_size): add new winconsole
2056 module and fixes to page_dumb() to improve its behavior under
2064 module and fixes to page_dumb() to improve its behavior under
2057 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2065 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
2058
2066
2059 * IPython/Magic.py (Macro): simplified Macro class to just
2067 * IPython/Magic.py (Macro): simplified Macro class to just
2060 subclass list. We've had only 2.2 compatibility for a very long
2068 subclass list. We've had only 2.2 compatibility for a very long
2061 time, yet I was still avoiding subclassing the builtin types. No
2069 time, yet I was still avoiding subclassing the builtin types. No
2062 more (I'm also starting to use properties, though I won't shift to
2070 more (I'm also starting to use properties, though I won't shift to
2063 2.3-specific features quite yet).
2071 2.3-specific features quite yet).
2064 (magic_store): added Ville's patch for lightweight variable
2072 (magic_store): added Ville's patch for lightweight variable
2065 persistence, after a request on the user list by Matt Wilkie
2073 persistence, after a request on the user list by Matt Wilkie
2066 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2074 <maphew-AT-gmail.com>. The new %store magic's docstring has full
2067 details.
2075 details.
2068
2076
2069 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2077 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2070 changed the default logfile name from 'ipython.log' to
2078 changed the default logfile name from 'ipython.log' to
2071 'ipython_log.py'. These logs are real python files, and now that
2079 'ipython_log.py'. These logs are real python files, and now that
2072 we have much better multiline support, people are more likely to
2080 we have much better multiline support, people are more likely to
2073 want to use them as such. Might as well name them correctly.
2081 want to use them as such. Might as well name them correctly.
2074
2082
2075 * IPython/Magic.py: substantial cleanup. While we can't stop
2083 * IPython/Magic.py: substantial cleanup. While we can't stop
2076 using magics as mixins, due to the existing customizations 'out
2084 using magics as mixins, due to the existing customizations 'out
2077 there' which rely on the mixin naming conventions, at least I
2085 there' which rely on the mixin naming conventions, at least I
2078 cleaned out all cross-class name usage. So once we are OK with
2086 cleaned out all cross-class name usage. So once we are OK with
2079 breaking compatibility, the two systems can be separated.
2087 breaking compatibility, the two systems can be separated.
2080
2088
2081 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2089 * IPython/Logger.py: major cleanup. This one is NOT a mixin
2082 anymore, and the class is a fair bit less hideous as well. New
2090 anymore, and the class is a fair bit less hideous as well. New
2083 features were also introduced: timestamping of input, and logging
2091 features were also introduced: timestamping of input, and logging
2084 of output results. These are user-visible with the -t and -o
2092 of output results. These are user-visible with the -t and -o
2085 options to %logstart. Closes
2093 options to %logstart. Closes
2086 http://www.scipy.net/roundup/ipython/issue11 and a request by
2094 http://www.scipy.net/roundup/ipython/issue11 and a request by
2087 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2095 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
2088
2096
2089 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2097 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
2090
2098
2091 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2099 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
2092 better handle backslashes in paths. See the thread 'More Windows
2100 better handle backslashes in paths. See the thread 'More Windows
2093 questions part 2 - \/ characters revisited' on the iypthon user
2101 questions part 2 - \/ characters revisited' on the iypthon user
2094 list:
2102 list:
2095 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2103 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
2096
2104
2097 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2105 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
2098
2106
2099 (InteractiveShell.__init__): change threaded shells to not use the
2107 (InteractiveShell.__init__): change threaded shells to not use the
2100 ipython crash handler. This was causing more problems than not,
2108 ipython crash handler. This was causing more problems than not,
2101 as exceptions in the main thread (GUI code, typically) would
2109 as exceptions in the main thread (GUI code, typically) would
2102 always show up as a 'crash', when they really weren't.
2110 always show up as a 'crash', when they really weren't.
2103
2111
2104 The colors and exception mode commands (%colors/%xmode) have been
2112 The colors and exception mode commands (%colors/%xmode) have been
2105 synchronized to also take this into account, so users can get
2113 synchronized to also take this into account, so users can get
2106 verbose exceptions for their threaded code as well. I also added
2114 verbose exceptions for their threaded code as well. I also added
2107 support for activating pdb inside this exception handler as well,
2115 support for activating pdb inside this exception handler as well,
2108 so now GUI authors can use IPython's enhanced pdb at runtime.
2116 so now GUI authors can use IPython's enhanced pdb at runtime.
2109
2117
2110 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2118 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
2111 true by default, and add it to the shipped ipythonrc file. Since
2119 true by default, and add it to the shipped ipythonrc file. Since
2112 this asks the user before proceeding, I think it's OK to make it
2120 this asks the user before proceeding, I think it's OK to make it
2113 true by default.
2121 true by default.
2114
2122
2115 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2123 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
2116 of the previous special-casing of input in the eval loop. I think
2124 of the previous special-casing of input in the eval loop. I think
2117 this is cleaner, as they really are commands and shouldn't have
2125 this is cleaner, as they really are commands and shouldn't have
2118 a special role in the middle of the core code.
2126 a special role in the middle of the core code.
2119
2127
2120 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2128 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
2121
2129
2122 * IPython/iplib.py (edit_syntax_error): added support for
2130 * IPython/iplib.py (edit_syntax_error): added support for
2123 automatically reopening the editor if the file had a syntax error
2131 automatically reopening the editor if the file had a syntax error
2124 in it. Thanks to scottt who provided the patch at:
2132 in it. Thanks to scottt who provided the patch at:
2125 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2133 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
2126 version committed).
2134 version committed).
2127
2135
2128 * IPython/iplib.py (handle_normal): add suport for multi-line
2136 * IPython/iplib.py (handle_normal): add suport for multi-line
2129 input with emtpy lines. This fixes
2137 input with emtpy lines. This fixes
2130 http://www.scipy.net/roundup/ipython/issue43 and a similar
2138 http://www.scipy.net/roundup/ipython/issue43 and a similar
2131 discussion on the user list.
2139 discussion on the user list.
2132
2140
2133 WARNING: a behavior change is necessarily introduced to support
2141 WARNING: a behavior change is necessarily introduced to support
2134 blank lines: now a single blank line with whitespace does NOT
2142 blank lines: now a single blank line with whitespace does NOT
2135 break the input loop, which means that when autoindent is on, by
2143 break the input loop, which means that when autoindent is on, by
2136 default hitting return on the next (indented) line does NOT exit.
2144 default hitting return on the next (indented) line does NOT exit.
2137
2145
2138 Instead, to exit a multiline input you can either have:
2146 Instead, to exit a multiline input you can either have:
2139
2147
2140 - TWO whitespace lines (just hit return again), or
2148 - TWO whitespace lines (just hit return again), or
2141 - a single whitespace line of a different length than provided
2149 - a single whitespace line of a different length than provided
2142 by the autoindent (add or remove a space).
2150 by the autoindent (add or remove a space).
2143
2151
2144 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2152 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
2145 module to better organize all readline-related functionality.
2153 module to better organize all readline-related functionality.
2146 I've deleted FlexCompleter and put all completion clases here.
2154 I've deleted FlexCompleter and put all completion clases here.
2147
2155
2148 * IPython/iplib.py (raw_input): improve indentation management.
2156 * IPython/iplib.py (raw_input): improve indentation management.
2149 It is now possible to paste indented code with autoindent on, and
2157 It is now possible to paste indented code with autoindent on, and
2150 the code is interpreted correctly (though it still looks bad on
2158 the code is interpreted correctly (though it still looks bad on
2151 screen, due to the line-oriented nature of ipython).
2159 screen, due to the line-oriented nature of ipython).
2152 (MagicCompleter.complete): change behavior so that a TAB key on an
2160 (MagicCompleter.complete): change behavior so that a TAB key on an
2153 otherwise empty line actually inserts a tab, instead of completing
2161 otherwise empty line actually inserts a tab, instead of completing
2154 on the entire global namespace. This makes it easier to use the
2162 on the entire global namespace. This makes it easier to use the
2155 TAB key for indentation. After a request by Hans Meine
2163 TAB key for indentation. After a request by Hans Meine
2156 <hans_meine-AT-gmx.net>
2164 <hans_meine-AT-gmx.net>
2157 (_prefilter): add support so that typing plain 'exit' or 'quit'
2165 (_prefilter): add support so that typing plain 'exit' or 'quit'
2158 does a sensible thing. Originally I tried to deviate as little as
2166 does a sensible thing. Originally I tried to deviate as little as
2159 possible from the default python behavior, but even that one may
2167 possible from the default python behavior, but even that one may
2160 change in this direction (thread on python-dev to that effect).
2168 change in this direction (thread on python-dev to that effect).
2161 Regardless, ipython should do the right thing even if CPython's
2169 Regardless, ipython should do the right thing even if CPython's
2162 '>>>' prompt doesn't.
2170 '>>>' prompt doesn't.
2163 (InteractiveShell): removed subclassing code.InteractiveConsole
2171 (InteractiveShell): removed subclassing code.InteractiveConsole
2164 class. By now we'd overridden just about all of its methods: I've
2172 class. By now we'd overridden just about all of its methods: I've
2165 copied the remaining two over, and now ipython is a standalone
2173 copied the remaining two over, and now ipython is a standalone
2166 class. This will provide a clearer picture for the chainsaw
2174 class. This will provide a clearer picture for the chainsaw
2167 branch refactoring.
2175 branch refactoring.
2168
2176
2169 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2177 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2170
2178
2171 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2179 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2172 failures for objects which break when dir() is called on them.
2180 failures for objects which break when dir() is called on them.
2173
2181
2174 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2182 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2175 distinct local and global namespaces in the completer API. This
2183 distinct local and global namespaces in the completer API. This
2176 change allows us to properly handle completion with distinct
2184 change allows us to properly handle completion with distinct
2177 scopes, including in embedded instances (this had never really
2185 scopes, including in embedded instances (this had never really
2178 worked correctly).
2186 worked correctly).
2179
2187
2180 Note: this introduces a change in the constructor for
2188 Note: this introduces a change in the constructor for
2181 MagicCompleter, as a new global_namespace parameter is now the
2189 MagicCompleter, as a new global_namespace parameter is now the
2182 second argument (the others were bumped one position).
2190 second argument (the others were bumped one position).
2183
2191
2184 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2192 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2185
2193
2186 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2194 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2187 embedded instances (which can be done now thanks to Vivian's
2195 embedded instances (which can be done now thanks to Vivian's
2188 frame-handling fixes for pdb).
2196 frame-handling fixes for pdb).
2189 (InteractiveShell.__init__): Fix namespace handling problem in
2197 (InteractiveShell.__init__): Fix namespace handling problem in
2190 embedded instances. We were overwriting __main__ unconditionally,
2198 embedded instances. We were overwriting __main__ unconditionally,
2191 and this should only be done for 'full' (non-embedded) IPython;
2199 and this should only be done for 'full' (non-embedded) IPython;
2192 embedded instances must respect the caller's __main__. Thanks to
2200 embedded instances must respect the caller's __main__. Thanks to
2193 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2201 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2194
2202
2195 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2203 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2196
2204
2197 * setup.py: added download_url to setup(). This registers the
2205 * setup.py: added download_url to setup(). This registers the
2198 download address at PyPI, which is not only useful to humans
2206 download address at PyPI, which is not only useful to humans
2199 browsing the site, but is also picked up by setuptools (the Eggs
2207 browsing the site, but is also picked up by setuptools (the Eggs
2200 machinery). Thanks to Ville and R. Kern for the info/discussion
2208 machinery). Thanks to Ville and R. Kern for the info/discussion
2201 on this.
2209 on this.
2202
2210
2203 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2211 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2204
2212
2205 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2213 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2206 This brings a lot of nice functionality to the pdb mode, which now
2214 This brings a lot of nice functionality to the pdb mode, which now
2207 has tab-completion, syntax highlighting, and better stack handling
2215 has tab-completion, syntax highlighting, and better stack handling
2208 than before. Many thanks to Vivian De Smedt
2216 than before. Many thanks to Vivian De Smedt
2209 <vivian-AT-vdesmedt.com> for the original patches.
2217 <vivian-AT-vdesmedt.com> for the original patches.
2210
2218
2211 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2219 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2212
2220
2213 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2221 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2214 sequence to consistently accept the banner argument. The
2222 sequence to consistently accept the banner argument. The
2215 inconsistency was tripping SAGE, thanks to Gary Zablackis
2223 inconsistency was tripping SAGE, thanks to Gary Zablackis
2216 <gzabl-AT-yahoo.com> for the report.
2224 <gzabl-AT-yahoo.com> for the report.
2217
2225
2218 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2226 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2219
2227
2220 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2228 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2221 Fix bug where a naked 'alias' call in the ipythonrc file would
2229 Fix bug where a naked 'alias' call in the ipythonrc file would
2222 cause a crash. Bug reported by Jorgen Stenarson.
2230 cause a crash. Bug reported by Jorgen Stenarson.
2223
2231
2224 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2232 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2225
2233
2226 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2234 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2227 startup time.
2235 startup time.
2228
2236
2229 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2237 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2230 instances had introduced a bug with globals in normal code. Now
2238 instances had introduced a bug with globals in normal code. Now
2231 it's working in all cases.
2239 it's working in all cases.
2232
2240
2233 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2241 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2234 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2242 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2235 has been introduced to set the default case sensitivity of the
2243 has been introduced to set the default case sensitivity of the
2236 searches. Users can still select either mode at runtime on a
2244 searches. Users can still select either mode at runtime on a
2237 per-search basis.
2245 per-search basis.
2238
2246
2239 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2247 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2240
2248
2241 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2249 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2242 attributes in wildcard searches for subclasses. Modified version
2250 attributes in wildcard searches for subclasses. Modified version
2243 of a patch by Jorgen.
2251 of a patch by Jorgen.
2244
2252
2245 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2253 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2246
2254
2247 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2255 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2248 embedded instances. I added a user_global_ns attribute to the
2256 embedded instances. I added a user_global_ns attribute to the
2249 InteractiveShell class to handle this.
2257 InteractiveShell class to handle this.
2250
2258
2251 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2259 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2252
2260
2253 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2261 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2254 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2262 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2255 (reported under win32, but may happen also in other platforms).
2263 (reported under win32, but may happen also in other platforms).
2256 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2264 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2257
2265
2258 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2266 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2259
2267
2260 * IPython/Magic.py (magic_psearch): new support for wildcard
2268 * IPython/Magic.py (magic_psearch): new support for wildcard
2261 patterns. Now, typing ?a*b will list all names which begin with a
2269 patterns. Now, typing ?a*b will list all names which begin with a
2262 and end in b, for example. The %psearch magic has full
2270 and end in b, for example. The %psearch magic has full
2263 docstrings. Many thanks to JΓΆrgen Stenarson
2271 docstrings. Many thanks to JΓΆrgen Stenarson
2264 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2272 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2265 implementing this functionality.
2273 implementing this functionality.
2266
2274
2267 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2275 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2268
2276
2269 * Manual: fixed long-standing annoyance of double-dashes (as in
2277 * Manual: fixed long-standing annoyance of double-dashes (as in
2270 --prefix=~, for example) being stripped in the HTML version. This
2278 --prefix=~, for example) being stripped in the HTML version. This
2271 is a latex2html bug, but a workaround was provided. Many thanks
2279 is a latex2html bug, but a workaround was provided. Many thanks
2272 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2280 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2273 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2281 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2274 rolling. This seemingly small issue had tripped a number of users
2282 rolling. This seemingly small issue had tripped a number of users
2275 when first installing, so I'm glad to see it gone.
2283 when first installing, so I'm glad to see it gone.
2276
2284
2277 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2285 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2278
2286
2279 * IPython/Extensions/numeric_formats.py: fix missing import,
2287 * IPython/Extensions/numeric_formats.py: fix missing import,
2280 reported by Stephen Walton.
2288 reported by Stephen Walton.
2281
2289
2282 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2290 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2283
2291
2284 * IPython/demo.py: finish demo module, fully documented now.
2292 * IPython/demo.py: finish demo module, fully documented now.
2285
2293
2286 * IPython/genutils.py (file_read): simple little utility to read a
2294 * IPython/genutils.py (file_read): simple little utility to read a
2287 file and ensure it's closed afterwards.
2295 file and ensure it's closed afterwards.
2288
2296
2289 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2297 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2290
2298
2291 * IPython/demo.py (Demo.__init__): added support for individually
2299 * IPython/demo.py (Demo.__init__): added support for individually
2292 tagging blocks for automatic execution.
2300 tagging blocks for automatic execution.
2293
2301
2294 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2302 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2295 syntax-highlighted python sources, requested by John.
2303 syntax-highlighted python sources, requested by John.
2296
2304
2297 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2305 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2298
2306
2299 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2307 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2300 finishing.
2308 finishing.
2301
2309
2302 * IPython/genutils.py (shlex_split): moved from Magic to here,
2310 * IPython/genutils.py (shlex_split): moved from Magic to here,
2303 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2311 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2304
2312
2305 * IPython/demo.py (Demo.__init__): added support for silent
2313 * IPython/demo.py (Demo.__init__): added support for silent
2306 blocks, improved marks as regexps, docstrings written.
2314 blocks, improved marks as regexps, docstrings written.
2307 (Demo.__init__): better docstring, added support for sys.argv.
2315 (Demo.__init__): better docstring, added support for sys.argv.
2308
2316
2309 * IPython/genutils.py (marquee): little utility used by the demo
2317 * IPython/genutils.py (marquee): little utility used by the demo
2310 code, handy in general.
2318 code, handy in general.
2311
2319
2312 * IPython/demo.py (Demo.__init__): new class for interactive
2320 * IPython/demo.py (Demo.__init__): new class for interactive
2313 demos. Not documented yet, I just wrote it in a hurry for
2321 demos. Not documented yet, I just wrote it in a hurry for
2314 scipy'05. Will docstring later.
2322 scipy'05. Will docstring later.
2315
2323
2316 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2324 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2317
2325
2318 * IPython/Shell.py (sigint_handler): Drastic simplification which
2326 * IPython/Shell.py (sigint_handler): Drastic simplification which
2319 also seems to make Ctrl-C work correctly across threads! This is
2327 also seems to make Ctrl-C work correctly across threads! This is
2320 so simple, that I can't beleive I'd missed it before. Needs more
2328 so simple, that I can't beleive I'd missed it before. Needs more
2321 testing, though.
2329 testing, though.
2322 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2330 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2323 like this before...
2331 like this before...
2324
2332
2325 * IPython/genutils.py (get_home_dir): add protection against
2333 * IPython/genutils.py (get_home_dir): add protection against
2326 non-dirs in win32 registry.
2334 non-dirs in win32 registry.
2327
2335
2328 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2336 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2329 bug where dict was mutated while iterating (pysh crash).
2337 bug where dict was mutated while iterating (pysh crash).
2330
2338
2331 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2339 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2332
2340
2333 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2341 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2334 spurious newlines added by this routine. After a report by
2342 spurious newlines added by this routine. After a report by
2335 F. Mantegazza.
2343 F. Mantegazza.
2336
2344
2337 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2345 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2338
2346
2339 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2347 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2340 calls. These were a leftover from the GTK 1.x days, and can cause
2348 calls. These were a leftover from the GTK 1.x days, and can cause
2341 problems in certain cases (after a report by John Hunter).
2349 problems in certain cases (after a report by John Hunter).
2342
2350
2343 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2351 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2344 os.getcwd() fails at init time. Thanks to patch from David Remahl
2352 os.getcwd() fails at init time. Thanks to patch from David Remahl
2345 <chmod007-AT-mac.com>.
2353 <chmod007-AT-mac.com>.
2346 (InteractiveShell.__init__): prevent certain special magics from
2354 (InteractiveShell.__init__): prevent certain special magics from
2347 being shadowed by aliases. Closes
2355 being shadowed by aliases. Closes
2348 http://www.scipy.net/roundup/ipython/issue41.
2356 http://www.scipy.net/roundup/ipython/issue41.
2349
2357
2350 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2358 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2351
2359
2352 * IPython/iplib.py (InteractiveShell.complete): Added new
2360 * IPython/iplib.py (InteractiveShell.complete): Added new
2353 top-level completion method to expose the completion mechanism
2361 top-level completion method to expose the completion mechanism
2354 beyond readline-based environments.
2362 beyond readline-based environments.
2355
2363
2356 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2364 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2357
2365
2358 * tools/ipsvnc (svnversion): fix svnversion capture.
2366 * tools/ipsvnc (svnversion): fix svnversion capture.
2359
2367
2360 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2368 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2361 attribute to self, which was missing. Before, it was set by a
2369 attribute to self, which was missing. Before, it was set by a
2362 routine which in certain cases wasn't being called, so the
2370 routine which in certain cases wasn't being called, so the
2363 instance could end up missing the attribute. This caused a crash.
2371 instance could end up missing the attribute. This caused a crash.
2364 Closes http://www.scipy.net/roundup/ipython/issue40.
2372 Closes http://www.scipy.net/roundup/ipython/issue40.
2365
2373
2366 2005-08-16 Fernando Perez <fperez@colorado.edu>
2374 2005-08-16 Fernando Perez <fperez@colorado.edu>
2367
2375
2368 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2376 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2369 contains non-string attribute. Closes
2377 contains non-string attribute. Closes
2370 http://www.scipy.net/roundup/ipython/issue38.
2378 http://www.scipy.net/roundup/ipython/issue38.
2371
2379
2372 2005-08-14 Fernando Perez <fperez@colorado.edu>
2380 2005-08-14 Fernando Perez <fperez@colorado.edu>
2373
2381
2374 * tools/ipsvnc: Minor improvements, to add changeset info.
2382 * tools/ipsvnc: Minor improvements, to add changeset info.
2375
2383
2376 2005-08-12 Fernando Perez <fperez@colorado.edu>
2384 2005-08-12 Fernando Perez <fperez@colorado.edu>
2377
2385
2378 * IPython/iplib.py (runsource): remove self.code_to_run_src
2386 * IPython/iplib.py (runsource): remove self.code_to_run_src
2379 attribute. I realized this is nothing more than
2387 attribute. I realized this is nothing more than
2380 '\n'.join(self.buffer), and having the same data in two different
2388 '\n'.join(self.buffer), and having the same data in two different
2381 places is just asking for synchronization bugs. This may impact
2389 places is just asking for synchronization bugs. This may impact
2382 people who have custom exception handlers, so I need to warn
2390 people who have custom exception handlers, so I need to warn
2383 ipython-dev about it (F. Mantegazza may use them).
2391 ipython-dev about it (F. Mantegazza may use them).
2384
2392
2385 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2393 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2386
2394
2387 * IPython/genutils.py: fix 2.2 compatibility (generators)
2395 * IPython/genutils.py: fix 2.2 compatibility (generators)
2388
2396
2389 2005-07-18 Fernando Perez <fperez@colorado.edu>
2397 2005-07-18 Fernando Perez <fperez@colorado.edu>
2390
2398
2391 * IPython/genutils.py (get_home_dir): fix to help users with
2399 * IPython/genutils.py (get_home_dir): fix to help users with
2392 invalid $HOME under win32.
2400 invalid $HOME under win32.
2393
2401
2394 2005-07-17 Fernando Perez <fperez@colorado.edu>
2402 2005-07-17 Fernando Perez <fperez@colorado.edu>
2395
2403
2396 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2404 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2397 some old hacks and clean up a bit other routines; code should be
2405 some old hacks and clean up a bit other routines; code should be
2398 simpler and a bit faster.
2406 simpler and a bit faster.
2399
2407
2400 * IPython/iplib.py (interact): removed some last-resort attempts
2408 * IPython/iplib.py (interact): removed some last-resort attempts
2401 to survive broken stdout/stderr. That code was only making it
2409 to survive broken stdout/stderr. That code was only making it
2402 harder to abstract out the i/o (necessary for gui integration),
2410 harder to abstract out the i/o (necessary for gui integration),
2403 and the crashes it could prevent were extremely rare in practice
2411 and the crashes it could prevent were extremely rare in practice
2404 (besides being fully user-induced in a pretty violent manner).
2412 (besides being fully user-induced in a pretty violent manner).
2405
2413
2406 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2414 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2407 Nothing major yet, but the code is simpler to read; this should
2415 Nothing major yet, but the code is simpler to read; this should
2408 make it easier to do more serious modifications in the future.
2416 make it easier to do more serious modifications in the future.
2409
2417
2410 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2418 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2411 which broke in .15 (thanks to a report by Ville).
2419 which broke in .15 (thanks to a report by Ville).
2412
2420
2413 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2421 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2414 be quite correct, I know next to nothing about unicode). This
2422 be quite correct, I know next to nothing about unicode). This
2415 will allow unicode strings to be used in prompts, amongst other
2423 will allow unicode strings to be used in prompts, amongst other
2416 cases. It also will prevent ipython from crashing when unicode
2424 cases. It also will prevent ipython from crashing when unicode
2417 shows up unexpectedly in many places. If ascii encoding fails, we
2425 shows up unexpectedly in many places. If ascii encoding fails, we
2418 assume utf_8. Currently the encoding is not a user-visible
2426 assume utf_8. Currently the encoding is not a user-visible
2419 setting, though it could be made so if there is demand for it.
2427 setting, though it could be made so if there is demand for it.
2420
2428
2421 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2429 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2422
2430
2423 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2431 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2424
2432
2425 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2433 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2426
2434
2427 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2435 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2428 code can work transparently for 2.2/2.3.
2436 code can work transparently for 2.2/2.3.
2429
2437
2430 2005-07-16 Fernando Perez <fperez@colorado.edu>
2438 2005-07-16 Fernando Perez <fperez@colorado.edu>
2431
2439
2432 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2440 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2433 out of the color scheme table used for coloring exception
2441 out of the color scheme table used for coloring exception
2434 tracebacks. This allows user code to add new schemes at runtime.
2442 tracebacks. This allows user code to add new schemes at runtime.
2435 This is a minimally modified version of the patch at
2443 This is a minimally modified version of the patch at
2436 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2444 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2437 for the contribution.
2445 for the contribution.
2438
2446
2439 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2447 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2440 slightly modified version of the patch in
2448 slightly modified version of the patch in
2441 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2449 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2442 to remove the previous try/except solution (which was costlier).
2450 to remove the previous try/except solution (which was costlier).
2443 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2451 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2444
2452
2445 2005-06-08 Fernando Perez <fperez@colorado.edu>
2453 2005-06-08 Fernando Perez <fperez@colorado.edu>
2446
2454
2447 * IPython/iplib.py (write/write_err): Add methods to abstract all
2455 * IPython/iplib.py (write/write_err): Add methods to abstract all
2448 I/O a bit more.
2456 I/O a bit more.
2449
2457
2450 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2458 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2451 warning, reported by Aric Hagberg, fix by JD Hunter.
2459 warning, reported by Aric Hagberg, fix by JD Hunter.
2452
2460
2453 2005-06-02 *** Released version 0.6.15
2461 2005-06-02 *** Released version 0.6.15
2454
2462
2455 2005-06-01 Fernando Perez <fperez@colorado.edu>
2463 2005-06-01 Fernando Perez <fperez@colorado.edu>
2456
2464
2457 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2465 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2458 tab-completion of filenames within open-quoted strings. Note that
2466 tab-completion of filenames within open-quoted strings. Note that
2459 this requires that in ~/.ipython/ipythonrc, users change the
2467 this requires that in ~/.ipython/ipythonrc, users change the
2460 readline delimiters configuration to read:
2468 readline delimiters configuration to read:
2461
2469
2462 readline_remove_delims -/~
2470 readline_remove_delims -/~
2463
2471
2464
2472
2465 2005-05-31 *** Released version 0.6.14
2473 2005-05-31 *** Released version 0.6.14
2466
2474
2467 2005-05-29 Fernando Perez <fperez@colorado.edu>
2475 2005-05-29 Fernando Perez <fperez@colorado.edu>
2468
2476
2469 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2477 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2470 with files not on the filesystem. Reported by Eliyahu Sandler
2478 with files not on the filesystem. Reported by Eliyahu Sandler
2471 <eli@gondolin.net>
2479 <eli@gondolin.net>
2472
2480
2473 2005-05-22 Fernando Perez <fperez@colorado.edu>
2481 2005-05-22 Fernando Perez <fperez@colorado.edu>
2474
2482
2475 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2483 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2476 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2484 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2477
2485
2478 2005-05-19 Fernando Perez <fperez@colorado.edu>
2486 2005-05-19 Fernando Perez <fperez@colorado.edu>
2479
2487
2480 * IPython/iplib.py (safe_execfile): close a file which could be
2488 * IPython/iplib.py (safe_execfile): close a file which could be
2481 left open (causing problems in win32, which locks open files).
2489 left open (causing problems in win32, which locks open files).
2482 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2490 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2483
2491
2484 2005-05-18 Fernando Perez <fperez@colorado.edu>
2492 2005-05-18 Fernando Perez <fperez@colorado.edu>
2485
2493
2486 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2494 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2487 keyword arguments correctly to safe_execfile().
2495 keyword arguments correctly to safe_execfile().
2488
2496
2489 2005-05-13 Fernando Perez <fperez@colorado.edu>
2497 2005-05-13 Fernando Perez <fperez@colorado.edu>
2490
2498
2491 * ipython.1: Added info about Qt to manpage, and threads warning
2499 * ipython.1: Added info about Qt to manpage, and threads warning
2492 to usage page (invoked with --help).
2500 to usage page (invoked with --help).
2493
2501
2494 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2502 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2495 new matcher (it goes at the end of the priority list) to do
2503 new matcher (it goes at the end of the priority list) to do
2496 tab-completion on named function arguments. Submitted by George
2504 tab-completion on named function arguments. Submitted by George
2497 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2505 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2498 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2506 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2499 for more details.
2507 for more details.
2500
2508
2501 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2509 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2502 SystemExit exceptions in the script being run. Thanks to a report
2510 SystemExit exceptions in the script being run. Thanks to a report
2503 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2511 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2504 producing very annoying behavior when running unit tests.
2512 producing very annoying behavior when running unit tests.
2505
2513
2506 2005-05-12 Fernando Perez <fperez@colorado.edu>
2514 2005-05-12 Fernando Perez <fperez@colorado.edu>
2507
2515
2508 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2516 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2509 which I'd broken (again) due to a changed regexp. In the process,
2517 which I'd broken (again) due to a changed regexp. In the process,
2510 added ';' as an escape to auto-quote the whole line without
2518 added ';' as an escape to auto-quote the whole line without
2511 splitting its arguments. Thanks to a report by Jerry McRae
2519 splitting its arguments. Thanks to a report by Jerry McRae
2512 <qrs0xyc02-AT-sneakemail.com>.
2520 <qrs0xyc02-AT-sneakemail.com>.
2513
2521
2514 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2522 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2515 possible crashes caused by a TokenError. Reported by Ed Schofield
2523 possible crashes caused by a TokenError. Reported by Ed Schofield
2516 <schofield-AT-ftw.at>.
2524 <schofield-AT-ftw.at>.
2517
2525
2518 2005-05-06 Fernando Perez <fperez@colorado.edu>
2526 2005-05-06 Fernando Perez <fperez@colorado.edu>
2519
2527
2520 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2528 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2521
2529
2522 2005-04-29 Fernando Perez <fperez@colorado.edu>
2530 2005-04-29 Fernando Perez <fperez@colorado.edu>
2523
2531
2524 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2532 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2525 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2533 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2526 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2534 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2527 which provides support for Qt interactive usage (similar to the
2535 which provides support for Qt interactive usage (similar to the
2528 existing one for WX and GTK). This had been often requested.
2536 existing one for WX and GTK). This had been often requested.
2529
2537
2530 2005-04-14 *** Released version 0.6.13
2538 2005-04-14 *** Released version 0.6.13
2531
2539
2532 2005-04-08 Fernando Perez <fperez@colorado.edu>
2540 2005-04-08 Fernando Perez <fperez@colorado.edu>
2533
2541
2534 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2542 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2535 from _ofind, which gets called on almost every input line. Now,
2543 from _ofind, which gets called on almost every input line. Now,
2536 we only try to get docstrings if they are actually going to be
2544 we only try to get docstrings if they are actually going to be
2537 used (the overhead of fetching unnecessary docstrings can be
2545 used (the overhead of fetching unnecessary docstrings can be
2538 noticeable for certain objects, such as Pyro proxies).
2546 noticeable for certain objects, such as Pyro proxies).
2539
2547
2540 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2548 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2541 for completers. For some reason I had been passing them the state
2549 for completers. For some reason I had been passing them the state
2542 variable, which completers never actually need, and was in
2550 variable, which completers never actually need, and was in
2543 conflict with the rlcompleter API. Custom completers ONLY need to
2551 conflict with the rlcompleter API. Custom completers ONLY need to
2544 take the text parameter.
2552 take the text parameter.
2545
2553
2546 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2554 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2547 work correctly in pysh. I've also moved all the logic which used
2555 work correctly in pysh. I've also moved all the logic which used
2548 to be in pysh.py here, which will prevent problems with future
2556 to be in pysh.py here, which will prevent problems with future
2549 upgrades. However, this time I must warn users to update their
2557 upgrades. However, this time I must warn users to update their
2550 pysh profile to include the line
2558 pysh profile to include the line
2551
2559
2552 import_all IPython.Extensions.InterpreterExec
2560 import_all IPython.Extensions.InterpreterExec
2553
2561
2554 because otherwise things won't work for them. They MUST also
2562 because otherwise things won't work for them. They MUST also
2555 delete pysh.py and the line
2563 delete pysh.py and the line
2556
2564
2557 execfile pysh.py
2565 execfile pysh.py
2558
2566
2559 from their ipythonrc-pysh.
2567 from their ipythonrc-pysh.
2560
2568
2561 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2569 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2562 robust in the face of objects whose dir() returns non-strings
2570 robust in the face of objects whose dir() returns non-strings
2563 (which it shouldn't, but some broken libs like ITK do). Thanks to
2571 (which it shouldn't, but some broken libs like ITK do). Thanks to
2564 a patch by John Hunter (implemented differently, though). Also
2572 a patch by John Hunter (implemented differently, though). Also
2565 minor improvements by using .extend instead of + on lists.
2573 minor improvements by using .extend instead of + on lists.
2566
2574
2567 * pysh.py:
2575 * pysh.py:
2568
2576
2569 2005-04-06 Fernando Perez <fperez@colorado.edu>
2577 2005-04-06 Fernando Perez <fperez@colorado.edu>
2570
2578
2571 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2579 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2572 by default, so that all users benefit from it. Those who don't
2580 by default, so that all users benefit from it. Those who don't
2573 want it can still turn it off.
2581 want it can still turn it off.
2574
2582
2575 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2583 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2576 config file, I'd forgotten about this, so users were getting it
2584 config file, I'd forgotten about this, so users were getting it
2577 off by default.
2585 off by default.
2578
2586
2579 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2587 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2580 consistency. Now magics can be called in multiline statements,
2588 consistency. Now magics can be called in multiline statements,
2581 and python variables can be expanded in magic calls via $var.
2589 and python variables can be expanded in magic calls via $var.
2582 This makes the magic system behave just like aliases or !system
2590 This makes the magic system behave just like aliases or !system
2583 calls.
2591 calls.
2584
2592
2585 2005-03-28 Fernando Perez <fperez@colorado.edu>
2593 2005-03-28 Fernando Perez <fperez@colorado.edu>
2586
2594
2587 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2595 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2588 expensive string additions for building command. Add support for
2596 expensive string additions for building command. Add support for
2589 trailing ';' when autocall is used.
2597 trailing ';' when autocall is used.
2590
2598
2591 2005-03-26 Fernando Perez <fperez@colorado.edu>
2599 2005-03-26 Fernando Perez <fperez@colorado.edu>
2592
2600
2593 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2601 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2594 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2602 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2595 ipython.el robust against prompts with any number of spaces
2603 ipython.el robust against prompts with any number of spaces
2596 (including 0) after the ':' character.
2604 (including 0) after the ':' character.
2597
2605
2598 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2606 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2599 continuation prompt, which misled users to think the line was
2607 continuation prompt, which misled users to think the line was
2600 already indented. Closes debian Bug#300847, reported to me by
2608 already indented. Closes debian Bug#300847, reported to me by
2601 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2609 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2602
2610
2603 2005-03-23 Fernando Perez <fperez@colorado.edu>
2611 2005-03-23 Fernando Perez <fperez@colorado.edu>
2604
2612
2605 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2613 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2606 properly aligned if they have embedded newlines.
2614 properly aligned if they have embedded newlines.
2607
2615
2608 * IPython/iplib.py (runlines): Add a public method to expose
2616 * IPython/iplib.py (runlines): Add a public method to expose
2609 IPython's code execution machinery, so that users can run strings
2617 IPython's code execution machinery, so that users can run strings
2610 as if they had been typed at the prompt interactively.
2618 as if they had been typed at the prompt interactively.
2611 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2619 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2612 methods which can call the system shell, but with python variable
2620 methods which can call the system shell, but with python variable
2613 expansion. The three such methods are: __IPYTHON__.system,
2621 expansion. The three such methods are: __IPYTHON__.system,
2614 .getoutput and .getoutputerror. These need to be documented in a
2622 .getoutput and .getoutputerror. These need to be documented in a
2615 'public API' section (to be written) of the manual.
2623 'public API' section (to be written) of the manual.
2616
2624
2617 2005-03-20 Fernando Perez <fperez@colorado.edu>
2625 2005-03-20 Fernando Perez <fperez@colorado.edu>
2618
2626
2619 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2627 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2620 for custom exception handling. This is quite powerful, and it
2628 for custom exception handling. This is quite powerful, and it
2621 allows for user-installable exception handlers which can trap
2629 allows for user-installable exception handlers which can trap
2622 custom exceptions at runtime and treat them separately from
2630 custom exceptions at runtime and treat them separately from
2623 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2631 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2624 Mantegazza <mantegazza-AT-ill.fr>.
2632 Mantegazza <mantegazza-AT-ill.fr>.
2625 (InteractiveShell.set_custom_completer): public API function to
2633 (InteractiveShell.set_custom_completer): public API function to
2626 add new completers at runtime.
2634 add new completers at runtime.
2627
2635
2628 2005-03-19 Fernando Perez <fperez@colorado.edu>
2636 2005-03-19 Fernando Perez <fperez@colorado.edu>
2629
2637
2630 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2638 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2631 allow objects which provide their docstrings via non-standard
2639 allow objects which provide their docstrings via non-standard
2632 mechanisms (like Pyro proxies) to still be inspected by ipython's
2640 mechanisms (like Pyro proxies) to still be inspected by ipython's
2633 ? system.
2641 ? system.
2634
2642
2635 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2643 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2636 automatic capture system. I tried quite hard to make it work
2644 automatic capture system. I tried quite hard to make it work
2637 reliably, and simply failed. I tried many combinations with the
2645 reliably, and simply failed. I tried many combinations with the
2638 subprocess module, but eventually nothing worked in all needed
2646 subprocess module, but eventually nothing worked in all needed
2639 cases (not blocking stdin for the child, duplicating stdout
2647 cases (not blocking stdin for the child, duplicating stdout
2640 without blocking, etc). The new %sc/%sx still do capture to these
2648 without blocking, etc). The new %sc/%sx still do capture to these
2641 magical list/string objects which make shell use much more
2649 magical list/string objects which make shell use much more
2642 conveninent, so not all is lost.
2650 conveninent, so not all is lost.
2643
2651
2644 XXX - FIX MANUAL for the change above!
2652 XXX - FIX MANUAL for the change above!
2645
2653
2646 (runsource): I copied code.py's runsource() into ipython to modify
2654 (runsource): I copied code.py's runsource() into ipython to modify
2647 it a bit. Now the code object and source to be executed are
2655 it a bit. Now the code object and source to be executed are
2648 stored in ipython. This makes this info accessible to third-party
2656 stored in ipython. This makes this info accessible to third-party
2649 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2657 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2650 Mantegazza <mantegazza-AT-ill.fr>.
2658 Mantegazza <mantegazza-AT-ill.fr>.
2651
2659
2652 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2660 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2653 history-search via readline (like C-p/C-n). I'd wanted this for a
2661 history-search via readline (like C-p/C-n). I'd wanted this for a
2654 long time, but only recently found out how to do it. For users
2662 long time, but only recently found out how to do it. For users
2655 who already have their ipythonrc files made and want this, just
2663 who already have their ipythonrc files made and want this, just
2656 add:
2664 add:
2657
2665
2658 readline_parse_and_bind "\e[A": history-search-backward
2666 readline_parse_and_bind "\e[A": history-search-backward
2659 readline_parse_and_bind "\e[B": history-search-forward
2667 readline_parse_and_bind "\e[B": history-search-forward
2660
2668
2661 2005-03-18 Fernando Perez <fperez@colorado.edu>
2669 2005-03-18 Fernando Perez <fperez@colorado.edu>
2662
2670
2663 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2671 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2664 LSString and SList classes which allow transparent conversions
2672 LSString and SList classes which allow transparent conversions
2665 between list mode and whitespace-separated string.
2673 between list mode and whitespace-separated string.
2666 (magic_r): Fix recursion problem in %r.
2674 (magic_r): Fix recursion problem in %r.
2667
2675
2668 * IPython/genutils.py (LSString): New class to be used for
2676 * IPython/genutils.py (LSString): New class to be used for
2669 automatic storage of the results of all alias/system calls in _o
2677 automatic storage of the results of all alias/system calls in _o
2670 and _e (stdout/err). These provide a .l/.list attribute which
2678 and _e (stdout/err). These provide a .l/.list attribute which
2671 does automatic splitting on newlines. This means that for most
2679 does automatic splitting on newlines. This means that for most
2672 uses, you'll never need to do capturing of output with %sc/%sx
2680 uses, you'll never need to do capturing of output with %sc/%sx
2673 anymore, since ipython keeps this always done for you. Note that
2681 anymore, since ipython keeps this always done for you. Note that
2674 only the LAST results are stored, the _o/e variables are
2682 only the LAST results are stored, the _o/e variables are
2675 overwritten on each call. If you need to save their contents
2683 overwritten on each call. If you need to save their contents
2676 further, simply bind them to any other name.
2684 further, simply bind them to any other name.
2677
2685
2678 2005-03-17 Fernando Perez <fperez@colorado.edu>
2686 2005-03-17 Fernando Perez <fperez@colorado.edu>
2679
2687
2680 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2688 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2681 prompt namespace handling.
2689 prompt namespace handling.
2682
2690
2683 2005-03-16 Fernando Perez <fperez@colorado.edu>
2691 2005-03-16 Fernando Perez <fperez@colorado.edu>
2684
2692
2685 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2693 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2686 classic prompts to be '>>> ' (final space was missing, and it
2694 classic prompts to be '>>> ' (final space was missing, and it
2687 trips the emacs python mode).
2695 trips the emacs python mode).
2688 (BasePrompt.__str__): Added safe support for dynamic prompt
2696 (BasePrompt.__str__): Added safe support for dynamic prompt
2689 strings. Now you can set your prompt string to be '$x', and the
2697 strings. Now you can set your prompt string to be '$x', and the
2690 value of x will be printed from your interactive namespace. The
2698 value of x will be printed from your interactive namespace. The
2691 interpolation syntax includes the full Itpl support, so
2699 interpolation syntax includes the full Itpl support, so
2692 ${foo()+x+bar()} is a valid prompt string now, and the function
2700 ${foo()+x+bar()} is a valid prompt string now, and the function
2693 calls will be made at runtime.
2701 calls will be made at runtime.
2694
2702
2695 2005-03-15 Fernando Perez <fperez@colorado.edu>
2703 2005-03-15 Fernando Perez <fperez@colorado.edu>
2696
2704
2697 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2705 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2698 avoid name clashes in pylab. %hist still works, it just forwards
2706 avoid name clashes in pylab. %hist still works, it just forwards
2699 the call to %history.
2707 the call to %history.
2700
2708
2701 2005-03-02 *** Released version 0.6.12
2709 2005-03-02 *** Released version 0.6.12
2702
2710
2703 2005-03-02 Fernando Perez <fperez@colorado.edu>
2711 2005-03-02 Fernando Perez <fperez@colorado.edu>
2704
2712
2705 * IPython/iplib.py (handle_magic): log magic calls properly as
2713 * IPython/iplib.py (handle_magic): log magic calls properly as
2706 ipmagic() function calls.
2714 ipmagic() function calls.
2707
2715
2708 * IPython/Magic.py (magic_time): Improved %time to support
2716 * IPython/Magic.py (magic_time): Improved %time to support
2709 statements and provide wall-clock as well as CPU time.
2717 statements and provide wall-clock as well as CPU time.
2710
2718
2711 2005-02-27 Fernando Perez <fperez@colorado.edu>
2719 2005-02-27 Fernando Perez <fperez@colorado.edu>
2712
2720
2713 * IPython/hooks.py: New hooks module, to expose user-modifiable
2721 * IPython/hooks.py: New hooks module, to expose user-modifiable
2714 IPython functionality in a clean manner. For now only the editor
2722 IPython functionality in a clean manner. For now only the editor
2715 hook is actually written, and other thigns which I intend to turn
2723 hook is actually written, and other thigns which I intend to turn
2716 into proper hooks aren't yet there. The display and prefilter
2724 into proper hooks aren't yet there. The display and prefilter
2717 stuff, for example, should be hooks. But at least now the
2725 stuff, for example, should be hooks. But at least now the
2718 framework is in place, and the rest can be moved here with more
2726 framework is in place, and the rest can be moved here with more
2719 time later. IPython had had a .hooks variable for a long time for
2727 time later. IPython had had a .hooks variable for a long time for
2720 this purpose, but I'd never actually used it for anything.
2728 this purpose, but I'd never actually used it for anything.
2721
2729
2722 2005-02-26 Fernando Perez <fperez@colorado.edu>
2730 2005-02-26 Fernando Perez <fperez@colorado.edu>
2723
2731
2724 * IPython/ipmaker.py (make_IPython): make the default ipython
2732 * IPython/ipmaker.py (make_IPython): make the default ipython
2725 directory be called _ipython under win32, to follow more the
2733 directory be called _ipython under win32, to follow more the
2726 naming peculiarities of that platform (where buggy software like
2734 naming peculiarities of that platform (where buggy software like
2727 Visual Sourcesafe breaks with .named directories). Reported by
2735 Visual Sourcesafe breaks with .named directories). Reported by
2728 Ville Vainio.
2736 Ville Vainio.
2729
2737
2730 2005-02-23 Fernando Perez <fperez@colorado.edu>
2738 2005-02-23 Fernando Perez <fperez@colorado.edu>
2731
2739
2732 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2740 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2733 auto_aliases for win32 which were causing problems. Users can
2741 auto_aliases for win32 which were causing problems. Users can
2734 define the ones they personally like.
2742 define the ones they personally like.
2735
2743
2736 2005-02-21 Fernando Perez <fperez@colorado.edu>
2744 2005-02-21 Fernando Perez <fperez@colorado.edu>
2737
2745
2738 * IPython/Magic.py (magic_time): new magic to time execution of
2746 * IPython/Magic.py (magic_time): new magic to time execution of
2739 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2747 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2740
2748
2741 2005-02-19 Fernando Perez <fperez@colorado.edu>
2749 2005-02-19 Fernando Perez <fperez@colorado.edu>
2742
2750
2743 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2751 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2744 into keys (for prompts, for example).
2752 into keys (for prompts, for example).
2745
2753
2746 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2754 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2747 prompts in case users want them. This introduces a small behavior
2755 prompts in case users want them. This introduces a small behavior
2748 change: ipython does not automatically add a space to all prompts
2756 change: ipython does not automatically add a space to all prompts
2749 anymore. To get the old prompts with a space, users should add it
2757 anymore. To get the old prompts with a space, users should add it
2750 manually to their ipythonrc file, so for example prompt_in1 should
2758 manually to their ipythonrc file, so for example prompt_in1 should
2751 now read 'In [\#]: ' instead of 'In [\#]:'.
2759 now read 'In [\#]: ' instead of 'In [\#]:'.
2752 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2760 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2753 file) to control left-padding of secondary prompts.
2761 file) to control left-padding of secondary prompts.
2754
2762
2755 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2763 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2756 the profiler can't be imported. Fix for Debian, which removed
2764 the profiler can't be imported. Fix for Debian, which removed
2757 profile.py because of License issues. I applied a slightly
2765 profile.py because of License issues. I applied a slightly
2758 modified version of the original Debian patch at
2766 modified version of the original Debian patch at
2759 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2767 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2760
2768
2761 2005-02-17 Fernando Perez <fperez@colorado.edu>
2769 2005-02-17 Fernando Perez <fperez@colorado.edu>
2762
2770
2763 * IPython/genutils.py (native_line_ends): Fix bug which would
2771 * IPython/genutils.py (native_line_ends): Fix bug which would
2764 cause improper line-ends under win32 b/c I was not opening files
2772 cause improper line-ends under win32 b/c I was not opening files
2765 in binary mode. Bug report and fix thanks to Ville.
2773 in binary mode. Bug report and fix thanks to Ville.
2766
2774
2767 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2775 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2768 trying to catch spurious foo[1] autocalls. My fix actually broke
2776 trying to catch spurious foo[1] autocalls. My fix actually broke
2769 ',/' autoquote/call with explicit escape (bad regexp).
2777 ',/' autoquote/call with explicit escape (bad regexp).
2770
2778
2771 2005-02-15 *** Released version 0.6.11
2779 2005-02-15 *** Released version 0.6.11
2772
2780
2773 2005-02-14 Fernando Perez <fperez@colorado.edu>
2781 2005-02-14 Fernando Perez <fperez@colorado.edu>
2774
2782
2775 * IPython/background_jobs.py: New background job management
2783 * IPython/background_jobs.py: New background job management
2776 subsystem. This is implemented via a new set of classes, and
2784 subsystem. This is implemented via a new set of classes, and
2777 IPython now provides a builtin 'jobs' object for background job
2785 IPython now provides a builtin 'jobs' object for background job
2778 execution. A convenience %bg magic serves as a lightweight
2786 execution. A convenience %bg magic serves as a lightweight
2779 frontend for starting the more common type of calls. This was
2787 frontend for starting the more common type of calls. This was
2780 inspired by discussions with B. Granger and the BackgroundCommand
2788 inspired by discussions with B. Granger and the BackgroundCommand
2781 class described in the book Python Scripting for Computational
2789 class described in the book Python Scripting for Computational
2782 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2790 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2783 (although ultimately no code from this text was used, as IPython's
2791 (although ultimately no code from this text was used, as IPython's
2784 system is a separate implementation).
2792 system is a separate implementation).
2785
2793
2786 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2794 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2787 to control the completion of single/double underscore names
2795 to control the completion of single/double underscore names
2788 separately. As documented in the example ipytonrc file, the
2796 separately. As documented in the example ipytonrc file, the
2789 readline_omit__names variable can now be set to 2, to omit even
2797 readline_omit__names variable can now be set to 2, to omit even
2790 single underscore names. Thanks to a patch by Brian Wong
2798 single underscore names. Thanks to a patch by Brian Wong
2791 <BrianWong-AT-AirgoNetworks.Com>.
2799 <BrianWong-AT-AirgoNetworks.Com>.
2792 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2800 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2793 be autocalled as foo([1]) if foo were callable. A problem for
2801 be autocalled as foo([1]) if foo were callable. A problem for
2794 things which are both callable and implement __getitem__.
2802 things which are both callable and implement __getitem__.
2795 (init_readline): Fix autoindentation for win32. Thanks to a patch
2803 (init_readline): Fix autoindentation for win32. Thanks to a patch
2796 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2804 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2797
2805
2798 2005-02-12 Fernando Perez <fperez@colorado.edu>
2806 2005-02-12 Fernando Perez <fperez@colorado.edu>
2799
2807
2800 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2808 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2801 which I had written long ago to sort out user error messages which
2809 which I had written long ago to sort out user error messages which
2802 may occur during startup. This seemed like a good idea initially,
2810 may occur during startup. This seemed like a good idea initially,
2803 but it has proven a disaster in retrospect. I don't want to
2811 but it has proven a disaster in retrospect. I don't want to
2804 change much code for now, so my fix is to set the internal 'debug'
2812 change much code for now, so my fix is to set the internal 'debug'
2805 flag to true everywhere, whose only job was precisely to control
2813 flag to true everywhere, whose only job was precisely to control
2806 this subsystem. This closes issue 28 (as well as avoiding all
2814 this subsystem. This closes issue 28 (as well as avoiding all
2807 sorts of strange hangups which occur from time to time).
2815 sorts of strange hangups which occur from time to time).
2808
2816
2809 2005-02-07 Fernando Perez <fperez@colorado.edu>
2817 2005-02-07 Fernando Perez <fperez@colorado.edu>
2810
2818
2811 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2819 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2812 previous call produced a syntax error.
2820 previous call produced a syntax error.
2813
2821
2814 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2822 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2815 classes without constructor.
2823 classes without constructor.
2816
2824
2817 2005-02-06 Fernando Perez <fperez@colorado.edu>
2825 2005-02-06 Fernando Perez <fperez@colorado.edu>
2818
2826
2819 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2827 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2820 completions with the results of each matcher, so we return results
2828 completions with the results of each matcher, so we return results
2821 to the user from all namespaces. This breaks with ipython
2829 to the user from all namespaces. This breaks with ipython
2822 tradition, but I think it's a nicer behavior. Now you get all
2830 tradition, but I think it's a nicer behavior. Now you get all
2823 possible completions listed, from all possible namespaces (python,
2831 possible completions listed, from all possible namespaces (python,
2824 filesystem, magics...) After a request by John Hunter
2832 filesystem, magics...) After a request by John Hunter
2825 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2833 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2826
2834
2827 2005-02-05 Fernando Perez <fperez@colorado.edu>
2835 2005-02-05 Fernando Perez <fperez@colorado.edu>
2828
2836
2829 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2837 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2830 the call had quote characters in it (the quotes were stripped).
2838 the call had quote characters in it (the quotes were stripped).
2831
2839
2832 2005-01-31 Fernando Perez <fperez@colorado.edu>
2840 2005-01-31 Fernando Perez <fperez@colorado.edu>
2833
2841
2834 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2842 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2835 Itpl.itpl() to make the code more robust against psyco
2843 Itpl.itpl() to make the code more robust against psyco
2836 optimizations.
2844 optimizations.
2837
2845
2838 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2846 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2839 of causing an exception. Quicker, cleaner.
2847 of causing an exception. Quicker, cleaner.
2840
2848
2841 2005-01-28 Fernando Perez <fperez@colorado.edu>
2849 2005-01-28 Fernando Perez <fperez@colorado.edu>
2842
2850
2843 * scripts/ipython_win_post_install.py (install): hardcode
2851 * scripts/ipython_win_post_install.py (install): hardcode
2844 sys.prefix+'python.exe' as the executable path. It turns out that
2852 sys.prefix+'python.exe' as the executable path. It turns out that
2845 during the post-installation run, sys.executable resolves to the
2853 during the post-installation run, sys.executable resolves to the
2846 name of the binary installer! I should report this as a distutils
2854 name of the binary installer! I should report this as a distutils
2847 bug, I think. I updated the .10 release with this tiny fix, to
2855 bug, I think. I updated the .10 release with this tiny fix, to
2848 avoid annoying the lists further.
2856 avoid annoying the lists further.
2849
2857
2850 2005-01-27 *** Released version 0.6.10
2858 2005-01-27 *** Released version 0.6.10
2851
2859
2852 2005-01-27 Fernando Perez <fperez@colorado.edu>
2860 2005-01-27 Fernando Perez <fperez@colorado.edu>
2853
2861
2854 * IPython/numutils.py (norm): Added 'inf' as optional name for
2862 * IPython/numutils.py (norm): Added 'inf' as optional name for
2855 L-infinity norm, included references to mathworld.com for vector
2863 L-infinity norm, included references to mathworld.com for vector
2856 norm definitions.
2864 norm definitions.
2857 (amin/amax): added amin/amax for array min/max. Similar to what
2865 (amin/amax): added amin/amax for array min/max. Similar to what
2858 pylab ships with after the recent reorganization of names.
2866 pylab ships with after the recent reorganization of names.
2859 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2867 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2860
2868
2861 * ipython.el: committed Alex's recent fixes and improvements.
2869 * ipython.el: committed Alex's recent fixes and improvements.
2862 Tested with python-mode from CVS, and it looks excellent. Since
2870 Tested with python-mode from CVS, and it looks excellent. Since
2863 python-mode hasn't released anything in a while, I'm temporarily
2871 python-mode hasn't released anything in a while, I'm temporarily
2864 putting a copy of today's CVS (v 4.70) of python-mode in:
2872 putting a copy of today's CVS (v 4.70) of python-mode in:
2865 http://ipython.scipy.org/tmp/python-mode.el
2873 http://ipython.scipy.org/tmp/python-mode.el
2866
2874
2867 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2875 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2868 sys.executable for the executable name, instead of assuming it's
2876 sys.executable for the executable name, instead of assuming it's
2869 called 'python.exe' (the post-installer would have produced broken
2877 called 'python.exe' (the post-installer would have produced broken
2870 setups on systems with a differently named python binary).
2878 setups on systems with a differently named python binary).
2871
2879
2872 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2880 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2873 references to os.linesep, to make the code more
2881 references to os.linesep, to make the code more
2874 platform-independent. This is also part of the win32 coloring
2882 platform-independent. This is also part of the win32 coloring
2875 fixes.
2883 fixes.
2876
2884
2877 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2885 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2878 lines, which actually cause coloring bugs because the length of
2886 lines, which actually cause coloring bugs because the length of
2879 the line is very difficult to correctly compute with embedded
2887 the line is very difficult to correctly compute with embedded
2880 escapes. This was the source of all the coloring problems under
2888 escapes. This was the source of all the coloring problems under
2881 Win32. I think that _finally_, Win32 users have a properly
2889 Win32. I think that _finally_, Win32 users have a properly
2882 working ipython in all respects. This would never have happened
2890 working ipython in all respects. This would never have happened
2883 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2891 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2884
2892
2885 2005-01-26 *** Released version 0.6.9
2893 2005-01-26 *** Released version 0.6.9
2886
2894
2887 2005-01-25 Fernando Perez <fperez@colorado.edu>
2895 2005-01-25 Fernando Perez <fperez@colorado.edu>
2888
2896
2889 * setup.py: finally, we have a true Windows installer, thanks to
2897 * setup.py: finally, we have a true Windows installer, thanks to
2890 the excellent work of Viktor Ransmayr
2898 the excellent work of Viktor Ransmayr
2891 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2899 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2892 Windows users. The setup routine is quite a bit cleaner thanks to
2900 Windows users. The setup routine is quite a bit cleaner thanks to
2893 this, and the post-install script uses the proper functions to
2901 this, and the post-install script uses the proper functions to
2894 allow a clean de-installation using the standard Windows Control
2902 allow a clean de-installation using the standard Windows Control
2895 Panel.
2903 Panel.
2896
2904
2897 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2905 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2898 environment variable under all OSes (including win32) if
2906 environment variable under all OSes (including win32) if
2899 available. This will give consistency to win32 users who have set
2907 available. This will give consistency to win32 users who have set
2900 this variable for any reason. If os.environ['HOME'] fails, the
2908 this variable for any reason. If os.environ['HOME'] fails, the
2901 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2909 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2902
2910
2903 2005-01-24 Fernando Perez <fperez@colorado.edu>
2911 2005-01-24 Fernando Perez <fperez@colorado.edu>
2904
2912
2905 * IPython/numutils.py (empty_like): add empty_like(), similar to
2913 * IPython/numutils.py (empty_like): add empty_like(), similar to
2906 zeros_like() but taking advantage of the new empty() Numeric routine.
2914 zeros_like() but taking advantage of the new empty() Numeric routine.
2907
2915
2908 2005-01-23 *** Released version 0.6.8
2916 2005-01-23 *** Released version 0.6.8
2909
2917
2910 2005-01-22 Fernando Perez <fperez@colorado.edu>
2918 2005-01-22 Fernando Perez <fperez@colorado.edu>
2911
2919
2912 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2920 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2913 automatic show() calls. After discussing things with JDH, it
2921 automatic show() calls. After discussing things with JDH, it
2914 turns out there are too many corner cases where this can go wrong.
2922 turns out there are too many corner cases where this can go wrong.
2915 It's best not to try to be 'too smart', and simply have ipython
2923 It's best not to try to be 'too smart', and simply have ipython
2916 reproduce as much as possible the default behavior of a normal
2924 reproduce as much as possible the default behavior of a normal
2917 python shell.
2925 python shell.
2918
2926
2919 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2927 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2920 line-splitting regexp and _prefilter() to avoid calling getattr()
2928 line-splitting regexp and _prefilter() to avoid calling getattr()
2921 on assignments. This closes
2929 on assignments. This closes
2922 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2930 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2923 readline uses getattr(), so a simple <TAB> keypress is still
2931 readline uses getattr(), so a simple <TAB> keypress is still
2924 enough to trigger getattr() calls on an object.
2932 enough to trigger getattr() calls on an object.
2925
2933
2926 2005-01-21 Fernando Perez <fperez@colorado.edu>
2934 2005-01-21 Fernando Perez <fperez@colorado.edu>
2927
2935
2928 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2936 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2929 docstring under pylab so it doesn't mask the original.
2937 docstring under pylab so it doesn't mask the original.
2930
2938
2931 2005-01-21 *** Released version 0.6.7
2939 2005-01-21 *** Released version 0.6.7
2932
2940
2933 2005-01-21 Fernando Perez <fperez@colorado.edu>
2941 2005-01-21 Fernando Perez <fperez@colorado.edu>
2934
2942
2935 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2943 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2936 signal handling for win32 users in multithreaded mode.
2944 signal handling for win32 users in multithreaded mode.
2937
2945
2938 2005-01-17 Fernando Perez <fperez@colorado.edu>
2946 2005-01-17 Fernando Perez <fperez@colorado.edu>
2939
2947
2940 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2948 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2941 instances with no __init__. After a crash report by Norbert Nemec
2949 instances with no __init__. After a crash report by Norbert Nemec
2942 <Norbert-AT-nemec-online.de>.
2950 <Norbert-AT-nemec-online.de>.
2943
2951
2944 2005-01-14 Fernando Perez <fperez@colorado.edu>
2952 2005-01-14 Fernando Perez <fperez@colorado.edu>
2945
2953
2946 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2954 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2947 names for verbose exceptions, when multiple dotted names and the
2955 names for verbose exceptions, when multiple dotted names and the
2948 'parent' object were present on the same line.
2956 'parent' object were present on the same line.
2949
2957
2950 2005-01-11 Fernando Perez <fperez@colorado.edu>
2958 2005-01-11 Fernando Perez <fperez@colorado.edu>
2951
2959
2952 * IPython/genutils.py (flag_calls): new utility to trap and flag
2960 * IPython/genutils.py (flag_calls): new utility to trap and flag
2953 calls in functions. I need it to clean up matplotlib support.
2961 calls in functions. I need it to clean up matplotlib support.
2954 Also removed some deprecated code in genutils.
2962 Also removed some deprecated code in genutils.
2955
2963
2956 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2964 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2957 that matplotlib scripts called with %run, which don't call show()
2965 that matplotlib scripts called with %run, which don't call show()
2958 themselves, still have their plotting windows open.
2966 themselves, still have their plotting windows open.
2959
2967
2960 2005-01-05 Fernando Perez <fperez@colorado.edu>
2968 2005-01-05 Fernando Perez <fperez@colorado.edu>
2961
2969
2962 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2970 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2963 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2971 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2964
2972
2965 2004-12-19 Fernando Perez <fperez@colorado.edu>
2973 2004-12-19 Fernando Perez <fperez@colorado.edu>
2966
2974
2967 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2975 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2968 parent_runcode, which was an eyesore. The same result can be
2976 parent_runcode, which was an eyesore. The same result can be
2969 obtained with Python's regular superclass mechanisms.
2977 obtained with Python's regular superclass mechanisms.
2970
2978
2971 2004-12-17 Fernando Perez <fperez@colorado.edu>
2979 2004-12-17 Fernando Perez <fperez@colorado.edu>
2972
2980
2973 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2981 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2974 reported by Prabhu.
2982 reported by Prabhu.
2975 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2983 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2976 sys.stderr) instead of explicitly calling sys.stderr. This helps
2984 sys.stderr) instead of explicitly calling sys.stderr. This helps
2977 maintain our I/O abstractions clean, for future GUI embeddings.
2985 maintain our I/O abstractions clean, for future GUI embeddings.
2978
2986
2979 * IPython/genutils.py (info): added new utility for sys.stderr
2987 * IPython/genutils.py (info): added new utility for sys.stderr
2980 unified info message handling (thin wrapper around warn()).
2988 unified info message handling (thin wrapper around warn()).
2981
2989
2982 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2990 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2983 composite (dotted) names on verbose exceptions.
2991 composite (dotted) names on verbose exceptions.
2984 (VerboseTB.nullrepr): harden against another kind of errors which
2992 (VerboseTB.nullrepr): harden against another kind of errors which
2985 Python's inspect module can trigger, and which were crashing
2993 Python's inspect module can trigger, and which were crashing
2986 IPython. Thanks to a report by Marco Lombardi
2994 IPython. Thanks to a report by Marco Lombardi
2987 <mlombard-AT-ma010192.hq.eso.org>.
2995 <mlombard-AT-ma010192.hq.eso.org>.
2988
2996
2989 2004-12-13 *** Released version 0.6.6
2997 2004-12-13 *** Released version 0.6.6
2990
2998
2991 2004-12-12 Fernando Perez <fperez@colorado.edu>
2999 2004-12-12 Fernando Perez <fperez@colorado.edu>
2992
3000
2993 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
3001 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2994 generated by pygtk upon initialization if it was built without
3002 generated by pygtk upon initialization if it was built without
2995 threads (for matplotlib users). After a crash reported by
3003 threads (for matplotlib users). After a crash reported by
2996 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
3004 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2997
3005
2998 * IPython/ipmaker.py (make_IPython): fix small bug in the
3006 * IPython/ipmaker.py (make_IPython): fix small bug in the
2999 import_some parameter for multiple imports.
3007 import_some parameter for multiple imports.
3000
3008
3001 * IPython/iplib.py (ipmagic): simplified the interface of
3009 * IPython/iplib.py (ipmagic): simplified the interface of
3002 ipmagic() to take a single string argument, just as it would be
3010 ipmagic() to take a single string argument, just as it would be
3003 typed at the IPython cmd line.
3011 typed at the IPython cmd line.
3004 (ipalias): Added new ipalias() with an interface identical to
3012 (ipalias): Added new ipalias() with an interface identical to
3005 ipmagic(). This completes exposing a pure python interface to the
3013 ipmagic(). This completes exposing a pure python interface to the
3006 alias and magic system, which can be used in loops or more complex
3014 alias and magic system, which can be used in loops or more complex
3007 code where IPython's automatic line mangling is not active.
3015 code where IPython's automatic line mangling is not active.
3008
3016
3009 * IPython/genutils.py (timing): changed interface of timing to
3017 * IPython/genutils.py (timing): changed interface of timing to
3010 simply run code once, which is the most common case. timings()
3018 simply run code once, which is the most common case. timings()
3011 remains unchanged, for the cases where you want multiple runs.
3019 remains unchanged, for the cases where you want multiple runs.
3012
3020
3013 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
3021 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
3014 bug where Python2.2 crashes with exec'ing code which does not end
3022 bug where Python2.2 crashes with exec'ing code which does not end
3015 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3023 in a single newline. Python 2.3 is OK, so I hadn't noticed this
3016 before.
3024 before.
3017
3025
3018 2004-12-10 Fernando Perez <fperez@colorado.edu>
3026 2004-12-10 Fernando Perez <fperez@colorado.edu>
3019
3027
3020 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3028 * IPython/Magic.py (Magic.magic_prun): changed name of option from
3021 -t to -T, to accomodate the new -t flag in %run (the %run and
3029 -t to -T, to accomodate the new -t flag in %run (the %run and
3022 %prun options are kind of intermixed, and it's not easy to change
3030 %prun options are kind of intermixed, and it's not easy to change
3023 this with the limitations of python's getopt).
3031 this with the limitations of python's getopt).
3024
3032
3025 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3033 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
3026 the execution of scripts. It's not as fine-tuned as timeit.py,
3034 the execution of scripts. It's not as fine-tuned as timeit.py,
3027 but it works from inside ipython (and under 2.2, which lacks
3035 but it works from inside ipython (and under 2.2, which lacks
3028 timeit.py). Optionally a number of runs > 1 can be given for
3036 timeit.py). Optionally a number of runs > 1 can be given for
3029 timing very short-running code.
3037 timing very short-running code.
3030
3038
3031 * IPython/genutils.py (uniq_stable): new routine which returns a
3039 * IPython/genutils.py (uniq_stable): new routine which returns a
3032 list of unique elements in any iterable, but in stable order of
3040 list of unique elements in any iterable, but in stable order of
3033 appearance. I needed this for the ultraTB fixes, and it's a handy
3041 appearance. I needed this for the ultraTB fixes, and it's a handy
3034 utility.
3042 utility.
3035
3043
3036 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3044 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
3037 dotted names in Verbose exceptions. This had been broken since
3045 dotted names in Verbose exceptions. This had been broken since
3038 the very start, now x.y will properly be printed in a Verbose
3046 the very start, now x.y will properly be printed in a Verbose
3039 traceback, instead of x being shown and y appearing always as an
3047 traceback, instead of x being shown and y appearing always as an
3040 'undefined global'. Getting this to work was a bit tricky,
3048 'undefined global'. Getting this to work was a bit tricky,
3041 because by default python tokenizers are stateless. Saved by
3049 because by default python tokenizers are stateless. Saved by
3042 python's ability to easily add a bit of state to an arbitrary
3050 python's ability to easily add a bit of state to an arbitrary
3043 function (without needing to build a full-blown callable object).
3051 function (without needing to build a full-blown callable object).
3044
3052
3045 Also big cleanup of this code, which had horrendous runtime
3053 Also big cleanup of this code, which had horrendous runtime
3046 lookups of zillions of attributes for colorization. Moved all
3054 lookups of zillions of attributes for colorization. Moved all
3047 this code into a few templates, which make it cleaner and quicker.
3055 this code into a few templates, which make it cleaner and quicker.
3048
3056
3049 Printout quality was also improved for Verbose exceptions: one
3057 Printout quality was also improved for Verbose exceptions: one
3050 variable per line, and memory addresses are printed (this can be
3058 variable per line, and memory addresses are printed (this can be
3051 quite handy in nasty debugging situations, which is what Verbose
3059 quite handy in nasty debugging situations, which is what Verbose
3052 is for).
3060 is for).
3053
3061
3054 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3062 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
3055 the command line as scripts to be loaded by embedded instances.
3063 the command line as scripts to be loaded by embedded instances.
3056 Doing so has the potential for an infinite recursion if there are
3064 Doing so has the potential for an infinite recursion if there are
3057 exceptions thrown in the process. This fixes a strange crash
3065 exceptions thrown in the process. This fixes a strange crash
3058 reported by Philippe MULLER <muller-AT-irit.fr>.
3066 reported by Philippe MULLER <muller-AT-irit.fr>.
3059
3067
3060 2004-12-09 Fernando Perez <fperez@colorado.edu>
3068 2004-12-09 Fernando Perez <fperez@colorado.edu>
3061
3069
3062 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3070 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
3063 to reflect new names in matplotlib, which now expose the
3071 to reflect new names in matplotlib, which now expose the
3064 matlab-compatible interface via a pylab module instead of the
3072 matlab-compatible interface via a pylab module instead of the
3065 'matlab' name. The new code is backwards compatible, so users of
3073 'matlab' name. The new code is backwards compatible, so users of
3066 all matplotlib versions are OK. Patch by J. Hunter.
3074 all matplotlib versions are OK. Patch by J. Hunter.
3067
3075
3068 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3076 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
3069 of __init__ docstrings for instances (class docstrings are already
3077 of __init__ docstrings for instances (class docstrings are already
3070 automatically printed). Instances with customized docstrings
3078 automatically printed). Instances with customized docstrings
3071 (indep. of the class) are also recognized and all 3 separate
3079 (indep. of the class) are also recognized and all 3 separate
3072 docstrings are printed (instance, class, constructor). After some
3080 docstrings are printed (instance, class, constructor). After some
3073 comments/suggestions by J. Hunter.
3081 comments/suggestions by J. Hunter.
3074
3082
3075 2004-12-05 Fernando Perez <fperez@colorado.edu>
3083 2004-12-05 Fernando Perez <fperez@colorado.edu>
3076
3084
3077 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3085 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
3078 warnings when tab-completion fails and triggers an exception.
3086 warnings when tab-completion fails and triggers an exception.
3079
3087
3080 2004-12-03 Fernando Perez <fperez@colorado.edu>
3088 2004-12-03 Fernando Perez <fperez@colorado.edu>
3081
3089
3082 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3090 * IPython/Magic.py (magic_prun): Fix bug where an exception would
3083 be triggered when using 'run -p'. An incorrect option flag was
3091 be triggered when using 'run -p'. An incorrect option flag was
3084 being set ('d' instead of 'D').
3092 being set ('d' instead of 'D').
3085 (manpage): fix missing escaped \- sign.
3093 (manpage): fix missing escaped \- sign.
3086
3094
3087 2004-11-30 *** Released version 0.6.5
3095 2004-11-30 *** Released version 0.6.5
3088
3096
3089 2004-11-30 Fernando Perez <fperez@colorado.edu>
3097 2004-11-30 Fernando Perez <fperez@colorado.edu>
3090
3098
3091 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3099 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
3092 setting with -d option.
3100 setting with -d option.
3093
3101
3094 * setup.py (docfiles): Fix problem where the doc glob I was using
3102 * setup.py (docfiles): Fix problem where the doc glob I was using
3095 was COMPLETELY BROKEN. It was giving the right files by pure
3103 was COMPLETELY BROKEN. It was giving the right files by pure
3096 accident, but failed once I tried to include ipython.el. Note:
3104 accident, but failed once I tried to include ipython.el. Note:
3097 glob() does NOT allow you to do exclusion on multiple endings!
3105 glob() does NOT allow you to do exclusion on multiple endings!
3098
3106
3099 2004-11-29 Fernando Perez <fperez@colorado.edu>
3107 2004-11-29 Fernando Perez <fperez@colorado.edu>
3100
3108
3101 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3109 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
3102 the manpage as the source. Better formatting & consistency.
3110 the manpage as the source. Better formatting & consistency.
3103
3111
3104 * IPython/Magic.py (magic_run): Added new -d option, to run
3112 * IPython/Magic.py (magic_run): Added new -d option, to run
3105 scripts under the control of the python pdb debugger. Note that
3113 scripts under the control of the python pdb debugger. Note that
3106 this required changing the %prun option -d to -D, to avoid a clash
3114 this required changing the %prun option -d to -D, to avoid a clash
3107 (since %run must pass options to %prun, and getopt is too dumb to
3115 (since %run must pass options to %prun, and getopt is too dumb to
3108 handle options with string values with embedded spaces). Thanks
3116 handle options with string values with embedded spaces). Thanks
3109 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3117 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
3110 (magic_who_ls): added type matching to %who and %whos, so that one
3118 (magic_who_ls): added type matching to %who and %whos, so that one
3111 can filter their output to only include variables of certain
3119 can filter their output to only include variables of certain
3112 types. Another suggestion by Matthew.
3120 types. Another suggestion by Matthew.
3113 (magic_whos): Added memory summaries in kb and Mb for arrays.
3121 (magic_whos): Added memory summaries in kb and Mb for arrays.
3114 (magic_who): Improve formatting (break lines every 9 vars).
3122 (magic_who): Improve formatting (break lines every 9 vars).
3115
3123
3116 2004-11-28 Fernando Perez <fperez@colorado.edu>
3124 2004-11-28 Fernando Perez <fperez@colorado.edu>
3117
3125
3118 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3126 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
3119 cache when empty lines were present.
3127 cache when empty lines were present.
3120
3128
3121 2004-11-24 Fernando Perez <fperez@colorado.edu>
3129 2004-11-24 Fernando Perez <fperez@colorado.edu>
3122
3130
3123 * IPython/usage.py (__doc__): document the re-activated threading
3131 * IPython/usage.py (__doc__): document the re-activated threading
3124 options for WX and GTK.
3132 options for WX and GTK.
3125
3133
3126 2004-11-23 Fernando Perez <fperez@colorado.edu>
3134 2004-11-23 Fernando Perez <fperez@colorado.edu>
3127
3135
3128 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3136 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
3129 the -wthread and -gthread options, along with a new -tk one to try
3137 the -wthread and -gthread options, along with a new -tk one to try
3130 and coordinate Tk threading with wx/gtk. The tk support is very
3138 and coordinate Tk threading with wx/gtk. The tk support is very
3131 platform dependent, since it seems to require Tcl and Tk to be
3139 platform dependent, since it seems to require Tcl and Tk to be
3132 built with threads (Fedora1/2 appears NOT to have it, but in
3140 built with threads (Fedora1/2 appears NOT to have it, but in
3133 Prabhu's Debian boxes it works OK). But even with some Tk
3141 Prabhu's Debian boxes it works OK). But even with some Tk
3134 limitations, this is a great improvement.
3142 limitations, this is a great improvement.
3135
3143
3136 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3144 * IPython/Prompts.py (prompt_specials_color): Added \t for time
3137 info in user prompts. Patch by Prabhu.
3145 info in user prompts. Patch by Prabhu.
3138
3146
3139 2004-11-18 Fernando Perez <fperez@colorado.edu>
3147 2004-11-18 Fernando Perez <fperez@colorado.edu>
3140
3148
3141 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3149 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
3142 EOFErrors and bail, to avoid infinite loops if a non-terminating
3150 EOFErrors and bail, to avoid infinite loops if a non-terminating
3143 file is fed into ipython. Patch submitted in issue 19 by user,
3151 file is fed into ipython. Patch submitted in issue 19 by user,
3144 many thanks.
3152 many thanks.
3145
3153
3146 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3154 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
3147 autoquote/parens in continuation prompts, which can cause lots of
3155 autoquote/parens in continuation prompts, which can cause lots of
3148 problems. Closes roundup issue 20.
3156 problems. Closes roundup issue 20.
3149
3157
3150 2004-11-17 Fernando Perez <fperez@colorado.edu>
3158 2004-11-17 Fernando Perez <fperez@colorado.edu>
3151
3159
3152 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3160 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
3153 reported as debian bug #280505. I'm not sure my local changelog
3161 reported as debian bug #280505. I'm not sure my local changelog
3154 entry has the proper debian format (Jack?).
3162 entry has the proper debian format (Jack?).
3155
3163
3156 2004-11-08 *** Released version 0.6.4
3164 2004-11-08 *** Released version 0.6.4
3157
3165
3158 2004-11-08 Fernando Perez <fperez@colorado.edu>
3166 2004-11-08 Fernando Perez <fperez@colorado.edu>
3159
3167
3160 * IPython/iplib.py (init_readline): Fix exit message for Windows
3168 * IPython/iplib.py (init_readline): Fix exit message for Windows
3161 when readline is active. Thanks to a report by Eric Jones
3169 when readline is active. Thanks to a report by Eric Jones
3162 <eric-AT-enthought.com>.
3170 <eric-AT-enthought.com>.
3163
3171
3164 2004-11-07 Fernando Perez <fperez@colorado.edu>
3172 2004-11-07 Fernando Perez <fperez@colorado.edu>
3165
3173
3166 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3174 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3167 sometimes seen by win2k/cygwin users.
3175 sometimes seen by win2k/cygwin users.
3168
3176
3169 2004-11-06 Fernando Perez <fperez@colorado.edu>
3177 2004-11-06 Fernando Perez <fperez@colorado.edu>
3170
3178
3171 * IPython/iplib.py (interact): Change the handling of %Exit from
3179 * IPython/iplib.py (interact): Change the handling of %Exit from
3172 trying to propagate a SystemExit to an internal ipython flag.
3180 trying to propagate a SystemExit to an internal ipython flag.
3173 This is less elegant than using Python's exception mechanism, but
3181 This is less elegant than using Python's exception mechanism, but
3174 I can't get that to work reliably with threads, so under -pylab
3182 I can't get that to work reliably with threads, so under -pylab
3175 %Exit was hanging IPython. Cross-thread exception handling is
3183 %Exit was hanging IPython. Cross-thread exception handling is
3176 really a bitch. Thaks to a bug report by Stephen Walton
3184 really a bitch. Thaks to a bug report by Stephen Walton
3177 <stephen.walton-AT-csun.edu>.
3185 <stephen.walton-AT-csun.edu>.
3178
3186
3179 2004-11-04 Fernando Perez <fperez@colorado.edu>
3187 2004-11-04 Fernando Perez <fperez@colorado.edu>
3180
3188
3181 * IPython/iplib.py (raw_input_original): store a pointer to the
3189 * IPython/iplib.py (raw_input_original): store a pointer to the
3182 true raw_input to harden against code which can modify it
3190 true raw_input to harden against code which can modify it
3183 (wx.py.PyShell does this and would otherwise crash ipython).
3191 (wx.py.PyShell does this and would otherwise crash ipython).
3184 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3192 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3185
3193
3186 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3194 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3187 Ctrl-C problem, which does not mess up the input line.
3195 Ctrl-C problem, which does not mess up the input line.
3188
3196
3189 2004-11-03 Fernando Perez <fperez@colorado.edu>
3197 2004-11-03 Fernando Perez <fperez@colorado.edu>
3190
3198
3191 * IPython/Release.py: Changed licensing to BSD, in all files.
3199 * IPython/Release.py: Changed licensing to BSD, in all files.
3192 (name): lowercase name for tarball/RPM release.
3200 (name): lowercase name for tarball/RPM release.
3193
3201
3194 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3202 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3195 use throughout ipython.
3203 use throughout ipython.
3196
3204
3197 * IPython/Magic.py (Magic._ofind): Switch to using the new
3205 * IPython/Magic.py (Magic._ofind): Switch to using the new
3198 OInspect.getdoc() function.
3206 OInspect.getdoc() function.
3199
3207
3200 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3208 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3201 of the line currently being canceled via Ctrl-C. It's extremely
3209 of the line currently being canceled via Ctrl-C. It's extremely
3202 ugly, but I don't know how to do it better (the problem is one of
3210 ugly, but I don't know how to do it better (the problem is one of
3203 handling cross-thread exceptions).
3211 handling cross-thread exceptions).
3204
3212
3205 2004-10-28 Fernando Perez <fperez@colorado.edu>
3213 2004-10-28 Fernando Perez <fperez@colorado.edu>
3206
3214
3207 * IPython/Shell.py (signal_handler): add signal handlers to trap
3215 * IPython/Shell.py (signal_handler): add signal handlers to trap
3208 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3216 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3209 report by Francesc Alted.
3217 report by Francesc Alted.
3210
3218
3211 2004-10-21 Fernando Perez <fperez@colorado.edu>
3219 2004-10-21 Fernando Perez <fperez@colorado.edu>
3212
3220
3213 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3221 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3214 to % for pysh syntax extensions.
3222 to % for pysh syntax extensions.
3215
3223
3216 2004-10-09 Fernando Perez <fperez@colorado.edu>
3224 2004-10-09 Fernando Perez <fperez@colorado.edu>
3217
3225
3218 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3226 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3219 arrays to print a more useful summary, without calling str(arr).
3227 arrays to print a more useful summary, without calling str(arr).
3220 This avoids the problem of extremely lengthy computations which
3228 This avoids the problem of extremely lengthy computations which
3221 occur if arr is large, and appear to the user as a system lockup
3229 occur if arr is large, and appear to the user as a system lockup
3222 with 100% cpu activity. After a suggestion by Kristian Sandberg
3230 with 100% cpu activity. After a suggestion by Kristian Sandberg
3223 <Kristian.Sandberg@colorado.edu>.
3231 <Kristian.Sandberg@colorado.edu>.
3224 (Magic.__init__): fix bug in global magic escapes not being
3232 (Magic.__init__): fix bug in global magic escapes not being
3225 correctly set.
3233 correctly set.
3226
3234
3227 2004-10-08 Fernando Perez <fperez@colorado.edu>
3235 2004-10-08 Fernando Perez <fperez@colorado.edu>
3228
3236
3229 * IPython/Magic.py (__license__): change to absolute imports of
3237 * IPython/Magic.py (__license__): change to absolute imports of
3230 ipython's own internal packages, to start adapting to the absolute
3238 ipython's own internal packages, to start adapting to the absolute
3231 import requirement of PEP-328.
3239 import requirement of PEP-328.
3232
3240
3233 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3241 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3234 files, and standardize author/license marks through the Release
3242 files, and standardize author/license marks through the Release
3235 module instead of having per/file stuff (except for files with
3243 module instead of having per/file stuff (except for files with
3236 particular licenses, like the MIT/PSF-licensed codes).
3244 particular licenses, like the MIT/PSF-licensed codes).
3237
3245
3238 * IPython/Debugger.py: remove dead code for python 2.1
3246 * IPython/Debugger.py: remove dead code for python 2.1
3239
3247
3240 2004-10-04 Fernando Perez <fperez@colorado.edu>
3248 2004-10-04 Fernando Perez <fperez@colorado.edu>
3241
3249
3242 * IPython/iplib.py (ipmagic): New function for accessing magics
3250 * IPython/iplib.py (ipmagic): New function for accessing magics
3243 via a normal python function call.
3251 via a normal python function call.
3244
3252
3245 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3253 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3246 from '@' to '%', to accomodate the new @decorator syntax of python
3254 from '@' to '%', to accomodate the new @decorator syntax of python
3247 2.4.
3255 2.4.
3248
3256
3249 2004-09-29 Fernando Perez <fperez@colorado.edu>
3257 2004-09-29 Fernando Perez <fperez@colorado.edu>
3250
3258
3251 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3259 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3252 matplotlib.use to prevent running scripts which try to switch
3260 matplotlib.use to prevent running scripts which try to switch
3253 interactive backends from within ipython. This will just crash
3261 interactive backends from within ipython. This will just crash
3254 the python interpreter, so we can't allow it (but a detailed error
3262 the python interpreter, so we can't allow it (but a detailed error
3255 is given to the user).
3263 is given to the user).
3256
3264
3257 2004-09-28 Fernando Perez <fperez@colorado.edu>
3265 2004-09-28 Fernando Perez <fperez@colorado.edu>
3258
3266
3259 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3267 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3260 matplotlib-related fixes so that using @run with non-matplotlib
3268 matplotlib-related fixes so that using @run with non-matplotlib
3261 scripts doesn't pop up spurious plot windows. This requires
3269 scripts doesn't pop up spurious plot windows. This requires
3262 matplotlib >= 0.63, where I had to make some changes as well.
3270 matplotlib >= 0.63, where I had to make some changes as well.
3263
3271
3264 * IPython/ipmaker.py (make_IPython): update version requirement to
3272 * IPython/ipmaker.py (make_IPython): update version requirement to
3265 python 2.2.
3273 python 2.2.
3266
3274
3267 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3275 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3268 banner arg for embedded customization.
3276 banner arg for embedded customization.
3269
3277
3270 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3278 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3271 explicit uses of __IP as the IPython's instance name. Now things
3279 explicit uses of __IP as the IPython's instance name. Now things
3272 are properly handled via the shell.name value. The actual code
3280 are properly handled via the shell.name value. The actual code
3273 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3281 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3274 is much better than before. I'll clean things completely when the
3282 is much better than before. I'll clean things completely when the
3275 magic stuff gets a real overhaul.
3283 magic stuff gets a real overhaul.
3276
3284
3277 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3285 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3278 minor changes to debian dir.
3286 minor changes to debian dir.
3279
3287
3280 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3288 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3281 pointer to the shell itself in the interactive namespace even when
3289 pointer to the shell itself in the interactive namespace even when
3282 a user-supplied dict is provided. This is needed for embedding
3290 a user-supplied dict is provided. This is needed for embedding
3283 purposes (found by tests with Michel Sanner).
3291 purposes (found by tests with Michel Sanner).
3284
3292
3285 2004-09-27 Fernando Perez <fperez@colorado.edu>
3293 2004-09-27 Fernando Perez <fperez@colorado.edu>
3286
3294
3287 * IPython/UserConfig/ipythonrc: remove []{} from
3295 * IPython/UserConfig/ipythonrc: remove []{} from
3288 readline_remove_delims, so that things like [modname.<TAB> do
3296 readline_remove_delims, so that things like [modname.<TAB> do
3289 proper completion. This disables [].TAB, but that's a less common
3297 proper completion. This disables [].TAB, but that's a less common
3290 case than module names in list comprehensions, for example.
3298 case than module names in list comprehensions, for example.
3291 Thanks to a report by Andrea Riciputi.
3299 Thanks to a report by Andrea Riciputi.
3292
3300
3293 2004-09-09 Fernando Perez <fperez@colorado.edu>
3301 2004-09-09 Fernando Perez <fperez@colorado.edu>
3294
3302
3295 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3303 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3296 blocking problems in win32 and osx. Fix by John.
3304 blocking problems in win32 and osx. Fix by John.
3297
3305
3298 2004-09-08 Fernando Perez <fperez@colorado.edu>
3306 2004-09-08 Fernando Perez <fperez@colorado.edu>
3299
3307
3300 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3308 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3301 for Win32 and OSX. Fix by John Hunter.
3309 for Win32 and OSX. Fix by John Hunter.
3302
3310
3303 2004-08-30 *** Released version 0.6.3
3311 2004-08-30 *** Released version 0.6.3
3304
3312
3305 2004-08-30 Fernando Perez <fperez@colorado.edu>
3313 2004-08-30 Fernando Perez <fperez@colorado.edu>
3306
3314
3307 * setup.py (isfile): Add manpages to list of dependent files to be
3315 * setup.py (isfile): Add manpages to list of dependent files to be
3308 updated.
3316 updated.
3309
3317
3310 2004-08-27 Fernando Perez <fperez@colorado.edu>
3318 2004-08-27 Fernando Perez <fperez@colorado.edu>
3311
3319
3312 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3320 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3313 for now. They don't really work with standalone WX/GTK code
3321 for now. They don't really work with standalone WX/GTK code
3314 (though matplotlib IS working fine with both of those backends).
3322 (though matplotlib IS working fine with both of those backends).
3315 This will neeed much more testing. I disabled most things with
3323 This will neeed much more testing. I disabled most things with
3316 comments, so turning it back on later should be pretty easy.
3324 comments, so turning it back on later should be pretty easy.
3317
3325
3318 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3326 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3319 autocalling of expressions like r'foo', by modifying the line
3327 autocalling of expressions like r'foo', by modifying the line
3320 split regexp. Closes
3328 split regexp. Closes
3321 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3329 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3322 Riley <ipythonbugs-AT-sabi.net>.
3330 Riley <ipythonbugs-AT-sabi.net>.
3323 (InteractiveShell.mainloop): honor --nobanner with banner
3331 (InteractiveShell.mainloop): honor --nobanner with banner
3324 extensions.
3332 extensions.
3325
3333
3326 * IPython/Shell.py: Significant refactoring of all classes, so
3334 * IPython/Shell.py: Significant refactoring of all classes, so
3327 that we can really support ALL matplotlib backends and threading
3335 that we can really support ALL matplotlib backends and threading
3328 models (John spotted a bug with Tk which required this). Now we
3336 models (John spotted a bug with Tk which required this). Now we
3329 should support single-threaded, WX-threads and GTK-threads, both
3337 should support single-threaded, WX-threads and GTK-threads, both
3330 for generic code and for matplotlib.
3338 for generic code and for matplotlib.
3331
3339
3332 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3340 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3333 -pylab, to simplify things for users. Will also remove the pylab
3341 -pylab, to simplify things for users. Will also remove the pylab
3334 profile, since now all of matplotlib configuration is directly
3342 profile, since now all of matplotlib configuration is directly
3335 handled here. This also reduces startup time.
3343 handled here. This also reduces startup time.
3336
3344
3337 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3345 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3338 shell wasn't being correctly called. Also in IPShellWX.
3346 shell wasn't being correctly called. Also in IPShellWX.
3339
3347
3340 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3348 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3341 fine-tune banner.
3349 fine-tune banner.
3342
3350
3343 * IPython/numutils.py (spike): Deprecate these spike functions,
3351 * IPython/numutils.py (spike): Deprecate these spike functions,
3344 delete (long deprecated) gnuplot_exec handler.
3352 delete (long deprecated) gnuplot_exec handler.
3345
3353
3346 2004-08-26 Fernando Perez <fperez@colorado.edu>
3354 2004-08-26 Fernando Perez <fperez@colorado.edu>
3347
3355
3348 * ipython.1: Update for threading options, plus some others which
3356 * ipython.1: Update for threading options, plus some others which
3349 were missing.
3357 were missing.
3350
3358
3351 * IPython/ipmaker.py (__call__): Added -wthread option for
3359 * IPython/ipmaker.py (__call__): Added -wthread option for
3352 wxpython thread handling. Make sure threading options are only
3360 wxpython thread handling. Make sure threading options are only
3353 valid at the command line.
3361 valid at the command line.
3354
3362
3355 * scripts/ipython: moved shell selection into a factory function
3363 * scripts/ipython: moved shell selection into a factory function
3356 in Shell.py, to keep the starter script to a minimum.
3364 in Shell.py, to keep the starter script to a minimum.
3357
3365
3358 2004-08-25 Fernando Perez <fperez@colorado.edu>
3366 2004-08-25 Fernando Perez <fperez@colorado.edu>
3359
3367
3360 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3368 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3361 John. Along with some recent changes he made to matplotlib, the
3369 John. Along with some recent changes he made to matplotlib, the
3362 next versions of both systems should work very well together.
3370 next versions of both systems should work very well together.
3363
3371
3364 2004-08-24 Fernando Perez <fperez@colorado.edu>
3372 2004-08-24 Fernando Perez <fperez@colorado.edu>
3365
3373
3366 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3374 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3367 tried to switch the profiling to using hotshot, but I'm getting
3375 tried to switch the profiling to using hotshot, but I'm getting
3368 strange errors from prof.runctx() there. I may be misreading the
3376 strange errors from prof.runctx() there. I may be misreading the
3369 docs, but it looks weird. For now the profiling code will
3377 docs, but it looks weird. For now the profiling code will
3370 continue to use the standard profiler.
3378 continue to use the standard profiler.
3371
3379
3372 2004-08-23 Fernando Perez <fperez@colorado.edu>
3380 2004-08-23 Fernando Perez <fperez@colorado.edu>
3373
3381
3374 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3382 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3375 threaded shell, by John Hunter. It's not quite ready yet, but
3383 threaded shell, by John Hunter. It's not quite ready yet, but
3376 close.
3384 close.
3377
3385
3378 2004-08-22 Fernando Perez <fperez@colorado.edu>
3386 2004-08-22 Fernando Perez <fperez@colorado.edu>
3379
3387
3380 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3388 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3381 in Magic and ultraTB.
3389 in Magic and ultraTB.
3382
3390
3383 * ipython.1: document threading options in manpage.
3391 * ipython.1: document threading options in manpage.
3384
3392
3385 * scripts/ipython: Changed name of -thread option to -gthread,
3393 * scripts/ipython: Changed name of -thread option to -gthread,
3386 since this is GTK specific. I want to leave the door open for a
3394 since this is GTK specific. I want to leave the door open for a
3387 -wthread option for WX, which will most likely be necessary. This
3395 -wthread option for WX, which will most likely be necessary. This
3388 change affects usage and ipmaker as well.
3396 change affects usage and ipmaker as well.
3389
3397
3390 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3398 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3391 handle the matplotlib shell issues. Code by John Hunter
3399 handle the matplotlib shell issues. Code by John Hunter
3392 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3400 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3393 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3401 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3394 broken (and disabled for end users) for now, but it puts the
3402 broken (and disabled for end users) for now, but it puts the
3395 infrastructure in place.
3403 infrastructure in place.
3396
3404
3397 2004-08-21 Fernando Perez <fperez@colorado.edu>
3405 2004-08-21 Fernando Perez <fperez@colorado.edu>
3398
3406
3399 * ipythonrc-pylab: Add matplotlib support.
3407 * ipythonrc-pylab: Add matplotlib support.
3400
3408
3401 * matplotlib_config.py: new files for matplotlib support, part of
3409 * matplotlib_config.py: new files for matplotlib support, part of
3402 the pylab profile.
3410 the pylab profile.
3403
3411
3404 * IPython/usage.py (__doc__): documented the threading options.
3412 * IPython/usage.py (__doc__): documented the threading options.
3405
3413
3406 2004-08-20 Fernando Perez <fperez@colorado.edu>
3414 2004-08-20 Fernando Perez <fperez@colorado.edu>
3407
3415
3408 * ipython: Modified the main calling routine to handle the -thread
3416 * ipython: Modified the main calling routine to handle the -thread
3409 and -mpthread options. This needs to be done as a top-level hack,
3417 and -mpthread options. This needs to be done as a top-level hack,
3410 because it determines which class to instantiate for IPython
3418 because it determines which class to instantiate for IPython
3411 itself.
3419 itself.
3412
3420
3413 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3421 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3414 classes to support multithreaded GTK operation without blocking,
3422 classes to support multithreaded GTK operation without blocking,
3415 and matplotlib with all backends. This is a lot of still very
3423 and matplotlib with all backends. This is a lot of still very
3416 experimental code, and threads are tricky. So it may still have a
3424 experimental code, and threads are tricky. So it may still have a
3417 few rough edges... This code owes a lot to
3425 few rough edges... This code owes a lot to
3418 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3426 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3419 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3427 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3420 to John Hunter for all the matplotlib work.
3428 to John Hunter for all the matplotlib work.
3421
3429
3422 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3430 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3423 options for gtk thread and matplotlib support.
3431 options for gtk thread and matplotlib support.
3424
3432
3425 2004-08-16 Fernando Perez <fperez@colorado.edu>
3433 2004-08-16 Fernando Perez <fperez@colorado.edu>
3426
3434
3427 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3435 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3428 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3436 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3429 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3437 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3430
3438
3431 2004-08-11 Fernando Perez <fperez@colorado.edu>
3439 2004-08-11 Fernando Perez <fperez@colorado.edu>
3432
3440
3433 * setup.py (isfile): Fix build so documentation gets updated for
3441 * setup.py (isfile): Fix build so documentation gets updated for
3434 rpms (it was only done for .tgz builds).
3442 rpms (it was only done for .tgz builds).
3435
3443
3436 2004-08-10 Fernando Perez <fperez@colorado.edu>
3444 2004-08-10 Fernando Perez <fperez@colorado.edu>
3437
3445
3438 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3446 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3439
3447
3440 * iplib.py : Silence syntax error exceptions in tab-completion.
3448 * iplib.py : Silence syntax error exceptions in tab-completion.
3441
3449
3442 2004-08-05 Fernando Perez <fperez@colorado.edu>
3450 2004-08-05 Fernando Perez <fperez@colorado.edu>
3443
3451
3444 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3452 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3445 'color off' mark for continuation prompts. This was causing long
3453 'color off' mark for continuation prompts. This was causing long
3446 continuation lines to mis-wrap.
3454 continuation lines to mis-wrap.
3447
3455
3448 2004-08-01 Fernando Perez <fperez@colorado.edu>
3456 2004-08-01 Fernando Perez <fperez@colorado.edu>
3449
3457
3450 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3458 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3451 for building ipython to be a parameter. All this is necessary
3459 for building ipython to be a parameter. All this is necessary
3452 right now to have a multithreaded version, but this insane
3460 right now to have a multithreaded version, but this insane
3453 non-design will be cleaned up soon. For now, it's a hack that
3461 non-design will be cleaned up soon. For now, it's a hack that
3454 works.
3462 works.
3455
3463
3456 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3464 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3457 args in various places. No bugs so far, but it's a dangerous
3465 args in various places. No bugs so far, but it's a dangerous
3458 practice.
3466 practice.
3459
3467
3460 2004-07-31 Fernando Perez <fperez@colorado.edu>
3468 2004-07-31 Fernando Perez <fperez@colorado.edu>
3461
3469
3462 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3470 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3463 fix completion of files with dots in their names under most
3471 fix completion of files with dots in their names under most
3464 profiles (pysh was OK because the completion order is different).
3472 profiles (pysh was OK because the completion order is different).
3465
3473
3466 2004-07-27 Fernando Perez <fperez@colorado.edu>
3474 2004-07-27 Fernando Perez <fperez@colorado.edu>
3467
3475
3468 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3476 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3469 keywords manually, b/c the one in keyword.py was removed in python
3477 keywords manually, b/c the one in keyword.py was removed in python
3470 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3478 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3471 This is NOT a bug under python 2.3 and earlier.
3479 This is NOT a bug under python 2.3 and earlier.
3472
3480
3473 2004-07-26 Fernando Perez <fperez@colorado.edu>
3481 2004-07-26 Fernando Perez <fperez@colorado.edu>
3474
3482
3475 * IPython/ultraTB.py (VerboseTB.text): Add another
3483 * IPython/ultraTB.py (VerboseTB.text): Add another
3476 linecache.checkcache() call to try to prevent inspect.py from
3484 linecache.checkcache() call to try to prevent inspect.py from
3477 crashing under python 2.3. I think this fixes
3485 crashing under python 2.3. I think this fixes
3478 http://www.scipy.net/roundup/ipython/issue17.
3486 http://www.scipy.net/roundup/ipython/issue17.
3479
3487
3480 2004-07-26 *** Released version 0.6.2
3488 2004-07-26 *** Released version 0.6.2
3481
3489
3482 2004-07-26 Fernando Perez <fperez@colorado.edu>
3490 2004-07-26 Fernando Perez <fperez@colorado.edu>
3483
3491
3484 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3492 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3485 fail for any number.
3493 fail for any number.
3486 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3494 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3487 empty bookmarks.
3495 empty bookmarks.
3488
3496
3489 2004-07-26 *** Released version 0.6.1
3497 2004-07-26 *** Released version 0.6.1
3490
3498
3491 2004-07-26 Fernando Perez <fperez@colorado.edu>
3499 2004-07-26 Fernando Perez <fperez@colorado.edu>
3492
3500
3493 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3501 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3494
3502
3495 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3503 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3496 escaping '()[]{}' in filenames.
3504 escaping '()[]{}' in filenames.
3497
3505
3498 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3506 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3499 Python 2.2 users who lack a proper shlex.split.
3507 Python 2.2 users who lack a proper shlex.split.
3500
3508
3501 2004-07-19 Fernando Perez <fperez@colorado.edu>
3509 2004-07-19 Fernando Perez <fperez@colorado.edu>
3502
3510
3503 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3511 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3504 for reading readline's init file. I follow the normal chain:
3512 for reading readline's init file. I follow the normal chain:
3505 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3513 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3506 report by Mike Heeter. This closes
3514 report by Mike Heeter. This closes
3507 http://www.scipy.net/roundup/ipython/issue16.
3515 http://www.scipy.net/roundup/ipython/issue16.
3508
3516
3509 2004-07-18 Fernando Perez <fperez@colorado.edu>
3517 2004-07-18 Fernando Perez <fperez@colorado.edu>
3510
3518
3511 * IPython/iplib.py (__init__): Add better handling of '\' under
3519 * IPython/iplib.py (__init__): Add better handling of '\' under
3512 Win32 for filenames. After a patch by Ville.
3520 Win32 for filenames. After a patch by Ville.
3513
3521
3514 2004-07-17 Fernando Perez <fperez@colorado.edu>
3522 2004-07-17 Fernando Perez <fperez@colorado.edu>
3515
3523
3516 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3524 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3517 autocalling would be triggered for 'foo is bar' if foo is
3525 autocalling would be triggered for 'foo is bar' if foo is
3518 callable. I also cleaned up the autocall detection code to use a
3526 callable. I also cleaned up the autocall detection code to use a
3519 regexp, which is faster. Bug reported by Alexander Schmolck.
3527 regexp, which is faster. Bug reported by Alexander Schmolck.
3520
3528
3521 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3529 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3522 '?' in them would confuse the help system. Reported by Alex
3530 '?' in them would confuse the help system. Reported by Alex
3523 Schmolck.
3531 Schmolck.
3524
3532
3525 2004-07-16 Fernando Perez <fperez@colorado.edu>
3533 2004-07-16 Fernando Perez <fperez@colorado.edu>
3526
3534
3527 * IPython/GnuplotInteractive.py (__all__): added plot2.
3535 * IPython/GnuplotInteractive.py (__all__): added plot2.
3528
3536
3529 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3537 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3530 plotting dictionaries, lists or tuples of 1d arrays.
3538 plotting dictionaries, lists or tuples of 1d arrays.
3531
3539
3532 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3540 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3533 optimizations.
3541 optimizations.
3534
3542
3535 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3543 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3536 the information which was there from Janko's original IPP code:
3544 the information which was there from Janko's original IPP code:
3537
3545
3538 03.05.99 20:53 porto.ifm.uni-kiel.de
3546 03.05.99 20:53 porto.ifm.uni-kiel.de
3539 --Started changelog.
3547 --Started changelog.
3540 --make clear do what it say it does
3548 --make clear do what it say it does
3541 --added pretty output of lines from inputcache
3549 --added pretty output of lines from inputcache
3542 --Made Logger a mixin class, simplifies handling of switches
3550 --Made Logger a mixin class, simplifies handling of switches
3543 --Added own completer class. .string<TAB> expands to last history
3551 --Added own completer class. .string<TAB> expands to last history
3544 line which starts with string. The new expansion is also present
3552 line which starts with string. The new expansion is also present
3545 with Ctrl-r from the readline library. But this shows, who this
3553 with Ctrl-r from the readline library. But this shows, who this
3546 can be done for other cases.
3554 can be done for other cases.
3547 --Added convention that all shell functions should accept a
3555 --Added convention that all shell functions should accept a
3548 parameter_string This opens the door for different behaviour for
3556 parameter_string This opens the door for different behaviour for
3549 each function. @cd is a good example of this.
3557 each function. @cd is a good example of this.
3550
3558
3551 04.05.99 12:12 porto.ifm.uni-kiel.de
3559 04.05.99 12:12 porto.ifm.uni-kiel.de
3552 --added logfile rotation
3560 --added logfile rotation
3553 --added new mainloop method which freezes first the namespace
3561 --added new mainloop method which freezes first the namespace
3554
3562
3555 07.05.99 21:24 porto.ifm.uni-kiel.de
3563 07.05.99 21:24 porto.ifm.uni-kiel.de
3556 --added the docreader classes. Now there is a help system.
3564 --added the docreader classes. Now there is a help system.
3557 -This is only a first try. Currently it's not easy to put new
3565 -This is only a first try. Currently it's not easy to put new
3558 stuff in the indices. But this is the way to go. Info would be
3566 stuff in the indices. But this is the way to go. Info would be
3559 better, but HTML is every where and not everybody has an info
3567 better, but HTML is every where and not everybody has an info
3560 system installed and it's not so easy to change html-docs to info.
3568 system installed and it's not so easy to change html-docs to info.
3561 --added global logfile option
3569 --added global logfile option
3562 --there is now a hook for object inspection method pinfo needs to
3570 --there is now a hook for object inspection method pinfo needs to
3563 be provided for this. Can be reached by two '??'.
3571 be provided for this. Can be reached by two '??'.
3564
3572
3565 08.05.99 20:51 porto.ifm.uni-kiel.de
3573 08.05.99 20:51 porto.ifm.uni-kiel.de
3566 --added a README
3574 --added a README
3567 --bug in rc file. Something has changed so functions in the rc
3575 --bug in rc file. Something has changed so functions in the rc
3568 file need to reference the shell and not self. Not clear if it's a
3576 file need to reference the shell and not self. Not clear if it's a
3569 bug or feature.
3577 bug or feature.
3570 --changed rc file for new behavior
3578 --changed rc file for new behavior
3571
3579
3572 2004-07-15 Fernando Perez <fperez@colorado.edu>
3580 2004-07-15 Fernando Perez <fperez@colorado.edu>
3573
3581
3574 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3582 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3575 cache was falling out of sync in bizarre manners when multi-line
3583 cache was falling out of sync in bizarre manners when multi-line
3576 input was present. Minor optimizations and cleanup.
3584 input was present. Minor optimizations and cleanup.
3577
3585
3578 (Logger): Remove old Changelog info for cleanup. This is the
3586 (Logger): Remove old Changelog info for cleanup. This is the
3579 information which was there from Janko's original code:
3587 information which was there from Janko's original code:
3580
3588
3581 Changes to Logger: - made the default log filename a parameter
3589 Changes to Logger: - made the default log filename a parameter
3582
3590
3583 - put a check for lines beginning with !@? in log(). Needed
3591 - put a check for lines beginning with !@? in log(). Needed
3584 (even if the handlers properly log their lines) for mid-session
3592 (even if the handlers properly log their lines) for mid-session
3585 logging activation to work properly. Without this, lines logged
3593 logging activation to work properly. Without this, lines logged
3586 in mid session, which get read from the cache, would end up
3594 in mid session, which get read from the cache, would end up
3587 'bare' (with !@? in the open) in the log. Now they are caught
3595 'bare' (with !@? in the open) in the log. Now they are caught
3588 and prepended with a #.
3596 and prepended with a #.
3589
3597
3590 * IPython/iplib.py (InteractiveShell.init_readline): added check
3598 * IPython/iplib.py (InteractiveShell.init_readline): added check
3591 in case MagicCompleter fails to be defined, so we don't crash.
3599 in case MagicCompleter fails to be defined, so we don't crash.
3592
3600
3593 2004-07-13 Fernando Perez <fperez@colorado.edu>
3601 2004-07-13 Fernando Perez <fperez@colorado.edu>
3594
3602
3595 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3603 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3596 of EPS if the requested filename ends in '.eps'.
3604 of EPS if the requested filename ends in '.eps'.
3597
3605
3598 2004-07-04 Fernando Perez <fperez@colorado.edu>
3606 2004-07-04 Fernando Perez <fperez@colorado.edu>
3599
3607
3600 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3608 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3601 escaping of quotes when calling the shell.
3609 escaping of quotes when calling the shell.
3602
3610
3603 2004-07-02 Fernando Perez <fperez@colorado.edu>
3611 2004-07-02 Fernando Perez <fperez@colorado.edu>
3604
3612
3605 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3613 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3606 gettext not working because we were clobbering '_'. Fixes
3614 gettext not working because we were clobbering '_'. Fixes
3607 http://www.scipy.net/roundup/ipython/issue6.
3615 http://www.scipy.net/roundup/ipython/issue6.
3608
3616
3609 2004-07-01 Fernando Perez <fperez@colorado.edu>
3617 2004-07-01 Fernando Perez <fperez@colorado.edu>
3610
3618
3611 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3619 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3612 into @cd. Patch by Ville.
3620 into @cd. Patch by Ville.
3613
3621
3614 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3622 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3615 new function to store things after ipmaker runs. Patch by Ville.
3623 new function to store things after ipmaker runs. Patch by Ville.
3616 Eventually this will go away once ipmaker is removed and the class
3624 Eventually this will go away once ipmaker is removed and the class
3617 gets cleaned up, but for now it's ok. Key functionality here is
3625 gets cleaned up, but for now it's ok. Key functionality here is
3618 the addition of the persistent storage mechanism, a dict for
3626 the addition of the persistent storage mechanism, a dict for
3619 keeping data across sessions (for now just bookmarks, but more can
3627 keeping data across sessions (for now just bookmarks, but more can
3620 be implemented later).
3628 be implemented later).
3621
3629
3622 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3630 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3623 persistent across sections. Patch by Ville, I modified it
3631 persistent across sections. Patch by Ville, I modified it
3624 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3632 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3625 added a '-l' option to list all bookmarks.
3633 added a '-l' option to list all bookmarks.
3626
3634
3627 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3635 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3628 center for cleanup. Registered with atexit.register(). I moved
3636 center for cleanup. Registered with atexit.register(). I moved
3629 here the old exit_cleanup(). After a patch by Ville.
3637 here the old exit_cleanup(). After a patch by Ville.
3630
3638
3631 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3639 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3632 characters in the hacked shlex_split for python 2.2.
3640 characters in the hacked shlex_split for python 2.2.
3633
3641
3634 * IPython/iplib.py (file_matches): more fixes to filenames with
3642 * IPython/iplib.py (file_matches): more fixes to filenames with
3635 whitespace in them. It's not perfect, but limitations in python's
3643 whitespace in them. It's not perfect, but limitations in python's
3636 readline make it impossible to go further.
3644 readline make it impossible to go further.
3637
3645
3638 2004-06-29 Fernando Perez <fperez@colorado.edu>
3646 2004-06-29 Fernando Perez <fperez@colorado.edu>
3639
3647
3640 * IPython/iplib.py (file_matches): escape whitespace correctly in
3648 * IPython/iplib.py (file_matches): escape whitespace correctly in
3641 filename completions. Bug reported by Ville.
3649 filename completions. Bug reported by Ville.
3642
3650
3643 2004-06-28 Fernando Perez <fperez@colorado.edu>
3651 2004-06-28 Fernando Perez <fperez@colorado.edu>
3644
3652
3645 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3653 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3646 the history file will be called 'history-PROFNAME' (or just
3654 the history file will be called 'history-PROFNAME' (or just
3647 'history' if no profile is loaded). I was getting annoyed at
3655 'history' if no profile is loaded). I was getting annoyed at
3648 getting my Numerical work history clobbered by pysh sessions.
3656 getting my Numerical work history clobbered by pysh sessions.
3649
3657
3650 * IPython/iplib.py (InteractiveShell.__init__): Internal
3658 * IPython/iplib.py (InteractiveShell.__init__): Internal
3651 getoutputerror() function so that we can honor the system_verbose
3659 getoutputerror() function so that we can honor the system_verbose
3652 flag for _all_ system calls. I also added escaping of #
3660 flag for _all_ system calls. I also added escaping of #
3653 characters here to avoid confusing Itpl.
3661 characters here to avoid confusing Itpl.
3654
3662
3655 * IPython/Magic.py (shlex_split): removed call to shell in
3663 * IPython/Magic.py (shlex_split): removed call to shell in
3656 parse_options and replaced it with shlex.split(). The annoying
3664 parse_options and replaced it with shlex.split(). The annoying
3657 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3665 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3658 to backport it from 2.3, with several frail hacks (the shlex
3666 to backport it from 2.3, with several frail hacks (the shlex
3659 module is rather limited in 2.2). Thanks to a suggestion by Ville
3667 module is rather limited in 2.2). Thanks to a suggestion by Ville
3660 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3668 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3661 problem.
3669 problem.
3662
3670
3663 (Magic.magic_system_verbose): new toggle to print the actual
3671 (Magic.magic_system_verbose): new toggle to print the actual
3664 system calls made by ipython. Mainly for debugging purposes.
3672 system calls made by ipython. Mainly for debugging purposes.
3665
3673
3666 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3674 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3667 doesn't support persistence. Reported (and fix suggested) by
3675 doesn't support persistence. Reported (and fix suggested) by
3668 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3676 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3669
3677
3670 2004-06-26 Fernando Perez <fperez@colorado.edu>
3678 2004-06-26 Fernando Perez <fperez@colorado.edu>
3671
3679
3672 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3680 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3673 continue prompts.
3681 continue prompts.
3674
3682
3675 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3683 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3676 function (basically a big docstring) and a few more things here to
3684 function (basically a big docstring) and a few more things here to
3677 speedup startup. pysh.py is now very lightweight. We want because
3685 speedup startup. pysh.py is now very lightweight. We want because
3678 it gets execfile'd, while InterpreterExec gets imported, so
3686 it gets execfile'd, while InterpreterExec gets imported, so
3679 byte-compilation saves time.
3687 byte-compilation saves time.
3680
3688
3681 2004-06-25 Fernando Perez <fperez@colorado.edu>
3689 2004-06-25 Fernando Perez <fperez@colorado.edu>
3682
3690
3683 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3691 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3684 -NUM', which was recently broken.
3692 -NUM', which was recently broken.
3685
3693
3686 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3694 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3687 in multi-line input (but not !!, which doesn't make sense there).
3695 in multi-line input (but not !!, which doesn't make sense there).
3688
3696
3689 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3697 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3690 It's just too useful, and people can turn it off in the less
3698 It's just too useful, and people can turn it off in the less
3691 common cases where it's a problem.
3699 common cases where it's a problem.
3692
3700
3693 2004-06-24 Fernando Perez <fperez@colorado.edu>
3701 2004-06-24 Fernando Perez <fperez@colorado.edu>
3694
3702
3695 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3703 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3696 special syntaxes (like alias calling) is now allied in multi-line
3704 special syntaxes (like alias calling) is now allied in multi-line
3697 input. This is still _very_ experimental, but it's necessary for
3705 input. This is still _very_ experimental, but it's necessary for
3698 efficient shell usage combining python looping syntax with system
3706 efficient shell usage combining python looping syntax with system
3699 calls. For now it's restricted to aliases, I don't think it
3707 calls. For now it's restricted to aliases, I don't think it
3700 really even makes sense to have this for magics.
3708 really even makes sense to have this for magics.
3701
3709
3702 2004-06-23 Fernando Perez <fperez@colorado.edu>
3710 2004-06-23 Fernando Perez <fperez@colorado.edu>
3703
3711
3704 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3712 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3705 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3713 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3706
3714
3707 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3715 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3708 extensions under Windows (after code sent by Gary Bishop). The
3716 extensions under Windows (after code sent by Gary Bishop). The
3709 extensions considered 'executable' are stored in IPython's rc
3717 extensions considered 'executable' are stored in IPython's rc
3710 structure as win_exec_ext.
3718 structure as win_exec_ext.
3711
3719
3712 * IPython/genutils.py (shell): new function, like system() but
3720 * IPython/genutils.py (shell): new function, like system() but
3713 without return value. Very useful for interactive shell work.
3721 without return value. Very useful for interactive shell work.
3714
3722
3715 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3723 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3716 delete aliases.
3724 delete aliases.
3717
3725
3718 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3726 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3719 sure that the alias table doesn't contain python keywords.
3727 sure that the alias table doesn't contain python keywords.
3720
3728
3721 2004-06-21 Fernando Perez <fperez@colorado.edu>
3729 2004-06-21 Fernando Perez <fperez@colorado.edu>
3722
3730
3723 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3731 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3724 non-existent items are found in $PATH. Reported by Thorsten.
3732 non-existent items are found in $PATH. Reported by Thorsten.
3725
3733
3726 2004-06-20 Fernando Perez <fperez@colorado.edu>
3734 2004-06-20 Fernando Perez <fperez@colorado.edu>
3727
3735
3728 * IPython/iplib.py (complete): modified the completer so that the
3736 * IPython/iplib.py (complete): modified the completer so that the
3729 order of priorities can be easily changed at runtime.
3737 order of priorities can be easily changed at runtime.
3730
3738
3731 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3739 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3732 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3740 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3733
3741
3734 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3742 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3735 expand Python variables prepended with $ in all system calls. The
3743 expand Python variables prepended with $ in all system calls. The
3736 same was done to InteractiveShell.handle_shell_escape. Now all
3744 same was done to InteractiveShell.handle_shell_escape. Now all
3737 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3745 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3738 expansion of python variables and expressions according to the
3746 expansion of python variables and expressions according to the
3739 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3747 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3740
3748
3741 Though PEP-215 has been rejected, a similar (but simpler) one
3749 Though PEP-215 has been rejected, a similar (but simpler) one
3742 seems like it will go into Python 2.4, PEP-292 -
3750 seems like it will go into Python 2.4, PEP-292 -
3743 http://www.python.org/peps/pep-0292.html.
3751 http://www.python.org/peps/pep-0292.html.
3744
3752
3745 I'll keep the full syntax of PEP-215, since IPython has since the
3753 I'll keep the full syntax of PEP-215, since IPython has since the
3746 start used Ka-Ping Yee's reference implementation discussed there
3754 start used Ka-Ping Yee's reference implementation discussed there
3747 (Itpl), and I actually like the powerful semantics it offers.
3755 (Itpl), and I actually like the powerful semantics it offers.
3748
3756
3749 In order to access normal shell variables, the $ has to be escaped
3757 In order to access normal shell variables, the $ has to be escaped
3750 via an extra $. For example:
3758 via an extra $. For example:
3751
3759
3752 In [7]: PATH='a python variable'
3760 In [7]: PATH='a python variable'
3753
3761
3754 In [8]: !echo $PATH
3762 In [8]: !echo $PATH
3755 a python variable
3763 a python variable
3756
3764
3757 In [9]: !echo $$PATH
3765 In [9]: !echo $$PATH
3758 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3766 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3759
3767
3760 (Magic.parse_options): escape $ so the shell doesn't evaluate
3768 (Magic.parse_options): escape $ so the shell doesn't evaluate
3761 things prematurely.
3769 things prematurely.
3762
3770
3763 * IPython/iplib.py (InteractiveShell.call_alias): added the
3771 * IPython/iplib.py (InteractiveShell.call_alias): added the
3764 ability for aliases to expand python variables via $.
3772 ability for aliases to expand python variables via $.
3765
3773
3766 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3774 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3767 system, now there's a @rehash/@rehashx pair of magics. These work
3775 system, now there's a @rehash/@rehashx pair of magics. These work
3768 like the csh rehash command, and can be invoked at any time. They
3776 like the csh rehash command, and can be invoked at any time. They
3769 build a table of aliases to everything in the user's $PATH
3777 build a table of aliases to everything in the user's $PATH
3770 (@rehash uses everything, @rehashx is slower but only adds
3778 (@rehash uses everything, @rehashx is slower but only adds
3771 executable files). With this, the pysh.py-based shell profile can
3779 executable files). With this, the pysh.py-based shell profile can
3772 now simply call rehash upon startup, and full access to all
3780 now simply call rehash upon startup, and full access to all
3773 programs in the user's path is obtained.
3781 programs in the user's path is obtained.
3774
3782
3775 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3783 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3776 functionality is now fully in place. I removed the old dynamic
3784 functionality is now fully in place. I removed the old dynamic
3777 code generation based approach, in favor of a much lighter one
3785 code generation based approach, in favor of a much lighter one
3778 based on a simple dict. The advantage is that this allows me to
3786 based on a simple dict. The advantage is that this allows me to
3779 now have thousands of aliases with negligible cost (unthinkable
3787 now have thousands of aliases with negligible cost (unthinkable
3780 with the old system).
3788 with the old system).
3781
3789
3782 2004-06-19 Fernando Perez <fperez@colorado.edu>
3790 2004-06-19 Fernando Perez <fperez@colorado.edu>
3783
3791
3784 * IPython/iplib.py (__init__): extended MagicCompleter class to
3792 * IPython/iplib.py (__init__): extended MagicCompleter class to
3785 also complete (last in priority) on user aliases.
3793 also complete (last in priority) on user aliases.
3786
3794
3787 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3795 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3788 call to eval.
3796 call to eval.
3789 (ItplNS.__init__): Added a new class which functions like Itpl,
3797 (ItplNS.__init__): Added a new class which functions like Itpl,
3790 but allows configuring the namespace for the evaluation to occur
3798 but allows configuring the namespace for the evaluation to occur
3791 in.
3799 in.
3792
3800
3793 2004-06-18 Fernando Perez <fperez@colorado.edu>
3801 2004-06-18 Fernando Perez <fperez@colorado.edu>
3794
3802
3795 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3803 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3796 better message when 'exit' or 'quit' are typed (a common newbie
3804 better message when 'exit' or 'quit' are typed (a common newbie
3797 confusion).
3805 confusion).
3798
3806
3799 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3807 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3800 check for Windows users.
3808 check for Windows users.
3801
3809
3802 * IPython/iplib.py (InteractiveShell.user_setup): removed
3810 * IPython/iplib.py (InteractiveShell.user_setup): removed
3803 disabling of colors for Windows. I'll test at runtime and issue a
3811 disabling of colors for Windows. I'll test at runtime and issue a
3804 warning if Gary's readline isn't found, as to nudge users to
3812 warning if Gary's readline isn't found, as to nudge users to
3805 download it.
3813 download it.
3806
3814
3807 2004-06-16 Fernando Perez <fperez@colorado.edu>
3815 2004-06-16 Fernando Perez <fperez@colorado.edu>
3808
3816
3809 * IPython/genutils.py (Stream.__init__): changed to print errors
3817 * IPython/genutils.py (Stream.__init__): changed to print errors
3810 to sys.stderr. I had a circular dependency here. Now it's
3818 to sys.stderr. I had a circular dependency here. Now it's
3811 possible to run ipython as IDLE's shell (consider this pre-alpha,
3819 possible to run ipython as IDLE's shell (consider this pre-alpha,
3812 since true stdout things end up in the starting terminal instead
3820 since true stdout things end up in the starting terminal instead
3813 of IDLE's out).
3821 of IDLE's out).
3814
3822
3815 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3823 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3816 users who haven't # updated their prompt_in2 definitions. Remove
3824 users who haven't # updated their prompt_in2 definitions. Remove
3817 eventually.
3825 eventually.
3818 (multiple_replace): added credit to original ASPN recipe.
3826 (multiple_replace): added credit to original ASPN recipe.
3819
3827
3820 2004-06-15 Fernando Perez <fperez@colorado.edu>
3828 2004-06-15 Fernando Perez <fperez@colorado.edu>
3821
3829
3822 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3830 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3823 list of auto-defined aliases.
3831 list of auto-defined aliases.
3824
3832
3825 2004-06-13 Fernando Perez <fperez@colorado.edu>
3833 2004-06-13 Fernando Perez <fperez@colorado.edu>
3826
3834
3827 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3835 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3828 install was really requested (so setup.py can be used for other
3836 install was really requested (so setup.py can be used for other
3829 things under Windows).
3837 things under Windows).
3830
3838
3831 2004-06-10 Fernando Perez <fperez@colorado.edu>
3839 2004-06-10 Fernando Perez <fperez@colorado.edu>
3832
3840
3833 * IPython/Logger.py (Logger.create_log): Manually remove any old
3841 * IPython/Logger.py (Logger.create_log): Manually remove any old
3834 backup, since os.remove may fail under Windows. Fixes bug
3842 backup, since os.remove may fail under Windows. Fixes bug
3835 reported by Thorsten.
3843 reported by Thorsten.
3836
3844
3837 2004-06-09 Fernando Perez <fperez@colorado.edu>
3845 2004-06-09 Fernando Perez <fperez@colorado.edu>
3838
3846
3839 * examples/example-embed.py: fixed all references to %n (replaced
3847 * examples/example-embed.py: fixed all references to %n (replaced
3840 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3848 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3841 for all examples and the manual as well.
3849 for all examples and the manual as well.
3842
3850
3843 2004-06-08 Fernando Perez <fperez@colorado.edu>
3851 2004-06-08 Fernando Perez <fperez@colorado.edu>
3844
3852
3845 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3853 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3846 alignment and color management. All 3 prompt subsystems now
3854 alignment and color management. All 3 prompt subsystems now
3847 inherit from BasePrompt.
3855 inherit from BasePrompt.
3848
3856
3849 * tools/release: updates for windows installer build and tag rpms
3857 * tools/release: updates for windows installer build and tag rpms
3850 with python version (since paths are fixed).
3858 with python version (since paths are fixed).
3851
3859
3852 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3860 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3853 which will become eventually obsolete. Also fixed the default
3861 which will become eventually obsolete. Also fixed the default
3854 prompt_in2 to use \D, so at least new users start with the correct
3862 prompt_in2 to use \D, so at least new users start with the correct
3855 defaults.
3863 defaults.
3856 WARNING: Users with existing ipythonrc files will need to apply
3864 WARNING: Users with existing ipythonrc files will need to apply
3857 this fix manually!
3865 this fix manually!
3858
3866
3859 * setup.py: make windows installer (.exe). This is finally the
3867 * setup.py: make windows installer (.exe). This is finally the
3860 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3868 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3861 which I hadn't included because it required Python 2.3 (or recent
3869 which I hadn't included because it required Python 2.3 (or recent
3862 distutils).
3870 distutils).
3863
3871
3864 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3872 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3865 usage of new '\D' escape.
3873 usage of new '\D' escape.
3866
3874
3867 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3875 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3868 lacks os.getuid())
3876 lacks os.getuid())
3869 (CachedOutput.set_colors): Added the ability to turn coloring
3877 (CachedOutput.set_colors): Added the ability to turn coloring
3870 on/off with @colors even for manually defined prompt colors. It
3878 on/off with @colors even for manually defined prompt colors. It
3871 uses a nasty global, but it works safely and via the generic color
3879 uses a nasty global, but it works safely and via the generic color
3872 handling mechanism.
3880 handling mechanism.
3873 (Prompt2.__init__): Introduced new escape '\D' for continuation
3881 (Prompt2.__init__): Introduced new escape '\D' for continuation
3874 prompts. It represents the counter ('\#') as dots.
3882 prompts. It represents the counter ('\#') as dots.
3875 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3883 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3876 need to update their ipythonrc files and replace '%n' with '\D' in
3884 need to update their ipythonrc files and replace '%n' with '\D' in
3877 their prompt_in2 settings everywhere. Sorry, but there's
3885 their prompt_in2 settings everywhere. Sorry, but there's
3878 otherwise no clean way to get all prompts to properly align. The
3886 otherwise no clean way to get all prompts to properly align. The
3879 ipythonrc shipped with IPython has been updated.
3887 ipythonrc shipped with IPython has been updated.
3880
3888
3881 2004-06-07 Fernando Perez <fperez@colorado.edu>
3889 2004-06-07 Fernando Perez <fperez@colorado.edu>
3882
3890
3883 * setup.py (isfile): Pass local_icons option to latex2html, so the
3891 * setup.py (isfile): Pass local_icons option to latex2html, so the
3884 resulting HTML file is self-contained. Thanks to
3892 resulting HTML file is self-contained. Thanks to
3885 dryice-AT-liu.com.cn for the tip.
3893 dryice-AT-liu.com.cn for the tip.
3886
3894
3887 * pysh.py: I created a new profile 'shell', which implements a
3895 * pysh.py: I created a new profile 'shell', which implements a
3888 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3896 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3889 system shell, nor will it become one anytime soon. It's mainly
3897 system shell, nor will it become one anytime soon. It's mainly
3890 meant to illustrate the use of the new flexible bash-like prompts.
3898 meant to illustrate the use of the new flexible bash-like prompts.
3891 I guess it could be used by hardy souls for true shell management,
3899 I guess it could be used by hardy souls for true shell management,
3892 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3900 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3893 profile. This uses the InterpreterExec extension provided by
3901 profile. This uses the InterpreterExec extension provided by
3894 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3902 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3895
3903
3896 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3904 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3897 auto-align itself with the length of the previous input prompt
3905 auto-align itself with the length of the previous input prompt
3898 (taking into account the invisible color escapes).
3906 (taking into account the invisible color escapes).
3899 (CachedOutput.__init__): Large restructuring of this class. Now
3907 (CachedOutput.__init__): Large restructuring of this class. Now
3900 all three prompts (primary1, primary2, output) are proper objects,
3908 all three prompts (primary1, primary2, output) are proper objects,
3901 managed by the 'parent' CachedOutput class. The code is still a
3909 managed by the 'parent' CachedOutput class. The code is still a
3902 bit hackish (all prompts share state via a pointer to the cache),
3910 bit hackish (all prompts share state via a pointer to the cache),
3903 but it's overall far cleaner than before.
3911 but it's overall far cleaner than before.
3904
3912
3905 * IPython/genutils.py (getoutputerror): modified to add verbose,
3913 * IPython/genutils.py (getoutputerror): modified to add verbose,
3906 debug and header options. This makes the interface of all getout*
3914 debug and header options. This makes the interface of all getout*
3907 functions uniform.
3915 functions uniform.
3908 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3916 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3909
3917
3910 * IPython/Magic.py (Magic.default_option): added a function to
3918 * IPython/Magic.py (Magic.default_option): added a function to
3911 allow registering default options for any magic command. This
3919 allow registering default options for any magic command. This
3912 makes it easy to have profiles which customize the magics globally
3920 makes it easy to have profiles which customize the magics globally
3913 for a certain use. The values set through this function are
3921 for a certain use. The values set through this function are
3914 picked up by the parse_options() method, which all magics should
3922 picked up by the parse_options() method, which all magics should
3915 use to parse their options.
3923 use to parse their options.
3916
3924
3917 * IPython/genutils.py (warn): modified the warnings framework to
3925 * IPython/genutils.py (warn): modified the warnings framework to
3918 use the Term I/O class. I'm trying to slowly unify all of
3926 use the Term I/O class. I'm trying to slowly unify all of
3919 IPython's I/O operations to pass through Term.
3927 IPython's I/O operations to pass through Term.
3920
3928
3921 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3929 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3922 the secondary prompt to correctly match the length of the primary
3930 the secondary prompt to correctly match the length of the primary
3923 one for any prompt. Now multi-line code will properly line up
3931 one for any prompt. Now multi-line code will properly line up
3924 even for path dependent prompts, such as the new ones available
3932 even for path dependent prompts, such as the new ones available
3925 via the prompt_specials.
3933 via the prompt_specials.
3926
3934
3927 2004-06-06 Fernando Perez <fperez@colorado.edu>
3935 2004-06-06 Fernando Perez <fperez@colorado.edu>
3928
3936
3929 * IPython/Prompts.py (prompt_specials): Added the ability to have
3937 * IPython/Prompts.py (prompt_specials): Added the ability to have
3930 bash-like special sequences in the prompts, which get
3938 bash-like special sequences in the prompts, which get
3931 automatically expanded. Things like hostname, current working
3939 automatically expanded. Things like hostname, current working
3932 directory and username are implemented already, but it's easy to
3940 directory and username are implemented already, but it's easy to
3933 add more in the future. Thanks to a patch by W.J. van der Laan
3941 add more in the future. Thanks to a patch by W.J. van der Laan
3934 <gnufnork-AT-hetdigitalegat.nl>
3942 <gnufnork-AT-hetdigitalegat.nl>
3935 (prompt_specials): Added color support for prompt strings, so
3943 (prompt_specials): Added color support for prompt strings, so
3936 users can define arbitrary color setups for their prompts.
3944 users can define arbitrary color setups for their prompts.
3937
3945
3938 2004-06-05 Fernando Perez <fperez@colorado.edu>
3946 2004-06-05 Fernando Perez <fperez@colorado.edu>
3939
3947
3940 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3948 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3941 code to load Gary Bishop's readline and configure it
3949 code to load Gary Bishop's readline and configure it
3942 automatically. Thanks to Gary for help on this.
3950 automatically. Thanks to Gary for help on this.
3943
3951
3944 2004-06-01 Fernando Perez <fperez@colorado.edu>
3952 2004-06-01 Fernando Perez <fperez@colorado.edu>
3945
3953
3946 * IPython/Logger.py (Logger.create_log): fix bug for logging
3954 * IPython/Logger.py (Logger.create_log): fix bug for logging
3947 with no filename (previous fix was incomplete).
3955 with no filename (previous fix was incomplete).
3948
3956
3949 2004-05-25 Fernando Perez <fperez@colorado.edu>
3957 2004-05-25 Fernando Perez <fperez@colorado.edu>
3950
3958
3951 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3959 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3952 parens would get passed to the shell.
3960 parens would get passed to the shell.
3953
3961
3954 2004-05-20 Fernando Perez <fperez@colorado.edu>
3962 2004-05-20 Fernando Perez <fperez@colorado.edu>
3955
3963
3956 * IPython/Magic.py (Magic.magic_prun): changed default profile
3964 * IPython/Magic.py (Magic.magic_prun): changed default profile
3957 sort order to 'time' (the more common profiling need).
3965 sort order to 'time' (the more common profiling need).
3958
3966
3959 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3967 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3960 so that source code shown is guaranteed in sync with the file on
3968 so that source code shown is guaranteed in sync with the file on
3961 disk (also changed in psource). Similar fix to the one for
3969 disk (also changed in psource). Similar fix to the one for
3962 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3970 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3963 <yann.ledu-AT-noos.fr>.
3971 <yann.ledu-AT-noos.fr>.
3964
3972
3965 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3973 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3966 with a single option would not be correctly parsed. Closes
3974 with a single option would not be correctly parsed. Closes
3967 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3975 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3968 introduced in 0.6.0 (on 2004-05-06).
3976 introduced in 0.6.0 (on 2004-05-06).
3969
3977
3970 2004-05-13 *** Released version 0.6.0
3978 2004-05-13 *** Released version 0.6.0
3971
3979
3972 2004-05-13 Fernando Perez <fperez@colorado.edu>
3980 2004-05-13 Fernando Perez <fperez@colorado.edu>
3973
3981
3974 * debian/: Added debian/ directory to CVS, so that debian support
3982 * debian/: Added debian/ directory to CVS, so that debian support
3975 is publicly accessible. The debian package is maintained by Jack
3983 is publicly accessible. The debian package is maintained by Jack
3976 Moffit <jack-AT-xiph.org>.
3984 Moffit <jack-AT-xiph.org>.
3977
3985
3978 * Documentation: included the notes about an ipython-based system
3986 * Documentation: included the notes about an ipython-based system
3979 shell (the hypothetical 'pysh') into the new_design.pdf document,
3987 shell (the hypothetical 'pysh') into the new_design.pdf document,
3980 so that these ideas get distributed to users along with the
3988 so that these ideas get distributed to users along with the
3981 official documentation.
3989 official documentation.
3982
3990
3983 2004-05-10 Fernando Perez <fperez@colorado.edu>
3991 2004-05-10 Fernando Perez <fperez@colorado.edu>
3984
3992
3985 * IPython/Logger.py (Logger.create_log): fix recently introduced
3993 * IPython/Logger.py (Logger.create_log): fix recently introduced
3986 bug (misindented line) where logstart would fail when not given an
3994 bug (misindented line) where logstart would fail when not given an
3987 explicit filename.
3995 explicit filename.
3988
3996
3989 2004-05-09 Fernando Perez <fperez@colorado.edu>
3997 2004-05-09 Fernando Perez <fperez@colorado.edu>
3990
3998
3991 * IPython/Magic.py (Magic.parse_options): skip system call when
3999 * IPython/Magic.py (Magic.parse_options): skip system call when
3992 there are no options to look for. Faster, cleaner for the common
4000 there are no options to look for. Faster, cleaner for the common
3993 case.
4001 case.
3994
4002
3995 * Documentation: many updates to the manual: describing Windows
4003 * Documentation: many updates to the manual: describing Windows
3996 support better, Gnuplot updates, credits, misc small stuff. Also
4004 support better, Gnuplot updates, credits, misc small stuff. Also
3997 updated the new_design doc a bit.
4005 updated the new_design doc a bit.
3998
4006
3999 2004-05-06 *** Released version 0.6.0.rc1
4007 2004-05-06 *** Released version 0.6.0.rc1
4000
4008
4001 2004-05-06 Fernando Perez <fperez@colorado.edu>
4009 2004-05-06 Fernando Perez <fperez@colorado.edu>
4002
4010
4003 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
4011 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
4004 operations to use the vastly more efficient list/''.join() method.
4012 operations to use the vastly more efficient list/''.join() method.
4005 (FormattedTB.text): Fix
4013 (FormattedTB.text): Fix
4006 http://www.scipy.net/roundup/ipython/issue12 - exception source
4014 http://www.scipy.net/roundup/ipython/issue12 - exception source
4007 extract not updated after reload. Thanks to Mike Salib
4015 extract not updated after reload. Thanks to Mike Salib
4008 <msalib-AT-mit.edu> for pinning the source of the problem.
4016 <msalib-AT-mit.edu> for pinning the source of the problem.
4009 Fortunately, the solution works inside ipython and doesn't require
4017 Fortunately, the solution works inside ipython and doesn't require
4010 any changes to python proper.
4018 any changes to python proper.
4011
4019
4012 * IPython/Magic.py (Magic.parse_options): Improved to process the
4020 * IPython/Magic.py (Magic.parse_options): Improved to process the
4013 argument list as a true shell would (by actually using the
4021 argument list as a true shell would (by actually using the
4014 underlying system shell). This way, all @magics automatically get
4022 underlying system shell). This way, all @magics automatically get
4015 shell expansion for variables. Thanks to a comment by Alex
4023 shell expansion for variables. Thanks to a comment by Alex
4016 Schmolck.
4024 Schmolck.
4017
4025
4018 2004-04-04 Fernando Perez <fperez@colorado.edu>
4026 2004-04-04 Fernando Perez <fperez@colorado.edu>
4019
4027
4020 * IPython/iplib.py (InteractiveShell.interact): Added a special
4028 * IPython/iplib.py (InteractiveShell.interact): Added a special
4021 trap for a debugger quit exception, which is basically impossible
4029 trap for a debugger quit exception, which is basically impossible
4022 to handle by normal mechanisms, given what pdb does to the stack.
4030 to handle by normal mechanisms, given what pdb does to the stack.
4023 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4031 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
4024
4032
4025 2004-04-03 Fernando Perez <fperez@colorado.edu>
4033 2004-04-03 Fernando Perez <fperez@colorado.edu>
4026
4034
4027 * IPython/genutils.py (Term): Standardized the names of the Term
4035 * IPython/genutils.py (Term): Standardized the names of the Term
4028 class streams to cin/cout/cerr, following C++ naming conventions
4036 class streams to cin/cout/cerr, following C++ naming conventions
4029 (I can't use in/out/err because 'in' is not a valid attribute
4037 (I can't use in/out/err because 'in' is not a valid attribute
4030 name).
4038 name).
4031
4039
4032 * IPython/iplib.py (InteractiveShell.interact): don't increment
4040 * IPython/iplib.py (InteractiveShell.interact): don't increment
4033 the prompt if there's no user input. By Daniel 'Dang' Griffith
4041 the prompt if there's no user input. By Daniel 'Dang' Griffith
4034 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4042 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
4035 Francois Pinard.
4043 Francois Pinard.
4036
4044
4037 2004-04-02 Fernando Perez <fperez@colorado.edu>
4045 2004-04-02 Fernando Perez <fperez@colorado.edu>
4038
4046
4039 * IPython/genutils.py (Stream.__init__): Modified to survive at
4047 * IPython/genutils.py (Stream.__init__): Modified to survive at
4040 least importing in contexts where stdin/out/err aren't true file
4048 least importing in contexts where stdin/out/err aren't true file
4041 objects, such as PyCrust (they lack fileno() and mode). However,
4049 objects, such as PyCrust (they lack fileno() and mode). However,
4042 the recovery facilities which rely on these things existing will
4050 the recovery facilities which rely on these things existing will
4043 not work.
4051 not work.
4044
4052
4045 2004-04-01 Fernando Perez <fperez@colorado.edu>
4053 2004-04-01 Fernando Perez <fperez@colorado.edu>
4046
4054
4047 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4055 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
4048 use the new getoutputerror() function, so it properly
4056 use the new getoutputerror() function, so it properly
4049 distinguishes stdout/err.
4057 distinguishes stdout/err.
4050
4058
4051 * IPython/genutils.py (getoutputerror): added a function to
4059 * IPython/genutils.py (getoutputerror): added a function to
4052 capture separately the standard output and error of a command.
4060 capture separately the standard output and error of a command.
4053 After a comment from dang on the mailing lists. This code is
4061 After a comment from dang on the mailing lists. This code is
4054 basically a modified version of commands.getstatusoutput(), from
4062 basically a modified version of commands.getstatusoutput(), from
4055 the standard library.
4063 the standard library.
4056
4064
4057 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4065 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
4058 '!!' as a special syntax (shorthand) to access @sx.
4066 '!!' as a special syntax (shorthand) to access @sx.
4059
4067
4060 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4068 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
4061 command and return its output as a list split on '\n'.
4069 command and return its output as a list split on '\n'.
4062
4070
4063 2004-03-31 Fernando Perez <fperez@colorado.edu>
4071 2004-03-31 Fernando Perez <fperez@colorado.edu>
4064
4072
4065 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4073 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
4066 method to dictionaries used as FakeModule instances if they lack
4074 method to dictionaries used as FakeModule instances if they lack
4067 it. At least pydoc in python2.3 breaks for runtime-defined
4075 it. At least pydoc in python2.3 breaks for runtime-defined
4068 functions without this hack. At some point I need to _really_
4076 functions without this hack. At some point I need to _really_
4069 understand what FakeModule is doing, because it's a gross hack.
4077 understand what FakeModule is doing, because it's a gross hack.
4070 But it solves Arnd's problem for now...
4078 But it solves Arnd's problem for now...
4071
4079
4072 2004-02-27 Fernando Perez <fperez@colorado.edu>
4080 2004-02-27 Fernando Perez <fperez@colorado.edu>
4073
4081
4074 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4082 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
4075 mode would behave erratically. Also increased the number of
4083 mode would behave erratically. Also increased the number of
4076 possible logs in rotate mod to 999. Thanks to Rod Holland
4084 possible logs in rotate mod to 999. Thanks to Rod Holland
4077 <rhh@StructureLABS.com> for the report and fixes.
4085 <rhh@StructureLABS.com> for the report and fixes.
4078
4086
4079 2004-02-26 Fernando Perez <fperez@colorado.edu>
4087 2004-02-26 Fernando Perez <fperez@colorado.edu>
4080
4088
4081 * IPython/genutils.py (page): Check that the curses module really
4089 * IPython/genutils.py (page): Check that the curses module really
4082 has the initscr attribute before trying to use it. For some
4090 has the initscr attribute before trying to use it. For some
4083 reason, the Solaris curses module is missing this. I think this
4091 reason, the Solaris curses module is missing this. I think this
4084 should be considered a Solaris python bug, but I'm not sure.
4092 should be considered a Solaris python bug, but I'm not sure.
4085
4093
4086 2004-01-17 Fernando Perez <fperez@colorado.edu>
4094 2004-01-17 Fernando Perez <fperez@colorado.edu>
4087
4095
4088 * IPython/genutils.py (Stream.__init__): Changes to try to make
4096 * IPython/genutils.py (Stream.__init__): Changes to try to make
4089 ipython robust against stdin/out/err being closed by the user.
4097 ipython robust against stdin/out/err being closed by the user.
4090 This is 'user error' (and blocks a normal python session, at least
4098 This is 'user error' (and blocks a normal python session, at least
4091 the stdout case). However, Ipython should be able to survive such
4099 the stdout case). However, Ipython should be able to survive such
4092 instances of abuse as gracefully as possible. To simplify the
4100 instances of abuse as gracefully as possible. To simplify the
4093 coding and maintain compatibility with Gary Bishop's Term
4101 coding and maintain compatibility with Gary Bishop's Term
4094 contributions, I've made use of classmethods for this. I think
4102 contributions, I've made use of classmethods for this. I think
4095 this introduces a dependency on python 2.2.
4103 this introduces a dependency on python 2.2.
4096
4104
4097 2004-01-13 Fernando Perez <fperez@colorado.edu>
4105 2004-01-13 Fernando Perez <fperez@colorado.edu>
4098
4106
4099 * IPython/numutils.py (exp_safe): simplified the code a bit and
4107 * IPython/numutils.py (exp_safe): simplified the code a bit and
4100 removed the need for importing the kinds module altogether.
4108 removed the need for importing the kinds module altogether.
4101
4109
4102 2004-01-06 Fernando Perez <fperez@colorado.edu>
4110 2004-01-06 Fernando Perez <fperez@colorado.edu>
4103
4111
4104 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4112 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
4105 a magic function instead, after some community feedback. No
4113 a magic function instead, after some community feedback. No
4106 special syntax will exist for it, but its name is deliberately
4114 special syntax will exist for it, but its name is deliberately
4107 very short.
4115 very short.
4108
4116
4109 2003-12-20 Fernando Perez <fperez@colorado.edu>
4117 2003-12-20 Fernando Perez <fperez@colorado.edu>
4110
4118
4111 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4119 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
4112 new functionality, to automagically assign the result of a shell
4120 new functionality, to automagically assign the result of a shell
4113 command to a variable. I'll solicit some community feedback on
4121 command to a variable. I'll solicit some community feedback on
4114 this before making it permanent.
4122 this before making it permanent.
4115
4123
4116 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4124 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
4117 requested about callables for which inspect couldn't obtain a
4125 requested about callables for which inspect couldn't obtain a
4118 proper argspec. Thanks to a crash report sent by Etienne
4126 proper argspec. Thanks to a crash report sent by Etienne
4119 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4127 Posthumus <etienne-AT-apple01.cs.vu.nl>.
4120
4128
4121 2003-12-09 Fernando Perez <fperez@colorado.edu>
4129 2003-12-09 Fernando Perez <fperez@colorado.edu>
4122
4130
4123 * IPython/genutils.py (page): patch for the pager to work across
4131 * IPython/genutils.py (page): patch for the pager to work across
4124 various versions of Windows. By Gary Bishop.
4132 various versions of Windows. By Gary Bishop.
4125
4133
4126 2003-12-04 Fernando Perez <fperez@colorado.edu>
4134 2003-12-04 Fernando Perez <fperez@colorado.edu>
4127
4135
4128 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4136 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
4129 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4137 Gnuplot.py version 1.7, whose internal names changed quite a bit.
4130 While I tested this and it looks ok, there may still be corner
4138 While I tested this and it looks ok, there may still be corner
4131 cases I've missed.
4139 cases I've missed.
4132
4140
4133 2003-12-01 Fernando Perez <fperez@colorado.edu>
4141 2003-12-01 Fernando Perez <fperez@colorado.edu>
4134
4142
4135 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4143 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
4136 where a line like 'p,q=1,2' would fail because the automagic
4144 where a line like 'p,q=1,2' would fail because the automagic
4137 system would be triggered for @p.
4145 system would be triggered for @p.
4138
4146
4139 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4147 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
4140 cleanups, code unmodified.
4148 cleanups, code unmodified.
4141
4149
4142 * IPython/genutils.py (Term): added a class for IPython to handle
4150 * IPython/genutils.py (Term): added a class for IPython to handle
4143 output. In most cases it will just be a proxy for stdout/err, but
4151 output. In most cases it will just be a proxy for stdout/err, but
4144 having this allows modifications to be made for some platforms,
4152 having this allows modifications to be made for some platforms,
4145 such as handling color escapes under Windows. All of this code
4153 such as handling color escapes under Windows. All of this code
4146 was contributed by Gary Bishop, with minor modifications by me.
4154 was contributed by Gary Bishop, with minor modifications by me.
4147 The actual changes affect many files.
4155 The actual changes affect many files.
4148
4156
4149 2003-11-30 Fernando Perez <fperez@colorado.edu>
4157 2003-11-30 Fernando Perez <fperez@colorado.edu>
4150
4158
4151 * IPython/iplib.py (file_matches): new completion code, courtesy
4159 * IPython/iplib.py (file_matches): new completion code, courtesy
4152 of Jeff Collins. This enables filename completion again under
4160 of Jeff Collins. This enables filename completion again under
4153 python 2.3, which disabled it at the C level.
4161 python 2.3, which disabled it at the C level.
4154
4162
4155 2003-11-11 Fernando Perez <fperez@colorado.edu>
4163 2003-11-11 Fernando Perez <fperez@colorado.edu>
4156
4164
4157 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4165 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4158 for Numeric.array(map(...)), but often convenient.
4166 for Numeric.array(map(...)), but often convenient.
4159
4167
4160 2003-11-05 Fernando Perez <fperez@colorado.edu>
4168 2003-11-05 Fernando Perez <fperez@colorado.edu>
4161
4169
4162 * IPython/numutils.py (frange): Changed a call from int() to
4170 * IPython/numutils.py (frange): Changed a call from int() to
4163 int(round()) to prevent a problem reported with arange() in the
4171 int(round()) to prevent a problem reported with arange() in the
4164 numpy list.
4172 numpy list.
4165
4173
4166 2003-10-06 Fernando Perez <fperez@colorado.edu>
4174 2003-10-06 Fernando Perez <fperez@colorado.edu>
4167
4175
4168 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4176 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4169 prevent crashes if sys lacks an argv attribute (it happens with
4177 prevent crashes if sys lacks an argv attribute (it happens with
4170 embedded interpreters which build a bare-bones sys module).
4178 embedded interpreters which build a bare-bones sys module).
4171 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4179 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4172
4180
4173 2003-09-24 Fernando Perez <fperez@colorado.edu>
4181 2003-09-24 Fernando Perez <fperez@colorado.edu>
4174
4182
4175 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4183 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4176 to protect against poorly written user objects where __getattr__
4184 to protect against poorly written user objects where __getattr__
4177 raises exceptions other than AttributeError. Thanks to a bug
4185 raises exceptions other than AttributeError. Thanks to a bug
4178 report by Oliver Sander <osander-AT-gmx.de>.
4186 report by Oliver Sander <osander-AT-gmx.de>.
4179
4187
4180 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4188 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4181 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4189 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4182
4190
4183 2003-09-09 Fernando Perez <fperez@colorado.edu>
4191 2003-09-09 Fernando Perez <fperez@colorado.edu>
4184
4192
4185 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4193 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4186 unpacking a list whith a callable as first element would
4194 unpacking a list whith a callable as first element would
4187 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4195 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4188 Collins.
4196 Collins.
4189
4197
4190 2003-08-25 *** Released version 0.5.0
4198 2003-08-25 *** Released version 0.5.0
4191
4199
4192 2003-08-22 Fernando Perez <fperez@colorado.edu>
4200 2003-08-22 Fernando Perez <fperez@colorado.edu>
4193
4201
4194 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4202 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4195 improperly defined user exceptions. Thanks to feedback from Mark
4203 improperly defined user exceptions. Thanks to feedback from Mark
4196 Russell <mrussell-AT-verio.net>.
4204 Russell <mrussell-AT-verio.net>.
4197
4205
4198 2003-08-20 Fernando Perez <fperez@colorado.edu>
4206 2003-08-20 Fernando Perez <fperez@colorado.edu>
4199
4207
4200 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4208 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4201 printing so that it would print multi-line string forms starting
4209 printing so that it would print multi-line string forms starting
4202 with a new line. This way the formatting is better respected for
4210 with a new line. This way the formatting is better respected for
4203 objects which work hard to make nice string forms.
4211 objects which work hard to make nice string forms.
4204
4212
4205 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4213 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4206 autocall would overtake data access for objects with both
4214 autocall would overtake data access for objects with both
4207 __getitem__ and __call__.
4215 __getitem__ and __call__.
4208
4216
4209 2003-08-19 *** Released version 0.5.0-rc1
4217 2003-08-19 *** Released version 0.5.0-rc1
4210
4218
4211 2003-08-19 Fernando Perez <fperez@colorado.edu>
4219 2003-08-19 Fernando Perez <fperez@colorado.edu>
4212
4220
4213 * IPython/deep_reload.py (load_tail): single tiny change here
4221 * IPython/deep_reload.py (load_tail): single tiny change here
4214 seems to fix the long-standing bug of dreload() failing to work
4222 seems to fix the long-standing bug of dreload() failing to work
4215 for dotted names. But this module is pretty tricky, so I may have
4223 for dotted names. But this module is pretty tricky, so I may have
4216 missed some subtlety. Needs more testing!.
4224 missed some subtlety. Needs more testing!.
4217
4225
4218 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4226 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4219 exceptions which have badly implemented __str__ methods.
4227 exceptions which have badly implemented __str__ methods.
4220 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4228 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4221 which I've been getting reports about from Python 2.3 users. I
4229 which I've been getting reports about from Python 2.3 users. I
4222 wish I had a simple test case to reproduce the problem, so I could
4230 wish I had a simple test case to reproduce the problem, so I could
4223 either write a cleaner workaround or file a bug report if
4231 either write a cleaner workaround or file a bug report if
4224 necessary.
4232 necessary.
4225
4233
4226 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4234 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4227 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4235 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4228 a bug report by Tjabo Kloppenburg.
4236 a bug report by Tjabo Kloppenburg.
4229
4237
4230 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4238 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4231 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4239 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4232 seems rather unstable. Thanks to a bug report by Tjabo
4240 seems rather unstable. Thanks to a bug report by Tjabo
4233 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4241 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4234
4242
4235 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4243 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4236 this out soon because of the critical fixes in the inner loop for
4244 this out soon because of the critical fixes in the inner loop for
4237 generators.
4245 generators.
4238
4246
4239 * IPython/Magic.py (Magic.getargspec): removed. This (and
4247 * IPython/Magic.py (Magic.getargspec): removed. This (and
4240 _get_def) have been obsoleted by OInspect for a long time, I
4248 _get_def) have been obsoleted by OInspect for a long time, I
4241 hadn't noticed that they were dead code.
4249 hadn't noticed that they were dead code.
4242 (Magic._ofind): restored _ofind functionality for a few literals
4250 (Magic._ofind): restored _ofind functionality for a few literals
4243 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4251 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4244 for things like "hello".capitalize?, since that would require a
4252 for things like "hello".capitalize?, since that would require a
4245 potentially dangerous eval() again.
4253 potentially dangerous eval() again.
4246
4254
4247 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4255 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4248 logic a bit more to clean up the escapes handling and minimize the
4256 logic a bit more to clean up the escapes handling and minimize the
4249 use of _ofind to only necessary cases. The interactive 'feel' of
4257 use of _ofind to only necessary cases. The interactive 'feel' of
4250 IPython should have improved quite a bit with the changes in
4258 IPython should have improved quite a bit with the changes in
4251 _prefilter and _ofind (besides being far safer than before).
4259 _prefilter and _ofind (besides being far safer than before).
4252
4260
4253 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4261 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4254 obscure, never reported). Edit would fail to find the object to
4262 obscure, never reported). Edit would fail to find the object to
4255 edit under some circumstances.
4263 edit under some circumstances.
4256 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4264 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4257 which were causing double-calling of generators. Those eval calls
4265 which were causing double-calling of generators. Those eval calls
4258 were _very_ dangerous, since code with side effects could be
4266 were _very_ dangerous, since code with side effects could be
4259 triggered. As they say, 'eval is evil'... These were the
4267 triggered. As they say, 'eval is evil'... These were the
4260 nastiest evals in IPython. Besides, _ofind is now far simpler,
4268 nastiest evals in IPython. Besides, _ofind is now far simpler,
4261 and it should also be quite a bit faster. Its use of inspect is
4269 and it should also be quite a bit faster. Its use of inspect is
4262 also safer, so perhaps some of the inspect-related crashes I've
4270 also safer, so perhaps some of the inspect-related crashes I've
4263 seen lately with Python 2.3 might be taken care of. That will
4271 seen lately with Python 2.3 might be taken care of. That will
4264 need more testing.
4272 need more testing.
4265
4273
4266 2003-08-17 Fernando Perez <fperez@colorado.edu>
4274 2003-08-17 Fernando Perez <fperez@colorado.edu>
4267
4275
4268 * IPython/iplib.py (InteractiveShell._prefilter): significant
4276 * IPython/iplib.py (InteractiveShell._prefilter): significant
4269 simplifications to the logic for handling user escapes. Faster
4277 simplifications to the logic for handling user escapes. Faster
4270 and simpler code.
4278 and simpler code.
4271
4279
4272 2003-08-14 Fernando Perez <fperez@colorado.edu>
4280 2003-08-14 Fernando Perez <fperez@colorado.edu>
4273
4281
4274 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4282 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4275 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4283 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4276 but it should be quite a bit faster. And the recursive version
4284 but it should be quite a bit faster. And the recursive version
4277 generated O(log N) intermediate storage for all rank>1 arrays,
4285 generated O(log N) intermediate storage for all rank>1 arrays,
4278 even if they were contiguous.
4286 even if they were contiguous.
4279 (l1norm): Added this function.
4287 (l1norm): Added this function.
4280 (norm): Added this function for arbitrary norms (including
4288 (norm): Added this function for arbitrary norms (including
4281 l-infinity). l1 and l2 are still special cases for convenience
4289 l-infinity). l1 and l2 are still special cases for convenience
4282 and speed.
4290 and speed.
4283
4291
4284 2003-08-03 Fernando Perez <fperez@colorado.edu>
4292 2003-08-03 Fernando Perez <fperez@colorado.edu>
4285
4293
4286 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4294 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4287 exceptions, which now raise PendingDeprecationWarnings in Python
4295 exceptions, which now raise PendingDeprecationWarnings in Python
4288 2.3. There were some in Magic and some in Gnuplot2.
4296 2.3. There were some in Magic and some in Gnuplot2.
4289
4297
4290 2003-06-30 Fernando Perez <fperez@colorado.edu>
4298 2003-06-30 Fernando Perez <fperez@colorado.edu>
4291
4299
4292 * IPython/genutils.py (page): modified to call curses only for
4300 * IPython/genutils.py (page): modified to call curses only for
4293 terminals where TERM=='xterm'. After problems under many other
4301 terminals where TERM=='xterm'. After problems under many other
4294 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4302 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4295
4303
4296 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4304 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4297 would be triggered when readline was absent. This was just an old
4305 would be triggered when readline was absent. This was just an old
4298 debugging statement I'd forgotten to take out.
4306 debugging statement I'd forgotten to take out.
4299
4307
4300 2003-06-20 Fernando Perez <fperez@colorado.edu>
4308 2003-06-20 Fernando Perez <fperez@colorado.edu>
4301
4309
4302 * IPython/genutils.py (clock): modified to return only user time
4310 * IPython/genutils.py (clock): modified to return only user time
4303 (not counting system time), after a discussion on scipy. While
4311 (not counting system time), after a discussion on scipy. While
4304 system time may be a useful quantity occasionally, it may much
4312 system time may be a useful quantity occasionally, it may much
4305 more easily be skewed by occasional swapping or other similar
4313 more easily be skewed by occasional swapping or other similar
4306 activity.
4314 activity.
4307
4315
4308 2003-06-05 Fernando Perez <fperez@colorado.edu>
4316 2003-06-05 Fernando Perez <fperez@colorado.edu>
4309
4317
4310 * IPython/numutils.py (identity): new function, for building
4318 * IPython/numutils.py (identity): new function, for building
4311 arbitrary rank Kronecker deltas (mostly backwards compatible with
4319 arbitrary rank Kronecker deltas (mostly backwards compatible with
4312 Numeric.identity)
4320 Numeric.identity)
4313
4321
4314 2003-06-03 Fernando Perez <fperez@colorado.edu>
4322 2003-06-03 Fernando Perez <fperez@colorado.edu>
4315
4323
4316 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4324 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4317 arguments passed to magics with spaces, to allow trailing '\' to
4325 arguments passed to magics with spaces, to allow trailing '\' to
4318 work normally (mainly for Windows users).
4326 work normally (mainly for Windows users).
4319
4327
4320 2003-05-29 Fernando Perez <fperez@colorado.edu>
4328 2003-05-29 Fernando Perez <fperez@colorado.edu>
4321
4329
4322 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4330 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4323 instead of pydoc.help. This fixes a bizarre behavior where
4331 instead of pydoc.help. This fixes a bizarre behavior where
4324 printing '%s' % locals() would trigger the help system. Now
4332 printing '%s' % locals() would trigger the help system. Now
4325 ipython behaves like normal python does.
4333 ipython behaves like normal python does.
4326
4334
4327 Note that if one does 'from pydoc import help', the bizarre
4335 Note that if one does 'from pydoc import help', the bizarre
4328 behavior returns, but this will also happen in normal python, so
4336 behavior returns, but this will also happen in normal python, so
4329 it's not an ipython bug anymore (it has to do with how pydoc.help
4337 it's not an ipython bug anymore (it has to do with how pydoc.help
4330 is implemented).
4338 is implemented).
4331
4339
4332 2003-05-22 Fernando Perez <fperez@colorado.edu>
4340 2003-05-22 Fernando Perez <fperez@colorado.edu>
4333
4341
4334 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4342 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4335 return [] instead of None when nothing matches, also match to end
4343 return [] instead of None when nothing matches, also match to end
4336 of line. Patch by Gary Bishop.
4344 of line. Patch by Gary Bishop.
4337
4345
4338 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4346 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4339 protection as before, for files passed on the command line. This
4347 protection as before, for files passed on the command line. This
4340 prevents the CrashHandler from kicking in if user files call into
4348 prevents the CrashHandler from kicking in if user files call into
4341 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4349 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4342 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4350 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4343
4351
4344 2003-05-20 *** Released version 0.4.0
4352 2003-05-20 *** Released version 0.4.0
4345
4353
4346 2003-05-20 Fernando Perez <fperez@colorado.edu>
4354 2003-05-20 Fernando Perez <fperez@colorado.edu>
4347
4355
4348 * setup.py: added support for manpages. It's a bit hackish b/c of
4356 * setup.py: added support for manpages. It's a bit hackish b/c of
4349 a bug in the way the bdist_rpm distutils target handles gzipped
4357 a bug in the way the bdist_rpm distutils target handles gzipped
4350 manpages, but it works. After a patch by Jack.
4358 manpages, but it works. After a patch by Jack.
4351
4359
4352 2003-05-19 Fernando Perez <fperez@colorado.edu>
4360 2003-05-19 Fernando Perez <fperez@colorado.edu>
4353
4361
4354 * IPython/numutils.py: added a mockup of the kinds module, since
4362 * IPython/numutils.py: added a mockup of the kinds module, since
4355 it was recently removed from Numeric. This way, numutils will
4363 it was recently removed from Numeric. This way, numutils will
4356 work for all users even if they are missing kinds.
4364 work for all users even if they are missing kinds.
4357
4365
4358 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4366 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4359 failure, which can occur with SWIG-wrapped extensions. After a
4367 failure, which can occur with SWIG-wrapped extensions. After a
4360 crash report from Prabhu.
4368 crash report from Prabhu.
4361
4369
4362 2003-05-16 Fernando Perez <fperez@colorado.edu>
4370 2003-05-16 Fernando Perez <fperez@colorado.edu>
4363
4371
4364 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4372 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4365 protect ipython from user code which may call directly
4373 protect ipython from user code which may call directly
4366 sys.excepthook (this looks like an ipython crash to the user, even
4374 sys.excepthook (this looks like an ipython crash to the user, even
4367 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4375 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4368 This is especially important to help users of WxWindows, but may
4376 This is especially important to help users of WxWindows, but may
4369 also be useful in other cases.
4377 also be useful in other cases.
4370
4378
4371 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4379 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4372 an optional tb_offset to be specified, and to preserve exception
4380 an optional tb_offset to be specified, and to preserve exception
4373 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4381 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4374
4382
4375 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4383 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4376
4384
4377 2003-05-15 Fernando Perez <fperez@colorado.edu>
4385 2003-05-15 Fernando Perez <fperez@colorado.edu>
4378
4386
4379 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4387 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4380 installing for a new user under Windows.
4388 installing for a new user under Windows.
4381
4389
4382 2003-05-12 Fernando Perez <fperez@colorado.edu>
4390 2003-05-12 Fernando Perez <fperez@colorado.edu>
4383
4391
4384 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4392 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4385 handler for Emacs comint-based lines. Currently it doesn't do
4393 handler for Emacs comint-based lines. Currently it doesn't do
4386 much (but importantly, it doesn't update the history cache). In
4394 much (but importantly, it doesn't update the history cache). In
4387 the future it may be expanded if Alex needs more functionality
4395 the future it may be expanded if Alex needs more functionality
4388 there.
4396 there.
4389
4397
4390 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4398 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4391 info to crash reports.
4399 info to crash reports.
4392
4400
4393 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4401 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4394 just like Python's -c. Also fixed crash with invalid -color
4402 just like Python's -c. Also fixed crash with invalid -color
4395 option value at startup. Thanks to Will French
4403 option value at startup. Thanks to Will French
4396 <wfrench-AT-bestweb.net> for the bug report.
4404 <wfrench-AT-bestweb.net> for the bug report.
4397
4405
4398 2003-05-09 Fernando Perez <fperez@colorado.edu>
4406 2003-05-09 Fernando Perez <fperez@colorado.edu>
4399
4407
4400 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4408 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4401 to EvalDict (it's a mapping, after all) and simplified its code
4409 to EvalDict (it's a mapping, after all) and simplified its code
4402 quite a bit, after a nice discussion on c.l.py where Gustavo
4410 quite a bit, after a nice discussion on c.l.py where Gustavo
4403 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4411 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4404
4412
4405 2003-04-30 Fernando Perez <fperez@colorado.edu>
4413 2003-04-30 Fernando Perez <fperez@colorado.edu>
4406
4414
4407 * IPython/genutils.py (timings_out): modified it to reduce its
4415 * IPython/genutils.py (timings_out): modified it to reduce its
4408 overhead in the common reps==1 case.
4416 overhead in the common reps==1 case.
4409
4417
4410 2003-04-29 Fernando Perez <fperez@colorado.edu>
4418 2003-04-29 Fernando Perez <fperez@colorado.edu>
4411
4419
4412 * IPython/genutils.py (timings_out): Modified to use the resource
4420 * IPython/genutils.py (timings_out): Modified to use the resource
4413 module, which avoids the wraparound problems of time.clock().
4421 module, which avoids the wraparound problems of time.clock().
4414
4422
4415 2003-04-17 *** Released version 0.2.15pre4
4423 2003-04-17 *** Released version 0.2.15pre4
4416
4424
4417 2003-04-17 Fernando Perez <fperez@colorado.edu>
4425 2003-04-17 Fernando Perez <fperez@colorado.edu>
4418
4426
4419 * setup.py (scriptfiles): Split windows-specific stuff over to a
4427 * setup.py (scriptfiles): Split windows-specific stuff over to a
4420 separate file, in an attempt to have a Windows GUI installer.
4428 separate file, in an attempt to have a Windows GUI installer.
4421 That didn't work, but part of the groundwork is done.
4429 That didn't work, but part of the groundwork is done.
4422
4430
4423 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4431 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4424 indent/unindent with 4 spaces. Particularly useful in combination
4432 indent/unindent with 4 spaces. Particularly useful in combination
4425 with the new auto-indent option.
4433 with the new auto-indent option.
4426
4434
4427 2003-04-16 Fernando Perez <fperez@colorado.edu>
4435 2003-04-16 Fernando Perez <fperez@colorado.edu>
4428
4436
4429 * IPython/Magic.py: various replacements of self.rc for
4437 * IPython/Magic.py: various replacements of self.rc for
4430 self.shell.rc. A lot more remains to be done to fully disentangle
4438 self.shell.rc. A lot more remains to be done to fully disentangle
4431 this class from the main Shell class.
4439 this class from the main Shell class.
4432
4440
4433 * IPython/GnuplotRuntime.py: added checks for mouse support so
4441 * IPython/GnuplotRuntime.py: added checks for mouse support so
4434 that we don't try to enable it if the current gnuplot doesn't
4442 that we don't try to enable it if the current gnuplot doesn't
4435 really support it. Also added checks so that we don't try to
4443 really support it. Also added checks so that we don't try to
4436 enable persist under Windows (where Gnuplot doesn't recognize the
4444 enable persist under Windows (where Gnuplot doesn't recognize the
4437 option).
4445 option).
4438
4446
4439 * IPython/iplib.py (InteractiveShell.interact): Added optional
4447 * IPython/iplib.py (InteractiveShell.interact): Added optional
4440 auto-indenting code, after a patch by King C. Shu
4448 auto-indenting code, after a patch by King C. Shu
4441 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4449 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4442 get along well with pasting indented code. If I ever figure out
4450 get along well with pasting indented code. If I ever figure out
4443 how to make that part go well, it will become on by default.
4451 how to make that part go well, it will become on by default.
4444
4452
4445 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4453 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4446 crash ipython if there was an unmatched '%' in the user's prompt
4454 crash ipython if there was an unmatched '%' in the user's prompt
4447 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4455 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4448
4456
4449 * IPython/iplib.py (InteractiveShell.interact): removed the
4457 * IPython/iplib.py (InteractiveShell.interact): removed the
4450 ability to ask the user whether he wants to crash or not at the
4458 ability to ask the user whether he wants to crash or not at the
4451 'last line' exception handler. Calling functions at that point
4459 'last line' exception handler. Calling functions at that point
4452 changes the stack, and the error reports would have incorrect
4460 changes the stack, and the error reports would have incorrect
4453 tracebacks.
4461 tracebacks.
4454
4462
4455 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4463 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4456 pass through a peger a pretty-printed form of any object. After a
4464 pass through a peger a pretty-printed form of any object. After a
4457 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4465 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4458
4466
4459 2003-04-14 Fernando Perez <fperez@colorado.edu>
4467 2003-04-14 Fernando Perez <fperez@colorado.edu>
4460
4468
4461 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4469 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4462 all files in ~ would be modified at first install (instead of
4470 all files in ~ would be modified at first install (instead of
4463 ~/.ipython). This could be potentially disastrous, as the
4471 ~/.ipython). This could be potentially disastrous, as the
4464 modification (make line-endings native) could damage binary files.
4472 modification (make line-endings native) could damage binary files.
4465
4473
4466 2003-04-10 Fernando Perez <fperez@colorado.edu>
4474 2003-04-10 Fernando Perez <fperez@colorado.edu>
4467
4475
4468 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4476 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4469 handle only lines which are invalid python. This now means that
4477 handle only lines which are invalid python. This now means that
4470 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4478 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4471 for the bug report.
4479 for the bug report.
4472
4480
4473 2003-04-01 Fernando Perez <fperez@colorado.edu>
4481 2003-04-01 Fernando Perez <fperez@colorado.edu>
4474
4482
4475 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4483 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4476 where failing to set sys.last_traceback would crash pdb.pm().
4484 where failing to set sys.last_traceback would crash pdb.pm().
4477 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4485 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4478 report.
4486 report.
4479
4487
4480 2003-03-25 Fernando Perez <fperez@colorado.edu>
4488 2003-03-25 Fernando Perez <fperez@colorado.edu>
4481
4489
4482 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4490 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4483 before printing it (it had a lot of spurious blank lines at the
4491 before printing it (it had a lot of spurious blank lines at the
4484 end).
4492 end).
4485
4493
4486 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4494 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4487 output would be sent 21 times! Obviously people don't use this
4495 output would be sent 21 times! Obviously people don't use this
4488 too often, or I would have heard about it.
4496 too often, or I would have heard about it.
4489
4497
4490 2003-03-24 Fernando Perez <fperez@colorado.edu>
4498 2003-03-24 Fernando Perez <fperez@colorado.edu>
4491
4499
4492 * setup.py (scriptfiles): renamed the data_files parameter from
4500 * setup.py (scriptfiles): renamed the data_files parameter from
4493 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4501 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4494 for the patch.
4502 for the patch.
4495
4503
4496 2003-03-20 Fernando Perez <fperez@colorado.edu>
4504 2003-03-20 Fernando Perez <fperez@colorado.edu>
4497
4505
4498 * IPython/genutils.py (error): added error() and fatal()
4506 * IPython/genutils.py (error): added error() and fatal()
4499 functions.
4507 functions.
4500
4508
4501 2003-03-18 *** Released version 0.2.15pre3
4509 2003-03-18 *** Released version 0.2.15pre3
4502
4510
4503 2003-03-18 Fernando Perez <fperez@colorado.edu>
4511 2003-03-18 Fernando Perez <fperez@colorado.edu>
4504
4512
4505 * setupext/install_data_ext.py
4513 * setupext/install_data_ext.py
4506 (install_data_ext.initialize_options): Class contributed by Jack
4514 (install_data_ext.initialize_options): Class contributed by Jack
4507 Moffit for fixing the old distutils hack. He is sending this to
4515 Moffit for fixing the old distutils hack. He is sending this to
4508 the distutils folks so in the future we may not need it as a
4516 the distutils folks so in the future we may not need it as a
4509 private fix.
4517 private fix.
4510
4518
4511 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4519 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4512 changes for Debian packaging. See his patch for full details.
4520 changes for Debian packaging. See his patch for full details.
4513 The old distutils hack of making the ipythonrc* files carry a
4521 The old distutils hack of making the ipythonrc* files carry a
4514 bogus .py extension is gone, at last. Examples were moved to a
4522 bogus .py extension is gone, at last. Examples were moved to a
4515 separate subdir under doc/, and the separate executable scripts
4523 separate subdir under doc/, and the separate executable scripts
4516 now live in their own directory. Overall a great cleanup. The
4524 now live in their own directory. Overall a great cleanup. The
4517 manual was updated to use the new files, and setup.py has been
4525 manual was updated to use the new files, and setup.py has been
4518 fixed for this setup.
4526 fixed for this setup.
4519
4527
4520 * IPython/PyColorize.py (Parser.usage): made non-executable and
4528 * IPython/PyColorize.py (Parser.usage): made non-executable and
4521 created a pycolor wrapper around it to be included as a script.
4529 created a pycolor wrapper around it to be included as a script.
4522
4530
4523 2003-03-12 *** Released version 0.2.15pre2
4531 2003-03-12 *** Released version 0.2.15pre2
4524
4532
4525 2003-03-12 Fernando Perez <fperez@colorado.edu>
4533 2003-03-12 Fernando Perez <fperez@colorado.edu>
4526
4534
4527 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4535 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4528 long-standing problem with garbage characters in some terminals.
4536 long-standing problem with garbage characters in some terminals.
4529 The issue was really that the \001 and \002 escapes must _only_ be
4537 The issue was really that the \001 and \002 escapes must _only_ be
4530 passed to input prompts (which call readline), but _never_ to
4538 passed to input prompts (which call readline), but _never_ to
4531 normal text to be printed on screen. I changed ColorANSI to have
4539 normal text to be printed on screen. I changed ColorANSI to have
4532 two classes: TermColors and InputTermColors, each with the
4540 two classes: TermColors and InputTermColors, each with the
4533 appropriate escapes for input prompts or normal text. The code in
4541 appropriate escapes for input prompts or normal text. The code in
4534 Prompts.py got slightly more complicated, but this very old and
4542 Prompts.py got slightly more complicated, but this very old and
4535 annoying bug is finally fixed.
4543 annoying bug is finally fixed.
4536
4544
4537 All the credit for nailing down the real origin of this problem
4545 All the credit for nailing down the real origin of this problem
4538 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4546 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4539 *Many* thanks to him for spending quite a bit of effort on this.
4547 *Many* thanks to him for spending quite a bit of effort on this.
4540
4548
4541 2003-03-05 *** Released version 0.2.15pre1
4549 2003-03-05 *** Released version 0.2.15pre1
4542
4550
4543 2003-03-03 Fernando Perez <fperez@colorado.edu>
4551 2003-03-03 Fernando Perez <fperez@colorado.edu>
4544
4552
4545 * IPython/FakeModule.py: Moved the former _FakeModule to a
4553 * IPython/FakeModule.py: Moved the former _FakeModule to a
4546 separate file, because it's also needed by Magic (to fix a similar
4554 separate file, because it's also needed by Magic (to fix a similar
4547 pickle-related issue in @run).
4555 pickle-related issue in @run).
4548
4556
4549 2003-03-02 Fernando Perez <fperez@colorado.edu>
4557 2003-03-02 Fernando Perez <fperez@colorado.edu>
4550
4558
4551 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4559 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4552 the autocall option at runtime.
4560 the autocall option at runtime.
4553 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4561 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4554 across Magic.py to start separating Magic from InteractiveShell.
4562 across Magic.py to start separating Magic from InteractiveShell.
4555 (Magic._ofind): Fixed to return proper namespace for dotted
4563 (Magic._ofind): Fixed to return proper namespace for dotted
4556 names. Before, a dotted name would always return 'not currently
4564 names. Before, a dotted name would always return 'not currently
4557 defined', because it would find the 'parent'. s.x would be found,
4565 defined', because it would find the 'parent'. s.x would be found,
4558 but since 'x' isn't defined by itself, it would get confused.
4566 but since 'x' isn't defined by itself, it would get confused.
4559 (Magic.magic_run): Fixed pickling problems reported by Ralf
4567 (Magic.magic_run): Fixed pickling problems reported by Ralf
4560 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4568 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4561 that I'd used when Mike Heeter reported similar issues at the
4569 that I'd used when Mike Heeter reported similar issues at the
4562 top-level, but now for @run. It boils down to injecting the
4570 top-level, but now for @run. It boils down to injecting the
4563 namespace where code is being executed with something that looks
4571 namespace where code is being executed with something that looks
4564 enough like a module to fool pickle.dump(). Since a pickle stores
4572 enough like a module to fool pickle.dump(). Since a pickle stores
4565 a named reference to the importing module, we need this for
4573 a named reference to the importing module, we need this for
4566 pickles to save something sensible.
4574 pickles to save something sensible.
4567
4575
4568 * IPython/ipmaker.py (make_IPython): added an autocall option.
4576 * IPython/ipmaker.py (make_IPython): added an autocall option.
4569
4577
4570 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4578 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4571 the auto-eval code. Now autocalling is an option, and the code is
4579 the auto-eval code. Now autocalling is an option, and the code is
4572 also vastly safer. There is no more eval() involved at all.
4580 also vastly safer. There is no more eval() involved at all.
4573
4581
4574 2003-03-01 Fernando Perez <fperez@colorado.edu>
4582 2003-03-01 Fernando Perez <fperez@colorado.edu>
4575
4583
4576 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4584 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4577 dict with named keys instead of a tuple.
4585 dict with named keys instead of a tuple.
4578
4586
4579 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4587 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4580
4588
4581 * setup.py (make_shortcut): Fixed message about directories
4589 * setup.py (make_shortcut): Fixed message about directories
4582 created during Windows installation (the directories were ok, just
4590 created during Windows installation (the directories were ok, just
4583 the printed message was misleading). Thanks to Chris Liechti
4591 the printed message was misleading). Thanks to Chris Liechti
4584 <cliechti-AT-gmx.net> for the heads up.
4592 <cliechti-AT-gmx.net> for the heads up.
4585
4593
4586 2003-02-21 Fernando Perez <fperez@colorado.edu>
4594 2003-02-21 Fernando Perez <fperez@colorado.edu>
4587
4595
4588 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4596 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4589 of ValueError exception when checking for auto-execution. This
4597 of ValueError exception when checking for auto-execution. This
4590 one is raised by things like Numeric arrays arr.flat when the
4598 one is raised by things like Numeric arrays arr.flat when the
4591 array is non-contiguous.
4599 array is non-contiguous.
4592
4600
4593 2003-01-31 Fernando Perez <fperez@colorado.edu>
4601 2003-01-31 Fernando Perez <fperez@colorado.edu>
4594
4602
4595 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4603 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4596 not return any value at all (even though the command would get
4604 not return any value at all (even though the command would get
4597 executed).
4605 executed).
4598 (xsys): Flush stdout right after printing the command to ensure
4606 (xsys): Flush stdout right after printing the command to ensure
4599 proper ordering of commands and command output in the total
4607 proper ordering of commands and command output in the total
4600 output.
4608 output.
4601 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4609 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4602 system/getoutput as defaults. The old ones are kept for
4610 system/getoutput as defaults. The old ones are kept for
4603 compatibility reasons, so no code which uses this library needs
4611 compatibility reasons, so no code which uses this library needs
4604 changing.
4612 changing.
4605
4613
4606 2003-01-27 *** Released version 0.2.14
4614 2003-01-27 *** Released version 0.2.14
4607
4615
4608 2003-01-25 Fernando Perez <fperez@colorado.edu>
4616 2003-01-25 Fernando Perez <fperez@colorado.edu>
4609
4617
4610 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4618 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4611 functions defined in previous edit sessions could not be re-edited
4619 functions defined in previous edit sessions could not be re-edited
4612 (because the temp files were immediately removed). Now temp files
4620 (because the temp files were immediately removed). Now temp files
4613 are removed only at IPython's exit.
4621 are removed only at IPython's exit.
4614 (Magic.magic_run): Improved @run to perform shell-like expansions
4622 (Magic.magic_run): Improved @run to perform shell-like expansions
4615 on its arguments (~users and $VARS). With this, @run becomes more
4623 on its arguments (~users and $VARS). With this, @run becomes more
4616 like a normal command-line.
4624 like a normal command-line.
4617
4625
4618 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4626 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4619 bugs related to embedding and cleaned up that code. A fairly
4627 bugs related to embedding and cleaned up that code. A fairly
4620 important one was the impossibility to access the global namespace
4628 important one was the impossibility to access the global namespace
4621 through the embedded IPython (only local variables were visible).
4629 through the embedded IPython (only local variables were visible).
4622
4630
4623 2003-01-14 Fernando Perez <fperez@colorado.edu>
4631 2003-01-14 Fernando Perez <fperez@colorado.edu>
4624
4632
4625 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4633 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4626 auto-calling to be a bit more conservative. Now it doesn't get
4634 auto-calling to be a bit more conservative. Now it doesn't get
4627 triggered if any of '!=()<>' are in the rest of the input line, to
4635 triggered if any of '!=()<>' are in the rest of the input line, to
4628 allow comparing callables. Thanks to Alex for the heads up.
4636 allow comparing callables. Thanks to Alex for the heads up.
4629
4637
4630 2003-01-07 Fernando Perez <fperez@colorado.edu>
4638 2003-01-07 Fernando Perez <fperez@colorado.edu>
4631
4639
4632 * IPython/genutils.py (page): fixed estimation of the number of
4640 * IPython/genutils.py (page): fixed estimation of the number of
4633 lines in a string to be paged to simply count newlines. This
4641 lines in a string to be paged to simply count newlines. This
4634 prevents over-guessing due to embedded escape sequences. A better
4642 prevents over-guessing due to embedded escape sequences. A better
4635 long-term solution would involve stripping out the control chars
4643 long-term solution would involve stripping out the control chars
4636 for the count, but it's potentially so expensive I just don't
4644 for the count, but it's potentially so expensive I just don't
4637 think it's worth doing.
4645 think it's worth doing.
4638
4646
4639 2002-12-19 *** Released version 0.2.14pre50
4647 2002-12-19 *** Released version 0.2.14pre50
4640
4648
4641 2002-12-19 Fernando Perez <fperez@colorado.edu>
4649 2002-12-19 Fernando Perez <fperez@colorado.edu>
4642
4650
4643 * tools/release (version): Changed release scripts to inform
4651 * tools/release (version): Changed release scripts to inform
4644 Andrea and build a NEWS file with a list of recent changes.
4652 Andrea and build a NEWS file with a list of recent changes.
4645
4653
4646 * IPython/ColorANSI.py (__all__): changed terminal detection
4654 * IPython/ColorANSI.py (__all__): changed terminal detection
4647 code. Seems to work better for xterms without breaking
4655 code. Seems to work better for xterms without breaking
4648 konsole. Will need more testing to determine if WinXP and Mac OSX
4656 konsole. Will need more testing to determine if WinXP and Mac OSX
4649 also work ok.
4657 also work ok.
4650
4658
4651 2002-12-18 *** Released version 0.2.14pre49
4659 2002-12-18 *** Released version 0.2.14pre49
4652
4660
4653 2002-12-18 Fernando Perez <fperez@colorado.edu>
4661 2002-12-18 Fernando Perez <fperez@colorado.edu>
4654
4662
4655 * Docs: added new info about Mac OSX, from Andrea.
4663 * Docs: added new info about Mac OSX, from Andrea.
4656
4664
4657 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4665 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4658 allow direct plotting of python strings whose format is the same
4666 allow direct plotting of python strings whose format is the same
4659 of gnuplot data files.
4667 of gnuplot data files.
4660
4668
4661 2002-12-16 Fernando Perez <fperez@colorado.edu>
4669 2002-12-16 Fernando Perez <fperez@colorado.edu>
4662
4670
4663 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4671 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4664 value of exit question to be acknowledged.
4672 value of exit question to be acknowledged.
4665
4673
4666 2002-12-03 Fernando Perez <fperez@colorado.edu>
4674 2002-12-03 Fernando Perez <fperez@colorado.edu>
4667
4675
4668 * IPython/ipmaker.py: removed generators, which had been added
4676 * IPython/ipmaker.py: removed generators, which had been added
4669 by mistake in an earlier debugging run. This was causing trouble
4677 by mistake in an earlier debugging run. This was causing trouble
4670 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4678 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4671 for pointing this out.
4679 for pointing this out.
4672
4680
4673 2002-11-17 Fernando Perez <fperez@colorado.edu>
4681 2002-11-17 Fernando Perez <fperez@colorado.edu>
4674
4682
4675 * Manual: updated the Gnuplot section.
4683 * Manual: updated the Gnuplot section.
4676
4684
4677 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4685 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4678 a much better split of what goes in Runtime and what goes in
4686 a much better split of what goes in Runtime and what goes in
4679 Interactive.
4687 Interactive.
4680
4688
4681 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4689 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4682 being imported from iplib.
4690 being imported from iplib.
4683
4691
4684 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4692 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4685 for command-passing. Now the global Gnuplot instance is called
4693 for command-passing. Now the global Gnuplot instance is called
4686 'gp' instead of 'g', which was really a far too fragile and
4694 'gp' instead of 'g', which was really a far too fragile and
4687 common name.
4695 common name.
4688
4696
4689 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4697 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4690 bounding boxes generated by Gnuplot for square plots.
4698 bounding boxes generated by Gnuplot for square plots.
4691
4699
4692 * IPython/genutils.py (popkey): new function added. I should
4700 * IPython/genutils.py (popkey): new function added. I should
4693 suggest this on c.l.py as a dict method, it seems useful.
4701 suggest this on c.l.py as a dict method, it seems useful.
4694
4702
4695 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4703 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4696 to transparently handle PostScript generation. MUCH better than
4704 to transparently handle PostScript generation. MUCH better than
4697 the previous plot_eps/replot_eps (which I removed now). The code
4705 the previous plot_eps/replot_eps (which I removed now). The code
4698 is also fairly clean and well documented now (including
4706 is also fairly clean and well documented now (including
4699 docstrings).
4707 docstrings).
4700
4708
4701 2002-11-13 Fernando Perez <fperez@colorado.edu>
4709 2002-11-13 Fernando Perez <fperez@colorado.edu>
4702
4710
4703 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4711 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4704 (inconsistent with options).
4712 (inconsistent with options).
4705
4713
4706 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4714 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4707 manually disabled, I don't know why. Fixed it.
4715 manually disabled, I don't know why. Fixed it.
4708 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4716 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4709 eps output.
4717 eps output.
4710
4718
4711 2002-11-12 Fernando Perez <fperez@colorado.edu>
4719 2002-11-12 Fernando Perez <fperez@colorado.edu>
4712
4720
4713 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4721 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4714 don't propagate up to caller. Fixes crash reported by François
4722 don't propagate up to caller. Fixes crash reported by François
4715 Pinard.
4723 Pinard.
4716
4724
4717 2002-11-09 Fernando Perez <fperez@colorado.edu>
4725 2002-11-09 Fernando Perez <fperez@colorado.edu>
4718
4726
4719 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4727 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4720 history file for new users.
4728 history file for new users.
4721 (make_IPython): fixed bug where initial install would leave the
4729 (make_IPython): fixed bug where initial install would leave the
4722 user running in the .ipython dir.
4730 user running in the .ipython dir.
4723 (make_IPython): fixed bug where config dir .ipython would be
4731 (make_IPython): fixed bug where config dir .ipython would be
4724 created regardless of the given -ipythondir option. Thanks to Cory
4732 created regardless of the given -ipythondir option. Thanks to Cory
4725 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4733 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4726
4734
4727 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4735 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4728 type confirmations. Will need to use it in all of IPython's code
4736 type confirmations. Will need to use it in all of IPython's code
4729 consistently.
4737 consistently.
4730
4738
4731 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4739 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4732 context to print 31 lines instead of the default 5. This will make
4740 context to print 31 lines instead of the default 5. This will make
4733 the crash reports extremely detailed in case the problem is in
4741 the crash reports extremely detailed in case the problem is in
4734 libraries I don't have access to.
4742 libraries I don't have access to.
4735
4743
4736 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4744 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4737 line of defense' code to still crash, but giving users fair
4745 line of defense' code to still crash, but giving users fair
4738 warning. I don't want internal errors to go unreported: if there's
4746 warning. I don't want internal errors to go unreported: if there's
4739 an internal problem, IPython should crash and generate a full
4747 an internal problem, IPython should crash and generate a full
4740 report.
4748 report.
4741
4749
4742 2002-11-08 Fernando Perez <fperez@colorado.edu>
4750 2002-11-08 Fernando Perez <fperez@colorado.edu>
4743
4751
4744 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4752 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4745 otherwise uncaught exceptions which can appear if people set
4753 otherwise uncaught exceptions which can appear if people set
4746 sys.stdout to something badly broken. Thanks to a crash report
4754 sys.stdout to something badly broken. Thanks to a crash report
4747 from henni-AT-mail.brainbot.com.
4755 from henni-AT-mail.brainbot.com.
4748
4756
4749 2002-11-04 Fernando Perez <fperez@colorado.edu>
4757 2002-11-04 Fernando Perez <fperez@colorado.edu>
4750
4758
4751 * IPython/iplib.py (InteractiveShell.interact): added
4759 * IPython/iplib.py (InteractiveShell.interact): added
4752 __IPYTHON__active to the builtins. It's a flag which goes on when
4760 __IPYTHON__active to the builtins. It's a flag which goes on when
4753 the interaction starts and goes off again when it stops. This
4761 the interaction starts and goes off again when it stops. This
4754 allows embedding code to detect being inside IPython. Before this
4762 allows embedding code to detect being inside IPython. Before this
4755 was done via __IPYTHON__, but that only shows that an IPython
4763 was done via __IPYTHON__, but that only shows that an IPython
4756 instance has been created.
4764 instance has been created.
4757
4765
4758 * IPython/Magic.py (Magic.magic_env): I realized that in a
4766 * IPython/Magic.py (Magic.magic_env): I realized that in a
4759 UserDict, instance.data holds the data as a normal dict. So I
4767 UserDict, instance.data holds the data as a normal dict. So I
4760 modified @env to return os.environ.data instead of rebuilding a
4768 modified @env to return os.environ.data instead of rebuilding a
4761 dict by hand.
4769 dict by hand.
4762
4770
4763 2002-11-02 Fernando Perez <fperez@colorado.edu>
4771 2002-11-02 Fernando Perez <fperez@colorado.edu>
4764
4772
4765 * IPython/genutils.py (warn): changed so that level 1 prints no
4773 * IPython/genutils.py (warn): changed so that level 1 prints no
4766 header. Level 2 is now the default (with 'WARNING' header, as
4774 header. Level 2 is now the default (with 'WARNING' header, as
4767 before). I think I tracked all places where changes were needed in
4775 before). I think I tracked all places where changes were needed in
4768 IPython, but outside code using the old level numbering may have
4776 IPython, but outside code using the old level numbering may have
4769 broken.
4777 broken.
4770
4778
4771 * IPython/iplib.py (InteractiveShell.runcode): added this to
4779 * IPython/iplib.py (InteractiveShell.runcode): added this to
4772 handle the tracebacks in SystemExit traps correctly. The previous
4780 handle the tracebacks in SystemExit traps correctly. The previous
4773 code (through interact) was printing more of the stack than
4781 code (through interact) was printing more of the stack than
4774 necessary, showing IPython internal code to the user.
4782 necessary, showing IPython internal code to the user.
4775
4783
4776 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4784 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4777 default. Now that the default at the confirmation prompt is yes,
4785 default. Now that the default at the confirmation prompt is yes,
4778 it's not so intrusive. François' argument that ipython sessions
4786 it's not so intrusive. François' argument that ipython sessions
4779 tend to be complex enough not to lose them from an accidental C-d,
4787 tend to be complex enough not to lose them from an accidental C-d,
4780 is a valid one.
4788 is a valid one.
4781
4789
4782 * IPython/iplib.py (InteractiveShell.interact): added a
4790 * IPython/iplib.py (InteractiveShell.interact): added a
4783 showtraceback() call to the SystemExit trap, and modified the exit
4791 showtraceback() call to the SystemExit trap, and modified the exit
4784 confirmation to have yes as the default.
4792 confirmation to have yes as the default.
4785
4793
4786 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4794 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4787 this file. It's been gone from the code for a long time, this was
4795 this file. It's been gone from the code for a long time, this was
4788 simply leftover junk.
4796 simply leftover junk.
4789
4797
4790 2002-11-01 Fernando Perez <fperez@colorado.edu>
4798 2002-11-01 Fernando Perez <fperez@colorado.edu>
4791
4799
4792 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4800 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4793 added. If set, IPython now traps EOF and asks for
4801 added. If set, IPython now traps EOF and asks for
4794 confirmation. After a request by François Pinard.
4802 confirmation. After a request by François Pinard.
4795
4803
4796 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4804 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4797 of @abort, and with a new (better) mechanism for handling the
4805 of @abort, and with a new (better) mechanism for handling the
4798 exceptions.
4806 exceptions.
4799
4807
4800 2002-10-27 Fernando Perez <fperez@colorado.edu>
4808 2002-10-27 Fernando Perez <fperez@colorado.edu>
4801
4809
4802 * IPython/usage.py (__doc__): updated the --help information and
4810 * IPython/usage.py (__doc__): updated the --help information and
4803 the ipythonrc file to indicate that -log generates
4811 the ipythonrc file to indicate that -log generates
4804 ./ipython.log. Also fixed the corresponding info in @logstart.
4812 ./ipython.log. Also fixed the corresponding info in @logstart.
4805 This and several other fixes in the manuals thanks to reports by
4813 This and several other fixes in the manuals thanks to reports by
4806 François Pinard <pinard-AT-iro.umontreal.ca>.
4814 François Pinard <pinard-AT-iro.umontreal.ca>.
4807
4815
4808 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4816 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4809 refer to @logstart (instead of @log, which doesn't exist).
4817 refer to @logstart (instead of @log, which doesn't exist).
4810
4818
4811 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4819 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4812 AttributeError crash. Thanks to Christopher Armstrong
4820 AttributeError crash. Thanks to Christopher Armstrong
4813 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4821 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4814 introduced recently (in 0.2.14pre37) with the fix to the eval
4822 introduced recently (in 0.2.14pre37) with the fix to the eval
4815 problem mentioned below.
4823 problem mentioned below.
4816
4824
4817 2002-10-17 Fernando Perez <fperez@colorado.edu>
4825 2002-10-17 Fernando Perez <fperez@colorado.edu>
4818
4826
4819 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4827 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4820 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4828 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4821
4829
4822 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4830 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4823 this function to fix a problem reported by Alex Schmolck. He saw
4831 this function to fix a problem reported by Alex Schmolck. He saw
4824 it with list comprehensions and generators, which were getting
4832 it with list comprehensions and generators, which were getting
4825 called twice. The real problem was an 'eval' call in testing for
4833 called twice. The real problem was an 'eval' call in testing for
4826 automagic which was evaluating the input line silently.
4834 automagic which was evaluating the input line silently.
4827
4835
4828 This is a potentially very nasty bug, if the input has side
4836 This is a potentially very nasty bug, if the input has side
4829 effects which must not be repeated. The code is much cleaner now,
4837 effects which must not be repeated. The code is much cleaner now,
4830 without any blanket 'except' left and with a regexp test for
4838 without any blanket 'except' left and with a regexp test for
4831 actual function names.
4839 actual function names.
4832
4840
4833 But an eval remains, which I'm not fully comfortable with. I just
4841 But an eval remains, which I'm not fully comfortable with. I just
4834 don't know how to find out if an expression could be a callable in
4842 don't know how to find out if an expression could be a callable in
4835 the user's namespace without doing an eval on the string. However
4843 the user's namespace without doing an eval on the string. However
4836 that string is now much more strictly checked so that no code
4844 that string is now much more strictly checked so that no code
4837 slips by, so the eval should only happen for things that can
4845 slips by, so the eval should only happen for things that can
4838 really be only function/method names.
4846 really be only function/method names.
4839
4847
4840 2002-10-15 Fernando Perez <fperez@colorado.edu>
4848 2002-10-15 Fernando Perez <fperez@colorado.edu>
4841
4849
4842 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4850 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4843 OSX information to main manual, removed README_Mac_OSX file from
4851 OSX information to main manual, removed README_Mac_OSX file from
4844 distribution. Also updated credits for recent additions.
4852 distribution. Also updated credits for recent additions.
4845
4853
4846 2002-10-10 Fernando Perez <fperez@colorado.edu>
4854 2002-10-10 Fernando Perez <fperez@colorado.edu>
4847
4855
4848 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4856 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4849 terminal-related issues. Many thanks to Andrea Riciputi
4857 terminal-related issues. Many thanks to Andrea Riciputi
4850 <andrea.riciputi-AT-libero.it> for writing it.
4858 <andrea.riciputi-AT-libero.it> for writing it.
4851
4859
4852 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4860 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4853 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4861 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4854
4862
4855 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4863 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4856 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4864 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4857 <syver-en-AT-online.no> who both submitted patches for this problem.
4865 <syver-en-AT-online.no> who both submitted patches for this problem.
4858
4866
4859 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4867 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4860 global embedding to make sure that things don't overwrite user
4868 global embedding to make sure that things don't overwrite user
4861 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4869 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4862
4870
4863 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4871 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4864 compatibility. Thanks to Hayden Callow
4872 compatibility. Thanks to Hayden Callow
4865 <h.callow-AT-elec.canterbury.ac.nz>
4873 <h.callow-AT-elec.canterbury.ac.nz>
4866
4874
4867 2002-10-04 Fernando Perez <fperez@colorado.edu>
4875 2002-10-04 Fernando Perez <fperez@colorado.edu>
4868
4876
4869 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4877 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4870 Gnuplot.File objects.
4878 Gnuplot.File objects.
4871
4879
4872 2002-07-23 Fernando Perez <fperez@colorado.edu>
4880 2002-07-23 Fernando Perez <fperez@colorado.edu>
4873
4881
4874 * IPython/genutils.py (timing): Added timings() and timing() for
4882 * IPython/genutils.py (timing): Added timings() and timing() for
4875 quick access to the most commonly needed data, the execution
4883 quick access to the most commonly needed data, the execution
4876 times. Old timing() renamed to timings_out().
4884 times. Old timing() renamed to timings_out().
4877
4885
4878 2002-07-18 Fernando Perez <fperez@colorado.edu>
4886 2002-07-18 Fernando Perez <fperez@colorado.edu>
4879
4887
4880 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4888 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4881 bug with nested instances disrupting the parent's tab completion.
4889 bug with nested instances disrupting the parent's tab completion.
4882
4890
4883 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4891 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4884 all_completions code to begin the emacs integration.
4892 all_completions code to begin the emacs integration.
4885
4893
4886 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4894 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4887 argument to allow titling individual arrays when plotting.
4895 argument to allow titling individual arrays when plotting.
4888
4896
4889 2002-07-15 Fernando Perez <fperez@colorado.edu>
4897 2002-07-15 Fernando Perez <fperez@colorado.edu>
4890
4898
4891 * setup.py (make_shortcut): changed to retrieve the value of
4899 * setup.py (make_shortcut): changed to retrieve the value of
4892 'Program Files' directory from the registry (this value changes in
4900 'Program Files' directory from the registry (this value changes in
4893 non-english versions of Windows). Thanks to Thomas Fanslau
4901 non-english versions of Windows). Thanks to Thomas Fanslau
4894 <tfanslau-AT-gmx.de> for the report.
4902 <tfanslau-AT-gmx.de> for the report.
4895
4903
4896 2002-07-10 Fernando Perez <fperez@colorado.edu>
4904 2002-07-10 Fernando Perez <fperez@colorado.edu>
4897
4905
4898 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4906 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4899 a bug in pdb, which crashes if a line with only whitespace is
4907 a bug in pdb, which crashes if a line with only whitespace is
4900 entered. Bug report submitted to sourceforge.
4908 entered. Bug report submitted to sourceforge.
4901
4909
4902 2002-07-09 Fernando Perez <fperez@colorado.edu>
4910 2002-07-09 Fernando Perez <fperez@colorado.edu>
4903
4911
4904 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4912 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4905 reporting exceptions (it's a bug in inspect.py, I just set a
4913 reporting exceptions (it's a bug in inspect.py, I just set a
4906 workaround).
4914 workaround).
4907
4915
4908 2002-07-08 Fernando Perez <fperez@colorado.edu>
4916 2002-07-08 Fernando Perez <fperez@colorado.edu>
4909
4917
4910 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4918 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4911 __IPYTHON__ in __builtins__ to show up in user_ns.
4919 __IPYTHON__ in __builtins__ to show up in user_ns.
4912
4920
4913 2002-07-03 Fernando Perez <fperez@colorado.edu>
4921 2002-07-03 Fernando Perez <fperez@colorado.edu>
4914
4922
4915 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4923 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4916 name from @gp_set_instance to @gp_set_default.
4924 name from @gp_set_instance to @gp_set_default.
4917
4925
4918 * IPython/ipmaker.py (make_IPython): default editor value set to
4926 * IPython/ipmaker.py (make_IPython): default editor value set to
4919 '0' (a string), to match the rc file. Otherwise will crash when
4927 '0' (a string), to match the rc file. Otherwise will crash when
4920 .strip() is called on it.
4928 .strip() is called on it.
4921
4929
4922
4930
4923 2002-06-28 Fernando Perez <fperez@colorado.edu>
4931 2002-06-28 Fernando Perez <fperez@colorado.edu>
4924
4932
4925 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4933 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4926 of files in current directory when a file is executed via
4934 of files in current directory when a file is executed via
4927 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4935 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4928
4936
4929 * setup.py (manfiles): fix for rpm builds, submitted by RA
4937 * setup.py (manfiles): fix for rpm builds, submitted by RA
4930 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4938 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4931
4939
4932 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4940 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4933 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4941 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4934 string!). A. Schmolck caught this one.
4942 string!). A. Schmolck caught this one.
4935
4943
4936 2002-06-27 Fernando Perez <fperez@colorado.edu>
4944 2002-06-27 Fernando Perez <fperez@colorado.edu>
4937
4945
4938 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4946 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4939 defined files at the cmd line. __name__ wasn't being set to
4947 defined files at the cmd line. __name__ wasn't being set to
4940 __main__.
4948 __main__.
4941
4949
4942 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4950 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4943 regular lists and tuples besides Numeric arrays.
4951 regular lists and tuples besides Numeric arrays.
4944
4952
4945 * IPython/Prompts.py (CachedOutput.__call__): Added output
4953 * IPython/Prompts.py (CachedOutput.__call__): Added output
4946 supression for input ending with ';'. Similar to Mathematica and
4954 supression for input ending with ';'. Similar to Mathematica and
4947 Matlab. The _* vars and Out[] list are still updated, just like
4955 Matlab. The _* vars and Out[] list are still updated, just like
4948 Mathematica behaves.
4956 Mathematica behaves.
4949
4957
4950 2002-06-25 Fernando Perez <fperez@colorado.edu>
4958 2002-06-25 Fernando Perez <fperez@colorado.edu>
4951
4959
4952 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4960 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4953 .ini extensions for profiels under Windows.
4961 .ini extensions for profiels under Windows.
4954
4962
4955 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4963 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4956 string form. Fix contributed by Alexander Schmolck
4964 string form. Fix contributed by Alexander Schmolck
4957 <a.schmolck-AT-gmx.net>
4965 <a.schmolck-AT-gmx.net>
4958
4966
4959 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4967 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4960 pre-configured Gnuplot instance.
4968 pre-configured Gnuplot instance.
4961
4969
4962 2002-06-21 Fernando Perez <fperez@colorado.edu>
4970 2002-06-21 Fernando Perez <fperez@colorado.edu>
4963
4971
4964 * IPython/numutils.py (exp_safe): new function, works around the
4972 * IPython/numutils.py (exp_safe): new function, works around the
4965 underflow problems in Numeric.
4973 underflow problems in Numeric.
4966 (log2): New fn. Safe log in base 2: returns exact integer answer
4974 (log2): New fn. Safe log in base 2: returns exact integer answer
4967 for exact integer powers of 2.
4975 for exact integer powers of 2.
4968
4976
4969 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4977 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4970 properly.
4978 properly.
4971
4979
4972 2002-06-20 Fernando Perez <fperez@colorado.edu>
4980 2002-06-20 Fernando Perez <fperez@colorado.edu>
4973
4981
4974 * IPython/genutils.py (timing): new function like
4982 * IPython/genutils.py (timing): new function like
4975 Mathematica's. Similar to time_test, but returns more info.
4983 Mathematica's. Similar to time_test, but returns more info.
4976
4984
4977 2002-06-18 Fernando Perez <fperez@colorado.edu>
4985 2002-06-18 Fernando Perez <fperez@colorado.edu>
4978
4986
4979 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4987 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4980 according to Mike Heeter's suggestions.
4988 according to Mike Heeter's suggestions.
4981
4989
4982 2002-06-16 Fernando Perez <fperez@colorado.edu>
4990 2002-06-16 Fernando Perez <fperez@colorado.edu>
4983
4991
4984 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4992 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4985 system. GnuplotMagic is gone as a user-directory option. New files
4993 system. GnuplotMagic is gone as a user-directory option. New files
4986 make it easier to use all the gnuplot stuff both from external
4994 make it easier to use all the gnuplot stuff both from external
4987 programs as well as from IPython. Had to rewrite part of
4995 programs as well as from IPython. Had to rewrite part of
4988 hardcopy() b/c of a strange bug: often the ps files simply don't
4996 hardcopy() b/c of a strange bug: often the ps files simply don't
4989 get created, and require a repeat of the command (often several
4997 get created, and require a repeat of the command (often several
4990 times).
4998 times).
4991
4999
4992 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
5000 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4993 resolve output channel at call time, so that if sys.stderr has
5001 resolve output channel at call time, so that if sys.stderr has
4994 been redirected by user this gets honored.
5002 been redirected by user this gets honored.
4995
5003
4996 2002-06-13 Fernando Perez <fperez@colorado.edu>
5004 2002-06-13 Fernando Perez <fperez@colorado.edu>
4997
5005
4998 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
5006 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4999 IPShell. Kept a copy with the old names to avoid breaking people's
5007 IPShell. Kept a copy with the old names to avoid breaking people's
5000 embedded code.
5008 embedded code.
5001
5009
5002 * IPython/ipython: simplified it to the bare minimum after
5010 * IPython/ipython: simplified it to the bare minimum after
5003 Holger's suggestions. Added info about how to use it in
5011 Holger's suggestions. Added info about how to use it in
5004 PYTHONSTARTUP.
5012 PYTHONSTARTUP.
5005
5013
5006 * IPython/Shell.py (IPythonShell): changed the options passing
5014 * IPython/Shell.py (IPythonShell): changed the options passing
5007 from a string with funky %s replacements to a straight list. Maybe
5015 from a string with funky %s replacements to a straight list. Maybe
5008 a bit more typing, but it follows sys.argv conventions, so there's
5016 a bit more typing, but it follows sys.argv conventions, so there's
5009 less special-casing to remember.
5017 less special-casing to remember.
5010
5018
5011 2002-06-12 Fernando Perez <fperez@colorado.edu>
5019 2002-06-12 Fernando Perez <fperez@colorado.edu>
5012
5020
5013 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
5021 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
5014 command. Thanks to a suggestion by Mike Heeter.
5022 command. Thanks to a suggestion by Mike Heeter.
5015 (Magic.magic_pfile): added behavior to look at filenames if given
5023 (Magic.magic_pfile): added behavior to look at filenames if given
5016 arg is not a defined object.
5024 arg is not a defined object.
5017 (Magic.magic_save): New @save function to save code snippets. Also
5025 (Magic.magic_save): New @save function to save code snippets. Also
5018 a Mike Heeter idea.
5026 a Mike Heeter idea.
5019
5027
5020 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5028 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
5021 plot() and replot(). Much more convenient now, especially for
5029 plot() and replot(). Much more convenient now, especially for
5022 interactive use.
5030 interactive use.
5023
5031
5024 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5032 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
5025 filenames.
5033 filenames.
5026
5034
5027 2002-06-02 Fernando Perez <fperez@colorado.edu>
5035 2002-06-02 Fernando Perez <fperez@colorado.edu>
5028
5036
5029 * IPython/Struct.py (Struct.__init__): modified to admit
5037 * IPython/Struct.py (Struct.__init__): modified to admit
5030 initialization via another struct.
5038 initialization via another struct.
5031
5039
5032 * IPython/genutils.py (SystemExec.__init__): New stateful
5040 * IPython/genutils.py (SystemExec.__init__): New stateful
5033 interface to xsys and bq. Useful for writing system scripts.
5041 interface to xsys and bq. Useful for writing system scripts.
5034
5042
5035 2002-05-30 Fernando Perez <fperez@colorado.edu>
5043 2002-05-30 Fernando Perez <fperez@colorado.edu>
5036
5044
5037 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5045 * MANIFEST.in: Changed docfile selection to exclude all the lyx
5038 documents. This will make the user download smaller (it's getting
5046 documents. This will make the user download smaller (it's getting
5039 too big).
5047 too big).
5040
5048
5041 2002-05-29 Fernando Perez <fperez@colorado.edu>
5049 2002-05-29 Fernando Perez <fperez@colorado.edu>
5042
5050
5043 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5051 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
5044 fix problems with shelve and pickle. Seems to work, but I don't
5052 fix problems with shelve and pickle. Seems to work, but I don't
5045 know if corner cases break it. Thanks to Mike Heeter
5053 know if corner cases break it. Thanks to Mike Heeter
5046 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5054 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
5047
5055
5048 2002-05-24 Fernando Perez <fperez@colorado.edu>
5056 2002-05-24 Fernando Perez <fperez@colorado.edu>
5049
5057
5050 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5058 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
5051 macros having broken.
5059 macros having broken.
5052
5060
5053 2002-05-21 Fernando Perez <fperez@colorado.edu>
5061 2002-05-21 Fernando Perez <fperez@colorado.edu>
5054
5062
5055 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5063 * IPython/Magic.py (Magic.magic_logstart): fixed recently
5056 introduced logging bug: all history before logging started was
5064 introduced logging bug: all history before logging started was
5057 being written one character per line! This came from the redesign
5065 being written one character per line! This came from the redesign
5058 of the input history as a special list which slices to strings,
5066 of the input history as a special list which slices to strings,
5059 not to lists.
5067 not to lists.
5060
5068
5061 2002-05-20 Fernando Perez <fperez@colorado.edu>
5069 2002-05-20 Fernando Perez <fperez@colorado.edu>
5062
5070
5063 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5071 * IPython/Prompts.py (CachedOutput.__init__): made the color table
5064 be an attribute of all classes in this module. The design of these
5072 be an attribute of all classes in this module. The design of these
5065 classes needs some serious overhauling.
5073 classes needs some serious overhauling.
5066
5074
5067 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5075 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
5068 which was ignoring '_' in option names.
5076 which was ignoring '_' in option names.
5069
5077
5070 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5078 * IPython/ultraTB.py (FormattedTB.__init__): Changed
5071 'Verbose_novars' to 'Context' and made it the new default. It's a
5079 'Verbose_novars' to 'Context' and made it the new default. It's a
5072 bit more readable and also safer than verbose.
5080 bit more readable and also safer than verbose.
5073
5081
5074 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5082 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
5075 triple-quoted strings.
5083 triple-quoted strings.
5076
5084
5077 * IPython/OInspect.py (__all__): new module exposing the object
5085 * IPython/OInspect.py (__all__): new module exposing the object
5078 introspection facilities. Now the corresponding magics are dummy
5086 introspection facilities. Now the corresponding magics are dummy
5079 wrappers around this. Having this module will make it much easier
5087 wrappers around this. Having this module will make it much easier
5080 to put these functions into our modified pdb.
5088 to put these functions into our modified pdb.
5081 This new object inspector system uses the new colorizing module,
5089 This new object inspector system uses the new colorizing module,
5082 so source code and other things are nicely syntax highlighted.
5090 so source code and other things are nicely syntax highlighted.
5083
5091
5084 2002-05-18 Fernando Perez <fperez@colorado.edu>
5092 2002-05-18 Fernando Perez <fperez@colorado.edu>
5085
5093
5086 * IPython/ColorANSI.py: Split the coloring tools into a separate
5094 * IPython/ColorANSI.py: Split the coloring tools into a separate
5087 module so I can use them in other code easier (they were part of
5095 module so I can use them in other code easier (they were part of
5088 ultraTB).
5096 ultraTB).
5089
5097
5090 2002-05-17 Fernando Perez <fperez@colorado.edu>
5098 2002-05-17 Fernando Perez <fperez@colorado.edu>
5091
5099
5092 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5100 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5093 fixed it to set the global 'g' also to the called instance, as
5101 fixed it to set the global 'g' also to the called instance, as
5094 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5102 long as 'g' was still a gnuplot instance (so it doesn't overwrite
5095 user's 'g' variables).
5103 user's 'g' variables).
5096
5104
5097 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5105 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
5098 global variables (aliases to _ih,_oh) so that users which expect
5106 global variables (aliases to _ih,_oh) so that users which expect
5099 In[5] or Out[7] to work aren't unpleasantly surprised.
5107 In[5] or Out[7] to work aren't unpleasantly surprised.
5100 (InputList.__getslice__): new class to allow executing slices of
5108 (InputList.__getslice__): new class to allow executing slices of
5101 input history directly. Very simple class, complements the use of
5109 input history directly. Very simple class, complements the use of
5102 macros.
5110 macros.
5103
5111
5104 2002-05-16 Fernando Perez <fperez@colorado.edu>
5112 2002-05-16 Fernando Perez <fperez@colorado.edu>
5105
5113
5106 * setup.py (docdirbase): make doc directory be just doc/IPython
5114 * setup.py (docdirbase): make doc directory be just doc/IPython
5107 without version numbers, it will reduce clutter for users.
5115 without version numbers, it will reduce clutter for users.
5108
5116
5109 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5117 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
5110 execfile call to prevent possible memory leak. See for details:
5118 execfile call to prevent possible memory leak. See for details:
5111 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5119 http://mail.python.org/pipermail/python-list/2002-February/088476.html
5112
5120
5113 2002-05-15 Fernando Perez <fperez@colorado.edu>
5121 2002-05-15 Fernando Perez <fperez@colorado.edu>
5114
5122
5115 * IPython/Magic.py (Magic.magic_psource): made the object
5123 * IPython/Magic.py (Magic.magic_psource): made the object
5116 introspection names be more standard: pdoc, pdef, pfile and
5124 introspection names be more standard: pdoc, pdef, pfile and
5117 psource. They all print/page their output, and it makes
5125 psource. They all print/page their output, and it makes
5118 remembering them easier. Kept old names for compatibility as
5126 remembering them easier. Kept old names for compatibility as
5119 aliases.
5127 aliases.
5120
5128
5121 2002-05-14 Fernando Perez <fperez@colorado.edu>
5129 2002-05-14 Fernando Perez <fperez@colorado.edu>
5122
5130
5123 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5131 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
5124 what the mouse problem was. The trick is to use gnuplot with temp
5132 what the mouse problem was. The trick is to use gnuplot with temp
5125 files and NOT with pipes (for data communication), because having
5133 files and NOT with pipes (for data communication), because having
5126 both pipes and the mouse on is bad news.
5134 both pipes and the mouse on is bad news.
5127
5135
5128 2002-05-13 Fernando Perez <fperez@colorado.edu>
5136 2002-05-13 Fernando Perez <fperez@colorado.edu>
5129
5137
5130 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5138 * IPython/Magic.py (Magic._ofind): fixed namespace order search
5131 bug. Information would be reported about builtins even when
5139 bug. Information would be reported about builtins even when
5132 user-defined functions overrode them.
5140 user-defined functions overrode them.
5133
5141
5134 2002-05-11 Fernando Perez <fperez@colorado.edu>
5142 2002-05-11 Fernando Perez <fperez@colorado.edu>
5135
5143
5136 * IPython/__init__.py (__all__): removed FlexCompleter from
5144 * IPython/__init__.py (__all__): removed FlexCompleter from
5137 __all__ so that things don't fail in platforms without readline.
5145 __all__ so that things don't fail in platforms without readline.
5138
5146
5139 2002-05-10 Fernando Perez <fperez@colorado.edu>
5147 2002-05-10 Fernando Perez <fperez@colorado.edu>
5140
5148
5141 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5149 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
5142 it requires Numeric, effectively making Numeric a dependency for
5150 it requires Numeric, effectively making Numeric a dependency for
5143 IPython.
5151 IPython.
5144
5152
5145 * Released 0.2.13
5153 * Released 0.2.13
5146
5154
5147 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5155 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
5148 profiler interface. Now all the major options from the profiler
5156 profiler interface. Now all the major options from the profiler
5149 module are directly supported in IPython, both for single
5157 module are directly supported in IPython, both for single
5150 expressions (@prun) and for full programs (@run -p).
5158 expressions (@prun) and for full programs (@run -p).
5151
5159
5152 2002-05-09 Fernando Perez <fperez@colorado.edu>
5160 2002-05-09 Fernando Perez <fperez@colorado.edu>
5153
5161
5154 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5162 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
5155 magic properly formatted for screen.
5163 magic properly formatted for screen.
5156
5164
5157 * setup.py (make_shortcut): Changed things to put pdf version in
5165 * setup.py (make_shortcut): Changed things to put pdf version in
5158 doc/ instead of doc/manual (had to change lyxport a bit).
5166 doc/ instead of doc/manual (had to change lyxport a bit).
5159
5167
5160 * IPython/Magic.py (Profile.string_stats): made profile runs go
5168 * IPython/Magic.py (Profile.string_stats): made profile runs go
5161 through pager (they are long and a pager allows searching, saving,
5169 through pager (they are long and a pager allows searching, saving,
5162 etc.)
5170 etc.)
5163
5171
5164 2002-05-08 Fernando Perez <fperez@colorado.edu>
5172 2002-05-08 Fernando Perez <fperez@colorado.edu>
5165
5173
5166 * Released 0.2.12
5174 * Released 0.2.12
5167
5175
5168 2002-05-06 Fernando Perez <fperez@colorado.edu>
5176 2002-05-06 Fernando Perez <fperez@colorado.edu>
5169
5177
5170 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5178 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5171 introduced); 'hist n1 n2' was broken.
5179 introduced); 'hist n1 n2' was broken.
5172 (Magic.magic_pdb): added optional on/off arguments to @pdb
5180 (Magic.magic_pdb): added optional on/off arguments to @pdb
5173 (Magic.magic_run): added option -i to @run, which executes code in
5181 (Magic.magic_run): added option -i to @run, which executes code in
5174 the IPython namespace instead of a clean one. Also added @irun as
5182 the IPython namespace instead of a clean one. Also added @irun as
5175 an alias to @run -i.
5183 an alias to @run -i.
5176
5184
5177 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5185 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5178 fixed (it didn't really do anything, the namespaces were wrong).
5186 fixed (it didn't really do anything, the namespaces were wrong).
5179
5187
5180 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5188 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5181
5189
5182 * IPython/__init__.py (__all__): Fixed package namespace, now
5190 * IPython/__init__.py (__all__): Fixed package namespace, now
5183 'import IPython' does give access to IPython.<all> as
5191 'import IPython' does give access to IPython.<all> as
5184 expected. Also renamed __release__ to Release.
5192 expected. Also renamed __release__ to Release.
5185
5193
5186 * IPython/Debugger.py (__license__): created new Pdb class which
5194 * IPython/Debugger.py (__license__): created new Pdb class which
5187 functions like a drop-in for the normal pdb.Pdb but does NOT
5195 functions like a drop-in for the normal pdb.Pdb but does NOT
5188 import readline by default. This way it doesn't muck up IPython's
5196 import readline by default. This way it doesn't muck up IPython's
5189 readline handling, and now tab-completion finally works in the
5197 readline handling, and now tab-completion finally works in the
5190 debugger -- sort of. It completes things globally visible, but the
5198 debugger -- sort of. It completes things globally visible, but the
5191 completer doesn't track the stack as pdb walks it. That's a bit
5199 completer doesn't track the stack as pdb walks it. That's a bit
5192 tricky, and I'll have to implement it later.
5200 tricky, and I'll have to implement it later.
5193
5201
5194 2002-05-05 Fernando Perez <fperez@colorado.edu>
5202 2002-05-05 Fernando Perez <fperez@colorado.edu>
5195
5203
5196 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5204 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5197 magic docstrings when printed via ? (explicit \'s were being
5205 magic docstrings when printed via ? (explicit \'s were being
5198 printed).
5206 printed).
5199
5207
5200 * IPython/ipmaker.py (make_IPython): fixed namespace
5208 * IPython/ipmaker.py (make_IPython): fixed namespace
5201 identification bug. Now variables loaded via logs or command-line
5209 identification bug. Now variables loaded via logs or command-line
5202 files are recognized in the interactive namespace by @who.
5210 files are recognized in the interactive namespace by @who.
5203
5211
5204 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5212 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5205 log replay system stemming from the string form of Structs.
5213 log replay system stemming from the string form of Structs.
5206
5214
5207 * IPython/Magic.py (Macro.__init__): improved macros to properly
5215 * IPython/Magic.py (Macro.__init__): improved macros to properly
5208 handle magic commands in them.
5216 handle magic commands in them.
5209 (Magic.magic_logstart): usernames are now expanded so 'logstart
5217 (Magic.magic_logstart): usernames are now expanded so 'logstart
5210 ~/mylog' now works.
5218 ~/mylog' now works.
5211
5219
5212 * IPython/iplib.py (complete): fixed bug where paths starting with
5220 * IPython/iplib.py (complete): fixed bug where paths starting with
5213 '/' would be completed as magic names.
5221 '/' would be completed as magic names.
5214
5222
5215 2002-05-04 Fernando Perez <fperez@colorado.edu>
5223 2002-05-04 Fernando Perez <fperez@colorado.edu>
5216
5224
5217 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5225 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5218 allow running full programs under the profiler's control.
5226 allow running full programs under the profiler's control.
5219
5227
5220 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5228 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5221 mode to report exceptions verbosely but without formatting
5229 mode to report exceptions verbosely but without formatting
5222 variables. This addresses the issue of ipython 'freezing' (it's
5230 variables. This addresses the issue of ipython 'freezing' (it's
5223 not frozen, but caught in an expensive formatting loop) when huge
5231 not frozen, but caught in an expensive formatting loop) when huge
5224 variables are in the context of an exception.
5232 variables are in the context of an exception.
5225 (VerboseTB.text): Added '--->' markers at line where exception was
5233 (VerboseTB.text): Added '--->' markers at line where exception was
5226 triggered. Much clearer to read, especially in NoColor modes.
5234 triggered. Much clearer to read, especially in NoColor modes.
5227
5235
5228 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5236 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5229 implemented in reverse when changing to the new parse_options().
5237 implemented in reverse when changing to the new parse_options().
5230
5238
5231 2002-05-03 Fernando Perez <fperez@colorado.edu>
5239 2002-05-03 Fernando Perez <fperez@colorado.edu>
5232
5240
5233 * IPython/Magic.py (Magic.parse_options): new function so that
5241 * IPython/Magic.py (Magic.parse_options): new function so that
5234 magics can parse options easier.
5242 magics can parse options easier.
5235 (Magic.magic_prun): new function similar to profile.run(),
5243 (Magic.magic_prun): new function similar to profile.run(),
5236 suggested by Chris Hart.
5244 suggested by Chris Hart.
5237 (Magic.magic_cd): fixed behavior so that it only changes if
5245 (Magic.magic_cd): fixed behavior so that it only changes if
5238 directory actually is in history.
5246 directory actually is in history.
5239
5247
5240 * IPython/usage.py (__doc__): added information about potential
5248 * IPython/usage.py (__doc__): added information about potential
5241 slowness of Verbose exception mode when there are huge data
5249 slowness of Verbose exception mode when there are huge data
5242 structures to be formatted (thanks to Archie Paulson).
5250 structures to be formatted (thanks to Archie Paulson).
5243
5251
5244 * IPython/ipmaker.py (make_IPython): Changed default logging
5252 * IPython/ipmaker.py (make_IPython): Changed default logging
5245 (when simply called with -log) to use curr_dir/ipython.log in
5253 (when simply called with -log) to use curr_dir/ipython.log in
5246 rotate mode. Fixed crash which was occuring with -log before
5254 rotate mode. Fixed crash which was occuring with -log before
5247 (thanks to Jim Boyle).
5255 (thanks to Jim Boyle).
5248
5256
5249 2002-05-01 Fernando Perez <fperez@colorado.edu>
5257 2002-05-01 Fernando Perez <fperez@colorado.edu>
5250
5258
5251 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5259 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5252 was nasty -- though somewhat of a corner case).
5260 was nasty -- though somewhat of a corner case).
5253
5261
5254 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5262 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5255 text (was a bug).
5263 text (was a bug).
5256
5264
5257 2002-04-30 Fernando Perez <fperez@colorado.edu>
5265 2002-04-30 Fernando Perez <fperez@colorado.edu>
5258
5266
5259 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5267 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5260 a print after ^D or ^C from the user so that the In[] prompt
5268 a print after ^D or ^C from the user so that the In[] prompt
5261 doesn't over-run the gnuplot one.
5269 doesn't over-run the gnuplot one.
5262
5270
5263 2002-04-29 Fernando Perez <fperez@colorado.edu>
5271 2002-04-29 Fernando Perez <fperez@colorado.edu>
5264
5272
5265 * Released 0.2.10
5273 * Released 0.2.10
5266
5274
5267 * IPython/__release__.py (version): get date dynamically.
5275 * IPython/__release__.py (version): get date dynamically.
5268
5276
5269 * Misc. documentation updates thanks to Arnd's comments. Also ran
5277 * Misc. documentation updates thanks to Arnd's comments. Also ran
5270 a full spellcheck on the manual (hadn't been done in a while).
5278 a full spellcheck on the manual (hadn't been done in a while).
5271
5279
5272 2002-04-27 Fernando Perez <fperez@colorado.edu>
5280 2002-04-27 Fernando Perez <fperez@colorado.edu>
5273
5281
5274 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5282 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5275 starting a log in mid-session would reset the input history list.
5283 starting a log in mid-session would reset the input history list.
5276
5284
5277 2002-04-26 Fernando Perez <fperez@colorado.edu>
5285 2002-04-26 Fernando Perez <fperez@colorado.edu>
5278
5286
5279 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5287 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5280 all files were being included in an update. Now anything in
5288 all files were being included in an update. Now anything in
5281 UserConfig that matches [A-Za-z]*.py will go (this excludes
5289 UserConfig that matches [A-Za-z]*.py will go (this excludes
5282 __init__.py)
5290 __init__.py)
5283
5291
5284 2002-04-25 Fernando Perez <fperez@colorado.edu>
5292 2002-04-25 Fernando Perez <fperez@colorado.edu>
5285
5293
5286 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5294 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5287 to __builtins__ so that any form of embedded or imported code can
5295 to __builtins__ so that any form of embedded or imported code can
5288 test for being inside IPython.
5296 test for being inside IPython.
5289
5297
5290 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5298 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5291 changed to GnuplotMagic because it's now an importable module,
5299 changed to GnuplotMagic because it's now an importable module,
5292 this makes the name follow that of the standard Gnuplot module.
5300 this makes the name follow that of the standard Gnuplot module.
5293 GnuplotMagic can now be loaded at any time in mid-session.
5301 GnuplotMagic can now be loaded at any time in mid-session.
5294
5302
5295 2002-04-24 Fernando Perez <fperez@colorado.edu>
5303 2002-04-24 Fernando Perez <fperez@colorado.edu>
5296
5304
5297 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5305 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5298 the globals (IPython has its own namespace) and the
5306 the globals (IPython has its own namespace) and the
5299 PhysicalQuantity stuff is much better anyway.
5307 PhysicalQuantity stuff is much better anyway.
5300
5308
5301 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5309 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5302 embedding example to standard user directory for
5310 embedding example to standard user directory for
5303 distribution. Also put it in the manual.
5311 distribution. Also put it in the manual.
5304
5312
5305 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5313 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5306 instance as first argument (so it doesn't rely on some obscure
5314 instance as first argument (so it doesn't rely on some obscure
5307 hidden global).
5315 hidden global).
5308
5316
5309 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5317 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5310 delimiters. While it prevents ().TAB from working, it allows
5318 delimiters. While it prevents ().TAB from working, it allows
5311 completions in open (... expressions. This is by far a more common
5319 completions in open (... expressions. This is by far a more common
5312 case.
5320 case.
5313
5321
5314 2002-04-23 Fernando Perez <fperez@colorado.edu>
5322 2002-04-23 Fernando Perez <fperez@colorado.edu>
5315
5323
5316 * IPython/Extensions/InterpreterPasteInput.py: new
5324 * IPython/Extensions/InterpreterPasteInput.py: new
5317 syntax-processing module for pasting lines with >>> or ... at the
5325 syntax-processing module for pasting lines with >>> or ... at the
5318 start.
5326 start.
5319
5327
5320 * IPython/Extensions/PhysicalQ_Interactive.py
5328 * IPython/Extensions/PhysicalQ_Interactive.py
5321 (PhysicalQuantityInteractive.__int__): fixed to work with either
5329 (PhysicalQuantityInteractive.__int__): fixed to work with either
5322 Numeric or math.
5330 Numeric or math.
5323
5331
5324 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5332 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5325 provided profiles. Now we have:
5333 provided profiles. Now we have:
5326 -math -> math module as * and cmath with its own namespace.
5334 -math -> math module as * and cmath with its own namespace.
5327 -numeric -> Numeric as *, plus gnuplot & grace
5335 -numeric -> Numeric as *, plus gnuplot & grace
5328 -physics -> same as before
5336 -physics -> same as before
5329
5337
5330 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5338 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5331 user-defined magics wouldn't be found by @magic if they were
5339 user-defined magics wouldn't be found by @magic if they were
5332 defined as class methods. Also cleaned up the namespace search
5340 defined as class methods. Also cleaned up the namespace search
5333 logic and the string building (to use %s instead of many repeated
5341 logic and the string building (to use %s instead of many repeated
5334 string adds).
5342 string adds).
5335
5343
5336 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5344 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5337 of user-defined magics to operate with class methods (cleaner, in
5345 of user-defined magics to operate with class methods (cleaner, in
5338 line with the gnuplot code).
5346 line with the gnuplot code).
5339
5347
5340 2002-04-22 Fernando Perez <fperez@colorado.edu>
5348 2002-04-22 Fernando Perez <fperez@colorado.edu>
5341
5349
5342 * setup.py: updated dependency list so that manual is updated when
5350 * setup.py: updated dependency list so that manual is updated when
5343 all included files change.
5351 all included files change.
5344
5352
5345 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5353 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5346 the delimiter removal option (the fix is ugly right now).
5354 the delimiter removal option (the fix is ugly right now).
5347
5355
5348 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5356 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5349 all of the math profile (quicker loading, no conflict between
5357 all of the math profile (quicker loading, no conflict between
5350 g-9.8 and g-gnuplot).
5358 g-9.8 and g-gnuplot).
5351
5359
5352 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5360 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5353 name of post-mortem files to IPython_crash_report.txt.
5361 name of post-mortem files to IPython_crash_report.txt.
5354
5362
5355 * Cleanup/update of the docs. Added all the new readline info and
5363 * Cleanup/update of the docs. Added all the new readline info and
5356 formatted all lists as 'real lists'.
5364 formatted all lists as 'real lists'.
5357
5365
5358 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5366 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5359 tab-completion options, since the full readline parse_and_bind is
5367 tab-completion options, since the full readline parse_and_bind is
5360 now accessible.
5368 now accessible.
5361
5369
5362 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5370 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5363 handling of readline options. Now users can specify any string to
5371 handling of readline options. Now users can specify any string to
5364 be passed to parse_and_bind(), as well as the delimiters to be
5372 be passed to parse_and_bind(), as well as the delimiters to be
5365 removed.
5373 removed.
5366 (InteractiveShell.__init__): Added __name__ to the global
5374 (InteractiveShell.__init__): Added __name__ to the global
5367 namespace so that things like Itpl which rely on its existence
5375 namespace so that things like Itpl which rely on its existence
5368 don't crash.
5376 don't crash.
5369 (InteractiveShell._prefilter): Defined the default with a _ so
5377 (InteractiveShell._prefilter): Defined the default with a _ so
5370 that prefilter() is easier to override, while the default one
5378 that prefilter() is easier to override, while the default one
5371 remains available.
5379 remains available.
5372
5380
5373 2002-04-18 Fernando Perez <fperez@colorado.edu>
5381 2002-04-18 Fernando Perez <fperez@colorado.edu>
5374
5382
5375 * Added information about pdb in the docs.
5383 * Added information about pdb in the docs.
5376
5384
5377 2002-04-17 Fernando Perez <fperez@colorado.edu>
5385 2002-04-17 Fernando Perez <fperez@colorado.edu>
5378
5386
5379 * IPython/ipmaker.py (make_IPython): added rc_override option to
5387 * IPython/ipmaker.py (make_IPython): added rc_override option to
5380 allow passing config options at creation time which may override
5388 allow passing config options at creation time which may override
5381 anything set in the config files or command line. This is
5389 anything set in the config files or command line. This is
5382 particularly useful for configuring embedded instances.
5390 particularly useful for configuring embedded instances.
5383
5391
5384 2002-04-15 Fernando Perez <fperez@colorado.edu>
5392 2002-04-15 Fernando Perez <fperez@colorado.edu>
5385
5393
5386 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5394 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5387 crash embedded instances because of the input cache falling out of
5395 crash embedded instances because of the input cache falling out of
5388 sync with the output counter.
5396 sync with the output counter.
5389
5397
5390 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5398 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5391 mode which calls pdb after an uncaught exception in IPython itself.
5399 mode which calls pdb after an uncaught exception in IPython itself.
5392
5400
5393 2002-04-14 Fernando Perez <fperez@colorado.edu>
5401 2002-04-14 Fernando Perez <fperez@colorado.edu>
5394
5402
5395 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5403 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5396 readline, fix it back after each call.
5404 readline, fix it back after each call.
5397
5405
5398 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5406 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5399 method to force all access via __call__(), which guarantees that
5407 method to force all access via __call__(), which guarantees that
5400 traceback references are properly deleted.
5408 traceback references are properly deleted.
5401
5409
5402 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5410 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5403 improve printing when pprint is in use.
5411 improve printing when pprint is in use.
5404
5412
5405 2002-04-13 Fernando Perez <fperez@colorado.edu>
5413 2002-04-13 Fernando Perez <fperez@colorado.edu>
5406
5414
5407 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5415 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5408 exceptions aren't caught anymore. If the user triggers one, he
5416 exceptions aren't caught anymore. If the user triggers one, he
5409 should know why he's doing it and it should go all the way up,
5417 should know why he's doing it and it should go all the way up,
5410 just like any other exception. So now @abort will fully kill the
5418 just like any other exception. So now @abort will fully kill the
5411 embedded interpreter and the embedding code (unless that happens
5419 embedded interpreter and the embedding code (unless that happens
5412 to catch SystemExit).
5420 to catch SystemExit).
5413
5421
5414 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5422 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5415 and a debugger() method to invoke the interactive pdb debugger
5423 and a debugger() method to invoke the interactive pdb debugger
5416 after printing exception information. Also added the corresponding
5424 after printing exception information. Also added the corresponding
5417 -pdb option and @pdb magic to control this feature, and updated
5425 -pdb option and @pdb magic to control this feature, and updated
5418 the docs. After a suggestion from Christopher Hart
5426 the docs. After a suggestion from Christopher Hart
5419 (hart-AT-caltech.edu).
5427 (hart-AT-caltech.edu).
5420
5428
5421 2002-04-12 Fernando Perez <fperez@colorado.edu>
5429 2002-04-12 Fernando Perez <fperez@colorado.edu>
5422
5430
5423 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5431 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5424 the exception handlers defined by the user (not the CrashHandler)
5432 the exception handlers defined by the user (not the CrashHandler)
5425 so that user exceptions don't trigger an ipython bug report.
5433 so that user exceptions don't trigger an ipython bug report.
5426
5434
5427 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5435 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5428 configurable (it should have always been so).
5436 configurable (it should have always been so).
5429
5437
5430 2002-03-26 Fernando Perez <fperez@colorado.edu>
5438 2002-03-26 Fernando Perez <fperez@colorado.edu>
5431
5439
5432 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5440 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5433 and there to fix embedding namespace issues. This should all be
5441 and there to fix embedding namespace issues. This should all be
5434 done in a more elegant way.
5442 done in a more elegant way.
5435
5443
5436 2002-03-25 Fernando Perez <fperez@colorado.edu>
5444 2002-03-25 Fernando Perez <fperez@colorado.edu>
5437
5445
5438 * IPython/genutils.py (get_home_dir): Try to make it work under
5446 * IPython/genutils.py (get_home_dir): Try to make it work under
5439 win9x also.
5447 win9x also.
5440
5448
5441 2002-03-20 Fernando Perez <fperez@colorado.edu>
5449 2002-03-20 Fernando Perez <fperez@colorado.edu>
5442
5450
5443 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5451 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5444 sys.displayhook untouched upon __init__.
5452 sys.displayhook untouched upon __init__.
5445
5453
5446 2002-03-19 Fernando Perez <fperez@colorado.edu>
5454 2002-03-19 Fernando Perez <fperez@colorado.edu>
5447
5455
5448 * Released 0.2.9 (for embedding bug, basically).
5456 * Released 0.2.9 (for embedding bug, basically).
5449
5457
5450 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5458 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5451 exceptions so that enclosing shell's state can be restored.
5459 exceptions so that enclosing shell's state can be restored.
5452
5460
5453 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5461 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5454 naming conventions in the .ipython/ dir.
5462 naming conventions in the .ipython/ dir.
5455
5463
5456 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5464 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5457 from delimiters list so filenames with - in them get expanded.
5465 from delimiters list so filenames with - in them get expanded.
5458
5466
5459 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5467 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5460 sys.displayhook not being properly restored after an embedded call.
5468 sys.displayhook not being properly restored after an embedded call.
5461
5469
5462 2002-03-18 Fernando Perez <fperez@colorado.edu>
5470 2002-03-18 Fernando Perez <fperez@colorado.edu>
5463
5471
5464 * Released 0.2.8
5472 * Released 0.2.8
5465
5473
5466 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5474 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5467 some files weren't being included in a -upgrade.
5475 some files weren't being included in a -upgrade.
5468 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5476 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5469 on' so that the first tab completes.
5477 on' so that the first tab completes.
5470 (InteractiveShell.handle_magic): fixed bug with spaces around
5478 (InteractiveShell.handle_magic): fixed bug with spaces around
5471 quotes breaking many magic commands.
5479 quotes breaking many magic commands.
5472
5480
5473 * setup.py: added note about ignoring the syntax error messages at
5481 * setup.py: added note about ignoring the syntax error messages at
5474 installation.
5482 installation.
5475
5483
5476 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5484 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5477 streamlining the gnuplot interface, now there's only one magic @gp.
5485 streamlining the gnuplot interface, now there's only one magic @gp.
5478
5486
5479 2002-03-17 Fernando Perez <fperez@colorado.edu>
5487 2002-03-17 Fernando Perez <fperez@colorado.edu>
5480
5488
5481 * IPython/UserConfig/magic_gnuplot.py: new name for the
5489 * IPython/UserConfig/magic_gnuplot.py: new name for the
5482 example-magic_pm.py file. Much enhanced system, now with a shell
5490 example-magic_pm.py file. Much enhanced system, now with a shell
5483 for communicating directly with gnuplot, one command at a time.
5491 for communicating directly with gnuplot, one command at a time.
5484
5492
5485 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5493 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5486 setting __name__=='__main__'.
5494 setting __name__=='__main__'.
5487
5495
5488 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5496 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5489 mini-shell for accessing gnuplot from inside ipython. Should
5497 mini-shell for accessing gnuplot from inside ipython. Should
5490 extend it later for grace access too. Inspired by Arnd's
5498 extend it later for grace access too. Inspired by Arnd's
5491 suggestion.
5499 suggestion.
5492
5500
5493 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5501 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5494 calling magic functions with () in their arguments. Thanks to Arnd
5502 calling magic functions with () in their arguments. Thanks to Arnd
5495 Baecker for pointing this to me.
5503 Baecker for pointing this to me.
5496
5504
5497 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5505 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5498 infinitely for integer or complex arrays (only worked with floats).
5506 infinitely for integer or complex arrays (only worked with floats).
5499
5507
5500 2002-03-16 Fernando Perez <fperez@colorado.edu>
5508 2002-03-16 Fernando Perez <fperez@colorado.edu>
5501
5509
5502 * setup.py: Merged setup and setup_windows into a single script
5510 * setup.py: Merged setup and setup_windows into a single script
5503 which properly handles things for windows users.
5511 which properly handles things for windows users.
5504
5512
5505 2002-03-15 Fernando Perez <fperez@colorado.edu>
5513 2002-03-15 Fernando Perez <fperez@colorado.edu>
5506
5514
5507 * Big change to the manual: now the magics are all automatically
5515 * Big change to the manual: now the magics are all automatically
5508 documented. This information is generated from their docstrings
5516 documented. This information is generated from their docstrings
5509 and put in a latex file included by the manual lyx file. This way
5517 and put in a latex file included by the manual lyx file. This way
5510 we get always up to date information for the magics. The manual
5518 we get always up to date information for the magics. The manual
5511 now also has proper version information, also auto-synced.
5519 now also has proper version information, also auto-synced.
5512
5520
5513 For this to work, an undocumented --magic_docstrings option was added.
5521 For this to work, an undocumented --magic_docstrings option was added.
5514
5522
5515 2002-03-13 Fernando Perez <fperez@colorado.edu>
5523 2002-03-13 Fernando Perez <fperez@colorado.edu>
5516
5524
5517 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5525 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5518 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5526 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5519
5527
5520 2002-03-12 Fernando Perez <fperez@colorado.edu>
5528 2002-03-12 Fernando Perez <fperez@colorado.edu>
5521
5529
5522 * IPython/ultraTB.py (TermColors): changed color escapes again to
5530 * IPython/ultraTB.py (TermColors): changed color escapes again to
5523 fix the (old, reintroduced) line-wrapping bug. Basically, if
5531 fix the (old, reintroduced) line-wrapping bug. Basically, if
5524 \001..\002 aren't given in the color escapes, lines get wrapped
5532 \001..\002 aren't given in the color escapes, lines get wrapped
5525 weirdly. But giving those screws up old xterms and emacs terms. So
5533 weirdly. But giving those screws up old xterms and emacs terms. So
5526 I added some logic for emacs terms to be ok, but I can't identify old
5534 I added some logic for emacs terms to be ok, but I can't identify old
5527 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5535 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5528
5536
5529 2002-03-10 Fernando Perez <fperez@colorado.edu>
5537 2002-03-10 Fernando Perez <fperez@colorado.edu>
5530
5538
5531 * IPython/usage.py (__doc__): Various documentation cleanups and
5539 * IPython/usage.py (__doc__): Various documentation cleanups and
5532 updates, both in usage docstrings and in the manual.
5540 updates, both in usage docstrings and in the manual.
5533
5541
5534 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5542 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5535 handling of caching. Set minimum acceptabe value for having a
5543 handling of caching. Set minimum acceptabe value for having a
5536 cache at 20 values.
5544 cache at 20 values.
5537
5545
5538 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5546 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5539 install_first_time function to a method, renamed it and added an
5547 install_first_time function to a method, renamed it and added an
5540 'upgrade' mode. Now people can update their config directory with
5548 'upgrade' mode. Now people can update their config directory with
5541 a simple command line switch (-upgrade, also new).
5549 a simple command line switch (-upgrade, also new).
5542
5550
5543 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5551 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5544 @file (convenient for automagic users under Python >= 2.2).
5552 @file (convenient for automagic users under Python >= 2.2).
5545 Removed @files (it seemed more like a plural than an abbrev. of
5553 Removed @files (it seemed more like a plural than an abbrev. of
5546 'file show').
5554 'file show').
5547
5555
5548 * IPython/iplib.py (install_first_time): Fixed crash if there were
5556 * IPython/iplib.py (install_first_time): Fixed crash if there were
5549 backup files ('~') in .ipython/ install directory.
5557 backup files ('~') in .ipython/ install directory.
5550
5558
5551 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5559 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5552 system. Things look fine, but these changes are fairly
5560 system. Things look fine, but these changes are fairly
5553 intrusive. Test them for a few days.
5561 intrusive. Test them for a few days.
5554
5562
5555 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5563 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5556 the prompts system. Now all in/out prompt strings are user
5564 the prompts system. Now all in/out prompt strings are user
5557 controllable. This is particularly useful for embedding, as one
5565 controllable. This is particularly useful for embedding, as one
5558 can tag embedded instances with particular prompts.
5566 can tag embedded instances with particular prompts.
5559
5567
5560 Also removed global use of sys.ps1/2, which now allows nested
5568 Also removed global use of sys.ps1/2, which now allows nested
5561 embeddings without any problems. Added command-line options for
5569 embeddings without any problems. Added command-line options for
5562 the prompt strings.
5570 the prompt strings.
5563
5571
5564 2002-03-08 Fernando Perez <fperez@colorado.edu>
5572 2002-03-08 Fernando Perez <fperez@colorado.edu>
5565
5573
5566 * IPython/UserConfig/example-embed-short.py (ipshell): added
5574 * IPython/UserConfig/example-embed-short.py (ipshell): added
5567 example file with the bare minimum code for embedding.
5575 example file with the bare minimum code for embedding.
5568
5576
5569 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5577 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5570 functionality for the embeddable shell to be activated/deactivated
5578 functionality for the embeddable shell to be activated/deactivated
5571 either globally or at each call.
5579 either globally or at each call.
5572
5580
5573 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5581 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5574 rewriting the prompt with '--->' for auto-inputs with proper
5582 rewriting the prompt with '--->' for auto-inputs with proper
5575 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5583 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5576 this is handled by the prompts class itself, as it should.
5584 this is handled by the prompts class itself, as it should.
5577
5585
5578 2002-03-05 Fernando Perez <fperez@colorado.edu>
5586 2002-03-05 Fernando Perez <fperez@colorado.edu>
5579
5587
5580 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5588 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5581 @logstart to avoid name clashes with the math log function.
5589 @logstart to avoid name clashes with the math log function.
5582
5590
5583 * Big updates to X/Emacs section of the manual.
5591 * Big updates to X/Emacs section of the manual.
5584
5592
5585 * Removed ipython_emacs. Milan explained to me how to pass
5593 * Removed ipython_emacs. Milan explained to me how to pass
5586 arguments to ipython through Emacs. Some day I'm going to end up
5594 arguments to ipython through Emacs. Some day I'm going to end up
5587 learning some lisp...
5595 learning some lisp...
5588
5596
5589 2002-03-04 Fernando Perez <fperez@colorado.edu>
5597 2002-03-04 Fernando Perez <fperez@colorado.edu>
5590
5598
5591 * IPython/ipython_emacs: Created script to be used as the
5599 * IPython/ipython_emacs: Created script to be used as the
5592 py-python-command Emacs variable so we can pass IPython
5600 py-python-command Emacs variable so we can pass IPython
5593 parameters. I can't figure out how to tell Emacs directly to pass
5601 parameters. I can't figure out how to tell Emacs directly to pass
5594 parameters to IPython, so a dummy shell script will do it.
5602 parameters to IPython, so a dummy shell script will do it.
5595
5603
5596 Other enhancements made for things to work better under Emacs'
5604 Other enhancements made for things to work better under Emacs'
5597 various types of terminals. Many thanks to Milan Zamazal
5605 various types of terminals. Many thanks to Milan Zamazal
5598 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5606 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5599
5607
5600 2002-03-01 Fernando Perez <fperez@colorado.edu>
5608 2002-03-01 Fernando Perez <fperez@colorado.edu>
5601
5609
5602 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5610 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5603 that loading of readline is now optional. This gives better
5611 that loading of readline is now optional. This gives better
5604 control to emacs users.
5612 control to emacs users.
5605
5613
5606 * IPython/ultraTB.py (__date__): Modified color escape sequences
5614 * IPython/ultraTB.py (__date__): Modified color escape sequences
5607 and now things work fine under xterm and in Emacs' term buffers
5615 and now things work fine under xterm and in Emacs' term buffers
5608 (though not shell ones). Well, in emacs you get colors, but all
5616 (though not shell ones). Well, in emacs you get colors, but all
5609 seem to be 'light' colors (no difference between dark and light
5617 seem to be 'light' colors (no difference between dark and light
5610 ones). But the garbage chars are gone, and also in xterms. It
5618 ones). But the garbage chars are gone, and also in xterms. It
5611 seems that now I'm using 'cleaner' ansi sequences.
5619 seems that now I'm using 'cleaner' ansi sequences.
5612
5620
5613 2002-02-21 Fernando Perez <fperez@colorado.edu>
5621 2002-02-21 Fernando Perez <fperez@colorado.edu>
5614
5622
5615 * Released 0.2.7 (mainly to publish the scoping fix).
5623 * Released 0.2.7 (mainly to publish the scoping fix).
5616
5624
5617 * IPython/Logger.py (Logger.logstate): added. A corresponding
5625 * IPython/Logger.py (Logger.logstate): added. A corresponding
5618 @logstate magic was created.
5626 @logstate magic was created.
5619
5627
5620 * IPython/Magic.py: fixed nested scoping problem under Python
5628 * IPython/Magic.py: fixed nested scoping problem under Python
5621 2.1.x (automagic wasn't working).
5629 2.1.x (automagic wasn't working).
5622
5630
5623 2002-02-20 Fernando Perez <fperez@colorado.edu>
5631 2002-02-20 Fernando Perez <fperez@colorado.edu>
5624
5632
5625 * Released 0.2.6.
5633 * Released 0.2.6.
5626
5634
5627 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5635 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5628 option so that logs can come out without any headers at all.
5636 option so that logs can come out without any headers at all.
5629
5637
5630 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5638 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5631 SciPy.
5639 SciPy.
5632
5640
5633 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5641 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5634 that embedded IPython calls don't require vars() to be explicitly
5642 that embedded IPython calls don't require vars() to be explicitly
5635 passed. Now they are extracted from the caller's frame (code
5643 passed. Now they are extracted from the caller's frame (code
5636 snatched from Eric Jones' weave). Added better documentation to
5644 snatched from Eric Jones' weave). Added better documentation to
5637 the section on embedding and the example file.
5645 the section on embedding and the example file.
5638
5646
5639 * IPython/genutils.py (page): Changed so that under emacs, it just
5647 * IPython/genutils.py (page): Changed so that under emacs, it just
5640 prints the string. You can then page up and down in the emacs
5648 prints the string. You can then page up and down in the emacs
5641 buffer itself. This is how the builtin help() works.
5649 buffer itself. This is how the builtin help() works.
5642
5650
5643 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5651 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5644 macro scoping: macros need to be executed in the user's namespace
5652 macro scoping: macros need to be executed in the user's namespace
5645 to work as if they had been typed by the user.
5653 to work as if they had been typed by the user.
5646
5654
5647 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5655 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5648 execute automatically (no need to type 'exec...'). They then
5656 execute automatically (no need to type 'exec...'). They then
5649 behave like 'true macros'. The printing system was also modified
5657 behave like 'true macros'. The printing system was also modified
5650 for this to work.
5658 for this to work.
5651
5659
5652 2002-02-19 Fernando Perez <fperez@colorado.edu>
5660 2002-02-19 Fernando Perez <fperez@colorado.edu>
5653
5661
5654 * IPython/genutils.py (page_file): new function for paging files
5662 * IPython/genutils.py (page_file): new function for paging files
5655 in an OS-independent way. Also necessary for file viewing to work
5663 in an OS-independent way. Also necessary for file viewing to work
5656 well inside Emacs buffers.
5664 well inside Emacs buffers.
5657 (page): Added checks for being in an emacs buffer.
5665 (page): Added checks for being in an emacs buffer.
5658 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5666 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5659 same bug in iplib.
5667 same bug in iplib.
5660
5668
5661 2002-02-18 Fernando Perez <fperez@colorado.edu>
5669 2002-02-18 Fernando Perez <fperez@colorado.edu>
5662
5670
5663 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5671 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5664 of readline so that IPython can work inside an Emacs buffer.
5672 of readline so that IPython can work inside an Emacs buffer.
5665
5673
5666 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5674 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5667 method signatures (they weren't really bugs, but it looks cleaner
5675 method signatures (they weren't really bugs, but it looks cleaner
5668 and keeps PyChecker happy).
5676 and keeps PyChecker happy).
5669
5677
5670 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5678 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5671 for implementing various user-defined hooks. Currently only
5679 for implementing various user-defined hooks. Currently only
5672 display is done.
5680 display is done.
5673
5681
5674 * IPython/Prompts.py (CachedOutput._display): changed display
5682 * IPython/Prompts.py (CachedOutput._display): changed display
5675 functions so that they can be dynamically changed by users easily.
5683 functions so that they can be dynamically changed by users easily.
5676
5684
5677 * IPython/Extensions/numeric_formats.py (num_display): added an
5685 * IPython/Extensions/numeric_formats.py (num_display): added an
5678 extension for printing NumPy arrays in flexible manners. It
5686 extension for printing NumPy arrays in flexible manners. It
5679 doesn't do anything yet, but all the structure is in
5687 doesn't do anything yet, but all the structure is in
5680 place. Ultimately the plan is to implement output format control
5688 place. Ultimately the plan is to implement output format control
5681 like in Octave.
5689 like in Octave.
5682
5690
5683 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5691 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5684 methods are found at run-time by all the automatic machinery.
5692 methods are found at run-time by all the automatic machinery.
5685
5693
5686 2002-02-17 Fernando Perez <fperez@colorado.edu>
5694 2002-02-17 Fernando Perez <fperez@colorado.edu>
5687
5695
5688 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5696 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5689 whole file a little.
5697 whole file a little.
5690
5698
5691 * ToDo: closed this document. Now there's a new_design.lyx
5699 * ToDo: closed this document. Now there's a new_design.lyx
5692 document for all new ideas. Added making a pdf of it for the
5700 document for all new ideas. Added making a pdf of it for the
5693 end-user distro.
5701 end-user distro.
5694
5702
5695 * IPython/Logger.py (Logger.switch_log): Created this to replace
5703 * IPython/Logger.py (Logger.switch_log): Created this to replace
5696 logon() and logoff(). It also fixes a nasty crash reported by
5704 logon() and logoff(). It also fixes a nasty crash reported by
5697 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5705 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5698
5706
5699 * IPython/iplib.py (complete): got auto-completion to work with
5707 * IPython/iplib.py (complete): got auto-completion to work with
5700 automagic (I had wanted this for a long time).
5708 automagic (I had wanted this for a long time).
5701
5709
5702 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5710 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5703 to @file, since file() is now a builtin and clashes with automagic
5711 to @file, since file() is now a builtin and clashes with automagic
5704 for @file.
5712 for @file.
5705
5713
5706 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5714 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5707 of this was previously in iplib, which had grown to more than 2000
5715 of this was previously in iplib, which had grown to more than 2000
5708 lines, way too long. No new functionality, but it makes managing
5716 lines, way too long. No new functionality, but it makes managing
5709 the code a bit easier.
5717 the code a bit easier.
5710
5718
5711 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5719 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5712 information to crash reports.
5720 information to crash reports.
5713
5721
5714 2002-02-12 Fernando Perez <fperez@colorado.edu>
5722 2002-02-12 Fernando Perez <fperez@colorado.edu>
5715
5723
5716 * Released 0.2.5.
5724 * Released 0.2.5.
5717
5725
5718 2002-02-11 Fernando Perez <fperez@colorado.edu>
5726 2002-02-11 Fernando Perez <fperez@colorado.edu>
5719
5727
5720 * Wrote a relatively complete Windows installer. It puts
5728 * Wrote a relatively complete Windows installer. It puts
5721 everything in place, creates Start Menu entries and fixes the
5729 everything in place, creates Start Menu entries and fixes the
5722 color issues. Nothing fancy, but it works.
5730 color issues. Nothing fancy, but it works.
5723
5731
5724 2002-02-10 Fernando Perez <fperez@colorado.edu>
5732 2002-02-10 Fernando Perez <fperez@colorado.edu>
5725
5733
5726 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5734 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5727 os.path.expanduser() call so that we can type @run ~/myfile.py and
5735 os.path.expanduser() call so that we can type @run ~/myfile.py and
5728 have thigs work as expected.
5736 have thigs work as expected.
5729
5737
5730 * IPython/genutils.py (page): fixed exception handling so things
5738 * IPython/genutils.py (page): fixed exception handling so things
5731 work both in Unix and Windows correctly. Quitting a pager triggers
5739 work both in Unix and Windows correctly. Quitting a pager triggers
5732 an IOError/broken pipe in Unix, and in windows not finding a pager
5740 an IOError/broken pipe in Unix, and in windows not finding a pager
5733 is also an IOError, so I had to actually look at the return value
5741 is also an IOError, so I had to actually look at the return value
5734 of the exception, not just the exception itself. Should be ok now.
5742 of the exception, not just the exception itself. Should be ok now.
5735
5743
5736 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5744 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5737 modified to allow case-insensitive color scheme changes.
5745 modified to allow case-insensitive color scheme changes.
5738
5746
5739 2002-02-09 Fernando Perez <fperez@colorado.edu>
5747 2002-02-09 Fernando Perez <fperez@colorado.edu>
5740
5748
5741 * IPython/genutils.py (native_line_ends): new function to leave
5749 * IPython/genutils.py (native_line_ends): new function to leave
5742 user config files with os-native line-endings.
5750 user config files with os-native line-endings.
5743
5751
5744 * README and manual updates.
5752 * README and manual updates.
5745
5753
5746 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5754 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5747 instead of StringType to catch Unicode strings.
5755 instead of StringType to catch Unicode strings.
5748
5756
5749 * IPython/genutils.py (filefind): fixed bug for paths with
5757 * IPython/genutils.py (filefind): fixed bug for paths with
5750 embedded spaces (very common in Windows).
5758 embedded spaces (very common in Windows).
5751
5759
5752 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5760 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5753 files under Windows, so that they get automatically associated
5761 files under Windows, so that they get automatically associated
5754 with a text editor. Windows makes it a pain to handle
5762 with a text editor. Windows makes it a pain to handle
5755 extension-less files.
5763 extension-less files.
5756
5764
5757 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5765 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5758 warning about readline only occur for Posix. In Windows there's no
5766 warning about readline only occur for Posix. In Windows there's no
5759 way to get readline, so why bother with the warning.
5767 way to get readline, so why bother with the warning.
5760
5768
5761 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5769 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5762 for __str__ instead of dir(self), since dir() changed in 2.2.
5770 for __str__ instead of dir(self), since dir() changed in 2.2.
5763
5771
5764 * Ported to Windows! Tested on XP, I suspect it should work fine
5772 * Ported to Windows! Tested on XP, I suspect it should work fine
5765 on NT/2000, but I don't think it will work on 98 et al. That
5773 on NT/2000, but I don't think it will work on 98 et al. That
5766 series of Windows is such a piece of junk anyway that I won't try
5774 series of Windows is such a piece of junk anyway that I won't try
5767 porting it there. The XP port was straightforward, showed a few
5775 porting it there. The XP port was straightforward, showed a few
5768 bugs here and there (fixed all), in particular some string
5776 bugs here and there (fixed all), in particular some string
5769 handling stuff which required considering Unicode strings (which
5777 handling stuff which required considering Unicode strings (which
5770 Windows uses). This is good, but hasn't been too tested :) No
5778 Windows uses). This is good, but hasn't been too tested :) No
5771 fancy installer yet, I'll put a note in the manual so people at
5779 fancy installer yet, I'll put a note in the manual so people at
5772 least make manually a shortcut.
5780 least make manually a shortcut.
5773
5781
5774 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5782 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5775 into a single one, "colors". This now controls both prompt and
5783 into a single one, "colors". This now controls both prompt and
5776 exception color schemes, and can be changed both at startup
5784 exception color schemes, and can be changed both at startup
5777 (either via command-line switches or via ipythonrc files) and at
5785 (either via command-line switches or via ipythonrc files) and at
5778 runtime, with @colors.
5786 runtime, with @colors.
5779 (Magic.magic_run): renamed @prun to @run and removed the old
5787 (Magic.magic_run): renamed @prun to @run and removed the old
5780 @run. The two were too similar to warrant keeping both.
5788 @run. The two were too similar to warrant keeping both.
5781
5789
5782 2002-02-03 Fernando Perez <fperez@colorado.edu>
5790 2002-02-03 Fernando Perez <fperez@colorado.edu>
5783
5791
5784 * IPython/iplib.py (install_first_time): Added comment on how to
5792 * IPython/iplib.py (install_first_time): Added comment on how to
5785 configure the color options for first-time users. Put a <return>
5793 configure the color options for first-time users. Put a <return>
5786 request at the end so that small-terminal users get a chance to
5794 request at the end so that small-terminal users get a chance to
5787 read the startup info.
5795 read the startup info.
5788
5796
5789 2002-01-23 Fernando Perez <fperez@colorado.edu>
5797 2002-01-23 Fernando Perez <fperez@colorado.edu>
5790
5798
5791 * IPython/iplib.py (CachedOutput.update): Changed output memory
5799 * IPython/iplib.py (CachedOutput.update): Changed output memory
5792 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5800 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5793 input history we still use _i. Did this b/c these variable are
5801 input history we still use _i. Did this b/c these variable are
5794 very commonly used in interactive work, so the less we need to
5802 very commonly used in interactive work, so the less we need to
5795 type the better off we are.
5803 type the better off we are.
5796 (Magic.magic_prun): updated @prun to better handle the namespaces
5804 (Magic.magic_prun): updated @prun to better handle the namespaces
5797 the file will run in, including a fix for __name__ not being set
5805 the file will run in, including a fix for __name__ not being set
5798 before.
5806 before.
5799
5807
5800 2002-01-20 Fernando Perez <fperez@colorado.edu>
5808 2002-01-20 Fernando Perez <fperez@colorado.edu>
5801
5809
5802 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5810 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5803 extra garbage for Python 2.2. Need to look more carefully into
5811 extra garbage for Python 2.2. Need to look more carefully into
5804 this later.
5812 this later.
5805
5813
5806 2002-01-19 Fernando Perez <fperez@colorado.edu>
5814 2002-01-19 Fernando Perez <fperez@colorado.edu>
5807
5815
5808 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5816 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5809 display SyntaxError exceptions properly formatted when they occur
5817 display SyntaxError exceptions properly formatted when they occur
5810 (they can be triggered by imported code).
5818 (they can be triggered by imported code).
5811
5819
5812 2002-01-18 Fernando Perez <fperez@colorado.edu>
5820 2002-01-18 Fernando Perez <fperez@colorado.edu>
5813
5821
5814 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5822 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5815 SyntaxError exceptions are reported nicely formatted, instead of
5823 SyntaxError exceptions are reported nicely formatted, instead of
5816 spitting out only offset information as before.
5824 spitting out only offset information as before.
5817 (Magic.magic_prun): Added the @prun function for executing
5825 (Magic.magic_prun): Added the @prun function for executing
5818 programs with command line args inside IPython.
5826 programs with command line args inside IPython.
5819
5827
5820 2002-01-16 Fernando Perez <fperez@colorado.edu>
5828 2002-01-16 Fernando Perez <fperez@colorado.edu>
5821
5829
5822 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5830 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5823 to *not* include the last item given in a range. This brings their
5831 to *not* include the last item given in a range. This brings their
5824 behavior in line with Python's slicing:
5832 behavior in line with Python's slicing:
5825 a[n1:n2] -> a[n1]...a[n2-1]
5833 a[n1:n2] -> a[n1]...a[n2-1]
5826 It may be a bit less convenient, but I prefer to stick to Python's
5834 It may be a bit less convenient, but I prefer to stick to Python's
5827 conventions *everywhere*, so users never have to wonder.
5835 conventions *everywhere*, so users never have to wonder.
5828 (Magic.magic_macro): Added @macro function to ease the creation of
5836 (Magic.magic_macro): Added @macro function to ease the creation of
5829 macros.
5837 macros.
5830
5838
5831 2002-01-05 Fernando Perez <fperez@colorado.edu>
5839 2002-01-05 Fernando Perez <fperez@colorado.edu>
5832
5840
5833 * Released 0.2.4.
5841 * Released 0.2.4.
5834
5842
5835 * IPython/iplib.py (Magic.magic_pdef):
5843 * IPython/iplib.py (Magic.magic_pdef):
5836 (InteractiveShell.safe_execfile): report magic lines and error
5844 (InteractiveShell.safe_execfile): report magic lines and error
5837 lines without line numbers so one can easily copy/paste them for
5845 lines without line numbers so one can easily copy/paste them for
5838 re-execution.
5846 re-execution.
5839
5847
5840 * Updated manual with recent changes.
5848 * Updated manual with recent changes.
5841
5849
5842 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5850 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5843 docstring printing when class? is called. Very handy for knowing
5851 docstring printing when class? is called. Very handy for knowing
5844 how to create class instances (as long as __init__ is well
5852 how to create class instances (as long as __init__ is well
5845 documented, of course :)
5853 documented, of course :)
5846 (Magic.magic_doc): print both class and constructor docstrings.
5854 (Magic.magic_doc): print both class and constructor docstrings.
5847 (Magic.magic_pdef): give constructor info if passed a class and
5855 (Magic.magic_pdef): give constructor info if passed a class and
5848 __call__ info for callable object instances.
5856 __call__ info for callable object instances.
5849
5857
5850 2002-01-04 Fernando Perez <fperez@colorado.edu>
5858 2002-01-04 Fernando Perez <fperez@colorado.edu>
5851
5859
5852 * Made deep_reload() off by default. It doesn't always work
5860 * Made deep_reload() off by default. It doesn't always work
5853 exactly as intended, so it's probably safer to have it off. It's
5861 exactly as intended, so it's probably safer to have it off. It's
5854 still available as dreload() anyway, so nothing is lost.
5862 still available as dreload() anyway, so nothing is lost.
5855
5863
5856 2002-01-02 Fernando Perez <fperez@colorado.edu>
5864 2002-01-02 Fernando Perez <fperez@colorado.edu>
5857
5865
5858 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5866 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5859 so I wanted an updated release).
5867 so I wanted an updated release).
5860
5868
5861 2001-12-27 Fernando Perez <fperez@colorado.edu>
5869 2001-12-27 Fernando Perez <fperez@colorado.edu>
5862
5870
5863 * IPython/iplib.py (InteractiveShell.interact): Added the original
5871 * IPython/iplib.py (InteractiveShell.interact): Added the original
5864 code from 'code.py' for this module in order to change the
5872 code from 'code.py' for this module in order to change the
5865 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5873 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5866 the history cache would break when the user hit Ctrl-C, and
5874 the history cache would break when the user hit Ctrl-C, and
5867 interact() offers no way to add any hooks to it.
5875 interact() offers no way to add any hooks to it.
5868
5876
5869 2001-12-23 Fernando Perez <fperez@colorado.edu>
5877 2001-12-23 Fernando Perez <fperez@colorado.edu>
5870
5878
5871 * setup.py: added check for 'MANIFEST' before trying to remove
5879 * setup.py: added check for 'MANIFEST' before trying to remove
5872 it. Thanks to Sean Reifschneider.
5880 it. Thanks to Sean Reifschneider.
5873
5881
5874 2001-12-22 Fernando Perez <fperez@colorado.edu>
5882 2001-12-22 Fernando Perez <fperez@colorado.edu>
5875
5883
5876 * Released 0.2.2.
5884 * Released 0.2.2.
5877
5885
5878 * Finished (reasonably) writing the manual. Later will add the
5886 * Finished (reasonably) writing the manual. Later will add the
5879 python-standard navigation stylesheets, but for the time being
5887 python-standard navigation stylesheets, but for the time being
5880 it's fairly complete. Distribution will include html and pdf
5888 it's fairly complete. Distribution will include html and pdf
5881 versions.
5889 versions.
5882
5890
5883 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5891 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5884 (MayaVi author).
5892 (MayaVi author).
5885
5893
5886 2001-12-21 Fernando Perez <fperez@colorado.edu>
5894 2001-12-21 Fernando Perez <fperez@colorado.edu>
5887
5895
5888 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5896 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5889 good public release, I think (with the manual and the distutils
5897 good public release, I think (with the manual and the distutils
5890 installer). The manual can use some work, but that can go
5898 installer). The manual can use some work, but that can go
5891 slowly. Otherwise I think it's quite nice for end users. Next
5899 slowly. Otherwise I think it's quite nice for end users. Next
5892 summer, rewrite the guts of it...
5900 summer, rewrite the guts of it...
5893
5901
5894 * Changed format of ipythonrc files to use whitespace as the
5902 * Changed format of ipythonrc files to use whitespace as the
5895 separator instead of an explicit '='. Cleaner.
5903 separator instead of an explicit '='. Cleaner.
5896
5904
5897 2001-12-20 Fernando Perez <fperez@colorado.edu>
5905 2001-12-20 Fernando Perez <fperez@colorado.edu>
5898
5906
5899 * Started a manual in LyX. For now it's just a quick merge of the
5907 * Started a manual in LyX. For now it's just a quick merge of the
5900 various internal docstrings and READMEs. Later it may grow into a
5908 various internal docstrings and READMEs. Later it may grow into a
5901 nice, full-blown manual.
5909 nice, full-blown manual.
5902
5910
5903 * Set up a distutils based installer. Installation should now be
5911 * Set up a distutils based installer. Installation should now be
5904 trivially simple for end-users.
5912 trivially simple for end-users.
5905
5913
5906 2001-12-11 Fernando Perez <fperez@colorado.edu>
5914 2001-12-11 Fernando Perez <fperez@colorado.edu>
5907
5915
5908 * Released 0.2.0. First public release, announced it at
5916 * Released 0.2.0. First public release, announced it at
5909 comp.lang.python. From now on, just bugfixes...
5917 comp.lang.python. From now on, just bugfixes...
5910
5918
5911 * Went through all the files, set copyright/license notices and
5919 * Went through all the files, set copyright/license notices and
5912 cleaned up things. Ready for release.
5920 cleaned up things. Ready for release.
5913
5921
5914 2001-12-10 Fernando Perez <fperez@colorado.edu>
5922 2001-12-10 Fernando Perez <fperez@colorado.edu>
5915
5923
5916 * Changed the first-time installer not to use tarfiles. It's more
5924 * Changed the first-time installer not to use tarfiles. It's more
5917 robust now and less unix-dependent. Also makes it easier for
5925 robust now and less unix-dependent. Also makes it easier for
5918 people to later upgrade versions.
5926 people to later upgrade versions.
5919
5927
5920 * Changed @exit to @abort to reflect the fact that it's pretty
5928 * Changed @exit to @abort to reflect the fact that it's pretty
5921 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5929 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5922 becomes significant only when IPyhton is embedded: in that case,
5930 becomes significant only when IPyhton is embedded: in that case,
5923 C-D closes IPython only, but @abort kills the enclosing program
5931 C-D closes IPython only, but @abort kills the enclosing program
5924 too (unless it had called IPython inside a try catching
5932 too (unless it had called IPython inside a try catching
5925 SystemExit).
5933 SystemExit).
5926
5934
5927 * Created Shell module which exposes the actuall IPython Shell
5935 * Created Shell module which exposes the actuall IPython Shell
5928 classes, currently the normal and the embeddable one. This at
5936 classes, currently the normal and the embeddable one. This at
5929 least offers a stable interface we won't need to change when
5937 least offers a stable interface we won't need to change when
5930 (later) the internals are rewritten. That rewrite will be confined
5938 (later) the internals are rewritten. That rewrite will be confined
5931 to iplib and ipmaker, but the Shell interface should remain as is.
5939 to iplib and ipmaker, but the Shell interface should remain as is.
5932
5940
5933 * Added embed module which offers an embeddable IPShell object,
5941 * Added embed module which offers an embeddable IPShell object,
5934 useful to fire up IPython *inside* a running program. Great for
5942 useful to fire up IPython *inside* a running program. Great for
5935 debugging or dynamical data analysis.
5943 debugging or dynamical data analysis.
5936
5944
5937 2001-12-08 Fernando Perez <fperez@colorado.edu>
5945 2001-12-08 Fernando Perez <fperez@colorado.edu>
5938
5946
5939 * Fixed small bug preventing seeing info from methods of defined
5947 * Fixed small bug preventing seeing info from methods of defined
5940 objects (incorrect namespace in _ofind()).
5948 objects (incorrect namespace in _ofind()).
5941
5949
5942 * Documentation cleanup. Moved the main usage docstrings to a
5950 * Documentation cleanup. Moved the main usage docstrings to a
5943 separate file, usage.py (cleaner to maintain, and hopefully in the
5951 separate file, usage.py (cleaner to maintain, and hopefully in the
5944 future some perlpod-like way of producing interactive, man and
5952 future some perlpod-like way of producing interactive, man and
5945 html docs out of it will be found).
5953 html docs out of it will be found).
5946
5954
5947 * Added @profile to see your profile at any time.
5955 * Added @profile to see your profile at any time.
5948
5956
5949 * Added @p as an alias for 'print'. It's especially convenient if
5957 * Added @p as an alias for 'print'. It's especially convenient if
5950 using automagic ('p x' prints x).
5958 using automagic ('p x' prints x).
5951
5959
5952 * Small cleanups and fixes after a pychecker run.
5960 * Small cleanups and fixes after a pychecker run.
5953
5961
5954 * Changed the @cd command to handle @cd - and @cd -<n> for
5962 * Changed the @cd command to handle @cd - and @cd -<n> for
5955 visiting any directory in _dh.
5963 visiting any directory in _dh.
5956
5964
5957 * Introduced _dh, a history of visited directories. @dhist prints
5965 * Introduced _dh, a history of visited directories. @dhist prints
5958 it out with numbers.
5966 it out with numbers.
5959
5967
5960 2001-12-07 Fernando Perez <fperez@colorado.edu>
5968 2001-12-07 Fernando Perez <fperez@colorado.edu>
5961
5969
5962 * Released 0.1.22
5970 * Released 0.1.22
5963
5971
5964 * Made initialization a bit more robust against invalid color
5972 * Made initialization a bit more robust against invalid color
5965 options in user input (exit, not traceback-crash).
5973 options in user input (exit, not traceback-crash).
5966
5974
5967 * Changed the bug crash reporter to write the report only in the
5975 * Changed the bug crash reporter to write the report only in the
5968 user's .ipython directory. That way IPython won't litter people's
5976 user's .ipython directory. That way IPython won't litter people's
5969 hard disks with crash files all over the place. Also print on
5977 hard disks with crash files all over the place. Also print on
5970 screen the necessary mail command.
5978 screen the necessary mail command.
5971
5979
5972 * With the new ultraTB, implemented LightBG color scheme for light
5980 * With the new ultraTB, implemented LightBG color scheme for light
5973 background terminals. A lot of people like white backgrounds, so I
5981 background terminals. A lot of people like white backgrounds, so I
5974 guess we should at least give them something readable.
5982 guess we should at least give them something readable.
5975
5983
5976 2001-12-06 Fernando Perez <fperez@colorado.edu>
5984 2001-12-06 Fernando Perez <fperez@colorado.edu>
5977
5985
5978 * Modified the structure of ultraTB. Now there's a proper class
5986 * Modified the structure of ultraTB. Now there's a proper class
5979 for tables of color schemes which allow adding schemes easily and
5987 for tables of color schemes which allow adding schemes easily and
5980 switching the active scheme without creating a new instance every
5988 switching the active scheme without creating a new instance every
5981 time (which was ridiculous). The syntax for creating new schemes
5989 time (which was ridiculous). The syntax for creating new schemes
5982 is also cleaner. I think ultraTB is finally done, with a clean
5990 is also cleaner. I think ultraTB is finally done, with a clean
5983 class structure. Names are also much cleaner (now there's proper
5991 class structure. Names are also much cleaner (now there's proper
5984 color tables, no need for every variable to also have 'color' in
5992 color tables, no need for every variable to also have 'color' in
5985 its name).
5993 its name).
5986
5994
5987 * Broke down genutils into separate files. Now genutils only
5995 * Broke down genutils into separate files. Now genutils only
5988 contains utility functions, and classes have been moved to their
5996 contains utility functions, and classes have been moved to their
5989 own files (they had enough independent functionality to warrant
5997 own files (they had enough independent functionality to warrant
5990 it): ConfigLoader, OutputTrap, Struct.
5998 it): ConfigLoader, OutputTrap, Struct.
5991
5999
5992 2001-12-05 Fernando Perez <fperez@colorado.edu>
6000 2001-12-05 Fernando Perez <fperez@colorado.edu>
5993
6001
5994 * IPython turns 21! Released version 0.1.21, as a candidate for
6002 * IPython turns 21! Released version 0.1.21, as a candidate for
5995 public consumption. If all goes well, release in a few days.
6003 public consumption. If all goes well, release in a few days.
5996
6004
5997 * Fixed path bug (files in Extensions/ directory wouldn't be found
6005 * Fixed path bug (files in Extensions/ directory wouldn't be found
5998 unless IPython/ was explicitly in sys.path).
6006 unless IPython/ was explicitly in sys.path).
5999
6007
6000 * Extended the FlexCompleter class as MagicCompleter to allow
6008 * Extended the FlexCompleter class as MagicCompleter to allow
6001 completion of @-starting lines.
6009 completion of @-starting lines.
6002
6010
6003 * Created __release__.py file as a central repository for release
6011 * Created __release__.py file as a central repository for release
6004 info that other files can read from.
6012 info that other files can read from.
6005
6013
6006 * Fixed small bug in logging: when logging was turned on in
6014 * Fixed small bug in logging: when logging was turned on in
6007 mid-session, old lines with special meanings (!@?) were being
6015 mid-session, old lines with special meanings (!@?) were being
6008 logged without the prepended comment, which is necessary since
6016 logged without the prepended comment, which is necessary since
6009 they are not truly valid python syntax. This should make session
6017 they are not truly valid python syntax. This should make session
6010 restores produce less errors.
6018 restores produce less errors.
6011
6019
6012 * The namespace cleanup forced me to make a FlexCompleter class
6020 * The namespace cleanup forced me to make a FlexCompleter class
6013 which is nothing but a ripoff of rlcompleter, but with selectable
6021 which is nothing but a ripoff of rlcompleter, but with selectable
6014 namespace (rlcompleter only works in __main__.__dict__). I'll try
6022 namespace (rlcompleter only works in __main__.__dict__). I'll try
6015 to submit a note to the authors to see if this change can be
6023 to submit a note to the authors to see if this change can be
6016 incorporated in future rlcompleter releases (Dec.6: done)
6024 incorporated in future rlcompleter releases (Dec.6: done)
6017
6025
6018 * More fixes to namespace handling. It was a mess! Now all
6026 * More fixes to namespace handling. It was a mess! Now all
6019 explicit references to __main__.__dict__ are gone (except when
6027 explicit references to __main__.__dict__ are gone (except when
6020 really needed) and everything is handled through the namespace
6028 really needed) and everything is handled through the namespace
6021 dicts in the IPython instance. We seem to be getting somewhere
6029 dicts in the IPython instance. We seem to be getting somewhere
6022 with this, finally...
6030 with this, finally...
6023
6031
6024 * Small documentation updates.
6032 * Small documentation updates.
6025
6033
6026 * Created the Extensions directory under IPython (with an
6034 * Created the Extensions directory under IPython (with an
6027 __init__.py). Put the PhysicalQ stuff there. This directory should
6035 __init__.py). Put the PhysicalQ stuff there. This directory should
6028 be used for all special-purpose extensions.
6036 be used for all special-purpose extensions.
6029
6037
6030 * File renaming:
6038 * File renaming:
6031 ipythonlib --> ipmaker
6039 ipythonlib --> ipmaker
6032 ipplib --> iplib
6040 ipplib --> iplib
6033 This makes a bit more sense in terms of what these files actually do.
6041 This makes a bit more sense in terms of what these files actually do.
6034
6042
6035 * Moved all the classes and functions in ipythonlib to ipplib, so
6043 * Moved all the classes and functions in ipythonlib to ipplib, so
6036 now ipythonlib only has make_IPython(). This will ease up its
6044 now ipythonlib only has make_IPython(). This will ease up its
6037 splitting in smaller functional chunks later.
6045 splitting in smaller functional chunks later.
6038
6046
6039 * Cleaned up (done, I think) output of @whos. Better column
6047 * Cleaned up (done, I think) output of @whos. Better column
6040 formatting, and now shows str(var) for as much as it can, which is
6048 formatting, and now shows str(var) for as much as it can, which is
6041 typically what one gets with a 'print var'.
6049 typically what one gets with a 'print var'.
6042
6050
6043 2001-12-04 Fernando Perez <fperez@colorado.edu>
6051 2001-12-04 Fernando Perez <fperez@colorado.edu>
6044
6052
6045 * Fixed namespace problems. Now builtin/IPyhton/user names get
6053 * Fixed namespace problems. Now builtin/IPyhton/user names get
6046 properly reported in their namespace. Internal namespace handling
6054 properly reported in their namespace. Internal namespace handling
6047 is finally getting decent (not perfect yet, but much better than
6055 is finally getting decent (not perfect yet, but much better than
6048 the ad-hoc mess we had).
6056 the ad-hoc mess we had).
6049
6057
6050 * Removed -exit option. If people just want to run a python
6058 * Removed -exit option. If people just want to run a python
6051 script, that's what the normal interpreter is for. Less
6059 script, that's what the normal interpreter is for. Less
6052 unnecessary options, less chances for bugs.
6060 unnecessary options, less chances for bugs.
6053
6061
6054 * Added a crash handler which generates a complete post-mortem if
6062 * Added a crash handler which generates a complete post-mortem if
6055 IPython crashes. This will help a lot in tracking bugs down the
6063 IPython crashes. This will help a lot in tracking bugs down the
6056 road.
6064 road.
6057
6065
6058 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6066 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
6059 which were boud to functions being reassigned would bypass the
6067 which were boud to functions being reassigned would bypass the
6060 logger, breaking the sync of _il with the prompt counter. This
6068 logger, breaking the sync of _il with the prompt counter. This
6061 would then crash IPython later when a new line was logged.
6069 would then crash IPython later when a new line was logged.
6062
6070
6063 2001-12-02 Fernando Perez <fperez@colorado.edu>
6071 2001-12-02 Fernando Perez <fperez@colorado.edu>
6064
6072
6065 * Made IPython a package. This means people don't have to clutter
6073 * Made IPython a package. This means people don't have to clutter
6066 their sys.path with yet another directory. Changed the INSTALL
6074 their sys.path with yet another directory. Changed the INSTALL
6067 file accordingly.
6075 file accordingly.
6068
6076
6069 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6077 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
6070 sorts its output (so @who shows it sorted) and @whos formats the
6078 sorts its output (so @who shows it sorted) and @whos formats the
6071 table according to the width of the first column. Nicer, easier to
6079 table according to the width of the first column. Nicer, easier to
6072 read. Todo: write a generic table_format() which takes a list of
6080 read. Todo: write a generic table_format() which takes a list of
6073 lists and prints it nicely formatted, with optional row/column
6081 lists and prints it nicely formatted, with optional row/column
6074 separators and proper padding and justification.
6082 separators and proper padding and justification.
6075
6083
6076 * Released 0.1.20
6084 * Released 0.1.20
6077
6085
6078 * Fixed bug in @log which would reverse the inputcache list (a
6086 * Fixed bug in @log which would reverse the inputcache list (a
6079 copy operation was missing).
6087 copy operation was missing).
6080
6088
6081 * Code cleanup. @config was changed to use page(). Better, since
6089 * Code cleanup. @config was changed to use page(). Better, since
6082 its output is always quite long.
6090 its output is always quite long.
6083
6091
6084 * Itpl is back as a dependency. I was having too many problems
6092 * Itpl is back as a dependency. I was having too many problems
6085 getting the parametric aliases to work reliably, and it's just
6093 getting the parametric aliases to work reliably, and it's just
6086 easier to code weird string operations with it than playing %()s
6094 easier to code weird string operations with it than playing %()s
6087 games. It's only ~6k, so I don't think it's too big a deal.
6095 games. It's only ~6k, so I don't think it's too big a deal.
6088
6096
6089 * Found (and fixed) a very nasty bug with history. !lines weren't
6097 * Found (and fixed) a very nasty bug with history. !lines weren't
6090 getting cached, and the out of sync caches would crash
6098 getting cached, and the out of sync caches would crash
6091 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6099 IPython. Fixed it by reorganizing the prefilter/handlers/logger
6092 division of labor a bit better. Bug fixed, cleaner structure.
6100 division of labor a bit better. Bug fixed, cleaner structure.
6093
6101
6094 2001-12-01 Fernando Perez <fperez@colorado.edu>
6102 2001-12-01 Fernando Perez <fperez@colorado.edu>
6095
6103
6096 * Released 0.1.19
6104 * Released 0.1.19
6097
6105
6098 * Added option -n to @hist to prevent line number printing. Much
6106 * Added option -n to @hist to prevent line number printing. Much
6099 easier to copy/paste code this way.
6107 easier to copy/paste code this way.
6100
6108
6101 * Created global _il to hold the input list. Allows easy
6109 * Created global _il to hold the input list. Allows easy
6102 re-execution of blocks of code by slicing it (inspired by Janko's
6110 re-execution of blocks of code by slicing it (inspired by Janko's
6103 comment on 'macros').
6111 comment on 'macros').
6104
6112
6105 * Small fixes and doc updates.
6113 * Small fixes and doc updates.
6106
6114
6107 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6115 * Rewrote @history function (was @h). Renamed it to @hist, @h is
6108 much too fragile with automagic. Handles properly multi-line
6116 much too fragile with automagic. Handles properly multi-line
6109 statements and takes parameters.
6117 statements and takes parameters.
6110
6118
6111 2001-11-30 Fernando Perez <fperez@colorado.edu>
6119 2001-11-30 Fernando Perez <fperez@colorado.edu>
6112
6120
6113 * Version 0.1.18 released.
6121 * Version 0.1.18 released.
6114
6122
6115 * Fixed nasty namespace bug in initial module imports.
6123 * Fixed nasty namespace bug in initial module imports.
6116
6124
6117 * Added copyright/license notes to all code files (except
6125 * Added copyright/license notes to all code files (except
6118 DPyGetOpt). For the time being, LGPL. That could change.
6126 DPyGetOpt). For the time being, LGPL. That could change.
6119
6127
6120 * Rewrote a much nicer README, updated INSTALL, cleaned up
6128 * Rewrote a much nicer README, updated INSTALL, cleaned up
6121 ipythonrc-* samples.
6129 ipythonrc-* samples.
6122
6130
6123 * Overall code/documentation cleanup. Basically ready for
6131 * Overall code/documentation cleanup. Basically ready for
6124 release. Only remaining thing: licence decision (LGPL?).
6132 release. Only remaining thing: licence decision (LGPL?).
6125
6133
6126 * Converted load_config to a class, ConfigLoader. Now recursion
6134 * Converted load_config to a class, ConfigLoader. Now recursion
6127 control is better organized. Doesn't include the same file twice.
6135 control is better organized. Doesn't include the same file twice.
6128
6136
6129 2001-11-29 Fernando Perez <fperez@colorado.edu>
6137 2001-11-29 Fernando Perez <fperez@colorado.edu>
6130
6138
6131 * Got input history working. Changed output history variables from
6139 * Got input history working. Changed output history variables from
6132 _p to _o so that _i is for input and _o for output. Just cleaner
6140 _p to _o so that _i is for input and _o for output. Just cleaner
6133 convention.
6141 convention.
6134
6142
6135 * Implemented parametric aliases. This pretty much allows the
6143 * Implemented parametric aliases. This pretty much allows the
6136 alias system to offer full-blown shell convenience, I think.
6144 alias system to offer full-blown shell convenience, I think.
6137
6145
6138 * Version 0.1.17 released, 0.1.18 opened.
6146 * Version 0.1.17 released, 0.1.18 opened.
6139
6147
6140 * dot_ipython/ipythonrc (alias): added documentation.
6148 * dot_ipython/ipythonrc (alias): added documentation.
6141 (xcolor): Fixed small bug (xcolors -> xcolor)
6149 (xcolor): Fixed small bug (xcolors -> xcolor)
6142
6150
6143 * Changed the alias system. Now alias is a magic command to define
6151 * Changed the alias system. Now alias is a magic command to define
6144 aliases just like the shell. Rationale: the builtin magics should
6152 aliases just like the shell. Rationale: the builtin magics should
6145 be there for things deeply connected to IPython's
6153 be there for things deeply connected to IPython's
6146 architecture. And this is a much lighter system for what I think
6154 architecture. And this is a much lighter system for what I think
6147 is the really important feature: allowing users to define quickly
6155 is the really important feature: allowing users to define quickly
6148 magics that will do shell things for them, so they can customize
6156 magics that will do shell things for them, so they can customize
6149 IPython easily to match their work habits. If someone is really
6157 IPython easily to match their work habits. If someone is really
6150 desperate to have another name for a builtin alias, they can
6158 desperate to have another name for a builtin alias, they can
6151 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6159 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
6152 works.
6160 works.
6153
6161
6154 2001-11-28 Fernando Perez <fperez@colorado.edu>
6162 2001-11-28 Fernando Perez <fperez@colorado.edu>
6155
6163
6156 * Changed @file so that it opens the source file at the proper
6164 * Changed @file so that it opens the source file at the proper
6157 line. Since it uses less, if your EDITOR environment is
6165 line. Since it uses less, if your EDITOR environment is
6158 configured, typing v will immediately open your editor of choice
6166 configured, typing v will immediately open your editor of choice
6159 right at the line where the object is defined. Not as quick as
6167 right at the line where the object is defined. Not as quick as
6160 having a direct @edit command, but for all intents and purposes it
6168 having a direct @edit command, but for all intents and purposes it
6161 works. And I don't have to worry about writing @edit to deal with
6169 works. And I don't have to worry about writing @edit to deal with
6162 all the editors, less does that.
6170 all the editors, less does that.
6163
6171
6164 * Version 0.1.16 released, 0.1.17 opened.
6172 * Version 0.1.16 released, 0.1.17 opened.
6165
6173
6166 * Fixed some nasty bugs in the page/page_dumb combo that could
6174 * Fixed some nasty bugs in the page/page_dumb combo that could
6167 crash IPython.
6175 crash IPython.
6168
6176
6169 2001-11-27 Fernando Perez <fperez@colorado.edu>
6177 2001-11-27 Fernando Perez <fperez@colorado.edu>
6170
6178
6171 * Version 0.1.15 released, 0.1.16 opened.
6179 * Version 0.1.15 released, 0.1.16 opened.
6172
6180
6173 * Finally got ? and ?? to work for undefined things: now it's
6181 * Finally got ? and ?? to work for undefined things: now it's
6174 possible to type {}.get? and get information about the get method
6182 possible to type {}.get? and get information about the get method
6175 of dicts, or os.path? even if only os is defined (so technically
6183 of dicts, or os.path? even if only os is defined (so technically
6176 os.path isn't). Works at any level. For example, after import os,
6184 os.path isn't). Works at any level. For example, after import os,
6177 os?, os.path?, os.path.abspath? all work. This is great, took some
6185 os?, os.path?, os.path.abspath? all work. This is great, took some
6178 work in _ofind.
6186 work in _ofind.
6179
6187
6180 * Fixed more bugs with logging. The sanest way to do it was to add
6188 * Fixed more bugs with logging. The sanest way to do it was to add
6181 to @log a 'mode' parameter. Killed two in one shot (this mode
6189 to @log a 'mode' parameter. Killed two in one shot (this mode
6182 option was a request of Janko's). I think it's finally clean
6190 option was a request of Janko's). I think it's finally clean
6183 (famous last words).
6191 (famous last words).
6184
6192
6185 * Added a page_dumb() pager which does a decent job of paging on
6193 * Added a page_dumb() pager which does a decent job of paging on
6186 screen, if better things (like less) aren't available. One less
6194 screen, if better things (like less) aren't available. One less
6187 unix dependency (someday maybe somebody will port this to
6195 unix dependency (someday maybe somebody will port this to
6188 windows).
6196 windows).
6189
6197
6190 * Fixed problem in magic_log: would lock of logging out if log
6198 * Fixed problem in magic_log: would lock of logging out if log
6191 creation failed (because it would still think it had succeeded).
6199 creation failed (because it would still think it had succeeded).
6192
6200
6193 * Improved the page() function using curses to auto-detect screen
6201 * Improved the page() function using curses to auto-detect screen
6194 size. Now it can make a much better decision on whether to print
6202 size. Now it can make a much better decision on whether to print
6195 or page a string. Option screen_length was modified: a value 0
6203 or page a string. Option screen_length was modified: a value 0
6196 means auto-detect, and that's the default now.
6204 means auto-detect, and that's the default now.
6197
6205
6198 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6206 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6199 go out. I'll test it for a few days, then talk to Janko about
6207 go out. I'll test it for a few days, then talk to Janko about
6200 licences and announce it.
6208 licences and announce it.
6201
6209
6202 * Fixed the length of the auto-generated ---> prompt which appears
6210 * Fixed the length of the auto-generated ---> prompt which appears
6203 for auto-parens and auto-quotes. Getting this right isn't trivial,
6211 for auto-parens and auto-quotes. Getting this right isn't trivial,
6204 with all the color escapes, different prompt types and optional
6212 with all the color escapes, different prompt types and optional
6205 separators. But it seems to be working in all the combinations.
6213 separators. But it seems to be working in all the combinations.
6206
6214
6207 2001-11-26 Fernando Perez <fperez@colorado.edu>
6215 2001-11-26 Fernando Perez <fperez@colorado.edu>
6208
6216
6209 * Wrote a regexp filter to get option types from the option names
6217 * Wrote a regexp filter to get option types from the option names
6210 string. This eliminates the need to manually keep two duplicate
6218 string. This eliminates the need to manually keep two duplicate
6211 lists.
6219 lists.
6212
6220
6213 * Removed the unneeded check_option_names. Now options are handled
6221 * Removed the unneeded check_option_names. Now options are handled
6214 in a much saner manner and it's easy to visually check that things
6222 in a much saner manner and it's easy to visually check that things
6215 are ok.
6223 are ok.
6216
6224
6217 * Updated version numbers on all files I modified to carry a
6225 * Updated version numbers on all files I modified to carry a
6218 notice so Janko and Nathan have clear version markers.
6226 notice so Janko and Nathan have clear version markers.
6219
6227
6220 * Updated docstring for ultraTB with my changes. I should send
6228 * Updated docstring for ultraTB with my changes. I should send
6221 this to Nathan.
6229 this to Nathan.
6222
6230
6223 * Lots of small fixes. Ran everything through pychecker again.
6231 * Lots of small fixes. Ran everything through pychecker again.
6224
6232
6225 * Made loading of deep_reload an cmd line option. If it's not too
6233 * Made loading of deep_reload an cmd line option. If it's not too
6226 kosher, now people can just disable it. With -nodeep_reload it's
6234 kosher, now people can just disable it. With -nodeep_reload it's
6227 still available as dreload(), it just won't overwrite reload().
6235 still available as dreload(), it just won't overwrite reload().
6228
6236
6229 * Moved many options to the no| form (-opt and -noopt
6237 * Moved many options to the no| form (-opt and -noopt
6230 accepted). Cleaner.
6238 accepted). Cleaner.
6231
6239
6232 * Changed magic_log so that if called with no parameters, it uses
6240 * Changed magic_log so that if called with no parameters, it uses
6233 'rotate' mode. That way auto-generated logs aren't automatically
6241 'rotate' mode. That way auto-generated logs aren't automatically
6234 over-written. For normal logs, now a backup is made if it exists
6242 over-written. For normal logs, now a backup is made if it exists
6235 (only 1 level of backups). A new 'backup' mode was added to the
6243 (only 1 level of backups). A new 'backup' mode was added to the
6236 Logger class to support this. This was a request by Janko.
6244 Logger class to support this. This was a request by Janko.
6237
6245
6238 * Added @logoff/@logon to stop/restart an active log.
6246 * Added @logoff/@logon to stop/restart an active log.
6239
6247
6240 * Fixed a lot of bugs in log saving/replay. It was pretty
6248 * Fixed a lot of bugs in log saving/replay. It was pretty
6241 broken. Now special lines (!@,/) appear properly in the command
6249 broken. Now special lines (!@,/) appear properly in the command
6242 history after a log replay.
6250 history after a log replay.
6243
6251
6244 * Tried and failed to implement full session saving via pickle. My
6252 * Tried and failed to implement full session saving via pickle. My
6245 idea was to pickle __main__.__dict__, but modules can't be
6253 idea was to pickle __main__.__dict__, but modules can't be
6246 pickled. This would be a better alternative to replaying logs, but
6254 pickled. This would be a better alternative to replaying logs, but
6247 seems quite tricky to get to work. Changed -session to be called
6255 seems quite tricky to get to work. Changed -session to be called
6248 -logplay, which more accurately reflects what it does. And if we
6256 -logplay, which more accurately reflects what it does. And if we
6249 ever get real session saving working, -session is now available.
6257 ever get real session saving working, -session is now available.
6250
6258
6251 * Implemented color schemes for prompts also. As for tracebacks,
6259 * Implemented color schemes for prompts also. As for tracebacks,
6252 currently only NoColor and Linux are supported. But now the
6260 currently only NoColor and Linux are supported. But now the
6253 infrastructure is in place, based on a generic ColorScheme
6261 infrastructure is in place, based on a generic ColorScheme
6254 class. So writing and activating new schemes both for the prompts
6262 class. So writing and activating new schemes both for the prompts
6255 and the tracebacks should be straightforward.
6263 and the tracebacks should be straightforward.
6256
6264
6257 * Version 0.1.13 released, 0.1.14 opened.
6265 * Version 0.1.13 released, 0.1.14 opened.
6258
6266
6259 * Changed handling of options for output cache. Now counter is
6267 * Changed handling of options for output cache. Now counter is
6260 hardwired starting at 1 and one specifies the maximum number of
6268 hardwired starting at 1 and one specifies the maximum number of
6261 entries *in the outcache* (not the max prompt counter). This is
6269 entries *in the outcache* (not the max prompt counter). This is
6262 much better, since many statements won't increase the cache
6270 much better, since many statements won't increase the cache
6263 count. It also eliminated some confusing options, now there's only
6271 count. It also eliminated some confusing options, now there's only
6264 one: cache_size.
6272 one: cache_size.
6265
6273
6266 * Added 'alias' magic function and magic_alias option in the
6274 * Added 'alias' magic function and magic_alias option in the
6267 ipythonrc file. Now the user can easily define whatever names he
6275 ipythonrc file. Now the user can easily define whatever names he
6268 wants for the magic functions without having to play weird
6276 wants for the magic functions without having to play weird
6269 namespace games. This gives IPython a real shell-like feel.
6277 namespace games. This gives IPython a real shell-like feel.
6270
6278
6271 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6279 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6272 @ or not).
6280 @ or not).
6273
6281
6274 This was one of the last remaining 'visible' bugs (that I know
6282 This was one of the last remaining 'visible' bugs (that I know
6275 of). I think if I can clean up the session loading so it works
6283 of). I think if I can clean up the session loading so it works
6276 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6284 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6277 about licensing).
6285 about licensing).
6278
6286
6279 2001-11-25 Fernando Perez <fperez@colorado.edu>
6287 2001-11-25 Fernando Perez <fperez@colorado.edu>
6280
6288
6281 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6289 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6282 there's a cleaner distinction between what ? and ?? show.
6290 there's a cleaner distinction between what ? and ?? show.
6283
6291
6284 * Added screen_length option. Now the user can define his own
6292 * Added screen_length option. Now the user can define his own
6285 screen size for page() operations.
6293 screen size for page() operations.
6286
6294
6287 * Implemented magic shell-like functions with automatic code
6295 * Implemented magic shell-like functions with automatic code
6288 generation. Now adding another function is just a matter of adding
6296 generation. Now adding another function is just a matter of adding
6289 an entry to a dict, and the function is dynamically generated at
6297 an entry to a dict, and the function is dynamically generated at
6290 run-time. Python has some really cool features!
6298 run-time. Python has some really cool features!
6291
6299
6292 * Renamed many options to cleanup conventions a little. Now all
6300 * Renamed many options to cleanup conventions a little. Now all
6293 are lowercase, and only underscores where needed. Also in the code
6301 are lowercase, and only underscores where needed. Also in the code
6294 option name tables are clearer.
6302 option name tables are clearer.
6295
6303
6296 * Changed prompts a little. Now input is 'In [n]:' instead of
6304 * Changed prompts a little. Now input is 'In [n]:' instead of
6297 'In[n]:='. This allows it the numbers to be aligned with the
6305 'In[n]:='. This allows it the numbers to be aligned with the
6298 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6306 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6299 Python (it was a Mathematica thing). The '...' continuation prompt
6307 Python (it was a Mathematica thing). The '...' continuation prompt
6300 was also changed a little to align better.
6308 was also changed a little to align better.
6301
6309
6302 * Fixed bug when flushing output cache. Not all _p<n> variables
6310 * Fixed bug when flushing output cache. Not all _p<n> variables
6303 exist, so their deletion needs to be wrapped in a try:
6311 exist, so their deletion needs to be wrapped in a try:
6304
6312
6305 * Figured out how to properly use inspect.formatargspec() (it
6313 * Figured out how to properly use inspect.formatargspec() (it
6306 requires the args preceded by *). So I removed all the code from
6314 requires the args preceded by *). So I removed all the code from
6307 _get_pdef in Magic, which was just replicating that.
6315 _get_pdef in Magic, which was just replicating that.
6308
6316
6309 * Added test to prefilter to allow redefining magic function names
6317 * Added test to prefilter to allow redefining magic function names
6310 as variables. This is ok, since the @ form is always available,
6318 as variables. This is ok, since the @ form is always available,
6311 but whe should allow the user to define a variable called 'ls' if
6319 but whe should allow the user to define a variable called 'ls' if
6312 he needs it.
6320 he needs it.
6313
6321
6314 * Moved the ToDo information from README into a separate ToDo.
6322 * Moved the ToDo information from README into a separate ToDo.
6315
6323
6316 * General code cleanup and small bugfixes. I think it's close to a
6324 * General code cleanup and small bugfixes. I think it's close to a
6317 state where it can be released, obviously with a big 'beta'
6325 state where it can be released, obviously with a big 'beta'
6318 warning on it.
6326 warning on it.
6319
6327
6320 * Got the magic function split to work. Now all magics are defined
6328 * Got the magic function split to work. Now all magics are defined
6321 in a separate class. It just organizes things a bit, and now
6329 in a separate class. It just organizes things a bit, and now
6322 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6330 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6323 was too long).
6331 was too long).
6324
6332
6325 * Changed @clear to @reset to avoid potential confusions with
6333 * Changed @clear to @reset to avoid potential confusions with
6326 the shell command clear. Also renamed @cl to @clear, which does
6334 the shell command clear. Also renamed @cl to @clear, which does
6327 exactly what people expect it to from their shell experience.
6335 exactly what people expect it to from their shell experience.
6328
6336
6329 Added a check to the @reset command (since it's so
6337 Added a check to the @reset command (since it's so
6330 destructive, it's probably a good idea to ask for confirmation).
6338 destructive, it's probably a good idea to ask for confirmation).
6331 But now reset only works for full namespace resetting. Since the
6339 But now reset only works for full namespace resetting. Since the
6332 del keyword is already there for deleting a few specific
6340 del keyword is already there for deleting a few specific
6333 variables, I don't see the point of having a redundant magic
6341 variables, I don't see the point of having a redundant magic
6334 function for the same task.
6342 function for the same task.
6335
6343
6336 2001-11-24 Fernando Perez <fperez@colorado.edu>
6344 2001-11-24 Fernando Perez <fperez@colorado.edu>
6337
6345
6338 * Updated the builtin docs (esp. the ? ones).
6346 * Updated the builtin docs (esp. the ? ones).
6339
6347
6340 * Ran all the code through pychecker. Not terribly impressed with
6348 * Ran all the code through pychecker. Not terribly impressed with
6341 it: lots of spurious warnings and didn't really find anything of
6349 it: lots of spurious warnings and didn't really find anything of
6342 substance (just a few modules being imported and not used).
6350 substance (just a few modules being imported and not used).
6343
6351
6344 * Implemented the new ultraTB functionality into IPython. New
6352 * Implemented the new ultraTB functionality into IPython. New
6345 option: xcolors. This chooses color scheme. xmode now only selects
6353 option: xcolors. This chooses color scheme. xmode now only selects
6346 between Plain and Verbose. Better orthogonality.
6354 between Plain and Verbose. Better orthogonality.
6347
6355
6348 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6356 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6349 mode and color scheme for the exception handlers. Now it's
6357 mode and color scheme for the exception handlers. Now it's
6350 possible to have the verbose traceback with no coloring.
6358 possible to have the verbose traceback with no coloring.
6351
6359
6352 2001-11-23 Fernando Perez <fperez@colorado.edu>
6360 2001-11-23 Fernando Perez <fperez@colorado.edu>
6353
6361
6354 * Version 0.1.12 released, 0.1.13 opened.
6362 * Version 0.1.12 released, 0.1.13 opened.
6355
6363
6356 * Removed option to set auto-quote and auto-paren escapes by
6364 * Removed option to set auto-quote and auto-paren escapes by
6357 user. The chances of breaking valid syntax are just too high. If
6365 user. The chances of breaking valid syntax are just too high. If
6358 someone *really* wants, they can always dig into the code.
6366 someone *really* wants, they can always dig into the code.
6359
6367
6360 * Made prompt separators configurable.
6368 * Made prompt separators configurable.
6361
6369
6362 2001-11-22 Fernando Perez <fperez@colorado.edu>
6370 2001-11-22 Fernando Perez <fperez@colorado.edu>
6363
6371
6364 * Small bugfixes in many places.
6372 * Small bugfixes in many places.
6365
6373
6366 * Removed the MyCompleter class from ipplib. It seemed redundant
6374 * Removed the MyCompleter class from ipplib. It seemed redundant
6367 with the C-p,C-n history search functionality. Less code to
6375 with the C-p,C-n history search functionality. Less code to
6368 maintain.
6376 maintain.
6369
6377
6370 * Moved all the original ipython.py code into ipythonlib.py. Right
6378 * Moved all the original ipython.py code into ipythonlib.py. Right
6371 now it's just one big dump into a function called make_IPython, so
6379 now it's just one big dump into a function called make_IPython, so
6372 no real modularity has been gained. But at least it makes the
6380 no real modularity has been gained. But at least it makes the
6373 wrapper script tiny, and since ipythonlib is a module, it gets
6381 wrapper script tiny, and since ipythonlib is a module, it gets
6374 compiled and startup is much faster.
6382 compiled and startup is much faster.
6375
6383
6376 This is a reasobably 'deep' change, so we should test it for a
6384 This is a reasobably 'deep' change, so we should test it for a
6377 while without messing too much more with the code.
6385 while without messing too much more with the code.
6378
6386
6379 2001-11-21 Fernando Perez <fperez@colorado.edu>
6387 2001-11-21 Fernando Perez <fperez@colorado.edu>
6380
6388
6381 * Version 0.1.11 released, 0.1.12 opened for further work.
6389 * Version 0.1.11 released, 0.1.12 opened for further work.
6382
6390
6383 * Removed dependency on Itpl. It was only needed in one place. It
6391 * Removed dependency on Itpl. It was only needed in one place. It
6384 would be nice if this became part of python, though. It makes life
6392 would be nice if this became part of python, though. It makes life
6385 *a lot* easier in some cases.
6393 *a lot* easier in some cases.
6386
6394
6387 * Simplified the prefilter code a bit. Now all handlers are
6395 * Simplified the prefilter code a bit. Now all handlers are
6388 expected to explicitly return a value (at least a blank string).
6396 expected to explicitly return a value (at least a blank string).
6389
6397
6390 * Heavy edits in ipplib. Removed the help system altogether. Now
6398 * Heavy edits in ipplib. Removed the help system altogether. Now
6391 obj?/?? is used for inspecting objects, a magic @doc prints
6399 obj?/?? is used for inspecting objects, a magic @doc prints
6392 docstrings, and full-blown Python help is accessed via the 'help'
6400 docstrings, and full-blown Python help is accessed via the 'help'
6393 keyword. This cleans up a lot of code (less to maintain) and does
6401 keyword. This cleans up a lot of code (less to maintain) and does
6394 the job. Since 'help' is now a standard Python component, might as
6402 the job. Since 'help' is now a standard Python component, might as
6395 well use it and remove duplicate functionality.
6403 well use it and remove duplicate functionality.
6396
6404
6397 Also removed the option to use ipplib as a standalone program. By
6405 Also removed the option to use ipplib as a standalone program. By
6398 now it's too dependent on other parts of IPython to function alone.
6406 now it's too dependent on other parts of IPython to function alone.
6399
6407
6400 * Fixed bug in genutils.pager. It would crash if the pager was
6408 * Fixed bug in genutils.pager. It would crash if the pager was
6401 exited immediately after opening (broken pipe).
6409 exited immediately after opening (broken pipe).
6402
6410
6403 * Trimmed down the VerboseTB reporting a little. The header is
6411 * Trimmed down the VerboseTB reporting a little. The header is
6404 much shorter now and the repeated exception arguments at the end
6412 much shorter now and the repeated exception arguments at the end
6405 have been removed. For interactive use the old header seemed a bit
6413 have been removed. For interactive use the old header seemed a bit
6406 excessive.
6414 excessive.
6407
6415
6408 * Fixed small bug in output of @whos for variables with multi-word
6416 * Fixed small bug in output of @whos for variables with multi-word
6409 types (only first word was displayed).
6417 types (only first word was displayed).
6410
6418
6411 2001-11-17 Fernando Perez <fperez@colorado.edu>
6419 2001-11-17 Fernando Perez <fperez@colorado.edu>
6412
6420
6413 * Version 0.1.10 released, 0.1.11 opened for further work.
6421 * Version 0.1.10 released, 0.1.11 opened for further work.
6414
6422
6415 * Modified dirs and friends. dirs now *returns* the stack (not
6423 * Modified dirs and friends. dirs now *returns* the stack (not
6416 prints), so one can manipulate it as a variable. Convenient to
6424 prints), so one can manipulate it as a variable. Convenient to
6417 travel along many directories.
6425 travel along many directories.
6418
6426
6419 * Fixed bug in magic_pdef: would only work with functions with
6427 * Fixed bug in magic_pdef: would only work with functions with
6420 arguments with default values.
6428 arguments with default values.
6421
6429
6422 2001-11-14 Fernando Perez <fperez@colorado.edu>
6430 2001-11-14 Fernando Perez <fperez@colorado.edu>
6423
6431
6424 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6432 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6425 example with IPython. Various other minor fixes and cleanups.
6433 example with IPython. Various other minor fixes and cleanups.
6426
6434
6427 * Version 0.1.9 released, 0.1.10 opened for further work.
6435 * Version 0.1.9 released, 0.1.10 opened for further work.
6428
6436
6429 * Added sys.path to the list of directories searched in the
6437 * Added sys.path to the list of directories searched in the
6430 execfile= option. It used to be the current directory and the
6438 execfile= option. It used to be the current directory and the
6431 user's IPYTHONDIR only.
6439 user's IPYTHONDIR only.
6432
6440
6433 2001-11-13 Fernando Perez <fperez@colorado.edu>
6441 2001-11-13 Fernando Perez <fperez@colorado.edu>
6434
6442
6435 * Reinstated the raw_input/prefilter separation that Janko had
6443 * Reinstated the raw_input/prefilter separation that Janko had
6436 initially. This gives a more convenient setup for extending the
6444 initially. This gives a more convenient setup for extending the
6437 pre-processor from the outside: raw_input always gets a string,
6445 pre-processor from the outside: raw_input always gets a string,
6438 and prefilter has to process it. We can then redefine prefilter
6446 and prefilter has to process it. We can then redefine prefilter
6439 from the outside and implement extensions for special
6447 from the outside and implement extensions for special
6440 purposes.
6448 purposes.
6441
6449
6442 Today I got one for inputting PhysicalQuantity objects
6450 Today I got one for inputting PhysicalQuantity objects
6443 (from Scientific) without needing any function calls at
6451 (from Scientific) without needing any function calls at
6444 all. Extremely convenient, and it's all done as a user-level
6452 all. Extremely convenient, and it's all done as a user-level
6445 extension (no IPython code was touched). Now instead of:
6453 extension (no IPython code was touched). Now instead of:
6446 a = PhysicalQuantity(4.2,'m/s**2')
6454 a = PhysicalQuantity(4.2,'m/s**2')
6447 one can simply say
6455 one can simply say
6448 a = 4.2 m/s**2
6456 a = 4.2 m/s**2
6449 or even
6457 or even
6450 a = 4.2 m/s^2
6458 a = 4.2 m/s^2
6451
6459
6452 I use this, but it's also a proof of concept: IPython really is
6460 I use this, but it's also a proof of concept: IPython really is
6453 fully user-extensible, even at the level of the parsing of the
6461 fully user-extensible, even at the level of the parsing of the
6454 command line. It's not trivial, but it's perfectly doable.
6462 command line. It's not trivial, but it's perfectly doable.
6455
6463
6456 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6464 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6457 the problem of modules being loaded in the inverse order in which
6465 the problem of modules being loaded in the inverse order in which
6458 they were defined in
6466 they were defined in
6459
6467
6460 * Version 0.1.8 released, 0.1.9 opened for further work.
6468 * Version 0.1.8 released, 0.1.9 opened for further work.
6461
6469
6462 * Added magics pdef, source and file. They respectively show the
6470 * Added magics pdef, source and file. They respectively show the
6463 definition line ('prototype' in C), source code and full python
6471 definition line ('prototype' in C), source code and full python
6464 file for any callable object. The object inspector oinfo uses
6472 file for any callable object. The object inspector oinfo uses
6465 these to show the same information.
6473 these to show the same information.
6466
6474
6467 * Version 0.1.7 released, 0.1.8 opened for further work.
6475 * Version 0.1.7 released, 0.1.8 opened for further work.
6468
6476
6469 * Separated all the magic functions into a class called Magic. The
6477 * Separated all the magic functions into a class called Magic. The
6470 InteractiveShell class was becoming too big for Xemacs to handle
6478 InteractiveShell class was becoming too big for Xemacs to handle
6471 (de-indenting a line would lock it up for 10 seconds while it
6479 (de-indenting a line would lock it up for 10 seconds while it
6472 backtracked on the whole class!)
6480 backtracked on the whole class!)
6473
6481
6474 FIXME: didn't work. It can be done, but right now namespaces are
6482 FIXME: didn't work. It can be done, but right now namespaces are
6475 all messed up. Do it later (reverted it for now, so at least
6483 all messed up. Do it later (reverted it for now, so at least
6476 everything works as before).
6484 everything works as before).
6477
6485
6478 * Got the object introspection system (magic_oinfo) working! I
6486 * Got the object introspection system (magic_oinfo) working! I
6479 think this is pretty much ready for release to Janko, so he can
6487 think this is pretty much ready for release to Janko, so he can
6480 test it for a while and then announce it. Pretty much 100% of what
6488 test it for a while and then announce it. Pretty much 100% of what
6481 I wanted for the 'phase 1' release is ready. Happy, tired.
6489 I wanted for the 'phase 1' release is ready. Happy, tired.
6482
6490
6483 2001-11-12 Fernando Perez <fperez@colorado.edu>
6491 2001-11-12 Fernando Perez <fperez@colorado.edu>
6484
6492
6485 * Version 0.1.6 released, 0.1.7 opened for further work.
6493 * Version 0.1.6 released, 0.1.7 opened for further work.
6486
6494
6487 * Fixed bug in printing: it used to test for truth before
6495 * Fixed bug in printing: it used to test for truth before
6488 printing, so 0 wouldn't print. Now checks for None.
6496 printing, so 0 wouldn't print. Now checks for None.
6489
6497
6490 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6498 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6491 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6499 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6492 reaches by hand into the outputcache. Think of a better way to do
6500 reaches by hand into the outputcache. Think of a better way to do
6493 this later.
6501 this later.
6494
6502
6495 * Various small fixes thanks to Nathan's comments.
6503 * Various small fixes thanks to Nathan's comments.
6496
6504
6497 * Changed magic_pprint to magic_Pprint. This way it doesn't
6505 * Changed magic_pprint to magic_Pprint. This way it doesn't
6498 collide with pprint() and the name is consistent with the command
6506 collide with pprint() and the name is consistent with the command
6499 line option.
6507 line option.
6500
6508
6501 * Changed prompt counter behavior to be fully like
6509 * Changed prompt counter behavior to be fully like
6502 Mathematica's. That is, even input that doesn't return a result
6510 Mathematica's. That is, even input that doesn't return a result
6503 raises the prompt counter. The old behavior was kind of confusing
6511 raises the prompt counter. The old behavior was kind of confusing
6504 (getting the same prompt number several times if the operation
6512 (getting the same prompt number several times if the operation
6505 didn't return a result).
6513 didn't return a result).
6506
6514
6507 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6515 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6508
6516
6509 * Fixed -Classic mode (wasn't working anymore).
6517 * Fixed -Classic mode (wasn't working anymore).
6510
6518
6511 * Added colored prompts using Nathan's new code. Colors are
6519 * Added colored prompts using Nathan's new code. Colors are
6512 currently hardwired, they can be user-configurable. For
6520 currently hardwired, they can be user-configurable. For
6513 developers, they can be chosen in file ipythonlib.py, at the
6521 developers, they can be chosen in file ipythonlib.py, at the
6514 beginning of the CachedOutput class def.
6522 beginning of the CachedOutput class def.
6515
6523
6516 2001-11-11 Fernando Perez <fperez@colorado.edu>
6524 2001-11-11 Fernando Perez <fperez@colorado.edu>
6517
6525
6518 * Version 0.1.5 released, 0.1.6 opened for further work.
6526 * Version 0.1.5 released, 0.1.6 opened for further work.
6519
6527
6520 * Changed magic_env to *return* the environment as a dict (not to
6528 * Changed magic_env to *return* the environment as a dict (not to
6521 print it). This way it prints, but it can also be processed.
6529 print it). This way it prints, but it can also be processed.
6522
6530
6523 * Added Verbose exception reporting to interactive
6531 * Added Verbose exception reporting to interactive
6524 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6532 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6525 traceback. Had to make some changes to the ultraTB file. This is
6533 traceback. Had to make some changes to the ultraTB file. This is
6526 probably the last 'big' thing in my mental todo list. This ties
6534 probably the last 'big' thing in my mental todo list. This ties
6527 in with the next entry:
6535 in with the next entry:
6528
6536
6529 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6537 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6530 has to specify is Plain, Color or Verbose for all exception
6538 has to specify is Plain, Color or Verbose for all exception
6531 handling.
6539 handling.
6532
6540
6533 * Removed ShellServices option. All this can really be done via
6541 * Removed ShellServices option. All this can really be done via
6534 the magic system. It's easier to extend, cleaner and has automatic
6542 the magic system. It's easier to extend, cleaner and has automatic
6535 namespace protection and documentation.
6543 namespace protection and documentation.
6536
6544
6537 2001-11-09 Fernando Perez <fperez@colorado.edu>
6545 2001-11-09 Fernando Perez <fperez@colorado.edu>
6538
6546
6539 * Fixed bug in output cache flushing (missing parameter to
6547 * Fixed bug in output cache flushing (missing parameter to
6540 __init__). Other small bugs fixed (found using pychecker).
6548 __init__). Other small bugs fixed (found using pychecker).
6541
6549
6542 * Version 0.1.4 opened for bugfixing.
6550 * Version 0.1.4 opened for bugfixing.
6543
6551
6544 2001-11-07 Fernando Perez <fperez@colorado.edu>
6552 2001-11-07 Fernando Perez <fperez@colorado.edu>
6545
6553
6546 * Version 0.1.3 released, mainly because of the raw_input bug.
6554 * Version 0.1.3 released, mainly because of the raw_input bug.
6547
6555
6548 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6556 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6549 and when testing for whether things were callable, a call could
6557 and when testing for whether things were callable, a call could
6550 actually be made to certain functions. They would get called again
6558 actually be made to certain functions. They would get called again
6551 once 'really' executed, with a resulting double call. A disaster
6559 once 'really' executed, with a resulting double call. A disaster
6552 in many cases (list.reverse() would never work!).
6560 in many cases (list.reverse() would never work!).
6553
6561
6554 * Removed prefilter() function, moved its code to raw_input (which
6562 * Removed prefilter() function, moved its code to raw_input (which
6555 after all was just a near-empty caller for prefilter). This saves
6563 after all was just a near-empty caller for prefilter). This saves
6556 a function call on every prompt, and simplifies the class a tiny bit.
6564 a function call on every prompt, and simplifies the class a tiny bit.
6557
6565
6558 * Fix _ip to __ip name in magic example file.
6566 * Fix _ip to __ip name in magic example file.
6559
6567
6560 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6568 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6561 work with non-gnu versions of tar.
6569 work with non-gnu versions of tar.
6562
6570
6563 2001-11-06 Fernando Perez <fperez@colorado.edu>
6571 2001-11-06 Fernando Perez <fperez@colorado.edu>
6564
6572
6565 * Version 0.1.2. Just to keep track of the recent changes.
6573 * Version 0.1.2. Just to keep track of the recent changes.
6566
6574
6567 * Fixed nasty bug in output prompt routine. It used to check 'if
6575 * Fixed nasty bug in output prompt routine. It used to check 'if
6568 arg != None...'. Problem is, this fails if arg implements a
6576 arg != None...'. Problem is, this fails if arg implements a
6569 special comparison (__cmp__) which disallows comparing to
6577 special comparison (__cmp__) which disallows comparing to
6570 None. Found it when trying to use the PhysicalQuantity module from
6578 None. Found it when trying to use the PhysicalQuantity module from
6571 ScientificPython.
6579 ScientificPython.
6572
6580
6573 2001-11-05 Fernando Perez <fperez@colorado.edu>
6581 2001-11-05 Fernando Perez <fperez@colorado.edu>
6574
6582
6575 * Also added dirs. Now the pushd/popd/dirs family functions
6583 * Also added dirs. Now the pushd/popd/dirs family functions
6576 basically like the shell, with the added convenience of going home
6584 basically like the shell, with the added convenience of going home
6577 when called with no args.
6585 when called with no args.
6578
6586
6579 * pushd/popd slightly modified to mimic shell behavior more
6587 * pushd/popd slightly modified to mimic shell behavior more
6580 closely.
6588 closely.
6581
6589
6582 * Added env,pushd,popd from ShellServices as magic functions. I
6590 * Added env,pushd,popd from ShellServices as magic functions. I
6583 think the cleanest will be to port all desired functions from
6591 think the cleanest will be to port all desired functions from
6584 ShellServices as magics and remove ShellServices altogether. This
6592 ShellServices as magics and remove ShellServices altogether. This
6585 will provide a single, clean way of adding functionality
6593 will provide a single, clean way of adding functionality
6586 (shell-type or otherwise) to IP.
6594 (shell-type or otherwise) to IP.
6587
6595
6588 2001-11-04 Fernando Perez <fperez@colorado.edu>
6596 2001-11-04 Fernando Perez <fperez@colorado.edu>
6589
6597
6590 * Added .ipython/ directory to sys.path. This way users can keep
6598 * Added .ipython/ directory to sys.path. This way users can keep
6591 customizations there and access them via import.
6599 customizations there and access them via import.
6592
6600
6593 2001-11-03 Fernando Perez <fperez@colorado.edu>
6601 2001-11-03 Fernando Perez <fperez@colorado.edu>
6594
6602
6595 * Opened version 0.1.1 for new changes.
6603 * Opened version 0.1.1 for new changes.
6596
6604
6597 * Changed version number to 0.1.0: first 'public' release, sent to
6605 * Changed version number to 0.1.0: first 'public' release, sent to
6598 Nathan and Janko.
6606 Nathan and Janko.
6599
6607
6600 * Lots of small fixes and tweaks.
6608 * Lots of small fixes and tweaks.
6601
6609
6602 * Minor changes to whos format. Now strings are shown, snipped if
6610 * Minor changes to whos format. Now strings are shown, snipped if
6603 too long.
6611 too long.
6604
6612
6605 * Changed ShellServices to work on __main__ so they show up in @who
6613 * Changed ShellServices to work on __main__ so they show up in @who
6606
6614
6607 * Help also works with ? at the end of a line:
6615 * Help also works with ? at the end of a line:
6608 ?sin and sin?
6616 ?sin and sin?
6609 both produce the same effect. This is nice, as often I use the
6617 both produce the same effect. This is nice, as often I use the
6610 tab-complete to find the name of a method, but I used to then have
6618 tab-complete to find the name of a method, but I used to then have
6611 to go to the beginning of the line to put a ? if I wanted more
6619 to go to the beginning of the line to put a ? if I wanted more
6612 info. Now I can just add the ? and hit return. Convenient.
6620 info. Now I can just add the ? and hit return. Convenient.
6613
6621
6614 2001-11-02 Fernando Perez <fperez@colorado.edu>
6622 2001-11-02 Fernando Perez <fperez@colorado.edu>
6615
6623
6616 * Python version check (>=2.1) added.
6624 * Python version check (>=2.1) added.
6617
6625
6618 * Added LazyPython documentation. At this point the docs are quite
6626 * Added LazyPython documentation. At this point the docs are quite
6619 a mess. A cleanup is in order.
6627 a mess. A cleanup is in order.
6620
6628
6621 * Auto-installer created. For some bizarre reason, the zipfiles
6629 * Auto-installer created. For some bizarre reason, the zipfiles
6622 module isn't working on my system. So I made a tar version
6630 module isn't working on my system. So I made a tar version
6623 (hopefully the command line options in various systems won't kill
6631 (hopefully the command line options in various systems won't kill
6624 me).
6632 me).
6625
6633
6626 * Fixes to Struct in genutils. Now all dictionary-like methods are
6634 * Fixes to Struct in genutils. Now all dictionary-like methods are
6627 protected (reasonably).
6635 protected (reasonably).
6628
6636
6629 * Added pager function to genutils and changed ? to print usage
6637 * Added pager function to genutils and changed ? to print usage
6630 note through it (it was too long).
6638 note through it (it was too long).
6631
6639
6632 * Added the LazyPython functionality. Works great! I changed the
6640 * Added the LazyPython functionality. Works great! I changed the
6633 auto-quote escape to ';', it's on home row and next to '. But
6641 auto-quote escape to ';', it's on home row and next to '. But
6634 both auto-quote and auto-paren (still /) escapes are command-line
6642 both auto-quote and auto-paren (still /) escapes are command-line
6635 parameters.
6643 parameters.
6636
6644
6637
6645
6638 2001-11-01 Fernando Perez <fperez@colorado.edu>
6646 2001-11-01 Fernando Perez <fperez@colorado.edu>
6639
6647
6640 * Version changed to 0.0.7. Fairly large change: configuration now
6648 * Version changed to 0.0.7. Fairly large change: configuration now
6641 is all stored in a directory, by default .ipython. There, all
6649 is all stored in a directory, by default .ipython. There, all
6642 config files have normal looking names (not .names)
6650 config files have normal looking names (not .names)
6643
6651
6644 * Version 0.0.6 Released first to Lucas and Archie as a test
6652 * Version 0.0.6 Released first to Lucas and Archie as a test
6645 run. Since it's the first 'semi-public' release, change version to
6653 run. Since it's the first 'semi-public' release, change version to
6646 > 0.0.6 for any changes now.
6654 > 0.0.6 for any changes now.
6647
6655
6648 * Stuff I had put in the ipplib.py changelog:
6656 * Stuff I had put in the ipplib.py changelog:
6649
6657
6650 Changes to InteractiveShell:
6658 Changes to InteractiveShell:
6651
6659
6652 - Made the usage message a parameter.
6660 - Made the usage message a parameter.
6653
6661
6654 - Require the name of the shell variable to be given. It's a bit
6662 - Require the name of the shell variable to be given. It's a bit
6655 of a hack, but allows the name 'shell' not to be hardwired in the
6663 of a hack, but allows the name 'shell' not to be hardwired in the
6656 magic (@) handler, which is problematic b/c it requires
6664 magic (@) handler, which is problematic b/c it requires
6657 polluting the global namespace with 'shell'. This in turn is
6665 polluting the global namespace with 'shell'. This in turn is
6658 fragile: if a user redefines a variable called shell, things
6666 fragile: if a user redefines a variable called shell, things
6659 break.
6667 break.
6660
6668
6661 - magic @: all functions available through @ need to be defined
6669 - magic @: all functions available through @ need to be defined
6662 as magic_<name>, even though they can be called simply as
6670 as magic_<name>, even though they can be called simply as
6663 @<name>. This allows the special command @magic to gather
6671 @<name>. This allows the special command @magic to gather
6664 information automatically about all existing magic functions,
6672 information automatically about all existing magic functions,
6665 even if they are run-time user extensions, by parsing the shell
6673 even if they are run-time user extensions, by parsing the shell
6666 instance __dict__ looking for special magic_ names.
6674 instance __dict__ looking for special magic_ names.
6667
6675
6668 - mainloop: added *two* local namespace parameters. This allows
6676 - mainloop: added *two* local namespace parameters. This allows
6669 the class to differentiate between parameters which were there
6677 the class to differentiate between parameters which were there
6670 before and after command line initialization was processed. This
6678 before and after command line initialization was processed. This
6671 way, later @who can show things loaded at startup by the
6679 way, later @who can show things loaded at startup by the
6672 user. This trick was necessary to make session saving/reloading
6680 user. This trick was necessary to make session saving/reloading
6673 really work: ideally after saving/exiting/reloading a session,
6681 really work: ideally after saving/exiting/reloading a session,
6674 *everything* should look the same, including the output of @who. I
6682 *everything* should look the same, including the output of @who. I
6675 was only able to make this work with this double namespace
6683 was only able to make this work with this double namespace
6676 trick.
6684 trick.
6677
6685
6678 - added a header to the logfile which allows (almost) full
6686 - added a header to the logfile which allows (almost) full
6679 session restoring.
6687 session restoring.
6680
6688
6681 - prepend lines beginning with @ or !, with a and log
6689 - prepend lines beginning with @ or !, with a and log
6682 them. Why? !lines: may be useful to know what you did @lines:
6690 them. Why? !lines: may be useful to know what you did @lines:
6683 they may affect session state. So when restoring a session, at
6691 they may affect session state. So when restoring a session, at
6684 least inform the user of their presence. I couldn't quite get
6692 least inform the user of their presence. I couldn't quite get
6685 them to properly re-execute, but at least the user is warned.
6693 them to properly re-execute, but at least the user is warned.
6686
6694
6687 * Started ChangeLog.
6695 * Started ChangeLog.
@@ -1,93 +1,92 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
2 # -*- coding: utf-8 -*-
3 """Setup script for exe distribution of IPython (does not require python).
3 """Setup script for exe distribution of IPython (does not require python).
4
4
5 - Requires py2exe
5 - Requires py2exe
6
6
7 - install pyreadline in ipython root directory by running:
7 - install pyreadline in ipython root directory by running:
8
8
9 svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline
9 svn co http://ipython.scipy.org/svn/ipython/pyreadline/trunk pyreadline
10
10
11 - Create the distribution in 'dist' by running "python exesetup.py py2exe"
11 - Create the distribution in 'dist' by running "python exesetup.py py2exe"
12
12
13 - Run ipython.exe to go.
13 - Run ipython.exe to go.
14
14
15 """
15 """
16
16
17 #*****************************************************************************
17 #*****************************************************************************
18 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
18 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
19 #
19 #
20 # Distributed under the terms of the BSD License. The full license is in
20 # Distributed under the terms of the BSD License. The full license is in
21 # the file COPYING, distributed as part of this software.
21 # the file COPYING, distributed as part of this software.
22 #*****************************************************************************
22 #*****************************************************************************
23
23
24 # Stdlib imports
24 # Stdlib imports
25 import os
25 import os
26 import sys
26 import sys
27
27
28 from glob import glob
28 from glob import glob
29
29
30
30
31 # A few handy globals
31 # A few handy globals
32 isfile = os.path.isfile
32 isfile = os.path.isfile
33 pjoin = os.path.join
33 pjoin = os.path.join
34
34
35 from distutils.core import setup
35 from distutils.core import setup
36 import py2exe
36 import py2exe
37
37
38 # update the manuals when building a source dist
38 # update the manuals when building a source dist
39 # Release.py contains version, authors, license, url, keywords, etc.
39 # Release.py contains version, authors, license, url, keywords, etc.
40 execfile(pjoin('IPython','Release.py'))
40 execfile(pjoin('IPython','Release.py'))
41
41
42 # A little utility we'll need below, since glob() does NOT allow you to do
42 # A little utility we'll need below, since glob() does NOT allow you to do
43 # exclusion on multiple endings!
43 # exclusion on multiple endings!
44 def file_doesnt_endwith(test,endings):
44 def file_doesnt_endwith(test,endings):
45 """Return true if test is a file and its name does NOT end with any
45 """Return true if test is a file and its name does NOT end with any
46 of the strings listed in endings."""
46 of the strings listed in endings."""
47 if not isfile(test):
47 if not isfile(test):
48 return False
48 return False
49 for e in endings:
49 for e in endings:
50 if test.endswith(e):
50 if test.endswith(e):
51 return False
51 return False
52 return True
52 return True
53
53
54
54
55 if 'setuptools' in sys.modules:
55 if 'setuptools' in sys.modules:
56 # setuptools config for egg building
56 # setuptools config for egg building
57 egg_extra_kwds = {
57 egg_extra_kwds = {
58 'entry_points': {
58 'entry_points': {
59 'console_scripts': [
59 'console_scripts': [
60 'ipython = IPython.ipapi:launch_new_instance',
60 'ipython = IPython.ipapi:launch_new_instance',
61 'pycolor = IPython.PyColorize:main'
61 'pycolor = IPython.PyColorize:main'
62 ]}
62 ]}
63 }
63 }
64 scriptfiles = []
64 scriptfiles = []
65 # eggs will lack docs, examples XXX not anymore
65 # eggs will lack docs, examples XXX not anymore
66 #datafiles = [('lib', 'IPython/UserConfig', cfgfiles)]
66 #datafiles = [('lib', 'IPython/UserConfig', cfgfiles)]
67 else:
67 else:
68 egg_extra_kwds = {}
68 egg_extra_kwds = {}
69
69
70
70
71 # Call the setup() routine which does most of the work
71 # Call the setup() routine which does most of the work
72 setup(name = name,
72 setup(name = name,
73 options = {
73 options = {
74 'py2exe': {
74 'py2exe': {
75 'packages' : ['IPython', 'IPython.Extensions', 'IPython.external','pyreadline'],
75 'packages' : ['IPython', 'IPython.Extensions', 'IPython.external','pyreadline'],
76 }
76 }
77 },
77 },
78 version = version,
78 version = version,
79 description = description,
79 description = description,
80 long_description = long_description,
80 long_description = long_description,
81 author = authors['Fernando'][0],
81 author = authors['Fernando'][0],
82 author_email = authors['Fernando'][1],
82 author_email = authors['Fernando'][1],
83 url = url,
83 url = url,
84 download_url = download_url,
84 download_url = download_url,
85 license = license,
85 license = license,
86 platforms = platforms,
86 platforms = platforms,
87 keywords = keywords,
87 keywords = keywords,
88 packages = ['IPython', 'IPython.Extensions', 'IPython.external'],
89 console = ['ipython.py'],
88 console = ['ipython.py'],
90
89
91 # extra params needed for eggs
90 # extra params needed for eggs
92 **egg_extra_kwds
91 **egg_extra_kwds
93 )
92 )
General Comments 0
You need to be logged in to leave comments. Login now