##// END OF EJS Templates
Open trunk for 0.8.1 development.
jdh2358 -
Show More
@@ -1,84 +1,83 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Release data for the IPython project.
2 """Release data for the IPython project.
3
3
4 $Id: Release.py 2221 2007-04-06 02:58:37Z fperez $"""
4 $Id: Release.py 2235 2007-04-11 05:12:33Z jdh2358 $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
7 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
8 #
8 #
9 # Copyright (c) 2001 Janko Hauser <jhauser@zscout.de> and Nathaniel Gray
9 # Copyright (c) 2001 Janko Hauser <jhauser@zscout.de> and Nathaniel Gray
10 # <n8gray@caltech.edu>
10 # <n8gray@caltech.edu>
11 #
11 #
12 # Distributed under the terms of the BSD License. The full license is in
12 # Distributed under the terms of the BSD License. The full license is in
13 # the file COPYING, distributed as part of this software.
13 # the file COPYING, distributed as part of this software.
14 #*****************************************************************************
14 #*****************************************************************************
15
15
16 # Name of the package for release purposes. This is the name which labels
16 # Name of the package for release purposes. This is the name which labels
17 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
17 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
18 name = 'ipython'
18 name = 'ipython'
19
19
20 # For versions with substrings (like 0.6.16.svn), use an extra . to separate
20 # For versions with substrings (like 0.6.16.svn), use an extra . to separate
21 # the new substring. We have to avoid using either dashes or underscores,
21 # the new substring. We have to avoid using either dashes or underscores,
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 # bdist_deb does not accept underscores (a Debian convention).
23 # bdist_deb does not accept underscores (a Debian convention).
24
24
25 revision = '2191'
25 revision = '2191'
26
26
27 #version = '0.7.4.svn.r' + revision.rstrip('M')
27 version = '0.8.1.svn.r' + revision.rstrip('M')
28 version = '0.8.0'
29
28
30 description = "An enhanced interactive Python shell."
29 description = "An enhanced interactive Python shell."
31
30
32 long_description = \
31 long_description = \
33 """
32 """
34 IPython provides a replacement for the interactive Python interpreter with
33 IPython provides a replacement for the interactive Python interpreter with
35 extra functionality.
34 extra functionality.
36
35
37 Main features:
36 Main features:
38
37
39 * Comprehensive object introspection.
38 * Comprehensive object introspection.
40
39
41 * Input history, persistent across sessions.
40 * Input history, persistent across sessions.
42
41
43 * Caching of output results during a session with automatically generated
42 * Caching of output results during a session with automatically generated
44 references.
43 references.
45
44
46 * Readline based name completion.
45 * Readline based name completion.
47
46
48 * Extensible system of 'magic' commands for controlling the environment and
47 * Extensible system of 'magic' commands for controlling the environment and
49 performing many tasks related either to IPython or the operating system.
48 performing many tasks related either to IPython or the operating system.
50
49
51 * Configuration system with easy switching between different setups (simpler
50 * Configuration system with easy switching between different setups (simpler
52 than changing $PYTHONSTARTUP environment variables every time).
51 than changing $PYTHONSTARTUP environment variables every time).
53
52
54 * Session logging and reloading.
53 * Session logging and reloading.
55
54
56 * Extensible syntax processing for special purpose situations.
55 * Extensible syntax processing for special purpose situations.
57
56
58 * Access to the system shell with user-extensible alias system.
57 * Access to the system shell with user-extensible alias system.
59
58
60 * Easily embeddable in other Python programs.
59 * Easily embeddable in other Python programs.
61
60
62 * Integrated access to the pdb debugger and the Python profiler.
61 * Integrated access to the pdb debugger and the Python profiler.
63
62
64 The latest development version is always available at the IPython subversion
63 The latest development version is always available at the IPython subversion
65 repository_.
64 repository_.
66
65
67 .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev
66 .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev
68 """
67 """
69
68
70 license = 'BSD'
69 license = 'BSD'
71
70
72 authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'),
71 authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'),
73 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
72 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
74 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
73 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
75 'Ville' : ('Ville Vainio','vivainio@gmail.com')
74 'Ville' : ('Ville Vainio','vivainio@gmail.com')
76 }
75 }
77
76
78 url = 'http://ipython.scipy.org'
77 url = 'http://ipython.scipy.org'
79
78
80 download_url = 'http://ipython.scipy.org/dist'
79 download_url = 'http://ipython.scipy.org/dist'
81
80
82 platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME']
81 platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME']
83
82
84 keywords = ['Interactive','Interpreter','Shell']
83 keywords = ['Interactive','Interpreter','Shell']
@@ -1,6525 +1,6531 b''
1 2007-04-10 Fernando Perez <Fernando.Perez@colorado.edu>
2
3 * IPython/Release.py (version): Open trunk for 0.8.1 development.
4
5 2007-04-10 *** Released version 0.8.0
6
1 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
7 2007-04-07 Fernando Perez <Fernando.Perez@colorado.edu>
2
8
3 * Tag 0.8.0 for release.
9 * Tag 0.8.0 for release.
4
10
5 * IPython/iplib.py (reloadhist): add API function to cleanly
11 * IPython/iplib.py (reloadhist): add API function to cleanly
6 reload the readline history, which was growing inappropriately on
12 reload the readline history, which was growing inappropriately on
7 every %run call.
13 every %run call.
8
14
9 * win32_manual_post_install.py (run): apply last part of Nicolas
15 * win32_manual_post_install.py (run): apply last part of Nicolas
10 Pernetty's patch (I'd accidentally applied it in a different
16 Pernetty's patch (I'd accidentally applied it in a different
11 directory and this particular file didn't get patched).
17 directory and this particular file didn't get patched).
12
18
13 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
19 2007-04-05 Fernando Perez <Fernando.Perez@colorado.edu>
14
20
15 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
21 * IPython/Shell.py (MAIN_THREAD_ID): get rid of my stupid hack to
16 find the main thread id and use the proper API call. Thanks to
22 find the main thread id and use the proper API call. Thanks to
17 Stefan for the fix.
23 Stefan for the fix.
18
24
19 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
25 * test/test_prefilter.py (esc_handler_tests): udpate one of Dan's
20 unit tests to reflect fixed ticket #52, and add more tests sent by
26 unit tests to reflect fixed ticket #52, and add more tests sent by
21 him.
27 him.
22
28
23 * IPython/iplib.py (raw_input): restore the readline completer
29 * IPython/iplib.py (raw_input): restore the readline completer
24 state on every input, in case third-party code messed it up.
30 state on every input, in case third-party code messed it up.
25 (_prefilter): revert recent addition of early-escape checks which
31 (_prefilter): revert recent addition of early-escape checks which
26 prevent many valid alias calls from working.
32 prevent many valid alias calls from working.
27
33
28 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
34 * IPython/Shell.py (MTInteractiveShell.runcode): add a tracking
29 flag for sigint handler so we don't run a full signal() call on
35 flag for sigint handler so we don't run a full signal() call on
30 each runcode access.
36 each runcode access.
31
37
32 * IPython/Magic.py (magic_whos): small improvement to diagnostic
38 * IPython/Magic.py (magic_whos): small improvement to diagnostic
33 message.
39 message.
34
40
35 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
41 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
36
42
37 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
43 * IPython/Shell.py (sigint_handler): I *THINK* I finally got
38 asynchronous exceptions working, i.e., Ctrl-C can actually
44 asynchronous exceptions working, i.e., Ctrl-C can actually
39 interrupt long-running code in the multithreaded shells.
45 interrupt long-running code in the multithreaded shells.
40
46
41 This is using Tomer Filiba's great ctypes-based trick:
47 This is using Tomer Filiba's great ctypes-based trick:
42 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
48 http://sebulba.wikispaces.com/recipe+thread2. I'd already tried
43 this in the past, but hadn't been able to make it work before. So
49 this in the past, but hadn't been able to make it work before. So
44 far it looks like it's actually running, but this needs more
50 far it looks like it's actually running, but this needs more
45 testing. If it really works, I'll be *very* happy, and we'll owe
51 testing. If it really works, I'll be *very* happy, and we'll owe
46 a huge thank you to Tomer. My current implementation is ugly,
52 a huge thank you to Tomer. My current implementation is ugly,
47 hackish and uses nasty globals, but I don't want to try and clean
53 hackish and uses nasty globals, but I don't want to try and clean
48 anything up until we know if it actually works.
54 anything up until we know if it actually works.
49
55
50 NOTE: this feature needs ctypes to work. ctypes is included in
56 NOTE: this feature needs ctypes to work. ctypes is included in
51 Python2.5, but 2.4 users will need to manually install it. This
57 Python2.5, but 2.4 users will need to manually install it. This
52 feature makes multi-threaded shells so much more usable that it's
58 feature makes multi-threaded shells so much more usable that it's
53 a minor price to pay (ctypes is very easy to install, already a
59 a minor price to pay (ctypes is very easy to install, already a
54 requirement for win32 and available in major linux distros).
60 requirement for win32 and available in major linux distros).
55
61
56 2007-04-04 Ville Vainio <vivainio@gmail.com>
62 2007-04-04 Ville Vainio <vivainio@gmail.com>
57
63
58 * Extensions/ipy_completers.py, ipy_stock_completers.py:
64 * Extensions/ipy_completers.py, ipy_stock_completers.py:
59 Moved implementations of 'bundled' completers to ipy_completers.py,
65 Moved implementations of 'bundled' completers to ipy_completers.py,
60 they are only enabled in ipy_stock_completers.py.
66 they are only enabled in ipy_stock_completers.py.
61
67
62 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
68 2007-04-04 Fernando Perez <Fernando.Perez@colorado.edu>
63
69
64 * IPython/PyColorize.py (Parser.format2): Fix identation of
70 * IPython/PyColorize.py (Parser.format2): Fix identation of
65 colorzied output and return early if color scheme is NoColor, to
71 colorzied output and return early if color scheme is NoColor, to
66 avoid unnecessary and expensive tokenization. Closes #131.
72 avoid unnecessary and expensive tokenization. Closes #131.
67
73
68 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
74 2007-04-03 Fernando Perez <Fernando.Perez@colorado.edu>
69
75
70 * IPython/Debugger.py: disable the use of pydb version 1.17. It
76 * IPython/Debugger.py: disable the use of pydb version 1.17. It
71 has a critical bug (a missing import that makes post-mortem not
77 has a critical bug (a missing import that makes post-mortem not
72 work at all). Unfortunately as of this time, this is the version
78 work at all). Unfortunately as of this time, this is the version
73 shipped with Ubuntu Edgy, so quite a few people have this one. I
79 shipped with Ubuntu Edgy, so quite a few people have this one. I
74 hope Edgy will update to a more recent package.
80 hope Edgy will update to a more recent package.
75
81
76 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
82 2007-04-02 Fernando Perez <Fernando.Perez@colorado.edu>
77
83
78 * IPython/iplib.py (_prefilter): close #52, second part of a patch
84 * IPython/iplib.py (_prefilter): close #52, second part of a patch
79 set by Stefan (only the first part had been applied before).
85 set by Stefan (only the first part had been applied before).
80
86
81 * IPython/Extensions/ipy_stock_completers.py (module_completer):
87 * IPython/Extensions/ipy_stock_completers.py (module_completer):
82 remove usage of the dangerous pkgutil.walk_packages(). See
88 remove usage of the dangerous pkgutil.walk_packages(). See
83 details in comments left in the code.
89 details in comments left in the code.
84
90
85 * IPython/Magic.py (magic_whos): add support for numpy arrays
91 * IPython/Magic.py (magic_whos): add support for numpy arrays
86 similar to what we had for Numeric.
92 similar to what we had for Numeric.
87
93
88 * IPython/completer.py (IPCompleter.complete): extend the
94 * IPython/completer.py (IPCompleter.complete): extend the
89 complete() call API to support completions by other mechanisms
95 complete() call API to support completions by other mechanisms
90 than readline. Closes #109.
96 than readline. Closes #109.
91
97
92 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
98 * IPython/iplib.py (safe_execfile): add a safeguard under Win32 to
93 protect against a bug in Python's execfile(). Closes #123.
99 protect against a bug in Python's execfile(). Closes #123.
94
100
95 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
101 2007-04-01 Fernando Perez <Fernando.Perez@colorado.edu>
96
102
97 * IPython/iplib.py (split_user_input): ensure that when splitting
103 * IPython/iplib.py (split_user_input): ensure that when splitting
98 user input, the part that can be treated as a python name is pure
104 user input, the part that can be treated as a python name is pure
99 ascii (Python identifiers MUST be pure ascii). Part of the
105 ascii (Python identifiers MUST be pure ascii). Part of the
100 ongoing Unicode support work.
106 ongoing Unicode support work.
101
107
102 * IPython/Prompts.py (prompt_specials_color): Add \N for the
108 * IPython/Prompts.py (prompt_specials_color): Add \N for the
103 actual prompt number, without any coloring. This allows users to
109 actual prompt number, without any coloring. This allows users to
104 produce numbered prompts with their own colors. Added after a
110 produce numbered prompts with their own colors. Added after a
105 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
111 report/request by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
106
112
107 2007-03-31 Walter Doerwald <walter@livinglogic.de>
113 2007-03-31 Walter Doerwald <walter@livinglogic.de>
108
114
109 * IPython/Extensions/igrid.py: Map the return key
115 * IPython/Extensions/igrid.py: Map the return key
110 to enter() and shift-return to enterattr().
116 to enter() and shift-return to enterattr().
111
117
112 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
118 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
113
119
114 * IPython/Magic.py (magic_psearch): add unicode support by
120 * IPython/Magic.py (magic_psearch): add unicode support by
115 encoding to ascii the input, since this routine also only deals
121 encoding to ascii the input, since this routine also only deals
116 with valid Python names. Fixes a bug reported by Stefan.
122 with valid Python names. Fixes a bug reported by Stefan.
117
123
118 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
124 2007-03-29 Fernando Perez <Fernando.Perez@colorado.edu>
119
125
120 * IPython/Magic.py (_inspect): convert unicode input into ascii
126 * IPython/Magic.py (_inspect): convert unicode input into ascii
121 before trying to evaluate it as a Python identifier. This fixes a
127 before trying to evaluate it as a Python identifier. This fixes a
122 problem that the new unicode support had introduced when analyzing
128 problem that the new unicode support had introduced when analyzing
123 long definition lines for functions.
129 long definition lines for functions.
124
130
125 2007-03-24 Walter Doerwald <walter@livinglogic.de>
131 2007-03-24 Walter Doerwald <walter@livinglogic.de>
126
132
127 * IPython/Extensions/igrid.py: Fix picking. Using
133 * IPython/Extensions/igrid.py: Fix picking. Using
128 igrid with wxPython 2.6 and -wthread should work now.
134 igrid with wxPython 2.6 and -wthread should work now.
129 igrid.display() simply tries to create a frame without
135 igrid.display() simply tries to create a frame without
130 an application. Only if this fails an application is created.
136 an application. Only if this fails an application is created.
131
137
132 2007-03-23 Walter Doerwald <walter@livinglogic.de>
138 2007-03-23 Walter Doerwald <walter@livinglogic.de>
133
139
134 * IPython/Extensions/path.py: Updated to version 2.2.
140 * IPython/Extensions/path.py: Updated to version 2.2.
135
141
136 2007-03-23 Ville Vainio <vivainio@gmail.com>
142 2007-03-23 Ville Vainio <vivainio@gmail.com>
137
143
138 * iplib.py: recursive alias expansion now works better, so that
144 * iplib.py: recursive alias expansion now works better, so that
139 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
145 cases like 'top' -> 'd:/cygwin/top' -> 'ls :/cygwin/top'
140 doesn't trip up the process, if 'd' has been aliased to 'ls'.
146 doesn't trip up the process, if 'd' has been aliased to 'ls'.
141
147
142 * Extensions/ipy_gnuglobal.py added, provides %global magic
148 * Extensions/ipy_gnuglobal.py added, provides %global magic
143 for users of http://www.gnu.org/software/global
149 for users of http://www.gnu.org/software/global
144
150
145 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
151 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
146 Closes #52. Patch by Stefan van der Walt.
152 Closes #52. Patch by Stefan van der Walt.
147
153
148 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
154 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
149
155
150 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
156 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
151 respect the __file__ attribute when using %run. Thanks to a bug
157 respect the __file__ attribute when using %run. Thanks to a bug
152 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
158 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
153
159
154 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
160 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
155
161
156 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
162 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
157 input. Patch sent by Stefan.
163 input. Patch sent by Stefan.
158
164
159 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
165 2007-03-20 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
160 * IPython/Extensions/ipy_stock_completer.py
166 * IPython/Extensions/ipy_stock_completer.py
161 shlex_split, fix bug in shlex_split. len function
167 shlex_split, fix bug in shlex_split. len function
162 call was missing an if statement. Caused shlex_split to
168 call was missing an if statement. Caused shlex_split to
163 sometimes return "" as last element.
169 sometimes return "" as last element.
164
170
165 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
171 2007-03-18 Fernando Perez <Fernando.Perez@colorado.edu>
166
172
167 * IPython/completer.py
173 * IPython/completer.py
168 (IPCompleter.file_matches.single_dir_expand): fix a problem
174 (IPCompleter.file_matches.single_dir_expand): fix a problem
169 reported by Stefan, where directories containign a single subdir
175 reported by Stefan, where directories containign a single subdir
170 would be completed too early.
176 would be completed too early.
171
177
172 * IPython/Shell.py (_load_pylab): Make the execution of 'from
178 * IPython/Shell.py (_load_pylab): Make the execution of 'from
173 pylab import *' when -pylab is given be optional. A new flag,
179 pylab import *' when -pylab is given be optional. A new flag,
174 pylab_import_all controls this behavior, the default is True for
180 pylab_import_all controls this behavior, the default is True for
175 backwards compatibility.
181 backwards compatibility.
176
182
177 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
183 * IPython/ultraTB.py (_formatTracebackLines): Added (slightly
178 modified) R. Bernstein's patch for fully syntax highlighted
184 modified) R. Bernstein's patch for fully syntax highlighted
179 tracebacks. The functionality is also available under ultraTB for
185 tracebacks. The functionality is also available under ultraTB for
180 non-ipython users (someone using ultraTB but outside an ipython
186 non-ipython users (someone using ultraTB but outside an ipython
181 session). They can select the color scheme by setting the
187 session). They can select the color scheme by setting the
182 module-level global DEFAULT_SCHEME. The highlight functionality
188 module-level global DEFAULT_SCHEME. The highlight functionality
183 also works when debugging.
189 also works when debugging.
184
190
185 * IPython/genutils.py (IOStream.close): small patch by
191 * IPython/genutils.py (IOStream.close): small patch by
186 R. Bernstein for improved pydb support.
192 R. Bernstein for improved pydb support.
187
193
188 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
194 * IPython/Debugger.py (Pdb.format_stack_entry): Added patch by
189 DaveS <davls@telus.net> to improve support of debugging under
195 DaveS <davls@telus.net> to improve support of debugging under
190 NTEmacs, including improved pydb behavior.
196 NTEmacs, including improved pydb behavior.
191
197
192 * IPython/Magic.py (magic_prun): Fix saving of profile info for
198 * IPython/Magic.py (magic_prun): Fix saving of profile info for
193 Python 2.5, where the stats object API changed a little. Thanks
199 Python 2.5, where the stats object API changed a little. Thanks
194 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
200 to a bug report by Paul Smith <paul.smith-AT-catugmt.com>.
195
201
196 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
202 * IPython/ColorANSI.py (InputTermColors.Normal): applied Nicolas
197 Pernetty's patch to improve support for (X)Emacs under Win32.
203 Pernetty's patch to improve support for (X)Emacs under Win32.
198
204
199 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
205 2007-03-17 Fernando Perez <Fernando.Perez@colorado.edu>
200
206
201 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
207 * IPython/Shell.py (hijack_wx): ipmort WX with current semantics
202 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
208 to quiet a deprecation warning that fires with Wx 2.8. Thanks to
203 a report by Nik Tautenhahn.
209 a report by Nik Tautenhahn.
204
210
205 2007-03-16 Walter Doerwald <walter@livinglogic.de>
211 2007-03-16 Walter Doerwald <walter@livinglogic.de>
206
212
207 * setup.py: Add the igrid help files to the list of data files
213 * setup.py: Add the igrid help files to the list of data files
208 to be installed alongside igrid.
214 to be installed alongside igrid.
209 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
215 * IPython/Extensions/igrid.py: (Patch by Nik Tautenhahn)
210 Show the input object of the igrid browser as the window tile.
216 Show the input object of the igrid browser as the window tile.
211 Show the object the cursor is on in the statusbar.
217 Show the object the cursor is on in the statusbar.
212
218
213 2007-03-15 Ville Vainio <vivainio@gmail.com>
219 2007-03-15 Ville Vainio <vivainio@gmail.com>
214
220
215 * Extensions/ipy_stock_completers.py: Fixed exception
221 * Extensions/ipy_stock_completers.py: Fixed exception
216 on mismatching quotes in %run completer. Patch by
222 on mismatching quotes in %run completer. Patch by
217 JοΏ½rgen Stenarson. Closes #127.
223 JοΏ½rgen Stenarson. Closes #127.
218
224
219 2007-03-14 Ville Vainio <vivainio@gmail.com>
225 2007-03-14 Ville Vainio <vivainio@gmail.com>
220
226
221 * Extensions/ext_rehashdir.py: Do not do auto_alias
227 * Extensions/ext_rehashdir.py: Do not do auto_alias
222 in %rehashdir, it clobbers %store'd aliases.
228 in %rehashdir, it clobbers %store'd aliases.
223
229
224 * UserConfig/ipy_profile_sh.py: envpersist.py extension
230 * UserConfig/ipy_profile_sh.py: envpersist.py extension
225 (beefed up %env) imported for sh profile.
231 (beefed up %env) imported for sh profile.
226
232
227 2007-03-10 Walter Doerwald <walter@livinglogic.de>
233 2007-03-10 Walter Doerwald <walter@livinglogic.de>
228
234
229 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
235 * IPython/Extensions/ipipe.py: Prefer ibrowse over igrid
230 as the default browser.
236 as the default browser.
231 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
237 * IPython/Extensions/igrid.py: Make a few igrid attributes private.
232 As igrid displays all attributes it ever encounters, fetch() (which has
238 As igrid displays all attributes it ever encounters, fetch() (which has
233 been renamed to _fetch()) doesn't have to recalculate the display attributes
239 been renamed to _fetch()) doesn't have to recalculate the display attributes
234 every time a new item is fetched. This should speed up scrolling.
240 every time a new item is fetched. This should speed up scrolling.
235
241
236 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
242 2007-03-10 Fernando Perez <Fernando.Perez@colorado.edu>
237
243
238 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
244 * IPython/iplib.py (InteractiveShell.__init__): fix for Alex
239 Schmolck's recently reported tab-completion bug (my previous one
245 Schmolck's recently reported tab-completion bug (my previous one
240 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
246 had a problem). Patch by Dan Milstein <danmil-AT-comcast.net>.
241
247
242 2007-03-09 Walter Doerwald <walter@livinglogic.de>
248 2007-03-09 Walter Doerwald <walter@livinglogic.de>
243
249
244 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
250 * IPython/Extensions/igrid.py: Patch by Nik Tautenhahn:
245 Close help window if exiting igrid.
251 Close help window if exiting igrid.
246
252
247 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
253 2007-03-02 JοΏ½rgen Stenarson <jorgen.stenarson@bostream.nu>
248
254
249 * IPython/Extensions/ipy_defaults.py: Check if readline is available
255 * IPython/Extensions/ipy_defaults.py: Check if readline is available
250 before calling functions from readline.
256 before calling functions from readline.
251
257
252 2007-03-02 Walter Doerwald <walter@livinglogic.de>
258 2007-03-02 Walter Doerwald <walter@livinglogic.de>
253
259
254 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
260 * IPython/Extensions/igrid.py: Add Nik Tautenhahns igrid extension.
255 igrid is a wxPython-based display object for ipipe. If your system has
261 igrid is a wxPython-based display object for ipipe. If your system has
256 wx installed igrid will be the default display. Without wx ipipe falls
262 wx installed igrid will be the default display. Without wx ipipe falls
257 back to ibrowse (which needs curses). If no curses is installed ipipe
263 back to ibrowse (which needs curses). If no curses is installed ipipe
258 falls back to idump.
264 falls back to idump.
259
265
260 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
266 2007-03-01 Fernando Perez <Fernando.Perez@colorado.edu>
261
267
262 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
268 * IPython/iplib.py (split_user_inputBROKEN): temporarily disable
263 my changes from yesterday, they introduced bugs. Will reactivate
269 my changes from yesterday, they introduced bugs. Will reactivate
264 once I get a correct solution, which will be much easier thanks to
270 once I get a correct solution, which will be much easier thanks to
265 Dan Milstein's new prefilter test suite.
271 Dan Milstein's new prefilter test suite.
266
272
267 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
273 2007-02-28 Fernando Perez <Fernando.Perez@colorado.edu>
268
274
269 * IPython/iplib.py (split_user_input): fix input splitting so we
275 * IPython/iplib.py (split_user_input): fix input splitting so we
270 don't attempt attribute accesses on things that can't possibly be
276 don't attempt attribute accesses on things that can't possibly be
271 valid Python attributes. After a bug report by Alex Schmolck.
277 valid Python attributes. After a bug report by Alex Schmolck.
272 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
278 (InteractiveShell.__init__): brown-paper bag fix; regexp broke
273 %magic with explicit % prefix.
279 %magic with explicit % prefix.
274
280
275 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
281 2007-02-27 Fernando Perez <Fernando.Perez@colorado.edu>
276
282
277 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
283 * IPython/Shell.py (IPShellGTK.mainloop): update threads calls to
278 avoid a DeprecationWarning from GTK.
284 avoid a DeprecationWarning from GTK.
279
285
280 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
286 2007-02-22 Fernando Perez <Fernando.Perez@colorado.edu>
281
287
282 * IPython/genutils.py (clock): I modified clock() to return total
288 * IPython/genutils.py (clock): I modified clock() to return total
283 time, user+system. This is a more commonly needed metric. I also
289 time, user+system. This is a more commonly needed metric. I also
284 introduced the new clocku/clocks to get only user/system time if
290 introduced the new clocku/clocks to get only user/system time if
285 one wants those instead.
291 one wants those instead.
286
292
287 ***WARNING: API CHANGE*** clock() used to return only user time,
293 ***WARNING: API CHANGE*** clock() used to return only user time,
288 so if you want exactly the same results as before, use clocku
294 so if you want exactly the same results as before, use clocku
289 instead.
295 instead.
290
296
291 2007-02-22 Ville Vainio <vivainio@gmail.com>
297 2007-02-22 Ville Vainio <vivainio@gmail.com>
292
298
293 * IPython/Extensions/ipy_p4.py: Extension for improved
299 * IPython/Extensions/ipy_p4.py: Extension for improved
294 p4 (perforce version control system) experience.
300 p4 (perforce version control system) experience.
295 Adds %p4 magic with p4 command completion and
301 Adds %p4 magic with p4 command completion and
296 automatic -G argument (marshall output as python dict)
302 automatic -G argument (marshall output as python dict)
297
303
298 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
304 2007-02-19 Fernando Perez <Fernando.Perez@colorado.edu>
299
305
300 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
306 * IPython/demo.py (Demo.re_stop): make dashes optional in demo
301 stop marks.
307 stop marks.
302 (ClearingMixin): a simple mixin to easily make a Demo class clear
308 (ClearingMixin): a simple mixin to easily make a Demo class clear
303 the screen in between blocks and have empty marquees. The
309 the screen in between blocks and have empty marquees. The
304 ClearDemo and ClearIPDemo classes that use it are included.
310 ClearDemo and ClearIPDemo classes that use it are included.
305
311
306 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
312 2007-02-18 Fernando Perez <Fernando.Perez@colorado.edu>
307
313
308 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
314 * IPython/irunner.py (pexpect_monkeypatch): patch pexpect to
309 protect against exceptions at Python shutdown time. Patch
315 protect against exceptions at Python shutdown time. Patch
310 sumbmitted to upstream.
316 sumbmitted to upstream.
311
317
312 2007-02-14 Walter Doerwald <walter@livinglogic.de>
318 2007-02-14 Walter Doerwald <walter@livinglogic.de>
313
319
314 * IPython/Extensions/ibrowse.py: If entering the first object level
320 * IPython/Extensions/ibrowse.py: If entering the first object level
315 (i.e. the object for which the browser has been started) fails,
321 (i.e. the object for which the browser has been started) fails,
316 now the error is raised directly (aborting the browser) instead of
322 now the error is raised directly (aborting the browser) instead of
317 running into an empty levels list later.
323 running into an empty levels list later.
318
324
319 2007-02-03 Walter Doerwald <walter@livinglogic.de>
325 2007-02-03 Walter Doerwald <walter@livinglogic.de>
320
326
321 * IPython/Extensions/ipipe.py: Add an xrepr implementation
327 * IPython/Extensions/ipipe.py: Add an xrepr implementation
322 for the noitem object.
328 for the noitem object.
323
329
324 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
330 2007-01-31 Fernando Perez <Fernando.Perez@colorado.edu>
325
331
326 * IPython/completer.py (Completer.attr_matches): Fix small
332 * IPython/completer.py (Completer.attr_matches): Fix small
327 tab-completion bug with Enthought Traits objects with units.
333 tab-completion bug with Enthought Traits objects with units.
328 Thanks to a bug report by Tom Denniston
334 Thanks to a bug report by Tom Denniston
329 <tom.denniston-AT-alum.dartmouth.org>.
335 <tom.denniston-AT-alum.dartmouth.org>.
330
336
331 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
337 2007-01-27 Fernando Perez <Fernando.Perez@colorado.edu>
332
338
333 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
339 * IPython/Extensions/ipy_stock_completers.py (runlistpy): fix a
334 bug where only .ipy or .py would be completed. Once the first
340 bug where only .ipy or .py would be completed. Once the first
335 argument to %run has been given, all completions are valid because
341 argument to %run has been given, all completions are valid because
336 they are the arguments to the script, which may well be non-python
342 they are the arguments to the script, which may well be non-python
337 filenames.
343 filenames.
338
344
339 * IPython/irunner.py (InteractiveRunner.run_source): major updates
345 * IPython/irunner.py (InteractiveRunner.run_source): major updates
340 to irunner to allow it to correctly support real doctesting of
346 to irunner to allow it to correctly support real doctesting of
341 out-of-process ipython code.
347 out-of-process ipython code.
342
348
343 * IPython/Magic.py (magic_cd): Make the setting of the terminal
349 * IPython/Magic.py (magic_cd): Make the setting of the terminal
344 title an option (-noterm_title) because it completely breaks
350 title an option (-noterm_title) because it completely breaks
345 doctesting.
351 doctesting.
346
352
347 * IPython/demo.py: fix IPythonDemo class that was not actually working.
353 * IPython/demo.py: fix IPythonDemo class that was not actually working.
348
354
349 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
355 2007-01-24 Fernando Perez <Fernando.Perez@colorado.edu>
350
356
351 * IPython/irunner.py (main): fix small bug where extensions were
357 * IPython/irunner.py (main): fix small bug where extensions were
352 not being correctly recognized.
358 not being correctly recognized.
353
359
354 2007-01-23 Walter Doerwald <walter@livinglogic.de>
360 2007-01-23 Walter Doerwald <walter@livinglogic.de>
355
361
356 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
362 * IPython/Extensions/ipipe.py (xiter): Make sure that iterating
357 a string containing a single line yields the string itself as the
363 a string containing a single line yields the string itself as the
358 only item.
364 only item.
359
365
360 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
366 * IPython/Extensions/ibrowse.py (ibrowse): Avoid entering an
361 object if it's the same as the one on the last level (This avoids
367 object if it's the same as the one on the last level (This avoids
362 infinite recursion for one line strings).
368 infinite recursion for one line strings).
363
369
364 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
370 2007-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
365
371
366 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
372 * IPython/ultraTB.py (AutoFormattedTB.__call__): properly flush
367 all output streams before printing tracebacks. This ensures that
373 all output streams before printing tracebacks. This ensures that
368 user output doesn't end up interleaved with traceback output.
374 user output doesn't end up interleaved with traceback output.
369
375
370 2007-01-10 Ville Vainio <vivainio@gmail.com>
376 2007-01-10 Ville Vainio <vivainio@gmail.com>
371
377
372 * Extensions/envpersist.py: Turbocharged %env that remembers
378 * Extensions/envpersist.py: Turbocharged %env that remembers
373 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
379 env vars across sessions; e.g. "%env PATH+=;/opt/scripts" or
374 "%env VISUAL=jed".
380 "%env VISUAL=jed".
375
381
376 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
382 2007-01-05 Fernando Perez <Fernando.Perez@colorado.edu>
377
383
378 * IPython/iplib.py (showtraceback): ensure that we correctly call
384 * IPython/iplib.py (showtraceback): ensure that we correctly call
379 custom handlers in all cases (some with pdb were slipping through,
385 custom handlers in all cases (some with pdb were slipping through,
380 but I'm not exactly sure why).
386 but I'm not exactly sure why).
381
387
382 * IPython/Debugger.py (Tracer.__init__): added new class to
388 * IPython/Debugger.py (Tracer.__init__): added new class to
383 support set_trace-like usage of IPython's enhanced debugger.
389 support set_trace-like usage of IPython's enhanced debugger.
384
390
385 2006-12-24 Ville Vainio <vivainio@gmail.com>
391 2006-12-24 Ville Vainio <vivainio@gmail.com>
386
392
387 * ipmaker.py: more informative message when ipy_user_conf
393 * ipmaker.py: more informative message when ipy_user_conf
388 import fails (suggest running %upgrade).
394 import fails (suggest running %upgrade).
389
395
390 * tools/run_ipy_in_profiler.py: Utility to see where
396 * tools/run_ipy_in_profiler.py: Utility to see where
391 the time during IPython startup is spent.
397 the time during IPython startup is spent.
392
398
393 2006-12-20 Ville Vainio <vivainio@gmail.com>
399 2006-12-20 Ville Vainio <vivainio@gmail.com>
394
400
395 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
401 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
396
402
397 * ipapi.py: Add new ipapi method, expand_alias.
403 * ipapi.py: Add new ipapi method, expand_alias.
398
404
399 * Release.py: Bump up version to 0.7.4.svn
405 * Release.py: Bump up version to 0.7.4.svn
400
406
401 2006-12-17 Ville Vainio <vivainio@gmail.com>
407 2006-12-17 Ville Vainio <vivainio@gmail.com>
402
408
403 * Extensions/jobctrl.py: Fixed &cmd arg arg...
409 * Extensions/jobctrl.py: Fixed &cmd arg arg...
404 to work properly on posix too
410 to work properly on posix too
405
411
406 * Release.py: Update revnum (version is still just 0.7.3).
412 * Release.py: Update revnum (version is still just 0.7.3).
407
413
408 2006-12-15 Ville Vainio <vivainio@gmail.com>
414 2006-12-15 Ville Vainio <vivainio@gmail.com>
409
415
410 * scripts/ipython_win_post_install: create ipython.py in
416 * scripts/ipython_win_post_install: create ipython.py in
411 prefix + "/scripts".
417 prefix + "/scripts".
412
418
413 * Release.py: Update version to 0.7.3.
419 * Release.py: Update version to 0.7.3.
414
420
415 2006-12-14 Ville Vainio <vivainio@gmail.com>
421 2006-12-14 Ville Vainio <vivainio@gmail.com>
416
422
417 * scripts/ipython_win_post_install: Overwrite old shortcuts
423 * scripts/ipython_win_post_install: Overwrite old shortcuts
418 if they already exist
424 if they already exist
419
425
420 * Release.py: release 0.7.3rc2
426 * Release.py: release 0.7.3rc2
421
427
422 2006-12-13 Ville Vainio <vivainio@gmail.com>
428 2006-12-13 Ville Vainio <vivainio@gmail.com>
423
429
424 * Branch and update Release.py for 0.7.3rc1
430 * Branch and update Release.py for 0.7.3rc1
425
431
426 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
432 2006-12-13 Fernando Perez <Fernando.Perez@colorado.edu>
427
433
428 * IPython/Shell.py (IPShellWX): update for current WX naming
434 * IPython/Shell.py (IPShellWX): update for current WX naming
429 conventions, to avoid a deprecation warning with current WX
435 conventions, to avoid a deprecation warning with current WX
430 versions. Thanks to a report by Danny Shevitz.
436 versions. Thanks to a report by Danny Shevitz.
431
437
432 2006-12-12 Ville Vainio <vivainio@gmail.com>
438 2006-12-12 Ville Vainio <vivainio@gmail.com>
433
439
434 * ipmaker.py: apply david cournapeau's patch to make
440 * ipmaker.py: apply david cournapeau's patch to make
435 import_some work properly even when ipythonrc does
441 import_some work properly even when ipythonrc does
436 import_some on empty list (it was an old bug!).
442 import_some on empty list (it was an old bug!).
437
443
438 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
444 * UserConfig/ipy_user_conf.py, UserConfig/ipythonrc:
439 Add deprecation note to ipythonrc and a url to wiki
445 Add deprecation note to ipythonrc and a url to wiki
440 in ipy_user_conf.py
446 in ipy_user_conf.py
441
447
442
448
443 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
449 * Magic.py (%run): %run myscript.ipy now runs myscript.ipy
444 as if it was typed on IPython command prompt, i.e.
450 as if it was typed on IPython command prompt, i.e.
445 as IPython script.
451 as IPython script.
446
452
447 * example-magic.py, magic_grepl.py: remove outdated examples
453 * example-magic.py, magic_grepl.py: remove outdated examples
448
454
449 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
455 2006-12-11 Fernando Perez <Fernando.Perez@colorado.edu>
450
456
451 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
457 * IPython/iplib.py (debugger): prevent a nasty traceback if %debug
452 is called before any exception has occurred.
458 is called before any exception has occurred.
453
459
454 2006-12-08 Ville Vainio <vivainio@gmail.com>
460 2006-12-08 Ville Vainio <vivainio@gmail.com>
455
461
456 * Extensions/ipy_stock_completers.py: fix cd completer
462 * Extensions/ipy_stock_completers.py: fix cd completer
457 to translate /'s to \'s again.
463 to translate /'s to \'s again.
458
464
459 * completer.py: prevent traceback on file completions w/
465 * completer.py: prevent traceback on file completions w/
460 backslash.
466 backslash.
461
467
462 * Release.py: Update release number to 0.7.3b3 for release
468 * Release.py: Update release number to 0.7.3b3 for release
463
469
464 2006-12-07 Ville Vainio <vivainio@gmail.com>
470 2006-12-07 Ville Vainio <vivainio@gmail.com>
465
471
466 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
472 * Extensions/ipy_signals.py: Ignore ctrl+C in IPython process
467 while executing external code. Provides more shell-like behaviour
473 while executing external code. Provides more shell-like behaviour
468 and overall better response to ctrl + C / ctrl + break.
474 and overall better response to ctrl + C / ctrl + break.
469
475
470 * tools/make_tarball.py: new script to create tarball straight from svn
476 * tools/make_tarball.py: new script to create tarball straight from svn
471 (setup.py sdist doesn't work on win32).
477 (setup.py sdist doesn't work on win32).
472
478
473 * Extensions/ipy_stock_completers.py: fix cd completer to give up
479 * Extensions/ipy_stock_completers.py: fix cd completer to give up
474 on dirnames with spaces and use the default completer instead.
480 on dirnames with spaces and use the default completer instead.
475
481
476 * Revision.py: Change version to 0.7.3b2 for release.
482 * Revision.py: Change version to 0.7.3b2 for release.
477
483
478 2006-12-05 Ville Vainio <vivainio@gmail.com>
484 2006-12-05 Ville Vainio <vivainio@gmail.com>
479
485
480 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
486 * Magic.py, iplib.py, completer.py: Apply R. Bernstein's
481 pydb patch 4 (rm debug printing, py 2.5 checking)
487 pydb patch 4 (rm debug printing, py 2.5 checking)
482
488
483 2006-11-30 Walter Doerwald <walter@livinglogic.de>
489 2006-11-30 Walter Doerwald <walter@livinglogic.de>
484 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
490 * IPython/Extensions/ibrowse.py: Add two new commands to ibrowse:
485 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
491 "refresh" (mapped to "r") refreshes the screen by restarting the iterator.
486 "refreshfind" (mapped to "R") does the same but tries to go back to the same
492 "refreshfind" (mapped to "R") does the same but tries to go back to the same
487 object the cursor was on before the refresh. The command "markrange" is
493 object the cursor was on before the refresh. The command "markrange" is
488 mapped to "%" now.
494 mapped to "%" now.
489 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
495 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
490
496
491 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
497 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
492
498
493 * IPython/Magic.py (magic_debug): new %debug magic to activate the
499 * IPython/Magic.py (magic_debug): new %debug magic to activate the
494 interactive debugger on the last traceback, without having to call
500 interactive debugger on the last traceback, without having to call
495 %pdb and rerun your code. Made minor changes in various modules,
501 %pdb and rerun your code. Made minor changes in various modules,
496 should automatically recognize pydb if available.
502 should automatically recognize pydb if available.
497
503
498 2006-11-28 Ville Vainio <vivainio@gmail.com>
504 2006-11-28 Ville Vainio <vivainio@gmail.com>
499
505
500 * completer.py: If the text start with !, show file completions
506 * completer.py: If the text start with !, show file completions
501 properly. This helps when trying to complete command name
507 properly. This helps when trying to complete command name
502 for shell escapes.
508 for shell escapes.
503
509
504 2006-11-27 Ville Vainio <vivainio@gmail.com>
510 2006-11-27 Ville Vainio <vivainio@gmail.com>
505
511
506 * ipy_stock_completers.py: bzr completer submitted by Stefan van
512 * ipy_stock_completers.py: bzr completer submitted by Stefan van
507 der Walt. Clean up svn and hg completers by using a common
513 der Walt. Clean up svn and hg completers by using a common
508 vcs_completer.
514 vcs_completer.
509
515
510 2006-11-26 Ville Vainio <vivainio@gmail.com>
516 2006-11-26 Ville Vainio <vivainio@gmail.com>
511
517
512 * Remove ipconfig and %config; you should use _ip.options structure
518 * Remove ipconfig and %config; you should use _ip.options structure
513 directly instead!
519 directly instead!
514
520
515 * genutils.py: add wrap_deprecated function for deprecating callables
521 * genutils.py: add wrap_deprecated function for deprecating callables
516
522
517 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
523 * iplib.py: deprecate ipmagic, ipsystem, ipalias. Use _ip.magic and
518 _ip.system instead. ipalias is redundant.
524 _ip.system instead. ipalias is redundant.
519
525
520 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
526 * Magic.py: %rehashdir no longer aliases 'cmdname' to 'cmdname.exe' on
521 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
527 win32, but just 'cmdname'. Other extensions (non-'exe') are still made
522 explicit.
528 explicit.
523
529
524 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
530 * ipy_stock_completers.py: 'hg' (mercurial VCS) now has a custom
525 completer. Try it by entering 'hg ' and pressing tab.
531 completer. Try it by entering 'hg ' and pressing tab.
526
532
527 * macro.py: Give Macro a useful __repr__ method
533 * macro.py: Give Macro a useful __repr__ method
528
534
529 * Magic.py: %whos abbreviates the typename of Macro for brevity.
535 * Magic.py: %whos abbreviates the typename of Macro for brevity.
530
536
531 2006-11-24 Walter Doerwald <walter@livinglogic.de>
537 2006-11-24 Walter Doerwald <walter@livinglogic.de>
532 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
538 * IPython/Extensions/astyle.py: Do a relative import of ipipe, so that
533 we don't get a duplicate ipipe module, where registration of the xrepr
539 we don't get a duplicate ipipe module, where registration of the xrepr
534 implementation for Text is useless.
540 implementation for Text is useless.
535
541
536 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
542 * IPython/Extensions/ipipe.py: Fix __xrepr__() implementation for ils.
537
543
538 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
544 * IPython/Extensions/ibrowse.py: Fix keymapping for the enter command.
539
545
540 2006-11-24 Ville Vainio <vivainio@gmail.com>
546 2006-11-24 Ville Vainio <vivainio@gmail.com>
541
547
542 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
548 * Magic.py, manual_base.lyx: Kirill Smelkov patch:
543 try to use "cProfile" instead of the slower pure python
549 try to use "cProfile" instead of the slower pure python
544 "profile"
550 "profile"
545
551
546 2006-11-23 Ville Vainio <vivainio@gmail.com>
552 2006-11-23 Ville Vainio <vivainio@gmail.com>
547
553
548 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
554 * manual_base.lyx: Kirill Smelkov patch: Fix wrong
549 Qt+IPython+Designer link in documentation.
555 Qt+IPython+Designer link in documentation.
550
556
551 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
557 * Extensions/ipy_pydb.py: R. Bernstein's patch for passing
552 correct Pdb object to %pydb.
558 correct Pdb object to %pydb.
553
559
554
560
555 2006-11-22 Walter Doerwald <walter@livinglogic.de>
561 2006-11-22 Walter Doerwald <walter@livinglogic.de>
556 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
562 * IPython/Extensions/astyle.py: Text needs it's own implemenation of the
557 generic xrepr(), otherwise the list implementation would kick in.
563 generic xrepr(), otherwise the list implementation would kick in.
558
564
559 2006-11-21 Ville Vainio <vivainio@gmail.com>
565 2006-11-21 Ville Vainio <vivainio@gmail.com>
560
566
561 * upgrade_dir.py: Now actually overwrites a nonmodified user file
567 * upgrade_dir.py: Now actually overwrites a nonmodified user file
562 with one from UserConfig.
568 with one from UserConfig.
563
569
564 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
570 * ipy_profile_sh.py: Add dummy "depth" to var_expand lambda,
565 it was missing which broke the sh profile.
571 it was missing which broke the sh profile.
566
572
567 * completer.py: file completer now uses explicit '/' instead
573 * completer.py: file completer now uses explicit '/' instead
568 of os.path.join, expansion of 'foo' was broken on win32
574 of os.path.join, expansion of 'foo' was broken on win32
569 if there was one directory with name 'foobar'.
575 if there was one directory with name 'foobar'.
570
576
571 * A bunch of patches from Kirill Smelkov:
577 * A bunch of patches from Kirill Smelkov:
572
578
573 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
579 * [patch 9/9] doc: point bug-tracker URL to IPythons trac-tickets.
574
580
575 * [patch 7/9] Implement %page -r (page in raw mode) -
581 * [patch 7/9] Implement %page -r (page in raw mode) -
576
582
577 * [patch 5/9] ScientificPython webpage has moved
583 * [patch 5/9] ScientificPython webpage has moved
578
584
579 * [patch 4/9] The manual mentions %ds, should be %dhist
585 * [patch 4/9] The manual mentions %ds, should be %dhist
580
586
581 * [patch 3/9] Kill old bits from %prun doc.
587 * [patch 3/9] Kill old bits from %prun doc.
582
588
583 * [patch 1/9] Fix typos here and there.
589 * [patch 1/9] Fix typos here and there.
584
590
585 2006-11-08 Ville Vainio <vivainio@gmail.com>
591 2006-11-08 Ville Vainio <vivainio@gmail.com>
586
592
587 * completer.py (attr_matches): catch all exceptions raised
593 * completer.py (attr_matches): catch all exceptions raised
588 by eval of expr with dots.
594 by eval of expr with dots.
589
595
590 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
596 2006-11-07 Fernando Perez <Fernando.Perez@colorado.edu>
591
597
592 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
598 * IPython/iplib.py (runsource): Prepend an 'if 1:' to the user
593 input if it starts with whitespace. This allows you to paste
599 input if it starts with whitespace. This allows you to paste
594 indented input from any editor without manually having to type in
600 indented input from any editor without manually having to type in
595 the 'if 1:', which is convenient when working interactively.
601 the 'if 1:', which is convenient when working interactively.
596 Slightly modifed version of a patch by Bo Peng
602 Slightly modifed version of a patch by Bo Peng
597 <bpeng-AT-rice.edu>.
603 <bpeng-AT-rice.edu>.
598
604
599 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
605 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
600
606
601 * IPython/irunner.py (main): modified irunner so it automatically
607 * IPython/irunner.py (main): modified irunner so it automatically
602 recognizes the right runner to use based on the extension (.py for
608 recognizes the right runner to use based on the extension (.py for
603 python, .ipy for ipython and .sage for sage).
609 python, .ipy for ipython and .sage for sage).
604
610
605 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
611 * IPython/iplib.py (InteractiveShell.ipconfig): new builtin, also
606 visible in ipapi as ip.config(), to programatically control the
612 visible in ipapi as ip.config(), to programatically control the
607 internal rc object. There's an accompanying %config magic for
613 internal rc object. There's an accompanying %config magic for
608 interactive use, which has been enhanced to match the
614 interactive use, which has been enhanced to match the
609 funtionality in ipconfig.
615 funtionality in ipconfig.
610
616
611 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
617 * IPython/Magic.py (magic_system_verbose): Change %system_verbose
612 so it's not just a toggle, it now takes an argument. Add support
618 so it's not just a toggle, it now takes an argument. Add support
613 for a customizable header when making system calls, as the new
619 for a customizable header when making system calls, as the new
614 system_header variable in the ipythonrc file.
620 system_header variable in the ipythonrc file.
615
621
616 2006-11-03 Walter Doerwald <walter@livinglogic.de>
622 2006-11-03 Walter Doerwald <walter@livinglogic.de>
617
623
618 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
624 * IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now
619 generic functions (using Philip J. Eby's simplegeneric package).
625 generic functions (using Philip J. Eby's simplegeneric package).
620 This makes it possible to customize the display of third-party classes
626 This makes it possible to customize the display of third-party classes
621 without having to monkeypatch them. xiter() no longer supports a mode
627 without having to monkeypatch them. xiter() no longer supports a mode
622 argument and the XMode class has been removed. The same functionality can
628 argument and the XMode class has been removed. The same functionality can
623 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
629 be implemented via IterAttributeDescriptor and IterMethodDescriptor.
624 One consequence of the switch to generic functions is that xrepr() and
630 One consequence of the switch to generic functions is that xrepr() and
625 xattrs() implementation must define the default value for the mode
631 xattrs() implementation must define the default value for the mode
626 argument themselves and xattrs() implementations must return real
632 argument themselves and xattrs() implementations must return real
627 descriptors.
633 descriptors.
628
634
629 * IPython/external: This new subpackage will contain all third-party
635 * IPython/external: This new subpackage will contain all third-party
630 packages that are bundled with IPython. (The first one is simplegeneric).
636 packages that are bundled with IPython. (The first one is simplegeneric).
631
637
632 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
638 * IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent
633 directory which as been dropped in r1703.
639 directory which as been dropped in r1703.
634
640
635 * IPython/Extensions/ipipe.py (iless): Fixed.
641 * IPython/Extensions/ipipe.py (iless): Fixed.
636
642
637 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
643 * IPython/Extensions/ibrowse: Fixed sorting under Python 2.3.
638
644
639 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
645 2006-11-03 Fernando Perez <Fernando.Perez@colorado.edu>
640
646
641 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
647 * IPython/iplib.py (InteractiveShell.var_expand): fix stack
642 handling in variable expansion so that shells and magics recognize
648 handling in variable expansion so that shells and magics recognize
643 function local scopes correctly. Bug reported by Brian.
649 function local scopes correctly. Bug reported by Brian.
644
650
645 * scripts/ipython: remove the very first entry in sys.path which
651 * scripts/ipython: remove the very first entry in sys.path which
646 Python auto-inserts for scripts, so that sys.path under IPython is
652 Python auto-inserts for scripts, so that sys.path under IPython is
647 as similar as possible to that under plain Python.
653 as similar as possible to that under plain Python.
648
654
649 * IPython/completer.py (IPCompleter.file_matches): Fix
655 * IPython/completer.py (IPCompleter.file_matches): Fix
650 tab-completion so that quotes are not closed unless the completion
656 tab-completion so that quotes are not closed unless the completion
651 is unambiguous. After a request by Stefan. Minor cleanups in
657 is unambiguous. After a request by Stefan. Minor cleanups in
652 ipy_stock_completers.
658 ipy_stock_completers.
653
659
654 2006-11-02 Ville Vainio <vivainio@gmail.com>
660 2006-11-02 Ville Vainio <vivainio@gmail.com>
655
661
656 * ipy_stock_completers.py: Add %run and %cd completers.
662 * ipy_stock_completers.py: Add %run and %cd completers.
657
663
658 * completer.py: Try running custom completer for both
664 * completer.py: Try running custom completer for both
659 "foo" and "%foo" if the command is just "foo". Ignore case
665 "foo" and "%foo" if the command is just "foo". Ignore case
660 when filtering possible completions.
666 when filtering possible completions.
661
667
662 * UserConfig/ipy_user_conf.py: install stock completers as default
668 * UserConfig/ipy_user_conf.py: install stock completers as default
663
669
664 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
670 * iplib.py (history_saving_wrapper), debugger(), ipy_pydb.py:
665 simplified readline history save / restore through a wrapper
671 simplified readline history save / restore through a wrapper
666 function
672 function
667
673
668
674
669 2006-10-31 Ville Vainio <vivainio@gmail.com>
675 2006-10-31 Ville Vainio <vivainio@gmail.com>
670
676
671 * strdispatch.py, completer.py, ipy_stock_completers.py:
677 * strdispatch.py, completer.py, ipy_stock_completers.py:
672 Allow str_key ("command") in completer hooks. Implement
678 Allow str_key ("command") in completer hooks. Implement
673 trivial completer for 'import' (stdlib modules only). Rename
679 trivial completer for 'import' (stdlib modules only). Rename
674 ipy_linux_package_managers.py to ipy_stock_completers.py.
680 ipy_linux_package_managers.py to ipy_stock_completers.py.
675 SVN completer.
681 SVN completer.
676
682
677 * Extensions/ledit.py: %magic line editor for easily and
683 * Extensions/ledit.py: %magic line editor for easily and
678 incrementally manipulating lists of strings. The magic command
684 incrementally manipulating lists of strings. The magic command
679 name is %led.
685 name is %led.
680
686
681 2006-10-30 Ville Vainio <vivainio@gmail.com>
687 2006-10-30 Ville Vainio <vivainio@gmail.com>
682
688
683 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
689 * Debugger.py, iplib.py (debugger()): Add last set of Rocky
684 Bernsteins's patches for pydb integration.
690 Bernsteins's patches for pydb integration.
685 http://bashdb.sourceforge.net/pydb/
691 http://bashdb.sourceforge.net/pydb/
686
692
687 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
693 * strdispatch.py, iplib.py, completer.py, IPython/__init__.py,
688 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
694 Extensions/ipy_linux_package_managers.py, hooks.py: Implement
689 custom completer hook to allow the users to implement their own
695 custom completer hook to allow the users to implement their own
690 completers. See ipy_linux_package_managers.py for example. The
696 completers. See ipy_linux_package_managers.py for example. The
691 hook name is 'complete_command'.
697 hook name is 'complete_command'.
692
698
693 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
699 2006-10-28 Fernando Perez <Fernando.Perez@colorado.edu>
694
700
695 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
701 * IPython/UserConfig/ipythonrc-scipy: minor cleanups to remove old
696 Numeric leftovers.
702 Numeric leftovers.
697
703
698 * ipython.el (py-execute-region): apply Stefan's patch to fix
704 * ipython.el (py-execute-region): apply Stefan's patch to fix
699 garbled results if the python shell hasn't been previously started.
705 garbled results if the python shell hasn't been previously started.
700
706
701 * IPython/genutils.py (arg_split): moved to genutils, since it's a
707 * IPython/genutils.py (arg_split): moved to genutils, since it's a
702 pretty generic function and useful for other things.
708 pretty generic function and useful for other things.
703
709
704 * IPython/OInspect.py (getsource): Add customizable source
710 * IPython/OInspect.py (getsource): Add customizable source
705 extractor. After a request/patch form W. Stein (SAGE).
711 extractor. After a request/patch form W. Stein (SAGE).
706
712
707 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
713 * IPython/irunner.py (InteractiveRunner.run_source): reset tty
708 window size to a more reasonable value from what pexpect does,
714 window size to a more reasonable value from what pexpect does,
709 since their choice causes wrapping bugs with long input lines.
715 since their choice causes wrapping bugs with long input lines.
710
716
711 2006-10-28 Ville Vainio <vivainio@gmail.com>
717 2006-10-28 Ville Vainio <vivainio@gmail.com>
712
718
713 * Magic.py (%run): Save and restore the readline history from
719 * Magic.py (%run): Save and restore the readline history from
714 file around %run commands to prevent side effects from
720 file around %run commands to prevent side effects from
715 %runned programs that might use readline (e.g. pydb).
721 %runned programs that might use readline (e.g. pydb).
716
722
717 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
723 * extensions/ipy_pydb.py: Adds %pydb magic when imported, for
718 invoking the pydb enhanced debugger.
724 invoking the pydb enhanced debugger.
719
725
720 2006-10-23 Walter Doerwald <walter@livinglogic.de>
726 2006-10-23 Walter Doerwald <walter@livinglogic.de>
721
727
722 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
728 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
723 call the base class method and propagate the return value to
729 call the base class method and propagate the return value to
724 ifile. This is now done by path itself.
730 ifile. This is now done by path itself.
725
731
726 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
732 2006-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
727
733
728 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
734 * IPython/ipapi.py (IPApi.__init__): Added new entry to public
729 api: set_crash_handler(), to expose the ability to change the
735 api: set_crash_handler(), to expose the ability to change the
730 internal crash handler.
736 internal crash handler.
731
737
732 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
738 * IPython/CrashHandler.py (CrashHandler.__init__): abstract out
733 the various parameters of the crash handler so that apps using
739 the various parameters of the crash handler so that apps using
734 IPython as their engine can customize crash handling. Ipmlemented
740 IPython as their engine can customize crash handling. Ipmlemented
735 at the request of SAGE.
741 at the request of SAGE.
736
742
737 2006-10-14 Ville Vainio <vivainio@gmail.com>
743 2006-10-14 Ville Vainio <vivainio@gmail.com>
738
744
739 * Magic.py, ipython.el: applied first "safe" part of Rocky
745 * Magic.py, ipython.el: applied first "safe" part of Rocky
740 Bernstein's patch set for pydb integration.
746 Bernstein's patch set for pydb integration.
741
747
742 * Magic.py (%unalias, %alias): %store'd aliases can now be
748 * Magic.py (%unalias, %alias): %store'd aliases can now be
743 removed with '%unalias'. %alias w/o args now shows most
749 removed with '%unalias'. %alias w/o args now shows most
744 interesting (stored / manually defined) aliases last
750 interesting (stored / manually defined) aliases last
745 where they catch the eye w/o scrolling.
751 where they catch the eye w/o scrolling.
746
752
747 * Magic.py (%rehashx), ext_rehashdir.py: files with
753 * Magic.py (%rehashx), ext_rehashdir.py: files with
748 'py' extension are always considered executable, even
754 'py' extension are always considered executable, even
749 when not in PATHEXT environment variable.
755 when not in PATHEXT environment variable.
750
756
751 2006-10-12 Ville Vainio <vivainio@gmail.com>
757 2006-10-12 Ville Vainio <vivainio@gmail.com>
752
758
753 * jobctrl.py: Add new "jobctrl" extension for spawning background
759 * jobctrl.py: Add new "jobctrl" extension for spawning background
754 processes with "&find /". 'import jobctrl' to try it out. Requires
760 processes with "&find /". 'import jobctrl' to try it out. Requires
755 'subprocess' module, standard in python 2.4+.
761 'subprocess' module, standard in python 2.4+.
756
762
757 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
763 * iplib.py (expand_aliases, handle_alias): Aliases expand transitively,
758 so if foo -> bar and bar -> baz, then foo -> baz.
764 so if foo -> bar and bar -> baz, then foo -> baz.
759
765
760 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
766 2006-10-09 Fernando Perez <Fernando.Perez@colorado.edu>
761
767
762 * IPython/Magic.py (Magic.parse_options): add a new posix option
768 * IPython/Magic.py (Magic.parse_options): add a new posix option
763 to allow parsing of input args in magics that doesn't strip quotes
769 to allow parsing of input args in magics that doesn't strip quotes
764 (if posix=False). This also closes %timeit bug reported by
770 (if posix=False). This also closes %timeit bug reported by
765 Stefan.
771 Stefan.
766
772
767 2006-10-03 Ville Vainio <vivainio@gmail.com>
773 2006-10-03 Ville Vainio <vivainio@gmail.com>
768
774
769 * iplib.py (raw_input, interact): Return ValueError catching for
775 * iplib.py (raw_input, interact): Return ValueError catching for
770 raw_input. Fixes infinite loop for sys.stdin.close() or
776 raw_input. Fixes infinite loop for sys.stdin.close() or
771 sys.stdout.close().
777 sys.stdout.close().
772
778
773 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
779 2006-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
774
780
775 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
781 * IPython/irunner.py (InteractiveRunner.run_source): small fixes
776 to help in handling doctests. irunner is now pretty useful for
782 to help in handling doctests. irunner is now pretty useful for
777 running standalone scripts and simulate a full interactive session
783 running standalone scripts and simulate a full interactive session
778 in a format that can be then pasted as a doctest.
784 in a format that can be then pasted as a doctest.
779
785
780 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
786 * IPython/iplib.py (InteractiveShell.__init__): Install exit/quit
781 on top of the default (useless) ones. This also fixes the nasty
787 on top of the default (useless) ones. This also fixes the nasty
782 way in which 2.5's Quitter() exits (reverted [1785]).
788 way in which 2.5's Quitter() exits (reverted [1785]).
783
789
784 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
790 * IPython/Debugger.py (Pdb.__init__): Fix ipdb to work with python
785 2.5.
791 2.5.
786
792
787 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
793 * IPython/ultraTB.py (TBTools.set_colors): Make sure that ipdb
788 color scheme is updated as well when color scheme is changed
794 color scheme is updated as well when color scheme is changed
789 interactively.
795 interactively.
790
796
791 2006-09-27 Ville Vainio <vivainio@gmail.com>
797 2006-09-27 Ville Vainio <vivainio@gmail.com>
792
798
793 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
799 * iplib.py (raw_input): python 2.5 closes stdin on quit -> avoid
794 infinite loop and just exit. It's a hack, but will do for a while.
800 infinite loop and just exit. It's a hack, but will do for a while.
795
801
796 2006-08-25 Walter Doerwald <walter@livinglogic.de>
802 2006-08-25 Walter Doerwald <walter@livinglogic.de>
797
803
798 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
804 * IPython/Extensions/ipipe.py (ils): Add arguments dirs and files to
799 the constructor, this makes it possible to get a list of only directories
805 the constructor, this makes it possible to get a list of only directories
800 or only files.
806 or only files.
801
807
802 2006-08-12 Ville Vainio <vivainio@gmail.com>
808 2006-08-12 Ville Vainio <vivainio@gmail.com>
803
809
804 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
810 * Fakemodule.py, OInspect.py: Reverted 2006-08-11 mods,
805 they broke unittest
811 they broke unittest
806
812
807 2006-08-11 Ville Vainio <vivainio@gmail.com>
813 2006-08-11 Ville Vainio <vivainio@gmail.com>
808
814
809 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
815 * Fakemodule.py, OInspect.py: remove 2006-08-09 monkepatch
810 by resolving issue properly, i.e. by inheriting FakeModule
816 by resolving issue properly, i.e. by inheriting FakeModule
811 from types.ModuleType. Pickling ipython interactive data
817 from types.ModuleType. Pickling ipython interactive data
812 should still work as usual (testing appreciated).
818 should still work as usual (testing appreciated).
813
819
814 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
820 2006-08-09 Fernando Perez <Fernando.Perez@colorado.edu>
815
821
816 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
822 * IPython/OInspect.py: monkeypatch inspect from the stdlib if
817 running under python 2.3 with code from 2.4 to fix a bug with
823 running under python 2.3 with code from 2.4 to fix a bug with
818 help(). Reported by the Debian maintainers, Norbert Tretkowski
824 help(). Reported by the Debian maintainers, Norbert Tretkowski
819 <norbert-AT-tretkowski.de> and Alexandre Fayolle
825 <norbert-AT-tretkowski.de> and Alexandre Fayolle
820 <afayolle-AT-debian.org>.
826 <afayolle-AT-debian.org>.
821
827
822 2006-08-04 Walter Doerwald <walter@livinglogic.de>
828 2006-08-04 Walter Doerwald <walter@livinglogic.de>
823
829
824 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
830 * IPython/Extensions/ibrowse.py: Fixed the help message in the footer
825 (which was displaying "quit" twice).
831 (which was displaying "quit" twice).
826
832
827 2006-07-28 Walter Doerwald <walter@livinglogic.de>
833 2006-07-28 Walter Doerwald <walter@livinglogic.de>
828
834
829 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
835 * IPython/Extensions/ipipe.py: Fix isort.__iter__() (was still using
830 the mode argument).
836 the mode argument).
831
837
832 2006-07-27 Walter Doerwald <walter@livinglogic.de>
838 2006-07-27 Walter Doerwald <walter@livinglogic.de>
833
839
834 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
840 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
835 not running under IPython.
841 not running under IPython.
836
842
837 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
843 * IPython/Extensions/ipipe.py: Rename XAttr to AttributeDetail
838 and make it iterable (iterating over the attribute itself). Add two new
844 and make it iterable (iterating over the attribute itself). Add two new
839 magic strings for __xattrs__(): If the string starts with "-", the attribute
845 magic strings for __xattrs__(): If the string starts with "-", the attribute
840 will not be displayed in ibrowse's detail view (but it can still be
846 will not be displayed in ibrowse's detail view (but it can still be
841 iterated over). This makes it possible to add attributes that are large
847 iterated over). This makes it possible to add attributes that are large
842 lists or generator methods to the detail view. Replace magic attribute names
848 lists or generator methods to the detail view. Replace magic attribute names
843 and _attrname() and _getattr() with "descriptors": For each type of magic
849 and _attrname() and _getattr() with "descriptors": For each type of magic
844 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
850 attribute name there's a subclass of Descriptor: None -> SelfDescriptor();
845 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
851 "foo" -> AttributeDescriptor("foo"); "foo()" -> MethodDescriptor("foo");
846 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
852 "-foo" -> IterAttributeDescriptor("foo"); "-foo()" -> IterMethodDescriptor("foo");
847 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
853 foo() -> FunctionDescriptor(foo). Magic strings returned from __xattrs__()
848 are still supported.
854 are still supported.
849
855
850 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
856 * IPython/Extensions/ibrowse.py: If fetching the next row from the input
851 fails in ibrowse.fetch(), the exception object is added as the last item
857 fails in ibrowse.fetch(), the exception object is added as the last item
852 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
858 and item fetching is canceled. This prevents ibrowse from aborting if e.g.
853 a generator throws an exception midway through execution.
859 a generator throws an exception midway through execution.
854
860
855 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
861 * IPython/Extensions/ipipe.py: Turn ifile's properties mimetype and
856 encoding into methods.
862 encoding into methods.
857
863
858 2006-07-26 Ville Vainio <vivainio@gmail.com>
864 2006-07-26 Ville Vainio <vivainio@gmail.com>
859
865
860 * iplib.py: history now stores multiline input as single
866 * iplib.py: history now stores multiline input as single
861 history entries. Patch by Jorgen Cederlof.
867 history entries. Patch by Jorgen Cederlof.
862
868
863 2006-07-18 Walter Doerwald <walter@livinglogic.de>
869 2006-07-18 Walter Doerwald <walter@livinglogic.de>
864
870
865 * IPython/Extensions/ibrowse.py: Make cursor visible over
871 * IPython/Extensions/ibrowse.py: Make cursor visible over
866 non existing attributes.
872 non existing attributes.
867
873
868 2006-07-14 Walter Doerwald <walter@livinglogic.de>
874 2006-07-14 Walter Doerwald <walter@livinglogic.de>
869
875
870 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
876 * IPython/Extensions/ipipe.py (ix): Use os.popen4() so that the
871 error output of the running command doesn't mess up the screen.
877 error output of the running command doesn't mess up the screen.
872
878
873 2006-07-13 Walter Doerwald <walter@livinglogic.de>
879 2006-07-13 Walter Doerwald <walter@livinglogic.de>
874
880
875 * IPython/Extensions/ipipe.py (isort): Make isort usable without
881 * IPython/Extensions/ipipe.py (isort): Make isort usable without
876 argument. This sorts the items themselves.
882 argument. This sorts the items themselves.
877
883
878 2006-07-12 Walter Doerwald <walter@livinglogic.de>
884 2006-07-12 Walter Doerwald <walter@livinglogic.de>
879
885
880 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
886 * IPython/Extensions/ipipe.py (eval, ifilter, isort, ieval):
881 Compile expression strings into code objects. This should speed
887 Compile expression strings into code objects. This should speed
882 up ifilter and friends somewhat.
888 up ifilter and friends somewhat.
883
889
884 2006-07-08 Ville Vainio <vivainio@gmail.com>
890 2006-07-08 Ville Vainio <vivainio@gmail.com>
885
891
886 * Magic.py: %cpaste now strips > from the beginning of lines
892 * Magic.py: %cpaste now strips > from the beginning of lines
887 to ease pasting quoted code from emails. Contributed by
893 to ease pasting quoted code from emails. Contributed by
888 Stefan van der Walt.
894 Stefan van der Walt.
889
895
890 2006-06-29 Ville Vainio <vivainio@gmail.com>
896 2006-06-29 Ville Vainio <vivainio@gmail.com>
891
897
892 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
898 * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab
893 mode, patch contributed by Darren Dale. NEEDS TESTING!
899 mode, patch contributed by Darren Dale. NEEDS TESTING!
894
900
895 2006-06-28 Walter Doerwald <walter@livinglogic.de>
901 2006-06-28 Walter Doerwald <walter@livinglogic.de>
896
902
897 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
903 * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row
898 a blue background. Fix fetching new display rows when the browser
904 a blue background. Fix fetching new display rows when the browser
899 scrolls more than a screenful (e.g. by using the goto command).
905 scrolls more than a screenful (e.g. by using the goto command).
900
906
901 2006-06-27 Ville Vainio <vivainio@gmail.com>
907 2006-06-27 Ville Vainio <vivainio@gmail.com>
902
908
903 * Magic.py (_inspect, _ofind) Apply David Huard's
909 * Magic.py (_inspect, _ofind) Apply David Huard's
904 patch for displaying the correct docstring for 'property'
910 patch for displaying the correct docstring for 'property'
905 attributes.
911 attributes.
906
912
907 2006-06-23 Walter Doerwald <walter@livinglogic.de>
913 2006-06-23 Walter Doerwald <walter@livinglogic.de>
908
914
909 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
915 * IPython/Extensions/ibrowse.py: Put the documentation of the keyboard
910 commands into the methods implementing them.
916 commands into the methods implementing them.
911
917
912 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
918 2006-06-22 Fernando Perez <Fernando.Perez@colorado.edu>
913
919
914 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
920 * ipython.el (ipython-indentation-hook): cleanup patch, submitted
915 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
921 by Kov Chai <tchaikov-AT-gmail.com>. He notes that the original
916 autoindent support was authored by Jin Liu.
922 autoindent support was authored by Jin Liu.
917
923
918 2006-06-22 Walter Doerwald <walter@livinglogic.de>
924 2006-06-22 Walter Doerwald <walter@livinglogic.de>
919
925
920 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
926 * IPython/Extensions/ibrowse.py: Replace the plain dictionaries used
921 for keymaps with a custom class that simplifies handling.
927 for keymaps with a custom class that simplifies handling.
922
928
923 2006-06-19 Walter Doerwald <walter@livinglogic.de>
929 2006-06-19 Walter Doerwald <walter@livinglogic.de>
924
930
925 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
931 * IPython/Extensions/ibrowse.py: ibrowse now properly handles terminal
926 resizing. This requires Python 2.5 to work.
932 resizing. This requires Python 2.5 to work.
927
933
928 2006-06-16 Walter Doerwald <walter@livinglogic.de>
934 2006-06-16 Walter Doerwald <walter@livinglogic.de>
929
935
930 * IPython/Extensions/ibrowse.py: Add two new commands to
936 * IPython/Extensions/ibrowse.py: Add two new commands to
931 ibrowse: "hideattr" (mapped to "h") hides the attribute under
937 ibrowse: "hideattr" (mapped to "h") hides the attribute under
932 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
938 the cursor. "unhiderattrs" (mapped to "H") reveals all hidden
933 attributes again. Remapped the help command to "?". Display
939 attributes again. Remapped the help command to "?". Display
934 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
940 keycodes in the range 0x01-0x1F as CTRL-xx. Add CTRL-a and CTRL-e
935 as keys for the "home" and "end" commands. Add three new commands
941 as keys for the "home" and "end" commands. Add three new commands
936 to the input mode for "find" and friends: "delend" (CTRL-K)
942 to the input mode for "find" and friends: "delend" (CTRL-K)
937 deletes to the end of line. "incsearchup" searches upwards in the
943 deletes to the end of line. "incsearchup" searches upwards in the
938 command history for an input that starts with the text before the cursor.
944 command history for an input that starts with the text before the cursor.
939 "incsearchdown" does the same downwards. Removed a bogus mapping of
945 "incsearchdown" does the same downwards. Removed a bogus mapping of
940 the x key to "delete".
946 the x key to "delete".
941
947
942 2006-06-15 Ville Vainio <vivainio@gmail.com>
948 2006-06-15 Ville Vainio <vivainio@gmail.com>
943
949
944 * iplib.py, hooks.py: Added new generate_prompt hook that can be
950 * iplib.py, hooks.py: Added new generate_prompt hook that can be
945 used to create prompts dynamically, instead of the "old" way of
951 used to create prompts dynamically, instead of the "old" way of
946 assigning "magic" strings to prompt_in1 and prompt_in2. The old
952 assigning "magic" strings to prompt_in1 and prompt_in2. The old
947 way still works (it's invoked by the default hook), of course.
953 way still works (it's invoked by the default hook), of course.
948
954
949 * Prompts.py: added generate_output_prompt hook for altering output
955 * Prompts.py: added generate_output_prompt hook for altering output
950 prompt
956 prompt
951
957
952 * Release.py: Changed version string to 0.7.3.svn.
958 * Release.py: Changed version string to 0.7.3.svn.
953
959
954 2006-06-15 Walter Doerwald <walter@livinglogic.de>
960 2006-06-15 Walter Doerwald <walter@livinglogic.de>
955
961
956 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
962 * IPython/Extensions/ibrowse.py: Change _BrowserLevel.moveto() so that
957 the call to fetch() always tries to fetch enough data for at least one
963 the call to fetch() always tries to fetch enough data for at least one
958 full screen. This makes it possible to simply call moveto(0,0,True) in
964 full screen. This makes it possible to simply call moveto(0,0,True) in
959 the constructor. Fix typos and removed the obsolete goto attribute.
965 the constructor. Fix typos and removed the obsolete goto attribute.
960
966
961 2006-06-12 Ville Vainio <vivainio@gmail.com>
967 2006-06-12 Ville Vainio <vivainio@gmail.com>
962
968
963 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
969 * ipy_profile_sh.py: applied Krisha Mohan Gundu's patch for
964 allowing $variable interpolation within multiline statements,
970 allowing $variable interpolation within multiline statements,
965 though so far only with "sh" profile for a testing period.
971 though so far only with "sh" profile for a testing period.
966 The patch also enables splitting long commands with \ but it
972 The patch also enables splitting long commands with \ but it
967 doesn't work properly yet.
973 doesn't work properly yet.
968
974
969 2006-06-12 Walter Doerwald <walter@livinglogic.de>
975 2006-06-12 Walter Doerwald <walter@livinglogic.de>
970
976
971 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
977 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
972 input history and the position of the cursor in the input history for
978 input history and the position of the cursor in the input history for
973 the find, findbackwards and goto command.
979 the find, findbackwards and goto command.
974
980
975 2006-06-10 Walter Doerwald <walter@livinglogic.de>
981 2006-06-10 Walter Doerwald <walter@livinglogic.de>
976
982
977 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
983 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
978 implements the basic functionality of browser commands that require
984 implements the basic functionality of browser commands that require
979 input. Reimplement the goto, find and findbackwards commands as
985 input. Reimplement the goto, find and findbackwards commands as
980 subclasses of _CommandInput. Add an input history and keymaps to those
986 subclasses of _CommandInput. Add an input history and keymaps to those
981 commands. Add "\r" as a keyboard shortcut for the enterdefault and
987 commands. Add "\r" as a keyboard shortcut for the enterdefault and
982 execute commands.
988 execute commands.
983
989
984 2006-06-07 Ville Vainio <vivainio@gmail.com>
990 2006-06-07 Ville Vainio <vivainio@gmail.com>
985
991
986 * iplib.py: ipython mybatch.ipy exits ipython immediately after
992 * iplib.py: ipython mybatch.ipy exits ipython immediately after
987 running the batch files instead of leaving the session open.
993 running the batch files instead of leaving the session open.
988
994
989 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
995 2006-06-07 Fernando Perez <Fernando.Perez@colorado.edu>
990
996
991 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
997 * IPython/iplib.py (InteractiveShell.__init__): update BSD fix, as
992 the original fix was incomplete. Patch submitted by W. Maier.
998 the original fix was incomplete. Patch submitted by W. Maier.
993
999
994 2006-06-07 Ville Vainio <vivainio@gmail.com>
1000 2006-06-07 Ville Vainio <vivainio@gmail.com>
995
1001
996 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
1002 * iplib.py,Magic.py, ipmaker.py (magic_rehashx):
997 Confirmation prompts can be supressed by 'quiet' option.
1003 Confirmation prompts can be supressed by 'quiet' option.
998 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
1004 _ip.options.quiet = 1 means "assume yes for all yes/no queries".
999
1005
1000 2006-06-06 *** Released version 0.7.2
1006 2006-06-06 *** Released version 0.7.2
1001
1007
1002 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1008 2006-06-06 Fernando Perez <Fernando.Perez@colorado.edu>
1003
1009
1004 * IPython/Release.py (version): Made 0.7.2 final for release.
1010 * IPython/Release.py (version): Made 0.7.2 final for release.
1005 Repo tagged and release cut.
1011 Repo tagged and release cut.
1006
1012
1007 2006-06-05 Ville Vainio <vivainio@gmail.com>
1013 2006-06-05 Ville Vainio <vivainio@gmail.com>
1008
1014
1009 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1015 * Magic.py (magic_rehashx): Honor no_alias list earlier in
1010 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1016 %rehashx, to avoid clobbering builtins in ipy_profile_sh.py
1011
1017
1012 * upgrade_dir.py: try import 'path' module a bit harder
1018 * upgrade_dir.py: try import 'path' module a bit harder
1013 (for %upgrade)
1019 (for %upgrade)
1014
1020
1015 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1021 2006-06-03 Fernando Perez <Fernando.Perez@colorado.edu>
1016
1022
1017 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1023 * IPython/genutils.py (ask_yes_no): treat EOF as a default answer
1018 instead of looping 20 times.
1024 instead of looping 20 times.
1019
1025
1020 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1026 * IPython/ipmaker.py (make_IPython): honor -ipythondir flag
1021 correctly at initialization time. Bug reported by Krishna Mohan
1027 correctly at initialization time. Bug reported by Krishna Mohan
1022 Gundu <gkmohan-AT-gmail.com> on the user list.
1028 Gundu <gkmohan-AT-gmail.com> on the user list.
1023
1029
1024 * IPython/Release.py (version): Mark 0.7.2 version to start
1030 * IPython/Release.py (version): Mark 0.7.2 version to start
1025 testing for release on 06/06.
1031 testing for release on 06/06.
1026
1032
1027 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1033 2006-05-31 Fernando Perez <Fernando.Perez@colorado.edu>
1028
1034
1029 * scripts/irunner: thin script interface so users don't have to
1035 * scripts/irunner: thin script interface so users don't have to
1030 find the module and call it as an executable, since modules rarely
1036 find the module and call it as an executable, since modules rarely
1031 live in people's PATH.
1037 live in people's PATH.
1032
1038
1033 * IPython/irunner.py (InteractiveRunner.__init__): added
1039 * IPython/irunner.py (InteractiveRunner.__init__): added
1034 delaybeforesend attribute to control delays with newer versions of
1040 delaybeforesend attribute to control delays with newer versions of
1035 pexpect. Thanks to detailed help from pexpect's author, Noah
1041 pexpect. Thanks to detailed help from pexpect's author, Noah
1036 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1042 Spurrier <noah-AT-noah.org>. Noted how to use the SAGE runner
1037 correctly (it works in NoColor mode).
1043 correctly (it works in NoColor mode).
1038
1044
1039 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1045 * IPython/iplib.py (handle_normal): fix nasty crash reported on
1040 SAGE list, from improper log() calls.
1046 SAGE list, from improper log() calls.
1041
1047
1042 2006-05-31 Ville Vainio <vivainio@gmail.com>
1048 2006-05-31 Ville Vainio <vivainio@gmail.com>
1043
1049
1044 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1050 * upgrade_dir.py, Magic.py (magic_upgrade): call upgrade_dir
1045 with args in parens to work correctly with dirs that have spaces.
1051 with args in parens to work correctly with dirs that have spaces.
1046
1052
1047 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1053 2006-05-30 Fernando Perez <Fernando.Perez@colorado.edu>
1048
1054
1049 * IPython/Logger.py (Logger.logstart): add option to log raw input
1055 * IPython/Logger.py (Logger.logstart): add option to log raw input
1050 instead of the processed one. A -r flag was added to the
1056 instead of the processed one. A -r flag was added to the
1051 %logstart magic used for controlling logging.
1057 %logstart magic used for controlling logging.
1052
1058
1053 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1059 2006-05-29 Fernando Perez <Fernando.Perez@colorado.edu>
1054
1060
1055 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1061 * IPython/iplib.py (InteractiveShell.__init__): add check for the
1056 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1062 *BSDs to omit --color from all 'ls' aliases, since *BSD ls doesn't
1057 recognize the option. After a bug report by Will Maier. This
1063 recognize the option. After a bug report by Will Maier. This
1058 closes #64 (will do it after confirmation from W. Maier).
1064 closes #64 (will do it after confirmation from W. Maier).
1059
1065
1060 * IPython/irunner.py: New module to run scripts as if manually
1066 * IPython/irunner.py: New module to run scripts as if manually
1061 typed into an interactive environment, based on pexpect. After a
1067 typed into an interactive environment, based on pexpect. After a
1062 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1068 submission by Ken Schutte <kschutte-AT-csail.mit.edu> on the
1063 ipython-user list. Simple unittests in the tests/ directory.
1069 ipython-user list. Simple unittests in the tests/ directory.
1064
1070
1065 * tools/release: add Will Maier, OpenBSD port maintainer, to
1071 * tools/release: add Will Maier, OpenBSD port maintainer, to
1066 recepients list. We are now officially part of the OpenBSD ports:
1072 recepients list. We are now officially part of the OpenBSD ports:
1067 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1073 http://www.openbsd.org/ports.html ! Many thanks to Will for the
1068 work.
1074 work.
1069
1075
1070 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1076 2006-05-26 Fernando Perez <Fernando.Perez@colorado.edu>
1071
1077
1072 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1078 * IPython/ipmaker.py (make_IPython): modify sys.argv fix (below)
1073 so that it doesn't break tkinter apps.
1079 so that it doesn't break tkinter apps.
1074
1080
1075 * IPython/iplib.py (_prefilter): fix bug where aliases would
1081 * IPython/iplib.py (_prefilter): fix bug where aliases would
1076 shadow variables when autocall was fully off. Reported by SAGE
1082 shadow variables when autocall was fully off. Reported by SAGE
1077 author William Stein.
1083 author William Stein.
1078
1084
1079 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1085 * IPython/OInspect.py (Inspector.__init__): add a flag to control
1080 at what detail level strings are computed when foo? is requested.
1086 at what detail level strings are computed when foo? is requested.
1081 This allows users to ask for example that the string form of an
1087 This allows users to ask for example that the string form of an
1082 object is only computed when foo?? is called, or even never, by
1088 object is only computed when foo?? is called, or even never, by
1083 setting the object_info_string_level >= 2 in the configuration
1089 setting the object_info_string_level >= 2 in the configuration
1084 file. This new option has been added and documented. After a
1090 file. This new option has been added and documented. After a
1085 request by SAGE to be able to control the printing of very large
1091 request by SAGE to be able to control the printing of very large
1086 objects more easily.
1092 objects more easily.
1087
1093
1088 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1094 2006-05-25 Fernando Perez <Fernando.Perez@colorado.edu>
1089
1095
1090 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1096 * IPython/ipmaker.py (make_IPython): remove the ipython call path
1091 from sys.argv, to be 100% consistent with how Python itself works
1097 from sys.argv, to be 100% consistent with how Python itself works
1092 (as seen for example with python -i file.py). After a bug report
1098 (as seen for example with python -i file.py). After a bug report
1093 by Jeffrey Collins.
1099 by Jeffrey Collins.
1094
1100
1095 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1101 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix
1096 nasty bug which was preventing custom namespaces with -pylab,
1102 nasty bug which was preventing custom namespaces with -pylab,
1097 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1103 reported by M. Foord. Minor cleanup, remove old matplotlib.matlab
1098 compatibility (long gone from mpl).
1104 compatibility (long gone from mpl).
1099
1105
1100 * IPython/ipapi.py (make_session): name change: create->make. We
1106 * IPython/ipapi.py (make_session): name change: create->make. We
1101 use make in other places (ipmaker,...), it's shorter and easier to
1107 use make in other places (ipmaker,...), it's shorter and easier to
1102 type and say, etc. I'm trying to clean things before 0.7.2 so
1108 type and say, etc. I'm trying to clean things before 0.7.2 so
1103 that I can keep things stable wrt to ipapi in the chainsaw branch.
1109 that I can keep things stable wrt to ipapi in the chainsaw branch.
1104
1110
1105 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1111 * ipython.el: fix the py-pdbtrack-input-prompt variable so that
1106 python-mode recognizes our debugger mode. Add support for
1112 python-mode recognizes our debugger mode. Add support for
1107 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1113 autoindent inside (X)emacs. After a patch sent in by Jin Liu
1108 <m.liu.jin-AT-gmail.com> originally written by
1114 <m.liu.jin-AT-gmail.com> originally written by
1109 doxgen-AT-newsmth.net (with minor modifications for xemacs
1115 doxgen-AT-newsmth.net (with minor modifications for xemacs
1110 compatibility)
1116 compatibility)
1111
1117
1112 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1118 * IPython/Debugger.py (Pdb.format_stack_entry): fix formatting of
1113 tracebacks when walking the stack so that the stack tracking system
1119 tracebacks when walking the stack so that the stack tracking system
1114 in emacs' python-mode can identify the frames correctly.
1120 in emacs' python-mode can identify the frames correctly.
1115
1121
1116 * IPython/ipmaker.py (make_IPython): make the internal (and
1122 * IPython/ipmaker.py (make_IPython): make the internal (and
1117 default config) autoedit_syntax value false by default. Too many
1123 default config) autoedit_syntax value false by default. Too many
1118 users have complained to me (both on and off-list) about problems
1124 users have complained to me (both on and off-list) about problems
1119 with this option being on by default, so I'm making it default to
1125 with this option being on by default, so I'm making it default to
1120 off. It can still be enabled by anyone via the usual mechanisms.
1126 off. It can still be enabled by anyone via the usual mechanisms.
1121
1127
1122 * IPython/completer.py (Completer.attr_matches): add support for
1128 * IPython/completer.py (Completer.attr_matches): add support for
1123 PyCrust-style _getAttributeNames magic method. Patch contributed
1129 PyCrust-style _getAttributeNames magic method. Patch contributed
1124 by <mscott-AT-goldenspud.com>. Closes #50.
1130 by <mscott-AT-goldenspud.com>. Closes #50.
1125
1131
1126 * IPython/iplib.py (InteractiveShell.__init__): remove the
1132 * IPython/iplib.py (InteractiveShell.__init__): remove the
1127 deletion of exit/quit from __builtin__, which can break
1133 deletion of exit/quit from __builtin__, which can break
1128 third-party tools like the Zope debugging console. The
1134 third-party tools like the Zope debugging console. The
1129 %exit/%quit magics remain. In general, it's probably a good idea
1135 %exit/%quit magics remain. In general, it's probably a good idea
1130 not to delete anything from __builtin__, since we never know what
1136 not to delete anything from __builtin__, since we never know what
1131 that will break. In any case, python now (for 2.5) will support
1137 that will break. In any case, python now (for 2.5) will support
1132 'real' exit/quit, so this issue is moot. Closes #55.
1138 'real' exit/quit, so this issue is moot. Closes #55.
1133
1139
1134 * IPython/genutils.py (with_obj): rename the 'with' function to
1140 * IPython/genutils.py (with_obj): rename the 'with' function to
1135 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1141 'withobj' to avoid incompatibilities with Python 2.5, where 'with'
1136 becomes a language keyword. Closes #53.
1142 becomes a language keyword. Closes #53.
1137
1143
1138 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1144 * IPython/FakeModule.py (FakeModule.__init__): add a proper
1139 __file__ attribute to this so it fools more things into thinking
1145 __file__ attribute to this so it fools more things into thinking
1140 it is a real module. Closes #59.
1146 it is a real module. Closes #59.
1141
1147
1142 * IPython/Magic.py (magic_edit): add -n option to open the editor
1148 * IPython/Magic.py (magic_edit): add -n option to open the editor
1143 at a specific line number. After a patch by Stefan van der Walt.
1149 at a specific line number. After a patch by Stefan van der Walt.
1144
1150
1145 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1151 2006-05-23 Fernando Perez <Fernando.Perez@colorado.edu>
1146
1152
1147 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1153 * IPython/iplib.py (edit_syntax_error): fix crash when for some
1148 reason the file could not be opened. After automatic crash
1154 reason the file could not be opened. After automatic crash
1149 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1155 reports sent by James Graham <jgraham-AT-ast.cam.ac.uk> and
1150 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1156 Charles Dolan <charlespatrickdolan-AT-yahoo.com>.
1151 (_should_recompile): Don't fire editor if using %bg, since there
1157 (_should_recompile): Don't fire editor if using %bg, since there
1152 is no file in the first place. From the same report as above.
1158 is no file in the first place. From the same report as above.
1153 (raw_input): protect against faulty third-party prefilters. After
1159 (raw_input): protect against faulty third-party prefilters. After
1154 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1160 an automatic crash report sent by Dirk Laurie <dirk-AT-sun.ac.za>
1155 while running under SAGE.
1161 while running under SAGE.
1156
1162
1157 2006-05-23 Ville Vainio <vivainio@gmail.com>
1163 2006-05-23 Ville Vainio <vivainio@gmail.com>
1158
1164
1159 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1165 * ipapi.py: Stripped down ip.to_user_ns() to work only as
1160 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1166 ip.to_user_ns("x1 y1"), which exposes vars x1 and y1. ipapi.get()
1161 now returns None (again), unless dummy is specifically allowed by
1167 now returns None (again), unless dummy is specifically allowed by
1162 ipapi.get(allow_dummy=True).
1168 ipapi.get(allow_dummy=True).
1163
1169
1164 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1170 2006-05-18 Fernando Perez <Fernando.Perez@colorado.edu>
1165
1171
1166 * IPython: remove all 2.2-compatibility objects and hacks from
1172 * IPython: remove all 2.2-compatibility objects and hacks from
1167 everywhere, since we only support 2.3 at this point. Docs
1173 everywhere, since we only support 2.3 at this point. Docs
1168 updated.
1174 updated.
1169
1175
1170 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1176 * IPython/ipapi.py (IPApi.__init__): Cleanup of all getters.
1171 Anything requiring extra validation can be turned into a Python
1177 Anything requiring extra validation can be turned into a Python
1172 property in the future. I used a property for the db one b/c
1178 property in the future. I used a property for the db one b/c
1173 there was a nasty circularity problem with the initialization
1179 there was a nasty circularity problem with the initialization
1174 order, which right now I don't have time to clean up.
1180 order, which right now I don't have time to clean up.
1175
1181
1176 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1182 * IPython/Shell.py (MTInteractiveShell.runcode): Fix, I think,
1177 another locking bug reported by Jorgen. I'm not 100% sure though,
1183 another locking bug reported by Jorgen. I'm not 100% sure though,
1178 so more testing is needed...
1184 so more testing is needed...
1179
1185
1180 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1186 2006-05-17 Fernando Perez <Fernando.Perez@colorado.edu>
1181
1187
1182 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1188 * IPython/ipapi.py (IPApi.to_user_ns): New function to inject
1183 local variables from any routine in user code (typically executed
1189 local variables from any routine in user code (typically executed
1184 with %run) directly into the interactive namespace. Very useful
1190 with %run) directly into the interactive namespace. Very useful
1185 when doing complex debugging.
1191 when doing complex debugging.
1186 (IPythonNotRunning): Changed the default None object to a dummy
1192 (IPythonNotRunning): Changed the default None object to a dummy
1187 whose attributes can be queried as well as called without
1193 whose attributes can be queried as well as called without
1188 exploding, to ease writing code which works transparently both in
1194 exploding, to ease writing code which works transparently both in
1189 and out of ipython and uses some of this API.
1195 and out of ipython and uses some of this API.
1190
1196
1191 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1197 2006-05-16 Fernando Perez <Fernando.Perez@colorado.edu>
1192
1198
1193 * IPython/hooks.py (result_display): Fix the fact that our display
1199 * IPython/hooks.py (result_display): Fix the fact that our display
1194 hook was using str() instead of repr(), as the default python
1200 hook was using str() instead of repr(), as the default python
1195 console does. This had gone unnoticed b/c it only happened if
1201 console does. This had gone unnoticed b/c it only happened if
1196 %Pprint was off, but the inconsistency was there.
1202 %Pprint was off, but the inconsistency was there.
1197
1203
1198 2006-05-15 Ville Vainio <vivainio@gmail.com>
1204 2006-05-15 Ville Vainio <vivainio@gmail.com>
1199
1205
1200 * Oinspect.py: Only show docstring for nonexisting/binary files
1206 * Oinspect.py: Only show docstring for nonexisting/binary files
1201 when doing object??, closing ticket #62
1207 when doing object??, closing ticket #62
1202
1208
1203 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1209 2006-05-13 Fernando Perez <Fernando.Perez@colorado.edu>
1204
1210
1205 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1211 * IPython/Shell.py (MTInteractiveShell.runsource): Fix threading
1206 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1212 bug, closes http://www.scipy.net/roundup/ipython/issue55. A lock
1207 was being released in a routine which hadn't checked if it had
1213 was being released in a routine which hadn't checked if it had
1208 been the one to acquire it.
1214 been the one to acquire it.
1209
1215
1210 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1216 2006-05-07 Fernando Perez <Fernando.Perez@colorado.edu>
1211
1217
1212 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1218 * IPython/Release.py (version): put out 0.7.2.rc1 for testing.
1213
1219
1214 2006-04-11 Ville Vainio <vivainio@gmail.com>
1220 2006-04-11 Ville Vainio <vivainio@gmail.com>
1215
1221
1216 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1222 * iplib.py, ipmaker.py: .ipy extension now means "ipython batch file"
1217 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1223 in command line. E.g. "ipython test.ipy" runs test.ipy with ipython
1218 prefilters, allowing stuff like magics and aliases in the file.
1224 prefilters, allowing stuff like magics and aliases in the file.
1219
1225
1220 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1226 * Prompts.py, Extensions/clearcmd.py, ipy_system_conf.py: %clear magic
1221 added. Supported now are "%clear in" and "%clear out" (clear input and
1227 added. Supported now are "%clear in" and "%clear out" (clear input and
1222 output history, respectively). Also fixed CachedOutput.flush to
1228 output history, respectively). Also fixed CachedOutput.flush to
1223 properly flush the output cache.
1229 properly flush the output cache.
1224
1230
1225 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1231 * Extensions/pspersistence.py: Fix %store to avoid "%store obj.attr"
1226 half-success (and fail explicitly).
1232 half-success (and fail explicitly).
1227
1233
1228 2006-03-28 Ville Vainio <vivainio@gmail.com>
1234 2006-03-28 Ville Vainio <vivainio@gmail.com>
1229
1235
1230 * iplib.py: Fix quoting of aliases so that only argless ones
1236 * iplib.py: Fix quoting of aliases so that only argless ones
1231 are quoted
1237 are quoted
1232
1238
1233 2006-03-28 Ville Vainio <vivainio@gmail.com>
1239 2006-03-28 Ville Vainio <vivainio@gmail.com>
1234
1240
1235 * iplib.py: Quote aliases with spaces in the name.
1241 * iplib.py: Quote aliases with spaces in the name.
1236 "c:\program files\blah\bin" is now legal alias target.
1242 "c:\program files\blah\bin" is now legal alias target.
1237
1243
1238 * ext_rehashdir.py: Space no longer allowed as arg
1244 * ext_rehashdir.py: Space no longer allowed as arg
1239 separator, since space is legal in path names.
1245 separator, since space is legal in path names.
1240
1246
1241 2006-03-16 Ville Vainio <vivainio@gmail.com>
1247 2006-03-16 Ville Vainio <vivainio@gmail.com>
1242
1248
1243 * upgrade_dir.py: Take path.py from Extensions, correcting
1249 * upgrade_dir.py: Take path.py from Extensions, correcting
1244 %upgrade magic
1250 %upgrade magic
1245
1251
1246 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1252 * ipmaker.py: Suggest using %upgrade if ipy_user_conf.py isn't found.
1247
1253
1248 * hooks.py: Only enclose editor binary in quotes if legal and
1254 * hooks.py: Only enclose editor binary in quotes if legal and
1249 necessary (space in the name, and is an existing file). Fixes a bug
1255 necessary (space in the name, and is an existing file). Fixes a bug
1250 reported by Zachary Pincus.
1256 reported by Zachary Pincus.
1251
1257
1252 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1258 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
1253
1259
1254 * Manual: thanks to a tip on proper color handling for Emacs, by
1260 * Manual: thanks to a tip on proper color handling for Emacs, by
1255 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1261 Eric J Haywiser <ejh1-AT-MIT.EDU>.
1256
1262
1257 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1263 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
1258 by applying the provided patch. Thanks to Liu Jin
1264 by applying the provided patch. Thanks to Liu Jin
1259 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1265 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
1260 XEmacs/Linux, I'm trusting the submitter that it actually helps
1266 XEmacs/Linux, I'm trusting the submitter that it actually helps
1261 under win32/GNU Emacs. Will revisit if any problems are reported.
1267 under win32/GNU Emacs. Will revisit if any problems are reported.
1262
1268
1263 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1269 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1264
1270
1265 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1271 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
1266 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1272 from SVN, thanks to a patch by Ryan Woodard <rywo@bas.ac.uk>.
1267
1273
1268 2006-03-12 Ville Vainio <vivainio@gmail.com>
1274 2006-03-12 Ville Vainio <vivainio@gmail.com>
1269
1275
1270 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1276 * Magic.py (magic_timeit): Added %timeit magic, contributed by
1271 Torsten Marek.
1277 Torsten Marek.
1272
1278
1273 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1279 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
1274
1280
1275 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1281 * IPython/Magic.py (magic_macro): fix so that the n1-n2 syntax for
1276 line ranges works again.
1282 line ranges works again.
1277
1283
1278 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1284 2006-03-11 Fernando Perez <Fernando.Perez@colorado.edu>
1279
1285
1280 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1286 * IPython/iplib.py (showtraceback): add back sys.last_traceback
1281 and friends, after a discussion with Zach Pincus on ipython-user.
1287 and friends, after a discussion with Zach Pincus on ipython-user.
1282 I'm not 100% sure, but after thinking about it quite a bit, it may
1288 I'm not 100% sure, but after thinking about it quite a bit, it may
1283 be OK. Testing with the multithreaded shells didn't reveal any
1289 be OK. Testing with the multithreaded shells didn't reveal any
1284 problems, but let's keep an eye out.
1290 problems, but let's keep an eye out.
1285
1291
1286 In the process, I fixed a few things which were calling
1292 In the process, I fixed a few things which were calling
1287 self.InteractiveTB() directly (like safe_execfile), which is a
1293 self.InteractiveTB() directly (like safe_execfile), which is a
1288 mistake: ALL exception reporting should be done by calling
1294 mistake: ALL exception reporting should be done by calling
1289 self.showtraceback(), which handles state and tab-completion and
1295 self.showtraceback(), which handles state and tab-completion and
1290 more.
1296 more.
1291
1297
1292 2006-03-01 Ville Vainio <vivainio@gmail.com>
1298 2006-03-01 Ville Vainio <vivainio@gmail.com>
1293
1299
1294 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1300 * Extensions/ipipe.py: Added Walter Doerwald's "ipipe" module.
1295 To use, do "from ipipe import *".
1301 To use, do "from ipipe import *".
1296
1302
1297 2006-02-24 Ville Vainio <vivainio@gmail.com>
1303 2006-02-24 Ville Vainio <vivainio@gmail.com>
1298
1304
1299 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1305 * Magic.py, upgrade_dir.py: %upgrade magic added. Does things more
1300 "cleanly" and safely than the older upgrade mechanism.
1306 "cleanly" and safely than the older upgrade mechanism.
1301
1307
1302 2006-02-21 Ville Vainio <vivainio@gmail.com>
1308 2006-02-21 Ville Vainio <vivainio@gmail.com>
1303
1309
1304 * Magic.py: %save works again.
1310 * Magic.py: %save works again.
1305
1311
1306 2006-02-15 Ville Vainio <vivainio@gmail.com>
1312 2006-02-15 Ville Vainio <vivainio@gmail.com>
1307
1313
1308 * Magic.py: %Pprint works again
1314 * Magic.py: %Pprint works again
1309
1315
1310 * Extensions/ipy_sane_defaults.py: Provide everything provided
1316 * Extensions/ipy_sane_defaults.py: Provide everything provided
1311 in default ipythonrc, to make it possible to have a completely empty
1317 in default ipythonrc, to make it possible to have a completely empty
1312 ipythonrc (and thus completely rc-file free configuration)
1318 ipythonrc (and thus completely rc-file free configuration)
1313
1319
1314 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1320 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
1315
1321
1316 * IPython/hooks.py (editor): quote the call to the editor command,
1322 * IPython/hooks.py (editor): quote the call to the editor command,
1317 to allow commands with spaces in them. Problem noted by watching
1323 to allow commands with spaces in them. Problem noted by watching
1318 Ian Oswald's video about textpad under win32 at
1324 Ian Oswald's video about textpad under win32 at
1319 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1325 http://showmedo.com/videoListPage?listKey=PythonIPythonSeries
1320
1326
1321 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1327 * IPython/UserConfig/ipythonrc: Replace @ signs with % when
1322 describing magics (we haven't used @ for a loong time).
1328 describing magics (we haven't used @ for a loong time).
1323
1329
1324 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1330 * IPython/ultraTB.py (VerboseTB.text.text_repr): Added patch
1325 contributed by marienz to close
1331 contributed by marienz to close
1326 http://www.scipy.net/roundup/ipython/issue53.
1332 http://www.scipy.net/roundup/ipython/issue53.
1327
1333
1328 2006-02-10 Ville Vainio <vivainio@gmail.com>
1334 2006-02-10 Ville Vainio <vivainio@gmail.com>
1329
1335
1330 * genutils.py: getoutput now works in win32 too
1336 * genutils.py: getoutput now works in win32 too
1331
1337
1332 * completer.py: alias and magic completion only invoked
1338 * completer.py: alias and magic completion only invoked
1333 at the first "item" in the line, to avoid "cd %store"
1339 at the first "item" in the line, to avoid "cd %store"
1334 nonsense.
1340 nonsense.
1335
1341
1336 2006-02-09 Ville Vainio <vivainio@gmail.com>
1342 2006-02-09 Ville Vainio <vivainio@gmail.com>
1337
1343
1338 * test/*: Added a unit testing framework (finally).
1344 * test/*: Added a unit testing framework (finally).
1339 '%run runtests.py' to run test_*.
1345 '%run runtests.py' to run test_*.
1340
1346
1341 * ipapi.py: Exposed runlines and set_custom_exc
1347 * ipapi.py: Exposed runlines and set_custom_exc
1342
1348
1343 2006-02-07 Ville Vainio <vivainio@gmail.com>
1349 2006-02-07 Ville Vainio <vivainio@gmail.com>
1344
1350
1345 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1351 * iplib.py: don't split "f 1 2" to "f(1,2)" in autocall,
1346 instead use "f(1 2)" as before.
1352 instead use "f(1 2)" as before.
1347
1353
1348 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1354 2006-02-05 Fernando Perez <Fernando.Perez@colorado.edu>
1349
1355
1350 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1356 * IPython/demo.py (IPythonDemo): Add new classes to the demo
1351 facilities, for demos processed by the IPython input filter
1357 facilities, for demos processed by the IPython input filter
1352 (IPythonDemo), and for running a script one-line-at-a-time as a
1358 (IPythonDemo), and for running a script one-line-at-a-time as a
1353 demo, both for pure Python (LineDemo) and for IPython-processed
1359 demo, both for pure Python (LineDemo) and for IPython-processed
1354 input (IPythonLineDemo). After a request by Dave Kohel, from the
1360 input (IPythonLineDemo). After a request by Dave Kohel, from the
1355 SAGE team.
1361 SAGE team.
1356 (Demo.edit): added an edit() method to the demo objects, to edit
1362 (Demo.edit): added an edit() method to the demo objects, to edit
1357 the in-memory copy of the last executed block.
1363 the in-memory copy of the last executed block.
1358
1364
1359 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1365 * IPython/Magic.py (magic_edit): add '-r' option for 'raw'
1360 processing to %edit, %macro and %save. These commands can now be
1366 processing to %edit, %macro and %save. These commands can now be
1361 invoked on the unprocessed input as it was typed by the user
1367 invoked on the unprocessed input as it was typed by the user
1362 (without any prefilters applied). After requests by the SAGE team
1368 (without any prefilters applied). After requests by the SAGE team
1363 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1369 at SAGE days 2006: http://modular.ucsd.edu/sage/days1/schedule.html.
1364
1370
1365 2006-02-01 Ville Vainio <vivainio@gmail.com>
1371 2006-02-01 Ville Vainio <vivainio@gmail.com>
1366
1372
1367 * setup.py, eggsetup.py: easy_install ipython==dev works
1373 * setup.py, eggsetup.py: easy_install ipython==dev works
1368 correctly now (on Linux)
1374 correctly now (on Linux)
1369
1375
1370 * ipy_user_conf,ipmaker: user config changes, removed spurious
1376 * ipy_user_conf,ipmaker: user config changes, removed spurious
1371 warnings
1377 warnings
1372
1378
1373 * iplib: if rc.banner is string, use it as is.
1379 * iplib: if rc.banner is string, use it as is.
1374
1380
1375 * Magic: %pycat accepts a string argument and pages it's contents.
1381 * Magic: %pycat accepts a string argument and pages it's contents.
1376
1382
1377
1383
1378 2006-01-30 Ville Vainio <vivainio@gmail.com>
1384 2006-01-30 Ville Vainio <vivainio@gmail.com>
1379
1385
1380 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1386 * pickleshare,pspersistence,ipapi,Magic: persistence overhaul.
1381 Now %store and bookmarks work through PickleShare, meaning that
1387 Now %store and bookmarks work through PickleShare, meaning that
1382 concurrent access is possible and all ipython sessions see the
1388 concurrent access is possible and all ipython sessions see the
1383 same database situation all the time, instead of snapshot of
1389 same database situation all the time, instead of snapshot of
1384 the situation when the session was started. Hence, %bookmark
1390 the situation when the session was started. Hence, %bookmark
1385 results are immediately accessible from othes sessions. The database
1391 results are immediately accessible from othes sessions. The database
1386 is also available for use by user extensions. See:
1392 is also available for use by user extensions. See:
1387 http://www.python.org/pypi/pickleshare
1393 http://www.python.org/pypi/pickleshare
1388
1394
1389 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1395 * hooks.py: Two new hooks, 'shutdown_hook' and 'late_startup_hook'.
1390
1396
1391 * aliases can now be %store'd
1397 * aliases can now be %store'd
1392
1398
1393 * path.py moved to Extensions so that pickleshare does not need
1399 * path.py moved to Extensions so that pickleshare does not need
1394 IPython-specific import. Extensions added to pythonpath right
1400 IPython-specific import. Extensions added to pythonpath right
1395 at __init__.
1401 at __init__.
1396
1402
1397 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1403 * iplib.py: ipalias deprecated/redundant; aliases are converted and
1398 called with _ip.system and the pre-transformed command string.
1404 called with _ip.system and the pre-transformed command string.
1399
1405
1400 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1406 2006-01-29 Fernando Perez <Fernando.Perez@colorado.edu>
1401
1407
1402 * IPython/iplib.py (interact): Fix that we were not catching
1408 * IPython/iplib.py (interact): Fix that we were not catching
1403 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1409 KeyboardInterrupt exceptions properly. I'm not quite sure why the
1404 logic here had to change, but it's fixed now.
1410 logic here had to change, but it's fixed now.
1405
1411
1406 2006-01-29 Ville Vainio <vivainio@gmail.com>
1412 2006-01-29 Ville Vainio <vivainio@gmail.com>
1407
1413
1408 * iplib.py: Try to import pyreadline on Windows.
1414 * iplib.py: Try to import pyreadline on Windows.
1409
1415
1410 2006-01-27 Ville Vainio <vivainio@gmail.com>
1416 2006-01-27 Ville Vainio <vivainio@gmail.com>
1411
1417
1412 * iplib.py: Expose ipapi as _ip in builtin namespace.
1418 * iplib.py: Expose ipapi as _ip in builtin namespace.
1413 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1419 Makes ipmagic (-> _ip.magic), ipsystem (-> _ip.system)
1414 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1420 and ip_set_hook (-> _ip.set_hook) redundant. % and !
1415 syntax now produce _ip.* variant of the commands.
1421 syntax now produce _ip.* variant of the commands.
1416
1422
1417 * "_ip.options().autoedit_syntax = 2" automatically throws
1423 * "_ip.options().autoedit_syntax = 2" automatically throws
1418 user to editor for syntax error correction without prompting.
1424 user to editor for syntax error correction without prompting.
1419
1425
1420 2006-01-27 Ville Vainio <vivainio@gmail.com>
1426 2006-01-27 Ville Vainio <vivainio@gmail.com>
1421
1427
1422 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1428 * ipmaker.py: Give "realistic" sys.argv for scripts (without
1423 'ipython' at argv[0]) executed through command line.
1429 'ipython' at argv[0]) executed through command line.
1424 NOTE: this DEPRECATES calling ipython with multiple scripts
1430 NOTE: this DEPRECATES calling ipython with multiple scripts
1425 ("ipython a.py b.py c.py")
1431 ("ipython a.py b.py c.py")
1426
1432
1427 * iplib.py, hooks.py: Added configurable input prefilter,
1433 * iplib.py, hooks.py: Added configurable input prefilter,
1428 named 'input_prefilter'. See ext_rescapture.py for example
1434 named 'input_prefilter'. See ext_rescapture.py for example
1429 usage.
1435 usage.
1430
1436
1431 * ext_rescapture.py, Magic.py: Better system command output capture
1437 * ext_rescapture.py, Magic.py: Better system command output capture
1432 through 'var = !ls' (deprecates user-visible %sc). Same notation
1438 through 'var = !ls' (deprecates user-visible %sc). Same notation
1433 applies for magics, 'var = %alias' assigns alias list to var.
1439 applies for magics, 'var = %alias' assigns alias list to var.
1434
1440
1435 * ipapi.py: added meta() for accessing extension-usable data store.
1441 * ipapi.py: added meta() for accessing extension-usable data store.
1436
1442
1437 * iplib.py: added InteractiveShell.getapi(). New magics should be
1443 * iplib.py: added InteractiveShell.getapi(). New magics should be
1438 written doing self.getapi() instead of using the shell directly.
1444 written doing self.getapi() instead of using the shell directly.
1439
1445
1440 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1446 * Magic.py: %store now allows doing %store foo > ~/myfoo.txt and
1441 %store foo >> ~/myfoo.txt to store variables to files (in clean
1447 %store foo >> ~/myfoo.txt to store variables to files (in clean
1442 textual form, not a restorable pickle).
1448 textual form, not a restorable pickle).
1443
1449
1444 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1450 * ipmaker.py: now import ipy_profile_PROFILENAME automatically
1445
1451
1446 * usage.py, Magic.py: added %quickref
1452 * usage.py, Magic.py: added %quickref
1447
1453
1448 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1454 * iplib.py: ESC_PAREN fixes: /f 1 2 -> f(1,2), not f(1 2).
1449
1455
1450 * GetoptErrors when invoking magics etc. with wrong args
1456 * GetoptErrors when invoking magics etc. with wrong args
1451 are now more helpful:
1457 are now more helpful:
1452 GetoptError: option -l not recognized (allowed: "qb" )
1458 GetoptError: option -l not recognized (allowed: "qb" )
1453
1459
1454 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1460 2006-01-25 Fernando Perez <Fernando.Perez@colorado.edu>
1455
1461
1456 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1462 * IPython/demo.py (Demo.show): Flush stdout after each block, so
1457 computationally intensive blocks don't appear to stall the demo.
1463 computationally intensive blocks don't appear to stall the demo.
1458
1464
1459 2006-01-24 Ville Vainio <vivainio@gmail.com>
1465 2006-01-24 Ville Vainio <vivainio@gmail.com>
1460
1466
1461 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1467 * iplib.py, hooks.py: 'result_display' hook can return a non-None
1462 value to manipulate resulting history entry.
1468 value to manipulate resulting history entry.
1463
1469
1464 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1470 * ipapi.py: Moved TryNext here from hooks.py. Moved functions
1465 to instance methods of IPApi class, to make extending an embedded
1471 to instance methods of IPApi class, to make extending an embedded
1466 IPython feasible. See ext_rehashdir.py for example usage.
1472 IPython feasible. See ext_rehashdir.py for example usage.
1467
1473
1468 * Merged 1071-1076 from branches/0.7.1
1474 * Merged 1071-1076 from branches/0.7.1
1469
1475
1470
1476
1471 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1477 2006-01-23 Fernando Perez <Fernando.Perez@colorado.edu>
1472
1478
1473 * tools/release (daystamp): Fix build tools to use the new
1479 * tools/release (daystamp): Fix build tools to use the new
1474 eggsetup.py script to build lightweight eggs.
1480 eggsetup.py script to build lightweight eggs.
1475
1481
1476 * Applied changesets 1062 and 1064 before 0.7.1 release.
1482 * Applied changesets 1062 and 1064 before 0.7.1 release.
1477
1483
1478 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1484 * IPython/Magic.py (magic_history): Add '-r' option to %hist, to
1479 see the raw input history (without conversions like %ls ->
1485 see the raw input history (without conversions like %ls ->
1480 ipmagic("ls")). After a request from W. Stein, SAGE
1486 ipmagic("ls")). After a request from W. Stein, SAGE
1481 (http://modular.ucsd.edu/sage) developer. This information is
1487 (http://modular.ucsd.edu/sage) developer. This information is
1482 stored in the input_hist_raw attribute of the IPython instance, so
1488 stored in the input_hist_raw attribute of the IPython instance, so
1483 developers can access it if needed (it's an InputList instance).
1489 developers can access it if needed (it's an InputList instance).
1484
1490
1485 * Versionstring = 0.7.2.svn
1491 * Versionstring = 0.7.2.svn
1486
1492
1487 * eggsetup.py: A separate script for constructing eggs, creates
1493 * eggsetup.py: A separate script for constructing eggs, creates
1488 proper launch scripts even on Windows (an .exe file in
1494 proper launch scripts even on Windows (an .exe file in
1489 \python24\scripts).
1495 \python24\scripts).
1490
1496
1491 * ipapi.py: launch_new_instance, launch entry point needed for the
1497 * ipapi.py: launch_new_instance, launch entry point needed for the
1492 egg.
1498 egg.
1493
1499
1494 2006-01-23 Ville Vainio <vivainio@gmail.com>
1500 2006-01-23 Ville Vainio <vivainio@gmail.com>
1495
1501
1496 * Added %cpaste magic for pasting python code
1502 * Added %cpaste magic for pasting python code
1497
1503
1498 2006-01-22 Ville Vainio <vivainio@gmail.com>
1504 2006-01-22 Ville Vainio <vivainio@gmail.com>
1499
1505
1500 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1506 * Merge from branches/0.7.1 into trunk, revs 1052-1057
1501
1507
1502 * Versionstring = 0.7.2.svn
1508 * Versionstring = 0.7.2.svn
1503
1509
1504 * eggsetup.py: A separate script for constructing eggs, creates
1510 * eggsetup.py: A separate script for constructing eggs, creates
1505 proper launch scripts even on Windows (an .exe file in
1511 proper launch scripts even on Windows (an .exe file in
1506 \python24\scripts).
1512 \python24\scripts).
1507
1513
1508 * ipapi.py: launch_new_instance, launch entry point needed for the
1514 * ipapi.py: launch_new_instance, launch entry point needed for the
1509 egg.
1515 egg.
1510
1516
1511 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1517 2006-01-22 Fernando Perez <Fernando.Perez@colorado.edu>
1512
1518
1513 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1519 * IPython/OInspect.py (Inspector.pinfo): fix bug where foo?? or
1514 %pfile foo would print the file for foo even if it was a binary.
1520 %pfile foo would print the file for foo even if it was a binary.
1515 Now, extensions '.so' and '.dll' are skipped.
1521 Now, extensions '.so' and '.dll' are skipped.
1516
1522
1517 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1523 * IPython/Shell.py (MTInteractiveShell.__init__): Fix threading
1518 bug, where macros would fail in all threaded modes. I'm not 100%
1524 bug, where macros would fail in all threaded modes. I'm not 100%
1519 sure, so I'm going to put out an rc instead of making a release
1525 sure, so I'm going to put out an rc instead of making a release
1520 today, and wait for feedback for at least a few days.
1526 today, and wait for feedback for at least a few days.
1521
1527
1522 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1528 * IPython/iplib.py (handle_normal): fix (finally? somehow I doubt
1523 it...) the handling of pasting external code with autoindent on.
1529 it...) the handling of pasting external code with autoindent on.
1524 To get out of a multiline input, the rule will appear for most
1530 To get out of a multiline input, the rule will appear for most
1525 users unchanged: two blank lines or change the indent level
1531 users unchanged: two blank lines or change the indent level
1526 proposed by IPython. But there is a twist now: you can
1532 proposed by IPython. But there is a twist now: you can
1527 add/subtract only *one or two spaces*. If you add/subtract three
1533 add/subtract only *one or two spaces*. If you add/subtract three
1528 or more (unless you completely delete the line), IPython will
1534 or more (unless you completely delete the line), IPython will
1529 accept that line, and you'll need to enter a second one of pure
1535 accept that line, and you'll need to enter a second one of pure
1530 whitespace. I know it sounds complicated, but I can't find a
1536 whitespace. I know it sounds complicated, but I can't find a
1531 different solution that covers all the cases, with the right
1537 different solution that covers all the cases, with the right
1532 heuristics. Hopefully in actual use, nobody will really notice
1538 heuristics. Hopefully in actual use, nobody will really notice
1533 all these strange rules and things will 'just work'.
1539 all these strange rules and things will 'just work'.
1534
1540
1535 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1541 2006-01-21 Fernando Perez <Fernando.Perez@colorado.edu>
1536
1542
1537 * IPython/iplib.py (interact): catch exceptions which can be
1543 * IPython/iplib.py (interact): catch exceptions which can be
1538 triggered asynchronously by signal handlers. Thanks to an
1544 triggered asynchronously by signal handlers. Thanks to an
1539 automatic crash report, submitted by Colin Kingsley
1545 automatic crash report, submitted by Colin Kingsley
1540 <tercel-AT-gentoo.org>.
1546 <tercel-AT-gentoo.org>.
1541
1547
1542 2006-01-20 Ville Vainio <vivainio@gmail.com>
1548 2006-01-20 Ville Vainio <vivainio@gmail.com>
1543
1549
1544 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1550 * Ipython/Extensions/ext_rehashdir.py: Created a usable example
1545 (%rehashdir, very useful, try it out) of how to extend ipython
1551 (%rehashdir, very useful, try it out) of how to extend ipython
1546 with new magics. Also added Extensions dir to pythonpath to make
1552 with new magics. Also added Extensions dir to pythonpath to make
1547 importing extensions easy.
1553 importing extensions easy.
1548
1554
1549 * %store now complains when trying to store interactively declared
1555 * %store now complains when trying to store interactively declared
1550 classes / instances of those classes.
1556 classes / instances of those classes.
1551
1557
1552 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1558 * Extensions/ipy_system_conf.py, UserConfig/ipy_user_conf.py,
1553 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1559 ipmaker.py: Config rehaul. Now ipy_..._conf.py are always imported
1554 if they exist, and ipy_user_conf.py with some defaults is created for
1560 if they exist, and ipy_user_conf.py with some defaults is created for
1555 the user.
1561 the user.
1556
1562
1557 * Startup rehashing done by the config file, not InterpreterExec.
1563 * Startup rehashing done by the config file, not InterpreterExec.
1558 This means system commands are available even without selecting the
1564 This means system commands are available even without selecting the
1559 pysh profile. It's the sensible default after all.
1565 pysh profile. It's the sensible default after all.
1560
1566
1561 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1567 2006-01-20 Fernando Perez <Fernando.Perez@colorado.edu>
1562
1568
1563 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1569 * IPython/iplib.py (raw_input): I _think_ I got the pasting of
1564 multiline code with autoindent on working. But I am really not
1570 multiline code with autoindent on working. But I am really not
1565 sure, so this needs more testing. Will commit a debug-enabled
1571 sure, so this needs more testing. Will commit a debug-enabled
1566 version for now, while I test it some more, so that Ville and
1572 version for now, while I test it some more, so that Ville and
1567 others may also catch any problems. Also made
1573 others may also catch any problems. Also made
1568 self.indent_current_str() a method, to ensure that there's no
1574 self.indent_current_str() a method, to ensure that there's no
1569 chance of the indent space count and the corresponding string
1575 chance of the indent space count and the corresponding string
1570 falling out of sync. All code needing the string should just call
1576 falling out of sync. All code needing the string should just call
1571 the method.
1577 the method.
1572
1578
1573 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1579 2006-01-18 Fernando Perez <Fernando.Perez@colorado.edu>
1574
1580
1575 * IPython/Magic.py (magic_edit): fix check for when users don't
1581 * IPython/Magic.py (magic_edit): fix check for when users don't
1576 save their output files, the try/except was in the wrong section.
1582 save their output files, the try/except was in the wrong section.
1577
1583
1578 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1584 2006-01-17 Fernando Perez <Fernando.Perez@colorado.edu>
1579
1585
1580 * IPython/Magic.py (magic_run): fix __file__ global missing from
1586 * IPython/Magic.py (magic_run): fix __file__ global missing from
1581 script's namespace when executed via %run. After a report by
1587 script's namespace when executed via %run. After a report by
1582 Vivian.
1588 Vivian.
1583
1589
1584 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1590 * IPython/Debugger.py (Pdb.__init__): Fix breakage with '%run -d'
1585 when using python 2.4. The parent constructor changed in 2.4, and
1591 when using python 2.4. The parent constructor changed in 2.4, and
1586 we need to track it directly (we can't call it, as it messes up
1592 we need to track it directly (we can't call it, as it messes up
1587 readline and tab-completion inside our pdb would stop working).
1593 readline and tab-completion inside our pdb would stop working).
1588 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1594 After a bug report by R. Bernstein <rocky-AT-panix.com>.
1589
1595
1590 2006-01-16 Ville Vainio <vivainio@gmail.com>
1596 2006-01-16 Ville Vainio <vivainio@gmail.com>
1591
1597
1592 * Ipython/magic.py: Reverted back to old %edit functionality
1598 * Ipython/magic.py: Reverted back to old %edit functionality
1593 that returns file contents on exit.
1599 that returns file contents on exit.
1594
1600
1595 * IPython/path.py: Added Jason Orendorff's "path" module to
1601 * IPython/path.py: Added Jason Orendorff's "path" module to
1596 IPython tree, http://www.jorendorff.com/articles/python/path/.
1602 IPython tree, http://www.jorendorff.com/articles/python/path/.
1597 You can get path objects conveniently through %sc, and !!, e.g.:
1603 You can get path objects conveniently through %sc, and !!, e.g.:
1598 sc files=ls
1604 sc files=ls
1599 for p in files.paths: # or files.p
1605 for p in files.paths: # or files.p
1600 print p,p.mtime
1606 print p,p.mtime
1601
1607
1602 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1608 * Ipython/iplib.py:"," and ";" autoquoting-upon-autocall
1603 now work again without considering the exclusion regexp -
1609 now work again without considering the exclusion regexp -
1604 hence, things like ',foo my/path' turn to 'foo("my/path")'
1610 hence, things like ',foo my/path' turn to 'foo("my/path")'
1605 instead of syntax error.
1611 instead of syntax error.
1606
1612
1607
1613
1608 2006-01-14 Ville Vainio <vivainio@gmail.com>
1614 2006-01-14 Ville Vainio <vivainio@gmail.com>
1609
1615
1610 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1616 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
1611 ipapi decorators for python 2.4 users, options() provides access to rc
1617 ipapi decorators for python 2.4 users, options() provides access to rc
1612 data.
1618 data.
1613
1619
1614 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1620 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
1615 as path separators (even on Linux ;-). Space character after
1621 as path separators (even on Linux ;-). Space character after
1616 backslash (as yielded by tab completer) is still space;
1622 backslash (as yielded by tab completer) is still space;
1617 "%cd long\ name" works as expected.
1623 "%cd long\ name" works as expected.
1618
1624
1619 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1625 * IPython/ipapi.py,hooks.py,iplib.py: Hooks now implemented
1620 as "chain of command", with priority. API stays the same,
1626 as "chain of command", with priority. API stays the same,
1621 TryNext exception raised by a hook function signals that
1627 TryNext exception raised by a hook function signals that
1622 current hook failed and next hook should try handling it, as
1628 current hook failed and next hook should try handling it, as
1623 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1629 suggested by Walter DΓΆrwald <walter@livinglogic.de>. Walter also
1624 requested configurable display hook, which is now implemented.
1630 requested configurable display hook, which is now implemented.
1625
1631
1626 2006-01-13 Ville Vainio <vivainio@gmail.com>
1632 2006-01-13 Ville Vainio <vivainio@gmail.com>
1627
1633
1628 * IPython/platutils*.py: platform specific utility functions,
1634 * IPython/platutils*.py: platform specific utility functions,
1629 so far only set_term_title is implemented (change terminal
1635 so far only set_term_title is implemented (change terminal
1630 label in windowing systems). %cd now changes the title to
1636 label in windowing systems). %cd now changes the title to
1631 current dir.
1637 current dir.
1632
1638
1633 * IPython/Release.py: Added myself to "authors" list,
1639 * IPython/Release.py: Added myself to "authors" list,
1634 had to create new files.
1640 had to create new files.
1635
1641
1636 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1642 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
1637 shell escape; not a known bug but had potential to be one in the
1643 shell escape; not a known bug but had potential to be one in the
1638 future.
1644 future.
1639
1645
1640 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1646 * IPython/ipapi.py (added),OInspect.py,iplib.py: "Public"
1641 extension API for IPython! See the module for usage example. Fix
1647 extension API for IPython! See the module for usage example. Fix
1642 OInspect for docstring-less magic functions.
1648 OInspect for docstring-less magic functions.
1643
1649
1644
1650
1645 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1651 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
1646
1652
1647 * IPython/iplib.py (raw_input): temporarily deactivate all
1653 * IPython/iplib.py (raw_input): temporarily deactivate all
1648 attempts at allowing pasting of code with autoindent on. It
1654 attempts at allowing pasting of code with autoindent on. It
1649 introduced bugs (reported by Prabhu) and I can't seem to find a
1655 introduced bugs (reported by Prabhu) and I can't seem to find a
1650 robust combination which works in all cases. Will have to revisit
1656 robust combination which works in all cases. Will have to revisit
1651 later.
1657 later.
1652
1658
1653 * IPython/genutils.py: remove isspace() function. We've dropped
1659 * IPython/genutils.py: remove isspace() function. We've dropped
1654 2.2 compatibility, so it's OK to use the string method.
1660 2.2 compatibility, so it's OK to use the string method.
1655
1661
1656 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1662 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1657
1663
1658 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1664 * IPython/iplib.py (InteractiveShell.__init__): fix regexp
1659 matching what NOT to autocall on, to include all python binary
1665 matching what NOT to autocall on, to include all python binary
1660 operators (including things like 'and', 'or', 'is' and 'in').
1666 operators (including things like 'and', 'or', 'is' and 'in').
1661 Prompted by a bug report on 'foo & bar', but I realized we had
1667 Prompted by a bug report on 'foo & bar', but I realized we had
1662 many more potential bug cases with other operators. The regexp is
1668 many more potential bug cases with other operators. The regexp is
1663 self.re_exclude_auto, it's fairly commented.
1669 self.re_exclude_auto, it's fairly commented.
1664
1670
1665 2006-01-12 Ville Vainio <vivainio@gmail.com>
1671 2006-01-12 Ville Vainio <vivainio@gmail.com>
1666
1672
1667 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1673 * IPython/iplib.py (make_quoted_expr,handle_shell_escape):
1668 Prettified and hardened string/backslash quoting with ipsystem(),
1674 Prettified and hardened string/backslash quoting with ipsystem(),
1669 ipalias() and ipmagic(). Now even \ characters are passed to
1675 ipalias() and ipmagic(). Now even \ characters are passed to
1670 %magics, !shell escapes and aliases exactly as they are in the
1676 %magics, !shell escapes and aliases exactly as they are in the
1671 ipython command line. Should improve backslash experience,
1677 ipython command line. Should improve backslash experience,
1672 particularly in Windows (path delimiter for some commands that
1678 particularly in Windows (path delimiter for some commands that
1673 won't understand '/'), but Unix benefits as well (regexps). %cd
1679 won't understand '/'), but Unix benefits as well (regexps). %cd
1674 magic still doesn't support backslash path delimiters, though. Also
1680 magic still doesn't support backslash path delimiters, though. Also
1675 deleted all pretense of supporting multiline command strings in
1681 deleted all pretense of supporting multiline command strings in
1676 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1682 !system or %magic commands. Thanks to Jerry McRae for suggestions.
1677
1683
1678 * doc/build_doc_instructions.txt added. Documentation on how to
1684 * doc/build_doc_instructions.txt added. Documentation on how to
1679 use doc/update_manual.py, added yesterday. Both files contributed
1685 use doc/update_manual.py, added yesterday. Both files contributed
1680 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1686 by JΓΆrgen Stenarson <jorgen.stenarson-AT-bostream.nu>. This slates
1681 doc/*.sh for deprecation at a later date.
1687 doc/*.sh for deprecation at a later date.
1682
1688
1683 * /ipython.py Added ipython.py to root directory for
1689 * /ipython.py Added ipython.py to root directory for
1684 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1690 zero-installation (tar xzvf ipython.tgz; cd ipython; python
1685 ipython.py) and development convenience (no need to keep doing
1691 ipython.py) and development convenience (no need to keep doing
1686 "setup.py install" between changes).
1692 "setup.py install" between changes).
1687
1693
1688 * Made ! and !! shell escapes work (again) in multiline expressions:
1694 * Made ! and !! shell escapes work (again) in multiline expressions:
1689 if 1:
1695 if 1:
1690 !ls
1696 !ls
1691 !!ls
1697 !!ls
1692
1698
1693 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1699 2006-01-12 Fernando Perez <Fernando.Perez@colorado.edu>
1694
1700
1695 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1701 * IPython/ipstruct.py (Struct): Rename IPython.Struct to
1696 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1702 IPython.ipstruct, to avoid local shadowing of the stdlib 'struct'
1697 module in case-insensitive installation. Was causing crashes
1703 module in case-insensitive installation. Was causing crashes
1698 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1704 under win32. Closes http://www.scipy.net/roundup/ipython/issue49.
1699
1705
1700 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1706 * IPython/Magic.py (magic_pycat): Fix pycat, patch by Marien Zwart
1701 <marienz-AT-gentoo.org>, closes
1707 <marienz-AT-gentoo.org>, closes
1702 http://www.scipy.net/roundup/ipython/issue51.
1708 http://www.scipy.net/roundup/ipython/issue51.
1703
1709
1704 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1710 2006-01-11 Fernando Perez <Fernando.Perez@colorado.edu>
1705
1711
1706 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1712 * IPython/Shell.py (IPShellGTK.on_timer): Finally fix the
1707 problem of excessive CPU usage under *nix and keyboard lag under
1713 problem of excessive CPU usage under *nix and keyboard lag under
1708 win32.
1714 win32.
1709
1715
1710 2006-01-10 *** Released version 0.7.0
1716 2006-01-10 *** Released version 0.7.0
1711
1717
1712 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1718 2006-01-10 Fernando Perez <Fernando.Perez@colorado.edu>
1713
1719
1714 * IPython/Release.py (revision): tag version number to 0.7.0,
1720 * IPython/Release.py (revision): tag version number to 0.7.0,
1715 ready for release.
1721 ready for release.
1716
1722
1717 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1723 * IPython/Magic.py (magic_edit): Add print statement to %edit so
1718 it informs the user of the name of the temp. file used. This can
1724 it informs the user of the name of the temp. file used. This can
1719 help if you decide later to reuse that same file, so you know
1725 help if you decide later to reuse that same file, so you know
1720 where to copy the info from.
1726 where to copy the info from.
1721
1727
1722 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1728 2006-01-09 Fernando Perez <Fernando.Perez@colorado.edu>
1723
1729
1724 * setup_bdist_egg.py: little script to build an egg. Added
1730 * setup_bdist_egg.py: little script to build an egg. Added
1725 support in the release tools as well.
1731 support in the release tools as well.
1726
1732
1727 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1733 2006-01-08 Fernando Perez <Fernando.Perez@colorado.edu>
1728
1734
1729 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1735 * IPython/Shell.py (IPShellWX.__init__): add support for WXPython
1730 version selection (new -wxversion command line and ipythonrc
1736 version selection (new -wxversion command line and ipythonrc
1731 parameter). Patch contributed by Arnd Baecker
1737 parameter). Patch contributed by Arnd Baecker
1732 <arnd.baecker-AT-web.de>.
1738 <arnd.baecker-AT-web.de>.
1733
1739
1734 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1740 * IPython/iplib.py (embed_mainloop): fix tab-completion in
1735 embedded instances, for variables defined at the interactive
1741 embedded instances, for variables defined at the interactive
1736 prompt of the embedded ipython. Reported by Arnd.
1742 prompt of the embedded ipython. Reported by Arnd.
1737
1743
1738 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1744 * IPython/Magic.py (magic_autocall): Fix %autocall magic. Now
1739 it can be used as a (stateful) toggle, or with a direct parameter.
1745 it can be used as a (stateful) toggle, or with a direct parameter.
1740
1746
1741 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1747 * IPython/ultraTB.py (_fixed_getinnerframes): remove debug assert which
1742 could be triggered in certain cases and cause the traceback
1748 could be triggered in certain cases and cause the traceback
1743 printer not to work.
1749 printer not to work.
1744
1750
1745 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1751 2006-01-07 Fernando Perez <Fernando.Perez@colorado.edu>
1746
1752
1747 * IPython/iplib.py (_should_recompile): Small fix, closes
1753 * IPython/iplib.py (_should_recompile): Small fix, closes
1748 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1754 http://www.scipy.net/roundup/ipython/issue48. Patch by Scott.
1749
1755
1750 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1756 2006-01-04 Fernando Perez <Fernando.Perez@colorado.edu>
1751
1757
1752 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1758 * IPython/Shell.py (IPShellGTK.mainloop): fix bug in the GTK
1753 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1759 backend for matplotlib (100% cpu utiliziation). Thanks to Charlie
1754 Moad for help with tracking it down.
1760 Moad for help with tracking it down.
1755
1761
1756 * IPython/iplib.py (handle_auto): fix autocall handling for
1762 * IPython/iplib.py (handle_auto): fix autocall handling for
1757 objects which support BOTH __getitem__ and __call__ (so that f [x]
1763 objects which support BOTH __getitem__ and __call__ (so that f [x]
1758 is left alone, instead of becoming f([x]) automatically).
1764 is left alone, instead of becoming f([x]) automatically).
1759
1765
1760 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1766 * IPython/Magic.py (magic_cd): fix crash when cd -b was used.
1761 Ville's patch.
1767 Ville's patch.
1762
1768
1763 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1769 2006-01-03 Fernando Perez <Fernando.Perez@colorado.edu>
1764
1770
1765 * IPython/iplib.py (handle_auto): changed autocall semantics to
1771 * IPython/iplib.py (handle_auto): changed autocall semantics to
1766 include 'smart' mode, where the autocall transformation is NOT
1772 include 'smart' mode, where the autocall transformation is NOT
1767 applied if there are no arguments on the line. This allows you to
1773 applied if there are no arguments on the line. This allows you to
1768 just type 'foo' if foo is a callable to see its internal form,
1774 just type 'foo' if foo is a callable to see its internal form,
1769 instead of having it called with no arguments (typically a
1775 instead of having it called with no arguments (typically a
1770 mistake). The old 'full' autocall still exists: for that, you
1776 mistake). The old 'full' autocall still exists: for that, you
1771 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1777 need to set the 'autocall' parameter to 2 in your ipythonrc file.
1772
1778
1773 * IPython/completer.py (Completer.attr_matches): add
1779 * IPython/completer.py (Completer.attr_matches): add
1774 tab-completion support for Enthoughts' traits. After a report by
1780 tab-completion support for Enthoughts' traits. After a report by
1775 Arnd and a patch by Prabhu.
1781 Arnd and a patch by Prabhu.
1776
1782
1777 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1783 2006-01-02 Fernando Perez <Fernando.Perez@colorado.edu>
1778
1784
1779 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1785 * IPython/ultraTB.py (_fixed_getinnerframes): added Alex
1780 Schmolck's patch to fix inspect.getinnerframes().
1786 Schmolck's patch to fix inspect.getinnerframes().
1781
1787
1782 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1788 * IPython/iplib.py (InteractiveShell.__init__): significant fixes
1783 for embedded instances, regarding handling of namespaces and items
1789 for embedded instances, regarding handling of namespaces and items
1784 added to the __builtin__ one. Multiple embedded instances and
1790 added to the __builtin__ one. Multiple embedded instances and
1785 recursive embeddings should work better now (though I'm not sure
1791 recursive embeddings should work better now (though I'm not sure
1786 I've got all the corner cases fixed, that code is a bit of a brain
1792 I've got all the corner cases fixed, that code is a bit of a brain
1787 twister).
1793 twister).
1788
1794
1789 * IPython/Magic.py (magic_edit): added support to edit in-memory
1795 * IPython/Magic.py (magic_edit): added support to edit in-memory
1790 macros (automatically creates the necessary temp files). %edit
1796 macros (automatically creates the necessary temp files). %edit
1791 also doesn't return the file contents anymore, it's just noise.
1797 also doesn't return the file contents anymore, it's just noise.
1792
1798
1793 * IPython/completer.py (Completer.attr_matches): revert change to
1799 * IPython/completer.py (Completer.attr_matches): revert change to
1794 complete only on attributes listed in __all__. I realized it
1800 complete only on attributes listed in __all__. I realized it
1795 cripples the tab-completion system as a tool for exploring the
1801 cripples the tab-completion system as a tool for exploring the
1796 internals of unknown libraries (it renders any non-__all__
1802 internals of unknown libraries (it renders any non-__all__
1797 attribute off-limits). I got bit by this when trying to see
1803 attribute off-limits). I got bit by this when trying to see
1798 something inside the dis module.
1804 something inside the dis module.
1799
1805
1800 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1806 2005-12-31 Fernando Perez <Fernando.Perez@colorado.edu>
1801
1807
1802 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1808 * IPython/iplib.py (InteractiveShell.__init__): add .meta
1803 namespace for users and extension writers to hold data in. This
1809 namespace for users and extension writers to hold data in. This
1804 follows the discussion in
1810 follows the discussion in
1805 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1811 http://projects.scipy.org/ipython/ipython/wiki/RefactoringIPython.
1806
1812
1807 * IPython/completer.py (IPCompleter.complete): small patch to help
1813 * IPython/completer.py (IPCompleter.complete): small patch to help
1808 tab-completion under Emacs, after a suggestion by John Barnard
1814 tab-completion under Emacs, after a suggestion by John Barnard
1809 <barnarj-AT-ccf.org>.
1815 <barnarj-AT-ccf.org>.
1810
1816
1811 * IPython/Magic.py (Magic.extract_input_slices): added support for
1817 * IPython/Magic.py (Magic.extract_input_slices): added support for
1812 the slice notation in magics to use N-M to represent numbers N...M
1818 the slice notation in magics to use N-M to represent numbers N...M
1813 (closed endpoints). This is used by %macro and %save.
1819 (closed endpoints). This is used by %macro and %save.
1814
1820
1815 * IPython/completer.py (Completer.attr_matches): for modules which
1821 * IPython/completer.py (Completer.attr_matches): for modules which
1816 define __all__, complete only on those. After a patch by Jeffrey
1822 define __all__, complete only on those. After a patch by Jeffrey
1817 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1823 Collins <jcollins_boulder-AT-earthlink.net>. Also, clean up and
1818 speed up this routine.
1824 speed up this routine.
1819
1825
1820 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1826 * IPython/Logger.py (Logger.log): fix a history handling bug. I
1821 don't know if this is the end of it, but the behavior now is
1827 don't know if this is the end of it, but the behavior now is
1822 certainly much more correct. Note that coupled with macros,
1828 certainly much more correct. Note that coupled with macros,
1823 slightly surprising (at first) behavior may occur: a macro will in
1829 slightly surprising (at first) behavior may occur: a macro will in
1824 general expand to multiple lines of input, so upon exiting, the
1830 general expand to multiple lines of input, so upon exiting, the
1825 in/out counters will both be bumped by the corresponding amount
1831 in/out counters will both be bumped by the corresponding amount
1826 (as if the macro's contents had been typed interactively). Typing
1832 (as if the macro's contents had been typed interactively). Typing
1827 %hist will reveal the intermediate (silently processed) lines.
1833 %hist will reveal the intermediate (silently processed) lines.
1828
1834
1829 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1835 * IPython/Magic.py (magic_run): fix a subtle bug which could cause
1830 pickle to fail (%run was overwriting __main__ and not restoring
1836 pickle to fail (%run was overwriting __main__ and not restoring
1831 it, but pickle relies on __main__ to operate).
1837 it, but pickle relies on __main__ to operate).
1832
1838
1833 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1839 * IPython/iplib.py (InteractiveShell): fix pdb calling: I'm now
1834 using properties, but forgot to make the main InteractiveShell
1840 using properties, but forgot to make the main InteractiveShell
1835 class a new-style class. Properties fail silently, and
1841 class a new-style class. Properties fail silently, and
1836 mysteriously, with old-style class (getters work, but
1842 mysteriously, with old-style class (getters work, but
1837 setters don't do anything).
1843 setters don't do anything).
1838
1844
1839 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1845 2005-12-30 Fernando Perez <Fernando.Perez@colorado.edu>
1840
1846
1841 * IPython/Magic.py (magic_history): fix history reporting bug (I
1847 * IPython/Magic.py (magic_history): fix history reporting bug (I
1842 know some nasties are still there, I just can't seem to find a
1848 know some nasties are still there, I just can't seem to find a
1843 reproducible test case to track them down; the input history is
1849 reproducible test case to track them down; the input history is
1844 falling out of sync...)
1850 falling out of sync...)
1845
1851
1846 * IPython/iplib.py (handle_shell_escape): fix bug where both
1852 * IPython/iplib.py (handle_shell_escape): fix bug where both
1847 aliases and system accesses where broken for indented code (such
1853 aliases and system accesses where broken for indented code (such
1848 as loops).
1854 as loops).
1849
1855
1850 * IPython/genutils.py (shell): fix small but critical bug for
1856 * IPython/genutils.py (shell): fix small but critical bug for
1851 win32 system access.
1857 win32 system access.
1852
1858
1853 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1859 2005-12-29 Fernando Perez <Fernando.Perez@colorado.edu>
1854
1860
1855 * IPython/iplib.py (showtraceback): remove use of the
1861 * IPython/iplib.py (showtraceback): remove use of the
1856 sys.last_{type/value/traceback} structures, which are non
1862 sys.last_{type/value/traceback} structures, which are non
1857 thread-safe.
1863 thread-safe.
1858 (_prefilter): change control flow to ensure that we NEVER
1864 (_prefilter): change control flow to ensure that we NEVER
1859 introspect objects when autocall is off. This will guarantee that
1865 introspect objects when autocall is off. This will guarantee that
1860 having an input line of the form 'x.y', where access to attribute
1866 having an input line of the form 'x.y', where access to attribute
1861 'y' has side effects, doesn't trigger the side effect TWICE. It
1867 'y' has side effects, doesn't trigger the side effect TWICE. It
1862 is important to note that, with autocall on, these side effects
1868 is important to note that, with autocall on, these side effects
1863 can still happen.
1869 can still happen.
1864 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1870 (ipsystem): new builtin, to complete the ip{magic/alias/system}
1865 trio. IPython offers these three kinds of special calls which are
1871 trio. IPython offers these three kinds of special calls which are
1866 not python code, and it's a good thing to have their call method
1872 not python code, and it's a good thing to have their call method
1867 be accessible as pure python functions (not just special syntax at
1873 be accessible as pure python functions (not just special syntax at
1868 the command line). It gives us a better internal implementation
1874 the command line). It gives us a better internal implementation
1869 structure, as well as exposing these for user scripting more
1875 structure, as well as exposing these for user scripting more
1870 cleanly.
1876 cleanly.
1871
1877
1872 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1878 * IPython/macro.py (Macro.__init__): moved macros to a standalone
1873 file. Now that they'll be more likely to be used with the
1879 file. Now that they'll be more likely to be used with the
1874 persistance system (%store), I want to make sure their module path
1880 persistance system (%store), I want to make sure their module path
1875 doesn't change in the future, so that we don't break things for
1881 doesn't change in the future, so that we don't break things for
1876 users' persisted data.
1882 users' persisted data.
1877
1883
1878 * IPython/iplib.py (autoindent_update): move indentation
1884 * IPython/iplib.py (autoindent_update): move indentation
1879 management into the _text_ processing loop, not the keyboard
1885 management into the _text_ processing loop, not the keyboard
1880 interactive one. This is necessary to correctly process non-typed
1886 interactive one. This is necessary to correctly process non-typed
1881 multiline input (such as macros).
1887 multiline input (such as macros).
1882
1888
1883 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1889 * IPython/Magic.py (Magic.format_latex): patch by Stefan van der
1884 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1890 Walt <stefan-AT-sun.ac.za> to fix latex formatting of docstrings,
1885 which was producing problems in the resulting manual.
1891 which was producing problems in the resulting manual.
1886 (magic_whos): improve reporting of instances (show their class,
1892 (magic_whos): improve reporting of instances (show their class,
1887 instead of simply printing 'instance' which isn't terribly
1893 instead of simply printing 'instance' which isn't terribly
1888 informative).
1894 informative).
1889
1895
1890 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1896 * IPython/genutils.py (shell): commit Jorgen Stenarson's patch
1891 (minor mods) to support network shares under win32.
1897 (minor mods) to support network shares under win32.
1892
1898
1893 * IPython/winconsole.py (get_console_size): add new winconsole
1899 * IPython/winconsole.py (get_console_size): add new winconsole
1894 module and fixes to page_dumb() to improve its behavior under
1900 module and fixes to page_dumb() to improve its behavior under
1895 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1901 win32. Contributed by Alexander Belchenko <bialix-AT-ukr.net>.
1896
1902
1897 * IPython/Magic.py (Macro): simplified Macro class to just
1903 * IPython/Magic.py (Macro): simplified Macro class to just
1898 subclass list. We've had only 2.2 compatibility for a very long
1904 subclass list. We've had only 2.2 compatibility for a very long
1899 time, yet I was still avoiding subclassing the builtin types. No
1905 time, yet I was still avoiding subclassing the builtin types. No
1900 more (I'm also starting to use properties, though I won't shift to
1906 more (I'm also starting to use properties, though I won't shift to
1901 2.3-specific features quite yet).
1907 2.3-specific features quite yet).
1902 (magic_store): added Ville's patch for lightweight variable
1908 (magic_store): added Ville's patch for lightweight variable
1903 persistence, after a request on the user list by Matt Wilkie
1909 persistence, after a request on the user list by Matt Wilkie
1904 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1910 <maphew-AT-gmail.com>. The new %store magic's docstring has full
1905 details.
1911 details.
1906
1912
1907 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1913 * IPython/iplib.py (InteractiveShell.post_config_initialization):
1908 changed the default logfile name from 'ipython.log' to
1914 changed the default logfile name from 'ipython.log' to
1909 'ipython_log.py'. These logs are real python files, and now that
1915 'ipython_log.py'. These logs are real python files, and now that
1910 we have much better multiline support, people are more likely to
1916 we have much better multiline support, people are more likely to
1911 want to use them as such. Might as well name them correctly.
1917 want to use them as such. Might as well name them correctly.
1912
1918
1913 * IPython/Magic.py: substantial cleanup. While we can't stop
1919 * IPython/Magic.py: substantial cleanup. While we can't stop
1914 using magics as mixins, due to the existing customizations 'out
1920 using magics as mixins, due to the existing customizations 'out
1915 there' which rely on the mixin naming conventions, at least I
1921 there' which rely on the mixin naming conventions, at least I
1916 cleaned out all cross-class name usage. So once we are OK with
1922 cleaned out all cross-class name usage. So once we are OK with
1917 breaking compatibility, the two systems can be separated.
1923 breaking compatibility, the two systems can be separated.
1918
1924
1919 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1925 * IPython/Logger.py: major cleanup. This one is NOT a mixin
1920 anymore, and the class is a fair bit less hideous as well. New
1926 anymore, and the class is a fair bit less hideous as well. New
1921 features were also introduced: timestamping of input, and logging
1927 features were also introduced: timestamping of input, and logging
1922 of output results. These are user-visible with the -t and -o
1928 of output results. These are user-visible with the -t and -o
1923 options to %logstart. Closes
1929 options to %logstart. Closes
1924 http://www.scipy.net/roundup/ipython/issue11 and a request by
1930 http://www.scipy.net/roundup/ipython/issue11 and a request by
1925 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1931 William Stein (SAGE developer - http://modular.ucsd.edu/sage).
1926
1932
1927 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1933 2005-12-28 Fernando Perez <Fernando.Perez@colorado.edu>
1928
1934
1929 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1935 * IPython/iplib.py (handle_shell_escape): add Ville's patch to
1930 better handle backslashes in paths. See the thread 'More Windows
1936 better handle backslashes in paths. See the thread 'More Windows
1931 questions part 2 - \/ characters revisited' on the iypthon user
1937 questions part 2 - \/ characters revisited' on the iypthon user
1932 list:
1938 list:
1933 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1939 http://scipy.net/pipermail/ipython-user/2005-June/000907.html
1934
1940
1935 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1941 (InteractiveShell.__init__): fix tab-completion bug in threaded shells.
1936
1942
1937 (InteractiveShell.__init__): change threaded shells to not use the
1943 (InteractiveShell.__init__): change threaded shells to not use the
1938 ipython crash handler. This was causing more problems than not,
1944 ipython crash handler. This was causing more problems than not,
1939 as exceptions in the main thread (GUI code, typically) would
1945 as exceptions in the main thread (GUI code, typically) would
1940 always show up as a 'crash', when they really weren't.
1946 always show up as a 'crash', when they really weren't.
1941
1947
1942 The colors and exception mode commands (%colors/%xmode) have been
1948 The colors and exception mode commands (%colors/%xmode) have been
1943 synchronized to also take this into account, so users can get
1949 synchronized to also take this into account, so users can get
1944 verbose exceptions for their threaded code as well. I also added
1950 verbose exceptions for their threaded code as well. I also added
1945 support for activating pdb inside this exception handler as well,
1951 support for activating pdb inside this exception handler as well,
1946 so now GUI authors can use IPython's enhanced pdb at runtime.
1952 so now GUI authors can use IPython's enhanced pdb at runtime.
1947
1953
1948 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1954 * IPython/ipmaker.py (make_IPython): make the autoedit_syntax flag
1949 true by default, and add it to the shipped ipythonrc file. Since
1955 true by default, and add it to the shipped ipythonrc file. Since
1950 this asks the user before proceeding, I think it's OK to make it
1956 this asks the user before proceeding, I think it's OK to make it
1951 true by default.
1957 true by default.
1952
1958
1953 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1959 * IPython/Magic.py (magic_exit): make new exit/quit magics instead
1954 of the previous special-casing of input in the eval loop. I think
1960 of the previous special-casing of input in the eval loop. I think
1955 this is cleaner, as they really are commands and shouldn't have
1961 this is cleaner, as they really are commands and shouldn't have
1956 a special role in the middle of the core code.
1962 a special role in the middle of the core code.
1957
1963
1958 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1964 2005-12-27 Fernando Perez <Fernando.Perez@colorado.edu>
1959
1965
1960 * IPython/iplib.py (edit_syntax_error): added support for
1966 * IPython/iplib.py (edit_syntax_error): added support for
1961 automatically reopening the editor if the file had a syntax error
1967 automatically reopening the editor if the file had a syntax error
1962 in it. Thanks to scottt who provided the patch at:
1968 in it. Thanks to scottt who provided the patch at:
1963 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1969 http://www.scipy.net/roundup/ipython/issue36 (slightly modified
1964 version committed).
1970 version committed).
1965
1971
1966 * IPython/iplib.py (handle_normal): add suport for multi-line
1972 * IPython/iplib.py (handle_normal): add suport for multi-line
1967 input with emtpy lines. This fixes
1973 input with emtpy lines. This fixes
1968 http://www.scipy.net/roundup/ipython/issue43 and a similar
1974 http://www.scipy.net/roundup/ipython/issue43 and a similar
1969 discussion on the user list.
1975 discussion on the user list.
1970
1976
1971 WARNING: a behavior change is necessarily introduced to support
1977 WARNING: a behavior change is necessarily introduced to support
1972 blank lines: now a single blank line with whitespace does NOT
1978 blank lines: now a single blank line with whitespace does NOT
1973 break the input loop, which means that when autoindent is on, by
1979 break the input loop, which means that when autoindent is on, by
1974 default hitting return on the next (indented) line does NOT exit.
1980 default hitting return on the next (indented) line does NOT exit.
1975
1981
1976 Instead, to exit a multiline input you can either have:
1982 Instead, to exit a multiline input you can either have:
1977
1983
1978 - TWO whitespace lines (just hit return again), or
1984 - TWO whitespace lines (just hit return again), or
1979 - a single whitespace line of a different length than provided
1985 - a single whitespace line of a different length than provided
1980 by the autoindent (add or remove a space).
1986 by the autoindent (add or remove a space).
1981
1987
1982 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1988 * IPython/completer.py (MagicCompleter.__init__): new 'completer'
1983 module to better organize all readline-related functionality.
1989 module to better organize all readline-related functionality.
1984 I've deleted FlexCompleter and put all completion clases here.
1990 I've deleted FlexCompleter and put all completion clases here.
1985
1991
1986 * IPython/iplib.py (raw_input): improve indentation management.
1992 * IPython/iplib.py (raw_input): improve indentation management.
1987 It is now possible to paste indented code with autoindent on, and
1993 It is now possible to paste indented code with autoindent on, and
1988 the code is interpreted correctly (though it still looks bad on
1994 the code is interpreted correctly (though it still looks bad on
1989 screen, due to the line-oriented nature of ipython).
1995 screen, due to the line-oriented nature of ipython).
1990 (MagicCompleter.complete): change behavior so that a TAB key on an
1996 (MagicCompleter.complete): change behavior so that a TAB key on an
1991 otherwise empty line actually inserts a tab, instead of completing
1997 otherwise empty line actually inserts a tab, instead of completing
1992 on the entire global namespace. This makes it easier to use the
1998 on the entire global namespace. This makes it easier to use the
1993 TAB key for indentation. After a request by Hans Meine
1999 TAB key for indentation. After a request by Hans Meine
1994 <hans_meine-AT-gmx.net>
2000 <hans_meine-AT-gmx.net>
1995 (_prefilter): add support so that typing plain 'exit' or 'quit'
2001 (_prefilter): add support so that typing plain 'exit' or 'quit'
1996 does a sensible thing. Originally I tried to deviate as little as
2002 does a sensible thing. Originally I tried to deviate as little as
1997 possible from the default python behavior, but even that one may
2003 possible from the default python behavior, but even that one may
1998 change in this direction (thread on python-dev to that effect).
2004 change in this direction (thread on python-dev to that effect).
1999 Regardless, ipython should do the right thing even if CPython's
2005 Regardless, ipython should do the right thing even if CPython's
2000 '>>>' prompt doesn't.
2006 '>>>' prompt doesn't.
2001 (InteractiveShell): removed subclassing code.InteractiveConsole
2007 (InteractiveShell): removed subclassing code.InteractiveConsole
2002 class. By now we'd overridden just about all of its methods: I've
2008 class. By now we'd overridden just about all of its methods: I've
2003 copied the remaining two over, and now ipython is a standalone
2009 copied the remaining two over, and now ipython is a standalone
2004 class. This will provide a clearer picture for the chainsaw
2010 class. This will provide a clearer picture for the chainsaw
2005 branch refactoring.
2011 branch refactoring.
2006
2012
2007 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2013 2005-12-26 Fernando Perez <Fernando.Perez@colorado.edu>
2008
2014
2009 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2015 * IPython/ultraTB.py (VerboseTB.text): harden reporting against
2010 failures for objects which break when dir() is called on them.
2016 failures for objects which break when dir() is called on them.
2011
2017
2012 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2018 * IPython/FlexCompleter.py (Completer.__init__): Added support for
2013 distinct local and global namespaces in the completer API. This
2019 distinct local and global namespaces in the completer API. This
2014 change allows us to properly handle completion with distinct
2020 change allows us to properly handle completion with distinct
2015 scopes, including in embedded instances (this had never really
2021 scopes, including in embedded instances (this had never really
2016 worked correctly).
2022 worked correctly).
2017
2023
2018 Note: this introduces a change in the constructor for
2024 Note: this introduces a change in the constructor for
2019 MagicCompleter, as a new global_namespace parameter is now the
2025 MagicCompleter, as a new global_namespace parameter is now the
2020 second argument (the others were bumped one position).
2026 second argument (the others were bumped one position).
2021
2027
2022 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2028 2005-12-25 Fernando Perez <Fernando.Perez@colorado.edu>
2023
2029
2024 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2030 * IPython/iplib.py (embed_mainloop): fix tab-completion in
2025 embedded instances (which can be done now thanks to Vivian's
2031 embedded instances (which can be done now thanks to Vivian's
2026 frame-handling fixes for pdb).
2032 frame-handling fixes for pdb).
2027 (InteractiveShell.__init__): Fix namespace handling problem in
2033 (InteractiveShell.__init__): Fix namespace handling problem in
2028 embedded instances. We were overwriting __main__ unconditionally,
2034 embedded instances. We were overwriting __main__ unconditionally,
2029 and this should only be done for 'full' (non-embedded) IPython;
2035 and this should only be done for 'full' (non-embedded) IPython;
2030 embedded instances must respect the caller's __main__. Thanks to
2036 embedded instances must respect the caller's __main__. Thanks to
2031 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2037 a bug report by Yaroslav Bulatov <yaroslavvb-AT-gmail.com>
2032
2038
2033 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2039 2005-12-24 Fernando Perez <Fernando.Perez@colorado.edu>
2034
2040
2035 * setup.py: added download_url to setup(). This registers the
2041 * setup.py: added download_url to setup(). This registers the
2036 download address at PyPI, which is not only useful to humans
2042 download address at PyPI, which is not only useful to humans
2037 browsing the site, but is also picked up by setuptools (the Eggs
2043 browsing the site, but is also picked up by setuptools (the Eggs
2038 machinery). Thanks to Ville and R. Kern for the info/discussion
2044 machinery). Thanks to Ville and R. Kern for the info/discussion
2039 on this.
2045 on this.
2040
2046
2041 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2047 2005-12-23 Fernando Perez <Fernando.Perez@colorado.edu>
2042
2048
2043 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2049 * IPython/Debugger.py (Pdb.__init__): Major pdb mode enhancements.
2044 This brings a lot of nice functionality to the pdb mode, which now
2050 This brings a lot of nice functionality to the pdb mode, which now
2045 has tab-completion, syntax highlighting, and better stack handling
2051 has tab-completion, syntax highlighting, and better stack handling
2046 than before. Many thanks to Vivian De Smedt
2052 than before. Many thanks to Vivian De Smedt
2047 <vivian-AT-vdesmedt.com> for the original patches.
2053 <vivian-AT-vdesmedt.com> for the original patches.
2048
2054
2049 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2055 2005-12-08 Fernando Perez <Fernando.Perez@colorado.edu>
2050
2056
2051 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2057 * IPython/Shell.py (IPShellGTK.mainloop): fix mainloop() calling
2052 sequence to consistently accept the banner argument. The
2058 sequence to consistently accept the banner argument. The
2053 inconsistency was tripping SAGE, thanks to Gary Zablackis
2059 inconsistency was tripping SAGE, thanks to Gary Zablackis
2054 <gzabl-AT-yahoo.com> for the report.
2060 <gzabl-AT-yahoo.com> for the report.
2055
2061
2056 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2062 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2057
2063
2058 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2064 * IPython/iplib.py (InteractiveShell.post_config_initialization):
2059 Fix bug where a naked 'alias' call in the ipythonrc file would
2065 Fix bug where a naked 'alias' call in the ipythonrc file would
2060 cause a crash. Bug reported by Jorgen Stenarson.
2066 cause a crash. Bug reported by Jorgen Stenarson.
2061
2067
2062 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2068 2005-11-15 Fernando Perez <Fernando.Perez@colorado.edu>
2063
2069
2064 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2070 * IPython/ipmaker.py (make_IPython): cleanups which should improve
2065 startup time.
2071 startup time.
2066
2072
2067 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2073 * IPython/iplib.py (runcode): my globals 'fix' for embedded
2068 instances had introduced a bug with globals in normal code. Now
2074 instances had introduced a bug with globals in normal code. Now
2069 it's working in all cases.
2075 it's working in all cases.
2070
2076
2071 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2077 * IPython/Magic.py (magic_psearch): Finish wildcard cleanup and
2072 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2078 API changes. A new ipytonrc option, 'wildcards_case_sensitive'
2073 has been introduced to set the default case sensitivity of the
2079 has been introduced to set the default case sensitivity of the
2074 searches. Users can still select either mode at runtime on a
2080 searches. Users can still select either mode at runtime on a
2075 per-search basis.
2081 per-search basis.
2076
2082
2077 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2083 2005-11-13 Fernando Perez <Fernando.Perez@colorado.edu>
2078
2084
2079 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2085 * IPython/wildcard.py (NameSpace.__init__): fix resolution of
2080 attributes in wildcard searches for subclasses. Modified version
2086 attributes in wildcard searches for subclasses. Modified version
2081 of a patch by Jorgen.
2087 of a patch by Jorgen.
2082
2088
2083 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2089 2005-11-12 Fernando Perez <Fernando.Perez@colorado.edu>
2084
2090
2085 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2091 * IPython/iplib.py (embed_mainloop): Fix handling of globals for
2086 embedded instances. I added a user_global_ns attribute to the
2092 embedded instances. I added a user_global_ns attribute to the
2087 InteractiveShell class to handle this.
2093 InteractiveShell class to handle this.
2088
2094
2089 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2095 2005-10-31 Fernando Perez <Fernando.Perez@colorado.edu>
2090
2096
2091 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2097 * IPython/Shell.py (IPShellGTK.mainloop): Change timeout_add to
2092 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2098 idle_add, which fixes horrible keyboard lag problems under gtk 2.6
2093 (reported under win32, but may happen also in other platforms).
2099 (reported under win32, but may happen also in other platforms).
2094 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2100 Bug report and fix courtesy of Sean Moore <smm-AT-logic.bm>
2095
2101
2096 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2102 2005-10-15 Fernando Perez <Fernando.Perez@colorado.edu>
2097
2103
2098 * IPython/Magic.py (magic_psearch): new support for wildcard
2104 * IPython/Magic.py (magic_psearch): new support for wildcard
2099 patterns. Now, typing ?a*b will list all names which begin with a
2105 patterns. Now, typing ?a*b will list all names which begin with a
2100 and end in b, for example. The %psearch magic has full
2106 and end in b, for example. The %psearch magic has full
2101 docstrings. Many thanks to JΓΆrgen Stenarson
2107 docstrings. Many thanks to JΓΆrgen Stenarson
2102 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2108 <jorgen.stenarson-AT-bostream.nu>, author of the patches
2103 implementing this functionality.
2109 implementing this functionality.
2104
2110
2105 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2111 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2106
2112
2107 * Manual: fixed long-standing annoyance of double-dashes (as in
2113 * Manual: fixed long-standing annoyance of double-dashes (as in
2108 --prefix=~, for example) being stripped in the HTML version. This
2114 --prefix=~, for example) being stripped in the HTML version. This
2109 is a latex2html bug, but a workaround was provided. Many thanks
2115 is a latex2html bug, but a workaround was provided. Many thanks
2110 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2116 to George K. Thiruvathukal <gthiruv-AT-luc.edu> for the detailed
2111 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2117 help, and Michael Tobis <mtobis-AT-gmail.com> for getting the ball
2112 rolling. This seemingly small issue had tripped a number of users
2118 rolling. This seemingly small issue had tripped a number of users
2113 when first installing, so I'm glad to see it gone.
2119 when first installing, so I'm glad to see it gone.
2114
2120
2115 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2121 2005-09-27 Fernando Perez <Fernando.Perez@colorado.edu>
2116
2122
2117 * IPython/Extensions/numeric_formats.py: fix missing import,
2123 * IPython/Extensions/numeric_formats.py: fix missing import,
2118 reported by Stephen Walton.
2124 reported by Stephen Walton.
2119
2125
2120 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2126 2005-09-24 Fernando Perez <Fernando.Perez@colorado.edu>
2121
2127
2122 * IPython/demo.py: finish demo module, fully documented now.
2128 * IPython/demo.py: finish demo module, fully documented now.
2123
2129
2124 * IPython/genutils.py (file_read): simple little utility to read a
2130 * IPython/genutils.py (file_read): simple little utility to read a
2125 file and ensure it's closed afterwards.
2131 file and ensure it's closed afterwards.
2126
2132
2127 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2133 2005-09-23 Fernando Perez <Fernando.Perez@colorado.edu>
2128
2134
2129 * IPython/demo.py (Demo.__init__): added support for individually
2135 * IPython/demo.py (Demo.__init__): added support for individually
2130 tagging blocks for automatic execution.
2136 tagging blocks for automatic execution.
2131
2137
2132 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2138 * IPython/Magic.py (magic_pycat): new %pycat magic for showing
2133 syntax-highlighted python sources, requested by John.
2139 syntax-highlighted python sources, requested by John.
2134
2140
2135 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2141 2005-09-22 Fernando Perez <Fernando.Perez@colorado.edu>
2136
2142
2137 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2143 * IPython/demo.py (Demo.again): fix bug where again() blocks after
2138 finishing.
2144 finishing.
2139
2145
2140 * IPython/genutils.py (shlex_split): moved from Magic to here,
2146 * IPython/genutils.py (shlex_split): moved from Magic to here,
2141 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2147 where all 2.2 compatibility stuff lives. I needed it for demo.py.
2142
2148
2143 * IPython/demo.py (Demo.__init__): added support for silent
2149 * IPython/demo.py (Demo.__init__): added support for silent
2144 blocks, improved marks as regexps, docstrings written.
2150 blocks, improved marks as regexps, docstrings written.
2145 (Demo.__init__): better docstring, added support for sys.argv.
2151 (Demo.__init__): better docstring, added support for sys.argv.
2146
2152
2147 * IPython/genutils.py (marquee): little utility used by the demo
2153 * IPython/genutils.py (marquee): little utility used by the demo
2148 code, handy in general.
2154 code, handy in general.
2149
2155
2150 * IPython/demo.py (Demo.__init__): new class for interactive
2156 * IPython/demo.py (Demo.__init__): new class for interactive
2151 demos. Not documented yet, I just wrote it in a hurry for
2157 demos. Not documented yet, I just wrote it in a hurry for
2152 scipy'05. Will docstring later.
2158 scipy'05. Will docstring later.
2153
2159
2154 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2160 2005-09-20 Fernando Perez <Fernando.Perez@colorado.edu>
2155
2161
2156 * IPython/Shell.py (sigint_handler): Drastic simplification which
2162 * IPython/Shell.py (sigint_handler): Drastic simplification which
2157 also seems to make Ctrl-C work correctly across threads! This is
2163 also seems to make Ctrl-C work correctly across threads! This is
2158 so simple, that I can't beleive I'd missed it before. Needs more
2164 so simple, that I can't beleive I'd missed it before. Needs more
2159 testing, though.
2165 testing, though.
2160 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2166 (KBINT): Never mind, revert changes. I'm sure I'd tried something
2161 like this before...
2167 like this before...
2162
2168
2163 * IPython/genutils.py (get_home_dir): add protection against
2169 * IPython/genutils.py (get_home_dir): add protection against
2164 non-dirs in win32 registry.
2170 non-dirs in win32 registry.
2165
2171
2166 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2172 * IPython/iplib.py (InteractiveShell.alias_table_validate): fix
2167 bug where dict was mutated while iterating (pysh crash).
2173 bug where dict was mutated while iterating (pysh crash).
2168
2174
2169 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2175 2005-09-06 Fernando Perez <Fernando.Perez@colorado.edu>
2170
2176
2171 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2177 * IPython/iplib.py (handle_auto): Fix inconsistency arising from
2172 spurious newlines added by this routine. After a report by
2178 spurious newlines added by this routine. After a report by
2173 F. Mantegazza.
2179 F. Mantegazza.
2174
2180
2175 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2181 2005-09-05 Fernando Perez <Fernando.Perez@colorado.edu>
2176
2182
2177 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2183 * IPython/Shell.py (hijack_gtk): remove pygtk.require("2.0")
2178 calls. These were a leftover from the GTK 1.x days, and can cause
2184 calls. These were a leftover from the GTK 1.x days, and can cause
2179 problems in certain cases (after a report by John Hunter).
2185 problems in certain cases (after a report by John Hunter).
2180
2186
2181 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2187 * IPython/iplib.py (InteractiveShell.__init__): Trap exception if
2182 os.getcwd() fails at init time. Thanks to patch from David Remahl
2188 os.getcwd() fails at init time. Thanks to patch from David Remahl
2183 <chmod007-AT-mac.com>.
2189 <chmod007-AT-mac.com>.
2184 (InteractiveShell.__init__): prevent certain special magics from
2190 (InteractiveShell.__init__): prevent certain special magics from
2185 being shadowed by aliases. Closes
2191 being shadowed by aliases. Closes
2186 http://www.scipy.net/roundup/ipython/issue41.
2192 http://www.scipy.net/roundup/ipython/issue41.
2187
2193
2188 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2194 2005-08-31 Fernando Perez <Fernando.Perez@colorado.edu>
2189
2195
2190 * IPython/iplib.py (InteractiveShell.complete): Added new
2196 * IPython/iplib.py (InteractiveShell.complete): Added new
2191 top-level completion method to expose the completion mechanism
2197 top-level completion method to expose the completion mechanism
2192 beyond readline-based environments.
2198 beyond readline-based environments.
2193
2199
2194 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2200 2005-08-19 Fernando Perez <Fernando.Perez@colorado.edu>
2195
2201
2196 * tools/ipsvnc (svnversion): fix svnversion capture.
2202 * tools/ipsvnc (svnversion): fix svnversion capture.
2197
2203
2198 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2204 * IPython/iplib.py (InteractiveShell.__init__): Add has_readline
2199 attribute to self, which was missing. Before, it was set by a
2205 attribute to self, which was missing. Before, it was set by a
2200 routine which in certain cases wasn't being called, so the
2206 routine which in certain cases wasn't being called, so the
2201 instance could end up missing the attribute. This caused a crash.
2207 instance could end up missing the attribute. This caused a crash.
2202 Closes http://www.scipy.net/roundup/ipython/issue40.
2208 Closes http://www.scipy.net/roundup/ipython/issue40.
2203
2209
2204 2005-08-16 Fernando Perez <fperez@colorado.edu>
2210 2005-08-16 Fernando Perez <fperez@colorado.edu>
2205
2211
2206 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2212 * IPython/ultraTB.py (VerboseTB.text): don't crash if object
2207 contains non-string attribute. Closes
2213 contains non-string attribute. Closes
2208 http://www.scipy.net/roundup/ipython/issue38.
2214 http://www.scipy.net/roundup/ipython/issue38.
2209
2215
2210 2005-08-14 Fernando Perez <fperez@colorado.edu>
2216 2005-08-14 Fernando Perez <fperez@colorado.edu>
2211
2217
2212 * tools/ipsvnc: Minor improvements, to add changeset info.
2218 * tools/ipsvnc: Minor improvements, to add changeset info.
2213
2219
2214 2005-08-12 Fernando Perez <fperez@colorado.edu>
2220 2005-08-12 Fernando Perez <fperez@colorado.edu>
2215
2221
2216 * IPython/iplib.py (runsource): remove self.code_to_run_src
2222 * IPython/iplib.py (runsource): remove self.code_to_run_src
2217 attribute. I realized this is nothing more than
2223 attribute. I realized this is nothing more than
2218 '\n'.join(self.buffer), and having the same data in two different
2224 '\n'.join(self.buffer), and having the same data in two different
2219 places is just asking for synchronization bugs. This may impact
2225 places is just asking for synchronization bugs. This may impact
2220 people who have custom exception handlers, so I need to warn
2226 people who have custom exception handlers, so I need to warn
2221 ipython-dev about it (F. Mantegazza may use them).
2227 ipython-dev about it (F. Mantegazza may use them).
2222
2228
2223 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2229 2005-07-29 Fernando Perez <Fernando.Perez@colorado.edu>
2224
2230
2225 * IPython/genutils.py: fix 2.2 compatibility (generators)
2231 * IPython/genutils.py: fix 2.2 compatibility (generators)
2226
2232
2227 2005-07-18 Fernando Perez <fperez@colorado.edu>
2233 2005-07-18 Fernando Perez <fperez@colorado.edu>
2228
2234
2229 * IPython/genutils.py (get_home_dir): fix to help users with
2235 * IPython/genutils.py (get_home_dir): fix to help users with
2230 invalid $HOME under win32.
2236 invalid $HOME under win32.
2231
2237
2232 2005-07-17 Fernando Perez <fperez@colorado.edu>
2238 2005-07-17 Fernando Perez <fperez@colorado.edu>
2233
2239
2234 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2240 * IPython/Prompts.py (str_safe): Make unicode-safe. Also remove
2235 some old hacks and clean up a bit other routines; code should be
2241 some old hacks and clean up a bit other routines; code should be
2236 simpler and a bit faster.
2242 simpler and a bit faster.
2237
2243
2238 * IPython/iplib.py (interact): removed some last-resort attempts
2244 * IPython/iplib.py (interact): removed some last-resort attempts
2239 to survive broken stdout/stderr. That code was only making it
2245 to survive broken stdout/stderr. That code was only making it
2240 harder to abstract out the i/o (necessary for gui integration),
2246 harder to abstract out the i/o (necessary for gui integration),
2241 and the crashes it could prevent were extremely rare in practice
2247 and the crashes it could prevent were extremely rare in practice
2242 (besides being fully user-induced in a pretty violent manner).
2248 (besides being fully user-induced in a pretty violent manner).
2243
2249
2244 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2250 * IPython/genutils.py (IOStream.__init__): Simplify the i/o stuff.
2245 Nothing major yet, but the code is simpler to read; this should
2251 Nothing major yet, but the code is simpler to read; this should
2246 make it easier to do more serious modifications in the future.
2252 make it easier to do more serious modifications in the future.
2247
2253
2248 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2254 * IPython/Extensions/InterpreterExec.py: Fix auto-quoting in pysh,
2249 which broke in .15 (thanks to a report by Ville).
2255 which broke in .15 (thanks to a report by Ville).
2250
2256
2251 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2257 * IPython/Itpl.py (Itpl.__init__): add unicode support (it may not
2252 be quite correct, I know next to nothing about unicode). This
2258 be quite correct, I know next to nothing about unicode). This
2253 will allow unicode strings to be used in prompts, amongst other
2259 will allow unicode strings to be used in prompts, amongst other
2254 cases. It also will prevent ipython from crashing when unicode
2260 cases. It also will prevent ipython from crashing when unicode
2255 shows up unexpectedly in many places. If ascii encoding fails, we
2261 shows up unexpectedly in many places. If ascii encoding fails, we
2256 assume utf_8. Currently the encoding is not a user-visible
2262 assume utf_8. Currently the encoding is not a user-visible
2257 setting, though it could be made so if there is demand for it.
2263 setting, though it could be made so if there is demand for it.
2258
2264
2259 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2265 * IPython/ipmaker.py (make_IPython): remove old 2.1-specific hack.
2260
2266
2261 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2267 * IPython/Struct.py (Struct.merge): switch keys() to iterator.
2262
2268
2263 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2269 * IPython/background_jobs.py: moved 2.2 compatibility to genutils.
2264
2270
2265 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2271 * IPython/genutils.py: Add 2.2 compatibility here, so all other
2266 code can work transparently for 2.2/2.3.
2272 code can work transparently for 2.2/2.3.
2267
2273
2268 2005-07-16 Fernando Perez <fperez@colorado.edu>
2274 2005-07-16 Fernando Perez <fperez@colorado.edu>
2269
2275
2270 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2276 * IPython/ultraTB.py (ExceptionColors): Make a global variable
2271 out of the color scheme table used for coloring exception
2277 out of the color scheme table used for coloring exception
2272 tracebacks. This allows user code to add new schemes at runtime.
2278 tracebacks. This allows user code to add new schemes at runtime.
2273 This is a minimally modified version of the patch at
2279 This is a minimally modified version of the patch at
2274 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2280 http://www.scipy.net/roundup/ipython/issue35, many thanks to pabw
2275 for the contribution.
2281 for the contribution.
2276
2282
2277 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2283 * IPython/FlexCompleter.py (Completer.attr_matches): Add a
2278 slightly modified version of the patch in
2284 slightly modified version of the patch in
2279 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2285 http://www.scipy.net/roundup/ipython/issue34, which also allows me
2280 to remove the previous try/except solution (which was costlier).
2286 to remove the previous try/except solution (which was costlier).
2281 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2287 Thanks to Gaetan Lehmann <gaetan.lehmann-AT-jouy.inra.fr> for the fix.
2282
2288
2283 2005-06-08 Fernando Perez <fperez@colorado.edu>
2289 2005-06-08 Fernando Perez <fperez@colorado.edu>
2284
2290
2285 * IPython/iplib.py (write/write_err): Add methods to abstract all
2291 * IPython/iplib.py (write/write_err): Add methods to abstract all
2286 I/O a bit more.
2292 I/O a bit more.
2287
2293
2288 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2294 * IPython/Shell.py (IPShellGTK.mainloop): Fix GTK deprecation
2289 warning, reported by Aric Hagberg, fix by JD Hunter.
2295 warning, reported by Aric Hagberg, fix by JD Hunter.
2290
2296
2291 2005-06-02 *** Released version 0.6.15
2297 2005-06-02 *** Released version 0.6.15
2292
2298
2293 2005-06-01 Fernando Perez <fperez@colorado.edu>
2299 2005-06-01 Fernando Perez <fperez@colorado.edu>
2294
2300
2295 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2301 * IPython/iplib.py (MagicCompleter.file_matches): Fix
2296 tab-completion of filenames within open-quoted strings. Note that
2302 tab-completion of filenames within open-quoted strings. Note that
2297 this requires that in ~/.ipython/ipythonrc, users change the
2303 this requires that in ~/.ipython/ipythonrc, users change the
2298 readline delimiters configuration to read:
2304 readline delimiters configuration to read:
2299
2305
2300 readline_remove_delims -/~
2306 readline_remove_delims -/~
2301
2307
2302
2308
2303 2005-05-31 *** Released version 0.6.14
2309 2005-05-31 *** Released version 0.6.14
2304
2310
2305 2005-05-29 Fernando Perez <fperez@colorado.edu>
2311 2005-05-29 Fernando Perez <fperez@colorado.edu>
2306
2312
2307 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2313 * IPython/ultraTB.py (VerboseTB.text): Fix crash for tracebacks
2308 with files not on the filesystem. Reported by Eliyahu Sandler
2314 with files not on the filesystem. Reported by Eliyahu Sandler
2309 <eli@gondolin.net>
2315 <eli@gondolin.net>
2310
2316
2311 2005-05-22 Fernando Perez <fperez@colorado.edu>
2317 2005-05-22 Fernando Perez <fperez@colorado.edu>
2312
2318
2313 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2319 * IPython/iplib.py: Fix a few crashes in the --upgrade option.
2314 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2320 After an initial report by LUK ShunTim <shuntim.luk@polyu.edu.hk>.
2315
2321
2316 2005-05-19 Fernando Perez <fperez@colorado.edu>
2322 2005-05-19 Fernando Perez <fperez@colorado.edu>
2317
2323
2318 * IPython/iplib.py (safe_execfile): close a file which could be
2324 * IPython/iplib.py (safe_execfile): close a file which could be
2319 left open (causing problems in win32, which locks open files).
2325 left open (causing problems in win32, which locks open files).
2320 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2326 Thanks to a bug report by D Brown <dbrown2@yahoo.com>.
2321
2327
2322 2005-05-18 Fernando Perez <fperez@colorado.edu>
2328 2005-05-18 Fernando Perez <fperez@colorado.edu>
2323
2329
2324 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2330 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): pass all
2325 keyword arguments correctly to safe_execfile().
2331 keyword arguments correctly to safe_execfile().
2326
2332
2327 2005-05-13 Fernando Perez <fperez@colorado.edu>
2333 2005-05-13 Fernando Perez <fperez@colorado.edu>
2328
2334
2329 * ipython.1: Added info about Qt to manpage, and threads warning
2335 * ipython.1: Added info about Qt to manpage, and threads warning
2330 to usage page (invoked with --help).
2336 to usage page (invoked with --help).
2331
2337
2332 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2338 * IPython/iplib.py (MagicCompleter.python_func_kw_matches): Added
2333 new matcher (it goes at the end of the priority list) to do
2339 new matcher (it goes at the end of the priority list) to do
2334 tab-completion on named function arguments. Submitted by George
2340 tab-completion on named function arguments. Submitted by George
2335 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2341 Sakkis <gsakkis-AT-eden.rutgers.edu>. See the thread at
2336 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2342 http://www.scipy.net/pipermail/ipython-dev/2005-April/000436.html
2337 for more details.
2343 for more details.
2338
2344
2339 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2345 * IPython/Magic.py (magic_run): Added new -e flag to ignore
2340 SystemExit exceptions in the script being run. Thanks to a report
2346 SystemExit exceptions in the script being run. Thanks to a report
2341 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2347 by danny shevitz <danny_shevitz-AT-yahoo.com>, about this
2342 producing very annoying behavior when running unit tests.
2348 producing very annoying behavior when running unit tests.
2343
2349
2344 2005-05-12 Fernando Perez <fperez@colorado.edu>
2350 2005-05-12 Fernando Perez <fperez@colorado.edu>
2345
2351
2346 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2352 * IPython/iplib.py (handle_auto): fixed auto-quoting and parens,
2347 which I'd broken (again) due to a changed regexp. In the process,
2353 which I'd broken (again) due to a changed regexp. In the process,
2348 added ';' as an escape to auto-quote the whole line without
2354 added ';' as an escape to auto-quote the whole line without
2349 splitting its arguments. Thanks to a report by Jerry McRae
2355 splitting its arguments. Thanks to a report by Jerry McRae
2350 <qrs0xyc02-AT-sneakemail.com>.
2356 <qrs0xyc02-AT-sneakemail.com>.
2351
2357
2352 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2358 * IPython/ultraTB.py (VerboseTB.text): protect against rare but
2353 possible crashes caused by a TokenError. Reported by Ed Schofield
2359 possible crashes caused by a TokenError. Reported by Ed Schofield
2354 <schofield-AT-ftw.at>.
2360 <schofield-AT-ftw.at>.
2355
2361
2356 2005-05-06 Fernando Perez <fperez@colorado.edu>
2362 2005-05-06 Fernando Perez <fperez@colorado.edu>
2357
2363
2358 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2364 * IPython/Shell.py (hijack_wx): Fix to work with WX v.2.6.
2359
2365
2360 2005-04-29 Fernando Perez <fperez@colorado.edu>
2366 2005-04-29 Fernando Perez <fperez@colorado.edu>
2361
2367
2362 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2368 * IPython/Shell.py (IPShellQt): Thanks to Denis Rivière
2363 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2369 <nudz-AT-free.fr>, Yann Cointepas <yann-AT-sapetnioc.org> and Benjamin
2364 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2370 Thyreau <Benji2-AT-decideur.info>, we now have a -qthread option
2365 which provides support for Qt interactive usage (similar to the
2371 which provides support for Qt interactive usage (similar to the
2366 existing one for WX and GTK). This had been often requested.
2372 existing one for WX and GTK). This had been often requested.
2367
2373
2368 2005-04-14 *** Released version 0.6.13
2374 2005-04-14 *** Released version 0.6.13
2369
2375
2370 2005-04-08 Fernando Perez <fperez@colorado.edu>
2376 2005-04-08 Fernando Perez <fperez@colorado.edu>
2371
2377
2372 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2378 * IPython/Magic.py (Magic._ofind): remove docstring evaluation
2373 from _ofind, which gets called on almost every input line. Now,
2379 from _ofind, which gets called on almost every input line. Now,
2374 we only try to get docstrings if they are actually going to be
2380 we only try to get docstrings if they are actually going to be
2375 used (the overhead of fetching unnecessary docstrings can be
2381 used (the overhead of fetching unnecessary docstrings can be
2376 noticeable for certain objects, such as Pyro proxies).
2382 noticeable for certain objects, such as Pyro proxies).
2377
2383
2378 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2384 * IPython/iplib.py (MagicCompleter.python_matches): Change the API
2379 for completers. For some reason I had been passing them the state
2385 for completers. For some reason I had been passing them the state
2380 variable, which completers never actually need, and was in
2386 variable, which completers never actually need, and was in
2381 conflict with the rlcompleter API. Custom completers ONLY need to
2387 conflict with the rlcompleter API. Custom completers ONLY need to
2382 take the text parameter.
2388 take the text parameter.
2383
2389
2384 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2390 * IPython/Extensions/InterpreterExec.py: Fix regexp so that magics
2385 work correctly in pysh. I've also moved all the logic which used
2391 work correctly in pysh. I've also moved all the logic which used
2386 to be in pysh.py here, which will prevent problems with future
2392 to be in pysh.py here, which will prevent problems with future
2387 upgrades. However, this time I must warn users to update their
2393 upgrades. However, this time I must warn users to update their
2388 pysh profile to include the line
2394 pysh profile to include the line
2389
2395
2390 import_all IPython.Extensions.InterpreterExec
2396 import_all IPython.Extensions.InterpreterExec
2391
2397
2392 because otherwise things won't work for them. They MUST also
2398 because otherwise things won't work for them. They MUST also
2393 delete pysh.py and the line
2399 delete pysh.py and the line
2394
2400
2395 execfile pysh.py
2401 execfile pysh.py
2396
2402
2397 from their ipythonrc-pysh.
2403 from their ipythonrc-pysh.
2398
2404
2399 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2405 * IPython/FlexCompleter.py (Completer.attr_matches): Make more
2400 robust in the face of objects whose dir() returns non-strings
2406 robust in the face of objects whose dir() returns non-strings
2401 (which it shouldn't, but some broken libs like ITK do). Thanks to
2407 (which it shouldn't, but some broken libs like ITK do). Thanks to
2402 a patch by John Hunter (implemented differently, though). Also
2408 a patch by John Hunter (implemented differently, though). Also
2403 minor improvements by using .extend instead of + on lists.
2409 minor improvements by using .extend instead of + on lists.
2404
2410
2405 * pysh.py:
2411 * pysh.py:
2406
2412
2407 2005-04-06 Fernando Perez <fperez@colorado.edu>
2413 2005-04-06 Fernando Perez <fperez@colorado.edu>
2408
2414
2409 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2415 * IPython/ipmaker.py (make_IPython): Make multi_line_specials on
2410 by default, so that all users benefit from it. Those who don't
2416 by default, so that all users benefit from it. Those who don't
2411 want it can still turn it off.
2417 want it can still turn it off.
2412
2418
2413 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2419 * IPython/UserConfig/ipythonrc: Add multi_line_specials to the
2414 config file, I'd forgotten about this, so users were getting it
2420 config file, I'd forgotten about this, so users were getting it
2415 off by default.
2421 off by default.
2416
2422
2417 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2423 * IPython/iplib.py (ipmagic): big overhaul of the magic system for
2418 consistency. Now magics can be called in multiline statements,
2424 consistency. Now magics can be called in multiline statements,
2419 and python variables can be expanded in magic calls via $var.
2425 and python variables can be expanded in magic calls via $var.
2420 This makes the magic system behave just like aliases or !system
2426 This makes the magic system behave just like aliases or !system
2421 calls.
2427 calls.
2422
2428
2423 2005-03-28 Fernando Perez <fperez@colorado.edu>
2429 2005-03-28 Fernando Perez <fperez@colorado.edu>
2424
2430
2425 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2431 * IPython/iplib.py (handle_auto): cleanup to use %s instead of
2426 expensive string additions for building command. Add support for
2432 expensive string additions for building command. Add support for
2427 trailing ';' when autocall is used.
2433 trailing ';' when autocall is used.
2428
2434
2429 2005-03-26 Fernando Perez <fperez@colorado.edu>
2435 2005-03-26 Fernando Perez <fperez@colorado.edu>
2430
2436
2431 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2437 * ipython.el: Fix http://www.scipy.net/roundup/ipython/issue31.
2432 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2438 Bugfix by A. Schmolck, the ipython.el maintainer. Also make
2433 ipython.el robust against prompts with any number of spaces
2439 ipython.el robust against prompts with any number of spaces
2434 (including 0) after the ':' character.
2440 (including 0) after the ':' character.
2435
2441
2436 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2442 * IPython/Prompts.py (Prompt2.set_p_str): Fix spurious space in
2437 continuation prompt, which misled users to think the line was
2443 continuation prompt, which misled users to think the line was
2438 already indented. Closes debian Bug#300847, reported to me by
2444 already indented. Closes debian Bug#300847, reported to me by
2439 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2445 Norbert Tretkowski <tretkowski-AT-inittab.de>.
2440
2446
2441 2005-03-23 Fernando Perez <fperez@colorado.edu>
2447 2005-03-23 Fernando Perez <fperez@colorado.edu>
2442
2448
2443 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2449 * IPython/Prompts.py (Prompt1.__str__): Make sure that prompts are
2444 properly aligned if they have embedded newlines.
2450 properly aligned if they have embedded newlines.
2445
2451
2446 * IPython/iplib.py (runlines): Add a public method to expose
2452 * IPython/iplib.py (runlines): Add a public method to expose
2447 IPython's code execution machinery, so that users can run strings
2453 IPython's code execution machinery, so that users can run strings
2448 as if they had been typed at the prompt interactively.
2454 as if they had been typed at the prompt interactively.
2449 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2455 (InteractiveShell.__init__): Added getoutput() to the __IPYTHON__
2450 methods which can call the system shell, but with python variable
2456 methods which can call the system shell, but with python variable
2451 expansion. The three such methods are: __IPYTHON__.system,
2457 expansion. The three such methods are: __IPYTHON__.system,
2452 .getoutput and .getoutputerror. These need to be documented in a
2458 .getoutput and .getoutputerror. These need to be documented in a
2453 'public API' section (to be written) of the manual.
2459 'public API' section (to be written) of the manual.
2454
2460
2455 2005-03-20 Fernando Perez <fperez@colorado.edu>
2461 2005-03-20 Fernando Perez <fperez@colorado.edu>
2456
2462
2457 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2463 * IPython/iplib.py (InteractiveShell.set_custom_exc): new system
2458 for custom exception handling. This is quite powerful, and it
2464 for custom exception handling. This is quite powerful, and it
2459 allows for user-installable exception handlers which can trap
2465 allows for user-installable exception handlers which can trap
2460 custom exceptions at runtime and treat them separately from
2466 custom exceptions at runtime and treat them separately from
2461 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2467 IPython's default mechanisms. At the request of FrΓ©dΓ©ric
2462 Mantegazza <mantegazza-AT-ill.fr>.
2468 Mantegazza <mantegazza-AT-ill.fr>.
2463 (InteractiveShell.set_custom_completer): public API function to
2469 (InteractiveShell.set_custom_completer): public API function to
2464 add new completers at runtime.
2470 add new completers at runtime.
2465
2471
2466 2005-03-19 Fernando Perez <fperez@colorado.edu>
2472 2005-03-19 Fernando Perez <fperez@colorado.edu>
2467
2473
2468 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2474 * IPython/OInspect.py (getdoc): Add a call to obj.getdoc(), to
2469 allow objects which provide their docstrings via non-standard
2475 allow objects which provide their docstrings via non-standard
2470 mechanisms (like Pyro proxies) to still be inspected by ipython's
2476 mechanisms (like Pyro proxies) to still be inspected by ipython's
2471 ? system.
2477 ? system.
2472
2478
2473 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2479 * IPython/iplib.py (InteractiveShell.__init__): back off the _o/_e
2474 automatic capture system. I tried quite hard to make it work
2480 automatic capture system. I tried quite hard to make it work
2475 reliably, and simply failed. I tried many combinations with the
2481 reliably, and simply failed. I tried many combinations with the
2476 subprocess module, but eventually nothing worked in all needed
2482 subprocess module, but eventually nothing worked in all needed
2477 cases (not blocking stdin for the child, duplicating stdout
2483 cases (not blocking stdin for the child, duplicating stdout
2478 without blocking, etc). The new %sc/%sx still do capture to these
2484 without blocking, etc). The new %sc/%sx still do capture to these
2479 magical list/string objects which make shell use much more
2485 magical list/string objects which make shell use much more
2480 conveninent, so not all is lost.
2486 conveninent, so not all is lost.
2481
2487
2482 XXX - FIX MANUAL for the change above!
2488 XXX - FIX MANUAL for the change above!
2483
2489
2484 (runsource): I copied code.py's runsource() into ipython to modify
2490 (runsource): I copied code.py's runsource() into ipython to modify
2485 it a bit. Now the code object and source to be executed are
2491 it a bit. Now the code object and source to be executed are
2486 stored in ipython. This makes this info accessible to third-party
2492 stored in ipython. This makes this info accessible to third-party
2487 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2493 tools, like custom exception handlers. After a request by FrΓ©dΓ©ric
2488 Mantegazza <mantegazza-AT-ill.fr>.
2494 Mantegazza <mantegazza-AT-ill.fr>.
2489
2495
2490 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2496 * IPython/UserConfig/ipythonrc: Add up/down arrow keys to
2491 history-search via readline (like C-p/C-n). I'd wanted this for a
2497 history-search via readline (like C-p/C-n). I'd wanted this for a
2492 long time, but only recently found out how to do it. For users
2498 long time, but only recently found out how to do it. For users
2493 who already have their ipythonrc files made and want this, just
2499 who already have their ipythonrc files made and want this, just
2494 add:
2500 add:
2495
2501
2496 readline_parse_and_bind "\e[A": history-search-backward
2502 readline_parse_and_bind "\e[A": history-search-backward
2497 readline_parse_and_bind "\e[B": history-search-forward
2503 readline_parse_and_bind "\e[B": history-search-forward
2498
2504
2499 2005-03-18 Fernando Perez <fperez@colorado.edu>
2505 2005-03-18 Fernando Perez <fperez@colorado.edu>
2500
2506
2501 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2507 * IPython/Magic.py (magic_sc): %sc and %sx now use the fancy
2502 LSString and SList classes which allow transparent conversions
2508 LSString and SList classes which allow transparent conversions
2503 between list mode and whitespace-separated string.
2509 between list mode and whitespace-separated string.
2504 (magic_r): Fix recursion problem in %r.
2510 (magic_r): Fix recursion problem in %r.
2505
2511
2506 * IPython/genutils.py (LSString): New class to be used for
2512 * IPython/genutils.py (LSString): New class to be used for
2507 automatic storage of the results of all alias/system calls in _o
2513 automatic storage of the results of all alias/system calls in _o
2508 and _e (stdout/err). These provide a .l/.list attribute which
2514 and _e (stdout/err). These provide a .l/.list attribute which
2509 does automatic splitting on newlines. This means that for most
2515 does automatic splitting on newlines. This means that for most
2510 uses, you'll never need to do capturing of output with %sc/%sx
2516 uses, you'll never need to do capturing of output with %sc/%sx
2511 anymore, since ipython keeps this always done for you. Note that
2517 anymore, since ipython keeps this always done for you. Note that
2512 only the LAST results are stored, the _o/e variables are
2518 only the LAST results are stored, the _o/e variables are
2513 overwritten on each call. If you need to save their contents
2519 overwritten on each call. If you need to save their contents
2514 further, simply bind them to any other name.
2520 further, simply bind them to any other name.
2515
2521
2516 2005-03-17 Fernando Perez <fperez@colorado.edu>
2522 2005-03-17 Fernando Perez <fperez@colorado.edu>
2517
2523
2518 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2524 * IPython/Prompts.py (BasePrompt.cwd_filt): a few more fixes for
2519 prompt namespace handling.
2525 prompt namespace handling.
2520
2526
2521 2005-03-16 Fernando Perez <fperez@colorado.edu>
2527 2005-03-16 Fernando Perez <fperez@colorado.edu>
2522
2528
2523 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2529 * IPython/Prompts.py (CachedOutput.__init__): Fix default and
2524 classic prompts to be '>>> ' (final space was missing, and it
2530 classic prompts to be '>>> ' (final space was missing, and it
2525 trips the emacs python mode).
2531 trips the emacs python mode).
2526 (BasePrompt.__str__): Added safe support for dynamic prompt
2532 (BasePrompt.__str__): Added safe support for dynamic prompt
2527 strings. Now you can set your prompt string to be '$x', and the
2533 strings. Now you can set your prompt string to be '$x', and the
2528 value of x will be printed from your interactive namespace. The
2534 value of x will be printed from your interactive namespace. The
2529 interpolation syntax includes the full Itpl support, so
2535 interpolation syntax includes the full Itpl support, so
2530 ${foo()+x+bar()} is a valid prompt string now, and the function
2536 ${foo()+x+bar()} is a valid prompt string now, and the function
2531 calls will be made at runtime.
2537 calls will be made at runtime.
2532
2538
2533 2005-03-15 Fernando Perez <fperez@colorado.edu>
2539 2005-03-15 Fernando Perez <fperez@colorado.edu>
2534
2540
2535 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2541 * IPython/Magic.py (magic_history): renamed %hist to %history, to
2536 avoid name clashes in pylab. %hist still works, it just forwards
2542 avoid name clashes in pylab. %hist still works, it just forwards
2537 the call to %history.
2543 the call to %history.
2538
2544
2539 2005-03-02 *** Released version 0.6.12
2545 2005-03-02 *** Released version 0.6.12
2540
2546
2541 2005-03-02 Fernando Perez <fperez@colorado.edu>
2547 2005-03-02 Fernando Perez <fperez@colorado.edu>
2542
2548
2543 * IPython/iplib.py (handle_magic): log magic calls properly as
2549 * IPython/iplib.py (handle_magic): log magic calls properly as
2544 ipmagic() function calls.
2550 ipmagic() function calls.
2545
2551
2546 * IPython/Magic.py (magic_time): Improved %time to support
2552 * IPython/Magic.py (magic_time): Improved %time to support
2547 statements and provide wall-clock as well as CPU time.
2553 statements and provide wall-clock as well as CPU time.
2548
2554
2549 2005-02-27 Fernando Perez <fperez@colorado.edu>
2555 2005-02-27 Fernando Perez <fperez@colorado.edu>
2550
2556
2551 * IPython/hooks.py: New hooks module, to expose user-modifiable
2557 * IPython/hooks.py: New hooks module, to expose user-modifiable
2552 IPython functionality in a clean manner. For now only the editor
2558 IPython functionality in a clean manner. For now only the editor
2553 hook is actually written, and other thigns which I intend to turn
2559 hook is actually written, and other thigns which I intend to turn
2554 into proper hooks aren't yet there. The display and prefilter
2560 into proper hooks aren't yet there. The display and prefilter
2555 stuff, for example, should be hooks. But at least now the
2561 stuff, for example, should be hooks. But at least now the
2556 framework is in place, and the rest can be moved here with more
2562 framework is in place, and the rest can be moved here with more
2557 time later. IPython had had a .hooks variable for a long time for
2563 time later. IPython had had a .hooks variable for a long time for
2558 this purpose, but I'd never actually used it for anything.
2564 this purpose, but I'd never actually used it for anything.
2559
2565
2560 2005-02-26 Fernando Perez <fperez@colorado.edu>
2566 2005-02-26 Fernando Perez <fperez@colorado.edu>
2561
2567
2562 * IPython/ipmaker.py (make_IPython): make the default ipython
2568 * IPython/ipmaker.py (make_IPython): make the default ipython
2563 directory be called _ipython under win32, to follow more the
2569 directory be called _ipython under win32, to follow more the
2564 naming peculiarities of that platform (where buggy software like
2570 naming peculiarities of that platform (where buggy software like
2565 Visual Sourcesafe breaks with .named directories). Reported by
2571 Visual Sourcesafe breaks with .named directories). Reported by
2566 Ville Vainio.
2572 Ville Vainio.
2567
2573
2568 2005-02-23 Fernando Perez <fperez@colorado.edu>
2574 2005-02-23 Fernando Perez <fperez@colorado.edu>
2569
2575
2570 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2576 * IPython/iplib.py (InteractiveShell.__init__): removed a few
2571 auto_aliases for win32 which were causing problems. Users can
2577 auto_aliases for win32 which were causing problems. Users can
2572 define the ones they personally like.
2578 define the ones they personally like.
2573
2579
2574 2005-02-21 Fernando Perez <fperez@colorado.edu>
2580 2005-02-21 Fernando Perez <fperez@colorado.edu>
2575
2581
2576 * IPython/Magic.py (magic_time): new magic to time execution of
2582 * IPython/Magic.py (magic_time): new magic to time execution of
2577 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2583 expressions. After a request by Charles Moad <cmoad-AT-indiana.edu>.
2578
2584
2579 2005-02-19 Fernando Perez <fperez@colorado.edu>
2585 2005-02-19 Fernando Perez <fperez@colorado.edu>
2580
2586
2581 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2587 * IPython/ConfigLoader.py (ConfigLoader.load): Allow empty strings
2582 into keys (for prompts, for example).
2588 into keys (for prompts, for example).
2583
2589
2584 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2590 * IPython/Prompts.py (BasePrompt.set_p_str): Fix to allow empty
2585 prompts in case users want them. This introduces a small behavior
2591 prompts in case users want them. This introduces a small behavior
2586 change: ipython does not automatically add a space to all prompts
2592 change: ipython does not automatically add a space to all prompts
2587 anymore. To get the old prompts with a space, users should add it
2593 anymore. To get the old prompts with a space, users should add it
2588 manually to their ipythonrc file, so for example prompt_in1 should
2594 manually to their ipythonrc file, so for example prompt_in1 should
2589 now read 'In [\#]: ' instead of 'In [\#]:'.
2595 now read 'In [\#]: ' instead of 'In [\#]:'.
2590 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2596 (BasePrompt.__init__): New option prompts_pad_left (only in rc
2591 file) to control left-padding of secondary prompts.
2597 file) to control left-padding of secondary prompts.
2592
2598
2593 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2599 * IPython/Magic.py (Magic.profile_missing_notice): Don't crash if
2594 the profiler can't be imported. Fix for Debian, which removed
2600 the profiler can't be imported. Fix for Debian, which removed
2595 profile.py because of License issues. I applied a slightly
2601 profile.py because of License issues. I applied a slightly
2596 modified version of the original Debian patch at
2602 modified version of the original Debian patch at
2597 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2603 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294500.
2598
2604
2599 2005-02-17 Fernando Perez <fperez@colorado.edu>
2605 2005-02-17 Fernando Perez <fperez@colorado.edu>
2600
2606
2601 * IPython/genutils.py (native_line_ends): Fix bug which would
2607 * IPython/genutils.py (native_line_ends): Fix bug which would
2602 cause improper line-ends under win32 b/c I was not opening files
2608 cause improper line-ends under win32 b/c I was not opening files
2603 in binary mode. Bug report and fix thanks to Ville.
2609 in binary mode. Bug report and fix thanks to Ville.
2604
2610
2605 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2611 * IPython/iplib.py (handle_auto): Fix bug which I introduced when
2606 trying to catch spurious foo[1] autocalls. My fix actually broke
2612 trying to catch spurious foo[1] autocalls. My fix actually broke
2607 ',/' autoquote/call with explicit escape (bad regexp).
2613 ',/' autoquote/call with explicit escape (bad regexp).
2608
2614
2609 2005-02-15 *** Released version 0.6.11
2615 2005-02-15 *** Released version 0.6.11
2610
2616
2611 2005-02-14 Fernando Perez <fperez@colorado.edu>
2617 2005-02-14 Fernando Perez <fperez@colorado.edu>
2612
2618
2613 * IPython/background_jobs.py: New background job management
2619 * IPython/background_jobs.py: New background job management
2614 subsystem. This is implemented via a new set of classes, and
2620 subsystem. This is implemented via a new set of classes, and
2615 IPython now provides a builtin 'jobs' object for background job
2621 IPython now provides a builtin 'jobs' object for background job
2616 execution. A convenience %bg magic serves as a lightweight
2622 execution. A convenience %bg magic serves as a lightweight
2617 frontend for starting the more common type of calls. This was
2623 frontend for starting the more common type of calls. This was
2618 inspired by discussions with B. Granger and the BackgroundCommand
2624 inspired by discussions with B. Granger and the BackgroundCommand
2619 class described in the book Python Scripting for Computational
2625 class described in the book Python Scripting for Computational
2620 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2626 Science, by H. P. Langtangen: http://folk.uio.no/hpl/scripting
2621 (although ultimately no code from this text was used, as IPython's
2627 (although ultimately no code from this text was used, as IPython's
2622 system is a separate implementation).
2628 system is a separate implementation).
2623
2629
2624 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2630 * IPython/iplib.py (MagicCompleter.python_matches): add new option
2625 to control the completion of single/double underscore names
2631 to control the completion of single/double underscore names
2626 separately. As documented in the example ipytonrc file, the
2632 separately. As documented in the example ipytonrc file, the
2627 readline_omit__names variable can now be set to 2, to omit even
2633 readline_omit__names variable can now be set to 2, to omit even
2628 single underscore names. Thanks to a patch by Brian Wong
2634 single underscore names. Thanks to a patch by Brian Wong
2629 <BrianWong-AT-AirgoNetworks.Com>.
2635 <BrianWong-AT-AirgoNetworks.Com>.
2630 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2636 (InteractiveShell.__init__): Fix bug which would cause foo[1] to
2631 be autocalled as foo([1]) if foo were callable. A problem for
2637 be autocalled as foo([1]) if foo were callable. A problem for
2632 things which are both callable and implement __getitem__.
2638 things which are both callable and implement __getitem__.
2633 (init_readline): Fix autoindentation for win32. Thanks to a patch
2639 (init_readline): Fix autoindentation for win32. Thanks to a patch
2634 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2640 by Vivian De Smedt <vivian-AT-vdesmedt.com>.
2635
2641
2636 2005-02-12 Fernando Perez <fperez@colorado.edu>
2642 2005-02-12 Fernando Perez <fperez@colorado.edu>
2637
2643
2638 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2644 * IPython/ipmaker.py (make_IPython): Disabled the stout traps
2639 which I had written long ago to sort out user error messages which
2645 which I had written long ago to sort out user error messages which
2640 may occur during startup. This seemed like a good idea initially,
2646 may occur during startup. This seemed like a good idea initially,
2641 but it has proven a disaster in retrospect. I don't want to
2647 but it has proven a disaster in retrospect. I don't want to
2642 change much code for now, so my fix is to set the internal 'debug'
2648 change much code for now, so my fix is to set the internal 'debug'
2643 flag to true everywhere, whose only job was precisely to control
2649 flag to true everywhere, whose only job was precisely to control
2644 this subsystem. This closes issue 28 (as well as avoiding all
2650 this subsystem. This closes issue 28 (as well as avoiding all
2645 sorts of strange hangups which occur from time to time).
2651 sorts of strange hangups which occur from time to time).
2646
2652
2647 2005-02-07 Fernando Perez <fperez@colorado.edu>
2653 2005-02-07 Fernando Perez <fperez@colorado.edu>
2648
2654
2649 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2655 * IPython/Magic.py (magic_edit): Fix 'ed -p' not working when the
2650 previous call produced a syntax error.
2656 previous call produced a syntax error.
2651
2657
2652 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2658 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2653 classes without constructor.
2659 classes without constructor.
2654
2660
2655 2005-02-06 Fernando Perez <fperez@colorado.edu>
2661 2005-02-06 Fernando Perez <fperez@colorado.edu>
2656
2662
2657 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2663 * IPython/iplib.py (MagicCompleter.complete): Extend the list of
2658 completions with the results of each matcher, so we return results
2664 completions with the results of each matcher, so we return results
2659 to the user from all namespaces. This breaks with ipython
2665 to the user from all namespaces. This breaks with ipython
2660 tradition, but I think it's a nicer behavior. Now you get all
2666 tradition, but I think it's a nicer behavior. Now you get all
2661 possible completions listed, from all possible namespaces (python,
2667 possible completions listed, from all possible namespaces (python,
2662 filesystem, magics...) After a request by John Hunter
2668 filesystem, magics...) After a request by John Hunter
2663 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2669 <jdhunter-AT-nitace.bsd.uchicago.edu>.
2664
2670
2665 2005-02-05 Fernando Perez <fperez@colorado.edu>
2671 2005-02-05 Fernando Perez <fperez@colorado.edu>
2666
2672
2667 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2673 * IPython/Magic.py (magic_prun): Fix bug where prun would fail if
2668 the call had quote characters in it (the quotes were stripped).
2674 the call had quote characters in it (the quotes were stripped).
2669
2675
2670 2005-01-31 Fernando Perez <fperez@colorado.edu>
2676 2005-01-31 Fernando Perez <fperez@colorado.edu>
2671
2677
2672 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2678 * IPython/iplib.py (InteractiveShell.__init__): reduce reliance on
2673 Itpl.itpl() to make the code more robust against psyco
2679 Itpl.itpl() to make the code more robust against psyco
2674 optimizations.
2680 optimizations.
2675
2681
2676 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2682 * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call instead
2677 of causing an exception. Quicker, cleaner.
2683 of causing an exception. Quicker, cleaner.
2678
2684
2679 2005-01-28 Fernando Perez <fperez@colorado.edu>
2685 2005-01-28 Fernando Perez <fperez@colorado.edu>
2680
2686
2681 * scripts/ipython_win_post_install.py (install): hardcode
2687 * scripts/ipython_win_post_install.py (install): hardcode
2682 sys.prefix+'python.exe' as the executable path. It turns out that
2688 sys.prefix+'python.exe' as the executable path. It turns out that
2683 during the post-installation run, sys.executable resolves to the
2689 during the post-installation run, sys.executable resolves to the
2684 name of the binary installer! I should report this as a distutils
2690 name of the binary installer! I should report this as a distutils
2685 bug, I think. I updated the .10 release with this tiny fix, to
2691 bug, I think. I updated the .10 release with this tiny fix, to
2686 avoid annoying the lists further.
2692 avoid annoying the lists further.
2687
2693
2688 2005-01-27 *** Released version 0.6.10
2694 2005-01-27 *** Released version 0.6.10
2689
2695
2690 2005-01-27 Fernando Perez <fperez@colorado.edu>
2696 2005-01-27 Fernando Perez <fperez@colorado.edu>
2691
2697
2692 * IPython/numutils.py (norm): Added 'inf' as optional name for
2698 * IPython/numutils.py (norm): Added 'inf' as optional name for
2693 L-infinity norm, included references to mathworld.com for vector
2699 L-infinity norm, included references to mathworld.com for vector
2694 norm definitions.
2700 norm definitions.
2695 (amin/amax): added amin/amax for array min/max. Similar to what
2701 (amin/amax): added amin/amax for array min/max. Similar to what
2696 pylab ships with after the recent reorganization of names.
2702 pylab ships with after the recent reorganization of names.
2697 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2703 (spike/spike_odd): removed deprecated spike/spike_odd functions.
2698
2704
2699 * ipython.el: committed Alex's recent fixes and improvements.
2705 * ipython.el: committed Alex's recent fixes and improvements.
2700 Tested with python-mode from CVS, and it looks excellent. Since
2706 Tested with python-mode from CVS, and it looks excellent. Since
2701 python-mode hasn't released anything in a while, I'm temporarily
2707 python-mode hasn't released anything in a while, I'm temporarily
2702 putting a copy of today's CVS (v 4.70) of python-mode in:
2708 putting a copy of today's CVS (v 4.70) of python-mode in:
2703 http://ipython.scipy.org/tmp/python-mode.el
2709 http://ipython.scipy.org/tmp/python-mode.el
2704
2710
2705 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2711 * scripts/ipython_win_post_install.py (install): Win32 fix to use
2706 sys.executable for the executable name, instead of assuming it's
2712 sys.executable for the executable name, instead of assuming it's
2707 called 'python.exe' (the post-installer would have produced broken
2713 called 'python.exe' (the post-installer would have produced broken
2708 setups on systems with a differently named python binary).
2714 setups on systems with a differently named python binary).
2709
2715
2710 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2716 * IPython/PyColorize.py (Parser.__call__): change explicit '\n'
2711 references to os.linesep, to make the code more
2717 references to os.linesep, to make the code more
2712 platform-independent. This is also part of the win32 coloring
2718 platform-independent. This is also part of the win32 coloring
2713 fixes.
2719 fixes.
2714
2720
2715 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2721 * IPython/genutils.py (page_dumb): Remove attempts to chop long
2716 lines, which actually cause coloring bugs because the length of
2722 lines, which actually cause coloring bugs because the length of
2717 the line is very difficult to correctly compute with embedded
2723 the line is very difficult to correctly compute with embedded
2718 escapes. This was the source of all the coloring problems under
2724 escapes. This was the source of all the coloring problems under
2719 Win32. I think that _finally_, Win32 users have a properly
2725 Win32. I think that _finally_, Win32 users have a properly
2720 working ipython in all respects. This would never have happened
2726 working ipython in all respects. This would never have happened
2721 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2727 if not for Gary Bishop and Viktor Ransmayr's great help and work.
2722
2728
2723 2005-01-26 *** Released version 0.6.9
2729 2005-01-26 *** Released version 0.6.9
2724
2730
2725 2005-01-25 Fernando Perez <fperez@colorado.edu>
2731 2005-01-25 Fernando Perez <fperez@colorado.edu>
2726
2732
2727 * setup.py: finally, we have a true Windows installer, thanks to
2733 * setup.py: finally, we have a true Windows installer, thanks to
2728 the excellent work of Viktor Ransmayr
2734 the excellent work of Viktor Ransmayr
2729 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2735 <viktor.ransmayr-AT-t-online.de>. The docs have been updated for
2730 Windows users. The setup routine is quite a bit cleaner thanks to
2736 Windows users. The setup routine is quite a bit cleaner thanks to
2731 this, and the post-install script uses the proper functions to
2737 this, and the post-install script uses the proper functions to
2732 allow a clean de-installation using the standard Windows Control
2738 allow a clean de-installation using the standard Windows Control
2733 Panel.
2739 Panel.
2734
2740
2735 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2741 * IPython/genutils.py (get_home_dir): changed to use the $HOME
2736 environment variable under all OSes (including win32) if
2742 environment variable under all OSes (including win32) if
2737 available. This will give consistency to win32 users who have set
2743 available. This will give consistency to win32 users who have set
2738 this variable for any reason. If os.environ['HOME'] fails, the
2744 this variable for any reason. If os.environ['HOME'] fails, the
2739 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2745 previous policy of using HOMEDRIVE\HOMEPATH kicks in.
2740
2746
2741 2005-01-24 Fernando Perez <fperez@colorado.edu>
2747 2005-01-24 Fernando Perez <fperez@colorado.edu>
2742
2748
2743 * IPython/numutils.py (empty_like): add empty_like(), similar to
2749 * IPython/numutils.py (empty_like): add empty_like(), similar to
2744 zeros_like() but taking advantage of the new empty() Numeric routine.
2750 zeros_like() but taking advantage of the new empty() Numeric routine.
2745
2751
2746 2005-01-23 *** Released version 0.6.8
2752 2005-01-23 *** Released version 0.6.8
2747
2753
2748 2005-01-22 Fernando Perez <fperez@colorado.edu>
2754 2005-01-22 Fernando Perez <fperez@colorado.edu>
2749
2755
2750 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2756 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): I removed the
2751 automatic show() calls. After discussing things with JDH, it
2757 automatic show() calls. After discussing things with JDH, it
2752 turns out there are too many corner cases where this can go wrong.
2758 turns out there are too many corner cases where this can go wrong.
2753 It's best not to try to be 'too smart', and simply have ipython
2759 It's best not to try to be 'too smart', and simply have ipython
2754 reproduce as much as possible the default behavior of a normal
2760 reproduce as much as possible the default behavior of a normal
2755 python shell.
2761 python shell.
2756
2762
2757 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2763 * IPython/iplib.py (InteractiveShell.__init__): Modified the
2758 line-splitting regexp and _prefilter() to avoid calling getattr()
2764 line-splitting regexp and _prefilter() to avoid calling getattr()
2759 on assignments. This closes
2765 on assignments. This closes
2760 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2766 http://www.scipy.net/roundup/ipython/issue24. Note that Python's
2761 readline uses getattr(), so a simple <TAB> keypress is still
2767 readline uses getattr(), so a simple <TAB> keypress is still
2762 enough to trigger getattr() calls on an object.
2768 enough to trigger getattr() calls on an object.
2763
2769
2764 2005-01-21 Fernando Perez <fperez@colorado.edu>
2770 2005-01-21 Fernando Perez <fperez@colorado.edu>
2765
2771
2766 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2772 * IPython/Shell.py (MatplotlibShellBase.magic_run): Fix the %run
2767 docstring under pylab so it doesn't mask the original.
2773 docstring under pylab so it doesn't mask the original.
2768
2774
2769 2005-01-21 *** Released version 0.6.7
2775 2005-01-21 *** Released version 0.6.7
2770
2776
2771 2005-01-21 Fernando Perez <fperez@colorado.edu>
2777 2005-01-21 Fernando Perez <fperez@colorado.edu>
2772
2778
2773 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2779 * IPython/Shell.py (MTInteractiveShell.runcode): Trap a crash with
2774 signal handling for win32 users in multithreaded mode.
2780 signal handling for win32 users in multithreaded mode.
2775
2781
2776 2005-01-17 Fernando Perez <fperez@colorado.edu>
2782 2005-01-17 Fernando Perez <fperez@colorado.edu>
2777
2783
2778 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2784 * IPython/OInspect.py (Inspector.pinfo): Fix crash when inspecting
2779 instances with no __init__. After a crash report by Norbert Nemec
2785 instances with no __init__. After a crash report by Norbert Nemec
2780 <Norbert-AT-nemec-online.de>.
2786 <Norbert-AT-nemec-online.de>.
2781
2787
2782 2005-01-14 Fernando Perez <fperez@colorado.edu>
2788 2005-01-14 Fernando Perez <fperez@colorado.edu>
2783
2789
2784 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2790 * IPython/ultraTB.py (VerboseTB.text): Fix bug in reporting of
2785 names for verbose exceptions, when multiple dotted names and the
2791 names for verbose exceptions, when multiple dotted names and the
2786 'parent' object were present on the same line.
2792 'parent' object were present on the same line.
2787
2793
2788 2005-01-11 Fernando Perez <fperez@colorado.edu>
2794 2005-01-11 Fernando Perez <fperez@colorado.edu>
2789
2795
2790 * IPython/genutils.py (flag_calls): new utility to trap and flag
2796 * IPython/genutils.py (flag_calls): new utility to trap and flag
2791 calls in functions. I need it to clean up matplotlib support.
2797 calls in functions. I need it to clean up matplotlib support.
2792 Also removed some deprecated code in genutils.
2798 Also removed some deprecated code in genutils.
2793
2799
2794 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2800 * IPython/Shell.py (MatplotlibShellBase.mplot_exec): small fix so
2795 that matplotlib scripts called with %run, which don't call show()
2801 that matplotlib scripts called with %run, which don't call show()
2796 themselves, still have their plotting windows open.
2802 themselves, still have their plotting windows open.
2797
2803
2798 2005-01-05 Fernando Perez <fperez@colorado.edu>
2804 2005-01-05 Fernando Perez <fperez@colorado.edu>
2799
2805
2800 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2806 * IPython/Shell.py (IPShellGTK.__init__): Patch by Andrew Straw
2801 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2807 <astraw-AT-caltech.edu>, to fix gtk deprecation warnings.
2802
2808
2803 2004-12-19 Fernando Perez <fperez@colorado.edu>
2809 2004-12-19 Fernando Perez <fperez@colorado.edu>
2804
2810
2805 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2811 * IPython/Shell.py (MTInteractiveShell.runcode): Get rid of
2806 parent_runcode, which was an eyesore. The same result can be
2812 parent_runcode, which was an eyesore. The same result can be
2807 obtained with Python's regular superclass mechanisms.
2813 obtained with Python's regular superclass mechanisms.
2808
2814
2809 2004-12-17 Fernando Perez <fperez@colorado.edu>
2815 2004-12-17 Fernando Perez <fperez@colorado.edu>
2810
2816
2811 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2817 * IPython/Magic.py (Magic.magic_sc): Fix quote stripping problem
2812 reported by Prabhu.
2818 reported by Prabhu.
2813 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2819 (Magic.magic_sx): direct all errors to Term.cerr (defaults to
2814 sys.stderr) instead of explicitly calling sys.stderr. This helps
2820 sys.stderr) instead of explicitly calling sys.stderr. This helps
2815 maintain our I/O abstractions clean, for future GUI embeddings.
2821 maintain our I/O abstractions clean, for future GUI embeddings.
2816
2822
2817 * IPython/genutils.py (info): added new utility for sys.stderr
2823 * IPython/genutils.py (info): added new utility for sys.stderr
2818 unified info message handling (thin wrapper around warn()).
2824 unified info message handling (thin wrapper around warn()).
2819
2825
2820 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2826 * IPython/ultraTB.py (VerboseTB.text): Fix misreported global
2821 composite (dotted) names on verbose exceptions.
2827 composite (dotted) names on verbose exceptions.
2822 (VerboseTB.nullrepr): harden against another kind of errors which
2828 (VerboseTB.nullrepr): harden against another kind of errors which
2823 Python's inspect module can trigger, and which were crashing
2829 Python's inspect module can trigger, and which were crashing
2824 IPython. Thanks to a report by Marco Lombardi
2830 IPython. Thanks to a report by Marco Lombardi
2825 <mlombard-AT-ma010192.hq.eso.org>.
2831 <mlombard-AT-ma010192.hq.eso.org>.
2826
2832
2827 2004-12-13 *** Released version 0.6.6
2833 2004-12-13 *** Released version 0.6.6
2828
2834
2829 2004-12-12 Fernando Perez <fperez@colorado.edu>
2835 2004-12-12 Fernando Perez <fperez@colorado.edu>
2830
2836
2831 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2837 * IPython/Shell.py (IPShellGTK.mainloop): catch RuntimeErrors
2832 generated by pygtk upon initialization if it was built without
2838 generated by pygtk upon initialization if it was built without
2833 threads (for matplotlib users). After a crash reported by
2839 threads (for matplotlib users). After a crash reported by
2834 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2840 Leguijt, Jaap J SIEP-EPT-RES <Jaap.Leguijt-AT-shell.com>.
2835
2841
2836 * IPython/ipmaker.py (make_IPython): fix small bug in the
2842 * IPython/ipmaker.py (make_IPython): fix small bug in the
2837 import_some parameter for multiple imports.
2843 import_some parameter for multiple imports.
2838
2844
2839 * IPython/iplib.py (ipmagic): simplified the interface of
2845 * IPython/iplib.py (ipmagic): simplified the interface of
2840 ipmagic() to take a single string argument, just as it would be
2846 ipmagic() to take a single string argument, just as it would be
2841 typed at the IPython cmd line.
2847 typed at the IPython cmd line.
2842 (ipalias): Added new ipalias() with an interface identical to
2848 (ipalias): Added new ipalias() with an interface identical to
2843 ipmagic(). This completes exposing a pure python interface to the
2849 ipmagic(). This completes exposing a pure python interface to the
2844 alias and magic system, which can be used in loops or more complex
2850 alias and magic system, which can be used in loops or more complex
2845 code where IPython's automatic line mangling is not active.
2851 code where IPython's automatic line mangling is not active.
2846
2852
2847 * IPython/genutils.py (timing): changed interface of timing to
2853 * IPython/genutils.py (timing): changed interface of timing to
2848 simply run code once, which is the most common case. timings()
2854 simply run code once, which is the most common case. timings()
2849 remains unchanged, for the cases where you want multiple runs.
2855 remains unchanged, for the cases where you want multiple runs.
2850
2856
2851 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2857 * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): Fix a
2852 bug where Python2.2 crashes with exec'ing code which does not end
2858 bug where Python2.2 crashes with exec'ing code which does not end
2853 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2859 in a single newline. Python 2.3 is OK, so I hadn't noticed this
2854 before.
2860 before.
2855
2861
2856 2004-12-10 Fernando Perez <fperez@colorado.edu>
2862 2004-12-10 Fernando Perez <fperez@colorado.edu>
2857
2863
2858 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2864 * IPython/Magic.py (Magic.magic_prun): changed name of option from
2859 -t to -T, to accomodate the new -t flag in %run (the %run and
2865 -t to -T, to accomodate the new -t flag in %run (the %run and
2860 %prun options are kind of intermixed, and it's not easy to change
2866 %prun options are kind of intermixed, and it's not easy to change
2861 this with the limitations of python's getopt).
2867 this with the limitations of python's getopt).
2862
2868
2863 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2869 * IPython/Magic.py (Magic.magic_run): Added new -t option to time
2864 the execution of scripts. It's not as fine-tuned as timeit.py,
2870 the execution of scripts. It's not as fine-tuned as timeit.py,
2865 but it works from inside ipython (and under 2.2, which lacks
2871 but it works from inside ipython (and under 2.2, which lacks
2866 timeit.py). Optionally a number of runs > 1 can be given for
2872 timeit.py). Optionally a number of runs > 1 can be given for
2867 timing very short-running code.
2873 timing very short-running code.
2868
2874
2869 * IPython/genutils.py (uniq_stable): new routine which returns a
2875 * IPython/genutils.py (uniq_stable): new routine which returns a
2870 list of unique elements in any iterable, but in stable order of
2876 list of unique elements in any iterable, but in stable order of
2871 appearance. I needed this for the ultraTB fixes, and it's a handy
2877 appearance. I needed this for the ultraTB fixes, and it's a handy
2872 utility.
2878 utility.
2873
2879
2874 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2880 * IPython/ultraTB.py (VerboseTB.text): Fix proper reporting of
2875 dotted names in Verbose exceptions. This had been broken since
2881 dotted names in Verbose exceptions. This had been broken since
2876 the very start, now x.y will properly be printed in a Verbose
2882 the very start, now x.y will properly be printed in a Verbose
2877 traceback, instead of x being shown and y appearing always as an
2883 traceback, instead of x being shown and y appearing always as an
2878 'undefined global'. Getting this to work was a bit tricky,
2884 'undefined global'. Getting this to work was a bit tricky,
2879 because by default python tokenizers are stateless. Saved by
2885 because by default python tokenizers are stateless. Saved by
2880 python's ability to easily add a bit of state to an arbitrary
2886 python's ability to easily add a bit of state to an arbitrary
2881 function (without needing to build a full-blown callable object).
2887 function (without needing to build a full-blown callable object).
2882
2888
2883 Also big cleanup of this code, which had horrendous runtime
2889 Also big cleanup of this code, which had horrendous runtime
2884 lookups of zillions of attributes for colorization. Moved all
2890 lookups of zillions of attributes for colorization. Moved all
2885 this code into a few templates, which make it cleaner and quicker.
2891 this code into a few templates, which make it cleaner and quicker.
2886
2892
2887 Printout quality was also improved for Verbose exceptions: one
2893 Printout quality was also improved for Verbose exceptions: one
2888 variable per line, and memory addresses are printed (this can be
2894 variable per line, and memory addresses are printed (this can be
2889 quite handy in nasty debugging situations, which is what Verbose
2895 quite handy in nasty debugging situations, which is what Verbose
2890 is for).
2896 is for).
2891
2897
2892 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2898 * IPython/ipmaker.py (make_IPython): Do NOT execute files named in
2893 the command line as scripts to be loaded by embedded instances.
2899 the command line as scripts to be loaded by embedded instances.
2894 Doing so has the potential for an infinite recursion if there are
2900 Doing so has the potential for an infinite recursion if there are
2895 exceptions thrown in the process. This fixes a strange crash
2901 exceptions thrown in the process. This fixes a strange crash
2896 reported by Philippe MULLER <muller-AT-irit.fr>.
2902 reported by Philippe MULLER <muller-AT-irit.fr>.
2897
2903
2898 2004-12-09 Fernando Perez <fperez@colorado.edu>
2904 2004-12-09 Fernando Perez <fperez@colorado.edu>
2899
2905
2900 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2906 * IPython/Shell.py (MatplotlibShellBase.use): Change pylab support
2901 to reflect new names in matplotlib, which now expose the
2907 to reflect new names in matplotlib, which now expose the
2902 matlab-compatible interface via a pylab module instead of the
2908 matlab-compatible interface via a pylab module instead of the
2903 'matlab' name. The new code is backwards compatible, so users of
2909 'matlab' name. The new code is backwards compatible, so users of
2904 all matplotlib versions are OK. Patch by J. Hunter.
2910 all matplotlib versions are OK. Patch by J. Hunter.
2905
2911
2906 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2912 * IPython/OInspect.py (Inspector.pinfo): Add to object? printing
2907 of __init__ docstrings for instances (class docstrings are already
2913 of __init__ docstrings for instances (class docstrings are already
2908 automatically printed). Instances with customized docstrings
2914 automatically printed). Instances with customized docstrings
2909 (indep. of the class) are also recognized and all 3 separate
2915 (indep. of the class) are also recognized and all 3 separate
2910 docstrings are printed (instance, class, constructor). After some
2916 docstrings are printed (instance, class, constructor). After some
2911 comments/suggestions by J. Hunter.
2917 comments/suggestions by J. Hunter.
2912
2918
2913 2004-12-05 Fernando Perez <fperez@colorado.edu>
2919 2004-12-05 Fernando Perez <fperez@colorado.edu>
2914
2920
2915 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2921 * IPython/iplib.py (MagicCompleter.complete): Remove annoying
2916 warnings when tab-completion fails and triggers an exception.
2922 warnings when tab-completion fails and triggers an exception.
2917
2923
2918 2004-12-03 Fernando Perez <fperez@colorado.edu>
2924 2004-12-03 Fernando Perez <fperez@colorado.edu>
2919
2925
2920 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2926 * IPython/Magic.py (magic_prun): Fix bug where an exception would
2921 be triggered when using 'run -p'. An incorrect option flag was
2927 be triggered when using 'run -p'. An incorrect option flag was
2922 being set ('d' instead of 'D').
2928 being set ('d' instead of 'D').
2923 (manpage): fix missing escaped \- sign.
2929 (manpage): fix missing escaped \- sign.
2924
2930
2925 2004-11-30 *** Released version 0.6.5
2931 2004-11-30 *** Released version 0.6.5
2926
2932
2927 2004-11-30 Fernando Perez <fperez@colorado.edu>
2933 2004-11-30 Fernando Perez <fperez@colorado.edu>
2928
2934
2929 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2935 * IPython/Magic.py (Magic.magic_run): Fix bug in breakpoint
2930 setting with -d option.
2936 setting with -d option.
2931
2937
2932 * setup.py (docfiles): Fix problem where the doc glob I was using
2938 * setup.py (docfiles): Fix problem where the doc glob I was using
2933 was COMPLETELY BROKEN. It was giving the right files by pure
2939 was COMPLETELY BROKEN. It was giving the right files by pure
2934 accident, but failed once I tried to include ipython.el. Note:
2940 accident, but failed once I tried to include ipython.el. Note:
2935 glob() does NOT allow you to do exclusion on multiple endings!
2941 glob() does NOT allow you to do exclusion on multiple endings!
2936
2942
2937 2004-11-29 Fernando Perez <fperez@colorado.edu>
2943 2004-11-29 Fernando Perez <fperez@colorado.edu>
2938
2944
2939 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2945 * IPython/usage.py (__doc__): cleaned up usage docstring, by using
2940 the manpage as the source. Better formatting & consistency.
2946 the manpage as the source. Better formatting & consistency.
2941
2947
2942 * IPython/Magic.py (magic_run): Added new -d option, to run
2948 * IPython/Magic.py (magic_run): Added new -d option, to run
2943 scripts under the control of the python pdb debugger. Note that
2949 scripts under the control of the python pdb debugger. Note that
2944 this required changing the %prun option -d to -D, to avoid a clash
2950 this required changing the %prun option -d to -D, to avoid a clash
2945 (since %run must pass options to %prun, and getopt is too dumb to
2951 (since %run must pass options to %prun, and getopt is too dumb to
2946 handle options with string values with embedded spaces). Thanks
2952 handle options with string values with embedded spaces). Thanks
2947 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2953 to a suggestion by Matthew Arnison <maffew-AT-cat.org.au>.
2948 (magic_who_ls): added type matching to %who and %whos, so that one
2954 (magic_who_ls): added type matching to %who and %whos, so that one
2949 can filter their output to only include variables of certain
2955 can filter their output to only include variables of certain
2950 types. Another suggestion by Matthew.
2956 types. Another suggestion by Matthew.
2951 (magic_whos): Added memory summaries in kb and Mb for arrays.
2957 (magic_whos): Added memory summaries in kb and Mb for arrays.
2952 (magic_who): Improve formatting (break lines every 9 vars).
2958 (magic_who): Improve formatting (break lines every 9 vars).
2953
2959
2954 2004-11-28 Fernando Perez <fperez@colorado.edu>
2960 2004-11-28 Fernando Perez <fperez@colorado.edu>
2955
2961
2956 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2962 * IPython/Logger.py (Logger.log): Fix bug in syncing the input
2957 cache when empty lines were present.
2963 cache when empty lines were present.
2958
2964
2959 2004-11-24 Fernando Perez <fperez@colorado.edu>
2965 2004-11-24 Fernando Perez <fperez@colorado.edu>
2960
2966
2961 * IPython/usage.py (__doc__): document the re-activated threading
2967 * IPython/usage.py (__doc__): document the re-activated threading
2962 options for WX and GTK.
2968 options for WX and GTK.
2963
2969
2964 2004-11-23 Fernando Perez <fperez@colorado.edu>
2970 2004-11-23 Fernando Perez <fperez@colorado.edu>
2965
2971
2966 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2972 * IPython/Shell.py (start): Added Prabhu's big patch to reactivate
2967 the -wthread and -gthread options, along with a new -tk one to try
2973 the -wthread and -gthread options, along with a new -tk one to try
2968 and coordinate Tk threading with wx/gtk. The tk support is very
2974 and coordinate Tk threading with wx/gtk. The tk support is very
2969 platform dependent, since it seems to require Tcl and Tk to be
2975 platform dependent, since it seems to require Tcl and Tk to be
2970 built with threads (Fedora1/2 appears NOT to have it, but in
2976 built with threads (Fedora1/2 appears NOT to have it, but in
2971 Prabhu's Debian boxes it works OK). But even with some Tk
2977 Prabhu's Debian boxes it works OK). But even with some Tk
2972 limitations, this is a great improvement.
2978 limitations, this is a great improvement.
2973
2979
2974 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2980 * IPython/Prompts.py (prompt_specials_color): Added \t for time
2975 info in user prompts. Patch by Prabhu.
2981 info in user prompts. Patch by Prabhu.
2976
2982
2977 2004-11-18 Fernando Perez <fperez@colorado.edu>
2983 2004-11-18 Fernando Perez <fperez@colorado.edu>
2978
2984
2979 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2985 * IPython/genutils.py (ask_yes_no): Add check for a max of 20
2980 EOFErrors and bail, to avoid infinite loops if a non-terminating
2986 EOFErrors and bail, to avoid infinite loops if a non-terminating
2981 file is fed into ipython. Patch submitted in issue 19 by user,
2987 file is fed into ipython. Patch submitted in issue 19 by user,
2982 many thanks.
2988 many thanks.
2983
2989
2984 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2990 * IPython/iplib.py (InteractiveShell.handle_auto): do NOT trigger
2985 autoquote/parens in continuation prompts, which can cause lots of
2991 autoquote/parens in continuation prompts, which can cause lots of
2986 problems. Closes roundup issue 20.
2992 problems. Closes roundup issue 20.
2987
2993
2988 2004-11-17 Fernando Perez <fperez@colorado.edu>
2994 2004-11-17 Fernando Perez <fperez@colorado.edu>
2989
2995
2990 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2996 * debian/control (Build-Depends-Indep): Fix dpatch dependency,
2991 reported as debian bug #280505. I'm not sure my local changelog
2997 reported as debian bug #280505. I'm not sure my local changelog
2992 entry has the proper debian format (Jack?).
2998 entry has the proper debian format (Jack?).
2993
2999
2994 2004-11-08 *** Released version 0.6.4
3000 2004-11-08 *** Released version 0.6.4
2995
3001
2996 2004-11-08 Fernando Perez <fperez@colorado.edu>
3002 2004-11-08 Fernando Perez <fperez@colorado.edu>
2997
3003
2998 * IPython/iplib.py (init_readline): Fix exit message for Windows
3004 * IPython/iplib.py (init_readline): Fix exit message for Windows
2999 when readline is active. Thanks to a report by Eric Jones
3005 when readline is active. Thanks to a report by Eric Jones
3000 <eric-AT-enthought.com>.
3006 <eric-AT-enthought.com>.
3001
3007
3002 2004-11-07 Fernando Perez <fperez@colorado.edu>
3008 2004-11-07 Fernando Perez <fperez@colorado.edu>
3003
3009
3004 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3010 * IPython/genutils.py (page): Add a trap for OSError exceptions,
3005 sometimes seen by win2k/cygwin users.
3011 sometimes seen by win2k/cygwin users.
3006
3012
3007 2004-11-06 Fernando Perez <fperez@colorado.edu>
3013 2004-11-06 Fernando Perez <fperez@colorado.edu>
3008
3014
3009 * IPython/iplib.py (interact): Change the handling of %Exit from
3015 * IPython/iplib.py (interact): Change the handling of %Exit from
3010 trying to propagate a SystemExit to an internal ipython flag.
3016 trying to propagate a SystemExit to an internal ipython flag.
3011 This is less elegant than using Python's exception mechanism, but
3017 This is less elegant than using Python's exception mechanism, but
3012 I can't get that to work reliably with threads, so under -pylab
3018 I can't get that to work reliably with threads, so under -pylab
3013 %Exit was hanging IPython. Cross-thread exception handling is
3019 %Exit was hanging IPython. Cross-thread exception handling is
3014 really a bitch. Thaks to a bug report by Stephen Walton
3020 really a bitch. Thaks to a bug report by Stephen Walton
3015 <stephen.walton-AT-csun.edu>.
3021 <stephen.walton-AT-csun.edu>.
3016
3022
3017 2004-11-04 Fernando Perez <fperez@colorado.edu>
3023 2004-11-04 Fernando Perez <fperez@colorado.edu>
3018
3024
3019 * IPython/iplib.py (raw_input_original): store a pointer to the
3025 * IPython/iplib.py (raw_input_original): store a pointer to the
3020 true raw_input to harden against code which can modify it
3026 true raw_input to harden against code which can modify it
3021 (wx.py.PyShell does this and would otherwise crash ipython).
3027 (wx.py.PyShell does this and would otherwise crash ipython).
3022 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3028 Thanks to a bug report by Jim Flowers <james.flowers-AT-lgx.com>.
3023
3029
3024 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3030 * IPython/Shell.py (MTInteractiveShell.runsource): Cleaner fix for
3025 Ctrl-C problem, which does not mess up the input line.
3031 Ctrl-C problem, which does not mess up the input line.
3026
3032
3027 2004-11-03 Fernando Perez <fperez@colorado.edu>
3033 2004-11-03 Fernando Perez <fperez@colorado.edu>
3028
3034
3029 * IPython/Release.py: Changed licensing to BSD, in all files.
3035 * IPython/Release.py: Changed licensing to BSD, in all files.
3030 (name): lowercase name for tarball/RPM release.
3036 (name): lowercase name for tarball/RPM release.
3031
3037
3032 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3038 * IPython/OInspect.py (getdoc): wrap inspect.getdoc() safely for
3033 use throughout ipython.
3039 use throughout ipython.
3034
3040
3035 * IPython/Magic.py (Magic._ofind): Switch to using the new
3041 * IPython/Magic.py (Magic._ofind): Switch to using the new
3036 OInspect.getdoc() function.
3042 OInspect.getdoc() function.
3037
3043
3038 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3044 * IPython/Shell.py (sigint_handler): Hack to ignore the execution
3039 of the line currently being canceled via Ctrl-C. It's extremely
3045 of the line currently being canceled via Ctrl-C. It's extremely
3040 ugly, but I don't know how to do it better (the problem is one of
3046 ugly, but I don't know how to do it better (the problem is one of
3041 handling cross-thread exceptions).
3047 handling cross-thread exceptions).
3042
3048
3043 2004-10-28 Fernando Perez <fperez@colorado.edu>
3049 2004-10-28 Fernando Perez <fperez@colorado.edu>
3044
3050
3045 * IPython/Shell.py (signal_handler): add signal handlers to trap
3051 * IPython/Shell.py (signal_handler): add signal handlers to trap
3046 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3052 SIGINT and SIGSEGV in threaded code properly. Thanks to a bug
3047 report by Francesc Alted.
3053 report by Francesc Alted.
3048
3054
3049 2004-10-21 Fernando Perez <fperez@colorado.edu>
3055 2004-10-21 Fernando Perez <fperez@colorado.edu>
3050
3056
3051 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3057 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Fix @
3052 to % for pysh syntax extensions.
3058 to % for pysh syntax extensions.
3053
3059
3054 2004-10-09 Fernando Perez <fperez@colorado.edu>
3060 2004-10-09 Fernando Perez <fperez@colorado.edu>
3055
3061
3056 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3062 * IPython/Magic.py (Magic.magic_whos): modify output of Numeric
3057 arrays to print a more useful summary, without calling str(arr).
3063 arrays to print a more useful summary, without calling str(arr).
3058 This avoids the problem of extremely lengthy computations which
3064 This avoids the problem of extremely lengthy computations which
3059 occur if arr is large, and appear to the user as a system lockup
3065 occur if arr is large, and appear to the user as a system lockup
3060 with 100% cpu activity. After a suggestion by Kristian Sandberg
3066 with 100% cpu activity. After a suggestion by Kristian Sandberg
3061 <Kristian.Sandberg@colorado.edu>.
3067 <Kristian.Sandberg@colorado.edu>.
3062 (Magic.__init__): fix bug in global magic escapes not being
3068 (Magic.__init__): fix bug in global magic escapes not being
3063 correctly set.
3069 correctly set.
3064
3070
3065 2004-10-08 Fernando Perez <fperez@colorado.edu>
3071 2004-10-08 Fernando Perez <fperez@colorado.edu>
3066
3072
3067 * IPython/Magic.py (__license__): change to absolute imports of
3073 * IPython/Magic.py (__license__): change to absolute imports of
3068 ipython's own internal packages, to start adapting to the absolute
3074 ipython's own internal packages, to start adapting to the absolute
3069 import requirement of PEP-328.
3075 import requirement of PEP-328.
3070
3076
3071 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3077 * IPython/genutils.py (__author__): Fix coding to utf-8 on all
3072 files, and standardize author/license marks through the Release
3078 files, and standardize author/license marks through the Release
3073 module instead of having per/file stuff (except for files with
3079 module instead of having per/file stuff (except for files with
3074 particular licenses, like the MIT/PSF-licensed codes).
3080 particular licenses, like the MIT/PSF-licensed codes).
3075
3081
3076 * IPython/Debugger.py: remove dead code for python 2.1
3082 * IPython/Debugger.py: remove dead code for python 2.1
3077
3083
3078 2004-10-04 Fernando Perez <fperez@colorado.edu>
3084 2004-10-04 Fernando Perez <fperez@colorado.edu>
3079
3085
3080 * IPython/iplib.py (ipmagic): New function for accessing magics
3086 * IPython/iplib.py (ipmagic): New function for accessing magics
3081 via a normal python function call.
3087 via a normal python function call.
3082
3088
3083 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3089 * IPython/Magic.py (Magic.magic_magic): Change the magic escape
3084 from '@' to '%', to accomodate the new @decorator syntax of python
3090 from '@' to '%', to accomodate the new @decorator syntax of python
3085 2.4.
3091 2.4.
3086
3092
3087 2004-09-29 Fernando Perez <fperez@colorado.edu>
3093 2004-09-29 Fernando Perez <fperez@colorado.edu>
3088
3094
3089 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3095 * IPython/Shell.py (MatplotlibShellBase.use): Added a wrapper to
3090 matplotlib.use to prevent running scripts which try to switch
3096 matplotlib.use to prevent running scripts which try to switch
3091 interactive backends from within ipython. This will just crash
3097 interactive backends from within ipython. This will just crash
3092 the python interpreter, so we can't allow it (but a detailed error
3098 the python interpreter, so we can't allow it (but a detailed error
3093 is given to the user).
3099 is given to the user).
3094
3100
3095 2004-09-28 Fernando Perez <fperez@colorado.edu>
3101 2004-09-28 Fernando Perez <fperez@colorado.edu>
3096
3102
3097 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3103 * IPython/Shell.py (MatplotlibShellBase.mplot_exec):
3098 matplotlib-related fixes so that using @run with non-matplotlib
3104 matplotlib-related fixes so that using @run with non-matplotlib
3099 scripts doesn't pop up spurious plot windows. This requires
3105 scripts doesn't pop up spurious plot windows. This requires
3100 matplotlib >= 0.63, where I had to make some changes as well.
3106 matplotlib >= 0.63, where I had to make some changes as well.
3101
3107
3102 * IPython/ipmaker.py (make_IPython): update version requirement to
3108 * IPython/ipmaker.py (make_IPython): update version requirement to
3103 python 2.2.
3109 python 2.2.
3104
3110
3105 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3111 * IPython/iplib.py (InteractiveShell.mainloop): Add an optional
3106 banner arg for embedded customization.
3112 banner arg for embedded customization.
3107
3113
3108 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3114 * IPython/Magic.py (Magic.__init__): big cleanup to remove all
3109 explicit uses of __IP as the IPython's instance name. Now things
3115 explicit uses of __IP as the IPython's instance name. Now things
3110 are properly handled via the shell.name value. The actual code
3116 are properly handled via the shell.name value. The actual code
3111 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3117 is a bit ugly b/c I'm doing it via a global in Magic.py, but this
3112 is much better than before. I'll clean things completely when the
3118 is much better than before. I'll clean things completely when the
3113 magic stuff gets a real overhaul.
3119 magic stuff gets a real overhaul.
3114
3120
3115 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3121 * ipython.1: small fixes, sent in by Jack Moffit. He also sent in
3116 minor changes to debian dir.
3122 minor changes to debian dir.
3117
3123
3118 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3124 * IPython/iplib.py (InteractiveShell.__init__): Fix adding a
3119 pointer to the shell itself in the interactive namespace even when
3125 pointer to the shell itself in the interactive namespace even when
3120 a user-supplied dict is provided. This is needed for embedding
3126 a user-supplied dict is provided. This is needed for embedding
3121 purposes (found by tests with Michel Sanner).
3127 purposes (found by tests with Michel Sanner).
3122
3128
3123 2004-09-27 Fernando Perez <fperez@colorado.edu>
3129 2004-09-27 Fernando Perez <fperez@colorado.edu>
3124
3130
3125 * IPython/UserConfig/ipythonrc: remove []{} from
3131 * IPython/UserConfig/ipythonrc: remove []{} from
3126 readline_remove_delims, so that things like [modname.<TAB> do
3132 readline_remove_delims, so that things like [modname.<TAB> do
3127 proper completion. This disables [].TAB, but that's a less common
3133 proper completion. This disables [].TAB, but that's a less common
3128 case than module names in list comprehensions, for example.
3134 case than module names in list comprehensions, for example.
3129 Thanks to a report by Andrea Riciputi.
3135 Thanks to a report by Andrea Riciputi.
3130
3136
3131 2004-09-09 Fernando Perez <fperez@colorado.edu>
3137 2004-09-09 Fernando Perez <fperez@colorado.edu>
3132
3138
3133 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3139 * IPython/Shell.py (IPShellGTK.mainloop): reorder to avoid
3134 blocking problems in win32 and osx. Fix by John.
3140 blocking problems in win32 and osx. Fix by John.
3135
3141
3136 2004-09-08 Fernando Perez <fperez@colorado.edu>
3142 2004-09-08 Fernando Perez <fperez@colorado.edu>
3137
3143
3138 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3144 * IPython/Shell.py (IPShellWX.OnInit): Fix output redirection bug
3139 for Win32 and OSX. Fix by John Hunter.
3145 for Win32 and OSX. Fix by John Hunter.
3140
3146
3141 2004-08-30 *** Released version 0.6.3
3147 2004-08-30 *** Released version 0.6.3
3142
3148
3143 2004-08-30 Fernando Perez <fperez@colorado.edu>
3149 2004-08-30 Fernando Perez <fperez@colorado.edu>
3144
3150
3145 * setup.py (isfile): Add manpages to list of dependent files to be
3151 * setup.py (isfile): Add manpages to list of dependent files to be
3146 updated.
3152 updated.
3147
3153
3148 2004-08-27 Fernando Perez <fperez@colorado.edu>
3154 2004-08-27 Fernando Perez <fperez@colorado.edu>
3149
3155
3150 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3156 * IPython/Shell.py (start): I've disabled -wthread and -gthread
3151 for now. They don't really work with standalone WX/GTK code
3157 for now. They don't really work with standalone WX/GTK code
3152 (though matplotlib IS working fine with both of those backends).
3158 (though matplotlib IS working fine with both of those backends).
3153 This will neeed much more testing. I disabled most things with
3159 This will neeed much more testing. I disabled most things with
3154 comments, so turning it back on later should be pretty easy.
3160 comments, so turning it back on later should be pretty easy.
3155
3161
3156 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3162 * IPython/iplib.py (InteractiveShell.__init__): Fix accidental
3157 autocalling of expressions like r'foo', by modifying the line
3163 autocalling of expressions like r'foo', by modifying the line
3158 split regexp. Closes
3164 split regexp. Closes
3159 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3165 http://www.scipy.net/roundup/ipython/issue18, reported by Nicholas
3160 Riley <ipythonbugs-AT-sabi.net>.
3166 Riley <ipythonbugs-AT-sabi.net>.
3161 (InteractiveShell.mainloop): honor --nobanner with banner
3167 (InteractiveShell.mainloop): honor --nobanner with banner
3162 extensions.
3168 extensions.
3163
3169
3164 * IPython/Shell.py: Significant refactoring of all classes, so
3170 * IPython/Shell.py: Significant refactoring of all classes, so
3165 that we can really support ALL matplotlib backends and threading
3171 that we can really support ALL matplotlib backends and threading
3166 models (John spotted a bug with Tk which required this). Now we
3172 models (John spotted a bug with Tk which required this). Now we
3167 should support single-threaded, WX-threads and GTK-threads, both
3173 should support single-threaded, WX-threads and GTK-threads, both
3168 for generic code and for matplotlib.
3174 for generic code and for matplotlib.
3169
3175
3170 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3176 * IPython/ipmaker.py (__call__): Changed -mpthread option to
3171 -pylab, to simplify things for users. Will also remove the pylab
3177 -pylab, to simplify things for users. Will also remove the pylab
3172 profile, since now all of matplotlib configuration is directly
3178 profile, since now all of matplotlib configuration is directly
3173 handled here. This also reduces startup time.
3179 handled here. This also reduces startup time.
3174
3180
3175 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3181 * IPython/Shell.py (IPShellGTK.run): Fixed bug where mainloop() of
3176 shell wasn't being correctly called. Also in IPShellWX.
3182 shell wasn't being correctly called. Also in IPShellWX.
3177
3183
3178 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3184 * IPython/iplib.py (InteractiveShell.__init__): Added option to
3179 fine-tune banner.
3185 fine-tune banner.
3180
3186
3181 * IPython/numutils.py (spike): Deprecate these spike functions,
3187 * IPython/numutils.py (spike): Deprecate these spike functions,
3182 delete (long deprecated) gnuplot_exec handler.
3188 delete (long deprecated) gnuplot_exec handler.
3183
3189
3184 2004-08-26 Fernando Perez <fperez@colorado.edu>
3190 2004-08-26 Fernando Perez <fperez@colorado.edu>
3185
3191
3186 * ipython.1: Update for threading options, plus some others which
3192 * ipython.1: Update for threading options, plus some others which
3187 were missing.
3193 were missing.
3188
3194
3189 * IPython/ipmaker.py (__call__): Added -wthread option for
3195 * IPython/ipmaker.py (__call__): Added -wthread option for
3190 wxpython thread handling. Make sure threading options are only
3196 wxpython thread handling. Make sure threading options are only
3191 valid at the command line.
3197 valid at the command line.
3192
3198
3193 * scripts/ipython: moved shell selection into a factory function
3199 * scripts/ipython: moved shell selection into a factory function
3194 in Shell.py, to keep the starter script to a minimum.
3200 in Shell.py, to keep the starter script to a minimum.
3195
3201
3196 2004-08-25 Fernando Perez <fperez@colorado.edu>
3202 2004-08-25 Fernando Perez <fperez@colorado.edu>
3197
3203
3198 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3204 * IPython/Shell.py (IPShellWX.wxexit): fixes to WX threading, by
3199 John. Along with some recent changes he made to matplotlib, the
3205 John. Along with some recent changes he made to matplotlib, the
3200 next versions of both systems should work very well together.
3206 next versions of both systems should work very well together.
3201
3207
3202 2004-08-24 Fernando Perez <fperez@colorado.edu>
3208 2004-08-24 Fernando Perez <fperez@colorado.edu>
3203
3209
3204 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3210 * IPython/Magic.py (Magic.magic_prun): cleanup some dead code. I
3205 tried to switch the profiling to using hotshot, but I'm getting
3211 tried to switch the profiling to using hotshot, but I'm getting
3206 strange errors from prof.runctx() there. I may be misreading the
3212 strange errors from prof.runctx() there. I may be misreading the
3207 docs, but it looks weird. For now the profiling code will
3213 docs, but it looks weird. For now the profiling code will
3208 continue to use the standard profiler.
3214 continue to use the standard profiler.
3209
3215
3210 2004-08-23 Fernando Perez <fperez@colorado.edu>
3216 2004-08-23 Fernando Perez <fperez@colorado.edu>
3211
3217
3212 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3218 * IPython/Shell.py (IPShellWX.__init__): Improvements to the WX
3213 threaded shell, by John Hunter. It's not quite ready yet, but
3219 threaded shell, by John Hunter. It's not quite ready yet, but
3214 close.
3220 close.
3215
3221
3216 2004-08-22 Fernando Perez <fperez@colorado.edu>
3222 2004-08-22 Fernando Perez <fperez@colorado.edu>
3217
3223
3218 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3224 * IPython/iplib.py (InteractiveShell.interact): tab cleanups, also
3219 in Magic and ultraTB.
3225 in Magic and ultraTB.
3220
3226
3221 * ipython.1: document threading options in manpage.
3227 * ipython.1: document threading options in manpage.
3222
3228
3223 * scripts/ipython: Changed name of -thread option to -gthread,
3229 * scripts/ipython: Changed name of -thread option to -gthread,
3224 since this is GTK specific. I want to leave the door open for a
3230 since this is GTK specific. I want to leave the door open for a
3225 -wthread option for WX, which will most likely be necessary. This
3231 -wthread option for WX, which will most likely be necessary. This
3226 change affects usage and ipmaker as well.
3232 change affects usage and ipmaker as well.
3227
3233
3228 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3234 * IPython/Shell.py (matplotlib_shell): Add a factory function to
3229 handle the matplotlib shell issues. Code by John Hunter
3235 handle the matplotlib shell issues. Code by John Hunter
3230 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3236 <jdhunter-AT-nitace.bsd.uchicago.edu>.
3231 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3237 (IPShellMatplotlibWX.__init__): Rudimentary WX support. It's
3232 broken (and disabled for end users) for now, but it puts the
3238 broken (and disabled for end users) for now, but it puts the
3233 infrastructure in place.
3239 infrastructure in place.
3234
3240
3235 2004-08-21 Fernando Perez <fperez@colorado.edu>
3241 2004-08-21 Fernando Perez <fperez@colorado.edu>
3236
3242
3237 * ipythonrc-pylab: Add matplotlib support.
3243 * ipythonrc-pylab: Add matplotlib support.
3238
3244
3239 * matplotlib_config.py: new files for matplotlib support, part of
3245 * matplotlib_config.py: new files for matplotlib support, part of
3240 the pylab profile.
3246 the pylab profile.
3241
3247
3242 * IPython/usage.py (__doc__): documented the threading options.
3248 * IPython/usage.py (__doc__): documented the threading options.
3243
3249
3244 2004-08-20 Fernando Perez <fperez@colorado.edu>
3250 2004-08-20 Fernando Perez <fperez@colorado.edu>
3245
3251
3246 * ipython: Modified the main calling routine to handle the -thread
3252 * ipython: Modified the main calling routine to handle the -thread
3247 and -mpthread options. This needs to be done as a top-level hack,
3253 and -mpthread options. This needs to be done as a top-level hack,
3248 because it determines which class to instantiate for IPython
3254 because it determines which class to instantiate for IPython
3249 itself.
3255 itself.
3250
3256
3251 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3257 * IPython/Shell.py (MTInteractiveShell.__init__): New set of
3252 classes to support multithreaded GTK operation without blocking,
3258 classes to support multithreaded GTK operation without blocking,
3253 and matplotlib with all backends. This is a lot of still very
3259 and matplotlib with all backends. This is a lot of still very
3254 experimental code, and threads are tricky. So it may still have a
3260 experimental code, and threads are tricky. So it may still have a
3255 few rough edges... This code owes a lot to
3261 few rough edges... This code owes a lot to
3256 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3262 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109, by
3257 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3263 Brian # McErlean and John Finlay, to Antoon Pardon for fixes, and
3258 to John Hunter for all the matplotlib work.
3264 to John Hunter for all the matplotlib work.
3259
3265
3260 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3266 * IPython/ipmaker.py (__call__): Added -thread and -mpthread
3261 options for gtk thread and matplotlib support.
3267 options for gtk thread and matplotlib support.
3262
3268
3263 2004-08-16 Fernando Perez <fperez@colorado.edu>
3269 2004-08-16 Fernando Perez <fperez@colorado.edu>
3264
3270
3265 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3271 * IPython/iplib.py (InteractiveShell.__init__): don't trigger
3266 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3272 autocall for things like p*q,p/q,p+q,p-q, when p is callable. Bug
3267 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3273 reported by Stephen Walton <stephen.walton-AT-csun.edu>.
3268
3274
3269 2004-08-11 Fernando Perez <fperez@colorado.edu>
3275 2004-08-11 Fernando Perez <fperez@colorado.edu>
3270
3276
3271 * setup.py (isfile): Fix build so documentation gets updated for
3277 * setup.py (isfile): Fix build so documentation gets updated for
3272 rpms (it was only done for .tgz builds).
3278 rpms (it was only done for .tgz builds).
3273
3279
3274 2004-08-10 Fernando Perez <fperez@colorado.edu>
3280 2004-08-10 Fernando Perez <fperez@colorado.edu>
3275
3281
3276 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3282 * genutils.py (Term): Fix misspell of stdin stream (sin->cin).
3277
3283
3278 * iplib.py : Silence syntax error exceptions in tab-completion.
3284 * iplib.py : Silence syntax error exceptions in tab-completion.
3279
3285
3280 2004-08-05 Fernando Perez <fperez@colorado.edu>
3286 2004-08-05 Fernando Perez <fperez@colorado.edu>
3281
3287
3282 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3288 * IPython/Prompts.py (Prompt2.set_colors): Fix incorrectly set
3283 'color off' mark for continuation prompts. This was causing long
3289 'color off' mark for continuation prompts. This was causing long
3284 continuation lines to mis-wrap.
3290 continuation lines to mis-wrap.
3285
3291
3286 2004-08-01 Fernando Perez <fperez@colorado.edu>
3292 2004-08-01 Fernando Perez <fperez@colorado.edu>
3287
3293
3288 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3294 * IPython/ipmaker.py (make_IPython): Allow the shell class used
3289 for building ipython to be a parameter. All this is necessary
3295 for building ipython to be a parameter. All this is necessary
3290 right now to have a multithreaded version, but this insane
3296 right now to have a multithreaded version, but this insane
3291 non-design will be cleaned up soon. For now, it's a hack that
3297 non-design will be cleaned up soon. For now, it's a hack that
3292 works.
3298 works.
3293
3299
3294 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3300 * IPython/Shell.py (IPShell.__init__): Stop using mutable default
3295 args in various places. No bugs so far, but it's a dangerous
3301 args in various places. No bugs so far, but it's a dangerous
3296 practice.
3302 practice.
3297
3303
3298 2004-07-31 Fernando Perez <fperez@colorado.edu>
3304 2004-07-31 Fernando Perez <fperez@colorado.edu>
3299
3305
3300 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3306 * IPython/iplib.py (complete): ignore SyntaxError exceptions to
3301 fix completion of files with dots in their names under most
3307 fix completion of files with dots in their names under most
3302 profiles (pysh was OK because the completion order is different).
3308 profiles (pysh was OK because the completion order is different).
3303
3309
3304 2004-07-27 Fernando Perez <fperez@colorado.edu>
3310 2004-07-27 Fernando Perez <fperez@colorado.edu>
3305
3311
3306 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3312 * IPython/iplib.py (InteractiveShell.__init__): build dict of
3307 keywords manually, b/c the one in keyword.py was removed in python
3313 keywords manually, b/c the one in keyword.py was removed in python
3308 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3314 2.4. Patch by Anakim Border <aborder-AT-users.sourceforge.net>.
3309 This is NOT a bug under python 2.3 and earlier.
3315 This is NOT a bug under python 2.3 and earlier.
3310
3316
3311 2004-07-26 Fernando Perez <fperez@colorado.edu>
3317 2004-07-26 Fernando Perez <fperez@colorado.edu>
3312
3318
3313 * IPython/ultraTB.py (VerboseTB.text): Add another
3319 * IPython/ultraTB.py (VerboseTB.text): Add another
3314 linecache.checkcache() call to try to prevent inspect.py from
3320 linecache.checkcache() call to try to prevent inspect.py from
3315 crashing under python 2.3. I think this fixes
3321 crashing under python 2.3. I think this fixes
3316 http://www.scipy.net/roundup/ipython/issue17.
3322 http://www.scipy.net/roundup/ipython/issue17.
3317
3323
3318 2004-07-26 *** Released version 0.6.2
3324 2004-07-26 *** Released version 0.6.2
3319
3325
3320 2004-07-26 Fernando Perez <fperez@colorado.edu>
3326 2004-07-26 Fernando Perez <fperez@colorado.edu>
3321
3327
3322 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3328 * IPython/Magic.py (Magic.magic_cd): Fix bug where 'cd -N' would
3323 fail for any number.
3329 fail for any number.
3324 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3330 (Magic.magic_bookmark): Fix bug where 'bookmark -l' would fail for
3325 empty bookmarks.
3331 empty bookmarks.
3326
3332
3327 2004-07-26 *** Released version 0.6.1
3333 2004-07-26 *** Released version 0.6.1
3328
3334
3329 2004-07-26 Fernando Perez <fperez@colorado.edu>
3335 2004-07-26 Fernando Perez <fperez@colorado.edu>
3330
3336
3331 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3337 * ipython_win_post_install.py (run): Added pysh shortcut for Windows.
3332
3338
3333 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3339 * IPython/iplib.py (protect_filename): Applied Ville's patch for
3334 escaping '()[]{}' in filenames.
3340 escaping '()[]{}' in filenames.
3335
3341
3336 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3342 * IPython/Magic.py (shlex_split): Fix handling of '*' and '?' for
3337 Python 2.2 users who lack a proper shlex.split.
3343 Python 2.2 users who lack a proper shlex.split.
3338
3344
3339 2004-07-19 Fernando Perez <fperez@colorado.edu>
3345 2004-07-19 Fernando Perez <fperez@colorado.edu>
3340
3346
3341 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3347 * IPython/iplib.py (InteractiveShell.init_readline): Add support
3342 for reading readline's init file. I follow the normal chain:
3348 for reading readline's init file. I follow the normal chain:
3343 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3349 $INPUTRC is honored, otherwise ~/.inputrc is used. Thanks to a
3344 report by Mike Heeter. This closes
3350 report by Mike Heeter. This closes
3345 http://www.scipy.net/roundup/ipython/issue16.
3351 http://www.scipy.net/roundup/ipython/issue16.
3346
3352
3347 2004-07-18 Fernando Perez <fperez@colorado.edu>
3353 2004-07-18 Fernando Perez <fperez@colorado.edu>
3348
3354
3349 * IPython/iplib.py (__init__): Add better handling of '\' under
3355 * IPython/iplib.py (__init__): Add better handling of '\' under
3350 Win32 for filenames. After a patch by Ville.
3356 Win32 for filenames. After a patch by Ville.
3351
3357
3352 2004-07-17 Fernando Perez <fperez@colorado.edu>
3358 2004-07-17 Fernando Perez <fperez@colorado.edu>
3353
3359
3354 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3360 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
3355 autocalling would be triggered for 'foo is bar' if foo is
3361 autocalling would be triggered for 'foo is bar' if foo is
3356 callable. I also cleaned up the autocall detection code to use a
3362 callable. I also cleaned up the autocall detection code to use a
3357 regexp, which is faster. Bug reported by Alexander Schmolck.
3363 regexp, which is faster. Bug reported by Alexander Schmolck.
3358
3364
3359 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3365 * IPython/Magic.py (Magic.magic_pinfo): Fix bug where strings with
3360 '?' in them would confuse the help system. Reported by Alex
3366 '?' in them would confuse the help system. Reported by Alex
3361 Schmolck.
3367 Schmolck.
3362
3368
3363 2004-07-16 Fernando Perez <fperez@colorado.edu>
3369 2004-07-16 Fernando Perez <fperez@colorado.edu>
3364
3370
3365 * IPython/GnuplotInteractive.py (__all__): added plot2.
3371 * IPython/GnuplotInteractive.py (__all__): added plot2.
3366
3372
3367 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3373 * IPython/Gnuplot2.py (Gnuplot.plot2): added new function for
3368 plotting dictionaries, lists or tuples of 1d arrays.
3374 plotting dictionaries, lists or tuples of 1d arrays.
3369
3375
3370 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3376 * IPython/Magic.py (Magic.magic_hist): small clenaups and
3371 optimizations.
3377 optimizations.
3372
3378
3373 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3379 * IPython/iplib.py:Remove old Changelog info for cleanup. This is
3374 the information which was there from Janko's original IPP code:
3380 the information which was there from Janko's original IPP code:
3375
3381
3376 03.05.99 20:53 porto.ifm.uni-kiel.de
3382 03.05.99 20:53 porto.ifm.uni-kiel.de
3377 --Started changelog.
3383 --Started changelog.
3378 --make clear do what it say it does
3384 --make clear do what it say it does
3379 --added pretty output of lines from inputcache
3385 --added pretty output of lines from inputcache
3380 --Made Logger a mixin class, simplifies handling of switches
3386 --Made Logger a mixin class, simplifies handling of switches
3381 --Added own completer class. .string<TAB> expands to last history
3387 --Added own completer class. .string<TAB> expands to last history
3382 line which starts with string. The new expansion is also present
3388 line which starts with string. The new expansion is also present
3383 with Ctrl-r from the readline library. But this shows, who this
3389 with Ctrl-r from the readline library. But this shows, who this
3384 can be done for other cases.
3390 can be done for other cases.
3385 --Added convention that all shell functions should accept a
3391 --Added convention that all shell functions should accept a
3386 parameter_string This opens the door for different behaviour for
3392 parameter_string This opens the door for different behaviour for
3387 each function. @cd is a good example of this.
3393 each function. @cd is a good example of this.
3388
3394
3389 04.05.99 12:12 porto.ifm.uni-kiel.de
3395 04.05.99 12:12 porto.ifm.uni-kiel.de
3390 --added logfile rotation
3396 --added logfile rotation
3391 --added new mainloop method which freezes first the namespace
3397 --added new mainloop method which freezes first the namespace
3392
3398
3393 07.05.99 21:24 porto.ifm.uni-kiel.de
3399 07.05.99 21:24 porto.ifm.uni-kiel.de
3394 --added the docreader classes. Now there is a help system.
3400 --added the docreader classes. Now there is a help system.
3395 -This is only a first try. Currently it's not easy to put new
3401 -This is only a first try. Currently it's not easy to put new
3396 stuff in the indices. But this is the way to go. Info would be
3402 stuff in the indices. But this is the way to go. Info would be
3397 better, but HTML is every where and not everybody has an info
3403 better, but HTML is every where and not everybody has an info
3398 system installed and it's not so easy to change html-docs to info.
3404 system installed and it's not so easy to change html-docs to info.
3399 --added global logfile option
3405 --added global logfile option
3400 --there is now a hook for object inspection method pinfo needs to
3406 --there is now a hook for object inspection method pinfo needs to
3401 be provided for this. Can be reached by two '??'.
3407 be provided for this. Can be reached by two '??'.
3402
3408
3403 08.05.99 20:51 porto.ifm.uni-kiel.de
3409 08.05.99 20:51 porto.ifm.uni-kiel.de
3404 --added a README
3410 --added a README
3405 --bug in rc file. Something has changed so functions in the rc
3411 --bug in rc file. Something has changed so functions in the rc
3406 file need to reference the shell and not self. Not clear if it's a
3412 file need to reference the shell and not self. Not clear if it's a
3407 bug or feature.
3413 bug or feature.
3408 --changed rc file for new behavior
3414 --changed rc file for new behavior
3409
3415
3410 2004-07-15 Fernando Perez <fperez@colorado.edu>
3416 2004-07-15 Fernando Perez <fperez@colorado.edu>
3411
3417
3412 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3418 * IPython/Logger.py (Logger.log): fixed recent bug where the input
3413 cache was falling out of sync in bizarre manners when multi-line
3419 cache was falling out of sync in bizarre manners when multi-line
3414 input was present. Minor optimizations and cleanup.
3420 input was present. Minor optimizations and cleanup.
3415
3421
3416 (Logger): Remove old Changelog info for cleanup. This is the
3422 (Logger): Remove old Changelog info for cleanup. This is the
3417 information which was there from Janko's original code:
3423 information which was there from Janko's original code:
3418
3424
3419 Changes to Logger: - made the default log filename a parameter
3425 Changes to Logger: - made the default log filename a parameter
3420
3426
3421 - put a check for lines beginning with !@? in log(). Needed
3427 - put a check for lines beginning with !@? in log(). Needed
3422 (even if the handlers properly log their lines) for mid-session
3428 (even if the handlers properly log their lines) for mid-session
3423 logging activation to work properly. Without this, lines logged
3429 logging activation to work properly. Without this, lines logged
3424 in mid session, which get read from the cache, would end up
3430 in mid session, which get read from the cache, would end up
3425 'bare' (with !@? in the open) in the log. Now they are caught
3431 'bare' (with !@? in the open) in the log. Now they are caught
3426 and prepended with a #.
3432 and prepended with a #.
3427
3433
3428 * IPython/iplib.py (InteractiveShell.init_readline): added check
3434 * IPython/iplib.py (InteractiveShell.init_readline): added check
3429 in case MagicCompleter fails to be defined, so we don't crash.
3435 in case MagicCompleter fails to be defined, so we don't crash.
3430
3436
3431 2004-07-13 Fernando Perez <fperez@colorado.edu>
3437 2004-07-13 Fernando Perez <fperez@colorado.edu>
3432
3438
3433 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3439 * IPython/Gnuplot2.py (Gnuplot.hardcopy): add automatic generation
3434 of EPS if the requested filename ends in '.eps'.
3440 of EPS if the requested filename ends in '.eps'.
3435
3441
3436 2004-07-04 Fernando Perez <fperez@colorado.edu>
3442 2004-07-04 Fernando Perez <fperez@colorado.edu>
3437
3443
3438 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3444 * IPython/iplib.py (InteractiveShell.handle_shell_escape): Fix
3439 escaping of quotes when calling the shell.
3445 escaping of quotes when calling the shell.
3440
3446
3441 2004-07-02 Fernando Perez <fperez@colorado.edu>
3447 2004-07-02 Fernando Perez <fperez@colorado.edu>
3442
3448
3443 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3449 * IPython/Prompts.py (CachedOutput.update): Fix problem with
3444 gettext not working because we were clobbering '_'. Fixes
3450 gettext not working because we were clobbering '_'. Fixes
3445 http://www.scipy.net/roundup/ipython/issue6.
3451 http://www.scipy.net/roundup/ipython/issue6.
3446
3452
3447 2004-07-01 Fernando Perez <fperez@colorado.edu>
3453 2004-07-01 Fernando Perez <fperez@colorado.edu>
3448
3454
3449 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3455 * IPython/Magic.py (Magic.magic_cd): integrated bookmark handling
3450 into @cd. Patch by Ville.
3456 into @cd. Patch by Ville.
3451
3457
3452 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3458 * IPython/iplib.py (InteractiveShell.post_config_initialization):
3453 new function to store things after ipmaker runs. Patch by Ville.
3459 new function to store things after ipmaker runs. Patch by Ville.
3454 Eventually this will go away once ipmaker is removed and the class
3460 Eventually this will go away once ipmaker is removed and the class
3455 gets cleaned up, but for now it's ok. Key functionality here is
3461 gets cleaned up, but for now it's ok. Key functionality here is
3456 the addition of the persistent storage mechanism, a dict for
3462 the addition of the persistent storage mechanism, a dict for
3457 keeping data across sessions (for now just bookmarks, but more can
3463 keeping data across sessions (for now just bookmarks, but more can
3458 be implemented later).
3464 be implemented later).
3459
3465
3460 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3466 * IPython/Magic.py (Magic.magic_bookmark): New bookmark system,
3461 persistent across sections. Patch by Ville, I modified it
3467 persistent across sections. Patch by Ville, I modified it
3462 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3468 soemwhat to allow bookmarking arbitrary dirs other than CWD. Also
3463 added a '-l' option to list all bookmarks.
3469 added a '-l' option to list all bookmarks.
3464
3470
3465 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3471 * IPython/iplib.py (InteractiveShell.atexit_operations): new
3466 center for cleanup. Registered with atexit.register(). I moved
3472 center for cleanup. Registered with atexit.register(). I moved
3467 here the old exit_cleanup(). After a patch by Ville.
3473 here the old exit_cleanup(). After a patch by Ville.
3468
3474
3469 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3475 * IPython/Magic.py (get_py_filename): added '~' to the accepted
3470 characters in the hacked shlex_split for python 2.2.
3476 characters in the hacked shlex_split for python 2.2.
3471
3477
3472 * IPython/iplib.py (file_matches): more fixes to filenames with
3478 * IPython/iplib.py (file_matches): more fixes to filenames with
3473 whitespace in them. It's not perfect, but limitations in python's
3479 whitespace in them. It's not perfect, but limitations in python's
3474 readline make it impossible to go further.
3480 readline make it impossible to go further.
3475
3481
3476 2004-06-29 Fernando Perez <fperez@colorado.edu>
3482 2004-06-29 Fernando Perez <fperez@colorado.edu>
3477
3483
3478 * IPython/iplib.py (file_matches): escape whitespace correctly in
3484 * IPython/iplib.py (file_matches): escape whitespace correctly in
3479 filename completions. Bug reported by Ville.
3485 filename completions. Bug reported by Ville.
3480
3486
3481 2004-06-28 Fernando Perez <fperez@colorado.edu>
3487 2004-06-28 Fernando Perez <fperez@colorado.edu>
3482
3488
3483 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3489 * IPython/ipmaker.py (__call__): Added per-profile histories. Now
3484 the history file will be called 'history-PROFNAME' (or just
3490 the history file will be called 'history-PROFNAME' (or just
3485 'history' if no profile is loaded). I was getting annoyed at
3491 'history' if no profile is loaded). I was getting annoyed at
3486 getting my Numerical work history clobbered by pysh sessions.
3492 getting my Numerical work history clobbered by pysh sessions.
3487
3493
3488 * IPython/iplib.py (InteractiveShell.__init__): Internal
3494 * IPython/iplib.py (InteractiveShell.__init__): Internal
3489 getoutputerror() function so that we can honor the system_verbose
3495 getoutputerror() function so that we can honor the system_verbose
3490 flag for _all_ system calls. I also added escaping of #
3496 flag for _all_ system calls. I also added escaping of #
3491 characters here to avoid confusing Itpl.
3497 characters here to avoid confusing Itpl.
3492
3498
3493 * IPython/Magic.py (shlex_split): removed call to shell in
3499 * IPython/Magic.py (shlex_split): removed call to shell in
3494 parse_options and replaced it with shlex.split(). The annoying
3500 parse_options and replaced it with shlex.split(). The annoying
3495 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3501 part was that in Python 2.2, shlex.split() doesn't exist, so I had
3496 to backport it from 2.3, with several frail hacks (the shlex
3502 to backport it from 2.3, with several frail hacks (the shlex
3497 module is rather limited in 2.2). Thanks to a suggestion by Ville
3503 module is rather limited in 2.2). Thanks to a suggestion by Ville
3498 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3504 Vainio <vivainio@kolumbus.fi>. For Python 2.3 there should be no
3499 problem.
3505 problem.
3500
3506
3501 (Magic.magic_system_verbose): new toggle to print the actual
3507 (Magic.magic_system_verbose): new toggle to print the actual
3502 system calls made by ipython. Mainly for debugging purposes.
3508 system calls made by ipython. Mainly for debugging purposes.
3503
3509
3504 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3510 * IPython/GnuplotRuntime.py (gnu_out): fix bug for cygwin, which
3505 doesn't support persistence. Reported (and fix suggested) by
3511 doesn't support persistence. Reported (and fix suggested) by
3506 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3512 Travis Caldwell <travis_caldwell2000@yahoo.com>.
3507
3513
3508 2004-06-26 Fernando Perez <fperez@colorado.edu>
3514 2004-06-26 Fernando Perez <fperez@colorado.edu>
3509
3515
3510 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3516 * IPython/Logger.py (Logger.log): fix to handle correctly empty
3511 continue prompts.
3517 continue prompts.
3512
3518
3513 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3519 * IPython/Extensions/InterpreterExec.py (pysh): moved the pysh()
3514 function (basically a big docstring) and a few more things here to
3520 function (basically a big docstring) and a few more things here to
3515 speedup startup. pysh.py is now very lightweight. We want because
3521 speedup startup. pysh.py is now very lightweight. We want because
3516 it gets execfile'd, while InterpreterExec gets imported, so
3522 it gets execfile'd, while InterpreterExec gets imported, so
3517 byte-compilation saves time.
3523 byte-compilation saves time.
3518
3524
3519 2004-06-25 Fernando Perez <fperez@colorado.edu>
3525 2004-06-25 Fernando Perez <fperez@colorado.edu>
3520
3526
3521 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3527 * IPython/Magic.py (Magic.magic_cd): Fixed to restore usage of 'cd
3522 -NUM', which was recently broken.
3528 -NUM', which was recently broken.
3523
3529
3524 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3530 * IPython/iplib.py (InteractiveShell.handle_shell_escape): allow !
3525 in multi-line input (but not !!, which doesn't make sense there).
3531 in multi-line input (but not !!, which doesn't make sense there).
3526
3532
3527 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3533 * IPython/UserConfig/ipythonrc: made autoindent on by default.
3528 It's just too useful, and people can turn it off in the less
3534 It's just too useful, and people can turn it off in the less
3529 common cases where it's a problem.
3535 common cases where it's a problem.
3530
3536
3531 2004-06-24 Fernando Perez <fperez@colorado.edu>
3537 2004-06-24 Fernando Perez <fperez@colorado.edu>
3532
3538
3533 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3539 * IPython/iplib.py (InteractiveShell._prefilter): big change -
3534 special syntaxes (like alias calling) is now allied in multi-line
3540 special syntaxes (like alias calling) is now allied in multi-line
3535 input. This is still _very_ experimental, but it's necessary for
3541 input. This is still _very_ experimental, but it's necessary for
3536 efficient shell usage combining python looping syntax with system
3542 efficient shell usage combining python looping syntax with system
3537 calls. For now it's restricted to aliases, I don't think it
3543 calls. For now it's restricted to aliases, I don't think it
3538 really even makes sense to have this for magics.
3544 really even makes sense to have this for magics.
3539
3545
3540 2004-06-23 Fernando Perez <fperez@colorado.edu>
3546 2004-06-23 Fernando Perez <fperez@colorado.edu>
3541
3547
3542 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3548 * IPython/Extensions/InterpreterExec.py (prefilter_shell): Added
3543 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3549 $var=cmd <=> @sc var=cmd and $$var=cmd <=> @sc -l var=cmd.
3544
3550
3545 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3551 * IPython/Magic.py (Magic.magic_rehashx): modified to handle
3546 extensions under Windows (after code sent by Gary Bishop). The
3552 extensions under Windows (after code sent by Gary Bishop). The
3547 extensions considered 'executable' are stored in IPython's rc
3553 extensions considered 'executable' are stored in IPython's rc
3548 structure as win_exec_ext.
3554 structure as win_exec_ext.
3549
3555
3550 * IPython/genutils.py (shell): new function, like system() but
3556 * IPython/genutils.py (shell): new function, like system() but
3551 without return value. Very useful for interactive shell work.
3557 without return value. Very useful for interactive shell work.
3552
3558
3553 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3559 * IPython/Magic.py (Magic.magic_unalias): New @unalias function to
3554 delete aliases.
3560 delete aliases.
3555
3561
3556 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3562 * IPython/iplib.py (InteractiveShell.alias_table_update): make
3557 sure that the alias table doesn't contain python keywords.
3563 sure that the alias table doesn't contain python keywords.
3558
3564
3559 2004-06-21 Fernando Perez <fperez@colorado.edu>
3565 2004-06-21 Fernando Perez <fperez@colorado.edu>
3560
3566
3561 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3567 * IPython/Magic.py (Magic.magic_rehash): Fix crash when
3562 non-existent items are found in $PATH. Reported by Thorsten.
3568 non-existent items are found in $PATH. Reported by Thorsten.
3563
3569
3564 2004-06-20 Fernando Perez <fperez@colorado.edu>
3570 2004-06-20 Fernando Perez <fperez@colorado.edu>
3565
3571
3566 * IPython/iplib.py (complete): modified the completer so that the
3572 * IPython/iplib.py (complete): modified the completer so that the
3567 order of priorities can be easily changed at runtime.
3573 order of priorities can be easily changed at runtime.
3568
3574
3569 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3575 * IPython/Extensions/InterpreterExec.py (prefilter_shell):
3570 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3576 Modified to auto-execute all lines beginning with '~', '/' or '.'.
3571
3577
3572 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3578 * IPython/Magic.py (Magic.magic_sx): modified @sc and @sx to
3573 expand Python variables prepended with $ in all system calls. The
3579 expand Python variables prepended with $ in all system calls. The
3574 same was done to InteractiveShell.handle_shell_escape. Now all
3580 same was done to InteractiveShell.handle_shell_escape. Now all
3575 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3581 system access mechanisms (!, !!, @sc, @sx and aliases) allow the
3576 expansion of python variables and expressions according to the
3582 expansion of python variables and expressions according to the
3577 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3583 syntax of PEP-215 - http://www.python.org/peps/pep-0215.html.
3578
3584
3579 Though PEP-215 has been rejected, a similar (but simpler) one
3585 Though PEP-215 has been rejected, a similar (but simpler) one
3580 seems like it will go into Python 2.4, PEP-292 -
3586 seems like it will go into Python 2.4, PEP-292 -
3581 http://www.python.org/peps/pep-0292.html.
3587 http://www.python.org/peps/pep-0292.html.
3582
3588
3583 I'll keep the full syntax of PEP-215, since IPython has since the
3589 I'll keep the full syntax of PEP-215, since IPython has since the
3584 start used Ka-Ping Yee's reference implementation discussed there
3590 start used Ka-Ping Yee's reference implementation discussed there
3585 (Itpl), and I actually like the powerful semantics it offers.
3591 (Itpl), and I actually like the powerful semantics it offers.
3586
3592
3587 In order to access normal shell variables, the $ has to be escaped
3593 In order to access normal shell variables, the $ has to be escaped
3588 via an extra $. For example:
3594 via an extra $. For example:
3589
3595
3590 In [7]: PATH='a python variable'
3596 In [7]: PATH='a python variable'
3591
3597
3592 In [8]: !echo $PATH
3598 In [8]: !echo $PATH
3593 a python variable
3599 a python variable
3594
3600
3595 In [9]: !echo $$PATH
3601 In [9]: !echo $$PATH
3596 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3602 /usr/local/lf9560/bin:/usr/local/intel/compiler70/ia32/bin:...
3597
3603
3598 (Magic.parse_options): escape $ so the shell doesn't evaluate
3604 (Magic.parse_options): escape $ so the shell doesn't evaluate
3599 things prematurely.
3605 things prematurely.
3600
3606
3601 * IPython/iplib.py (InteractiveShell.call_alias): added the
3607 * IPython/iplib.py (InteractiveShell.call_alias): added the
3602 ability for aliases to expand python variables via $.
3608 ability for aliases to expand python variables via $.
3603
3609
3604 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3610 * IPython/Magic.py (Magic.magic_rehash): based on the new alias
3605 system, now there's a @rehash/@rehashx pair of magics. These work
3611 system, now there's a @rehash/@rehashx pair of magics. These work
3606 like the csh rehash command, and can be invoked at any time. They
3612 like the csh rehash command, and can be invoked at any time. They
3607 build a table of aliases to everything in the user's $PATH
3613 build a table of aliases to everything in the user's $PATH
3608 (@rehash uses everything, @rehashx is slower but only adds
3614 (@rehash uses everything, @rehashx is slower but only adds
3609 executable files). With this, the pysh.py-based shell profile can
3615 executable files). With this, the pysh.py-based shell profile can
3610 now simply call rehash upon startup, and full access to all
3616 now simply call rehash upon startup, and full access to all
3611 programs in the user's path is obtained.
3617 programs in the user's path is obtained.
3612
3618
3613 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3619 * IPython/iplib.py (InteractiveShell.call_alias): The new alias
3614 functionality is now fully in place. I removed the old dynamic
3620 functionality is now fully in place. I removed the old dynamic
3615 code generation based approach, in favor of a much lighter one
3621 code generation based approach, in favor of a much lighter one
3616 based on a simple dict. The advantage is that this allows me to
3622 based on a simple dict. The advantage is that this allows me to
3617 now have thousands of aliases with negligible cost (unthinkable
3623 now have thousands of aliases with negligible cost (unthinkable
3618 with the old system).
3624 with the old system).
3619
3625
3620 2004-06-19 Fernando Perez <fperez@colorado.edu>
3626 2004-06-19 Fernando Perez <fperez@colorado.edu>
3621
3627
3622 * IPython/iplib.py (__init__): extended MagicCompleter class to
3628 * IPython/iplib.py (__init__): extended MagicCompleter class to
3623 also complete (last in priority) on user aliases.
3629 also complete (last in priority) on user aliases.
3624
3630
3625 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3631 * IPython/Itpl.py (Itpl.__str__): fixed order of globals/locals in
3626 call to eval.
3632 call to eval.
3627 (ItplNS.__init__): Added a new class which functions like Itpl,
3633 (ItplNS.__init__): Added a new class which functions like Itpl,
3628 but allows configuring the namespace for the evaluation to occur
3634 but allows configuring the namespace for the evaluation to occur
3629 in.
3635 in.
3630
3636
3631 2004-06-18 Fernando Perez <fperez@colorado.edu>
3637 2004-06-18 Fernando Perez <fperez@colorado.edu>
3632
3638
3633 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3639 * IPython/iplib.py (InteractiveShell.runcode): modify to print a
3634 better message when 'exit' or 'quit' are typed (a common newbie
3640 better message when 'exit' or 'quit' are typed (a common newbie
3635 confusion).
3641 confusion).
3636
3642
3637 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3643 * IPython/Magic.py (Magic.magic_colors): Added the runtime color
3638 check for Windows users.
3644 check for Windows users.
3639
3645
3640 * IPython/iplib.py (InteractiveShell.user_setup): removed
3646 * IPython/iplib.py (InteractiveShell.user_setup): removed
3641 disabling of colors for Windows. I'll test at runtime and issue a
3647 disabling of colors for Windows. I'll test at runtime and issue a
3642 warning if Gary's readline isn't found, as to nudge users to
3648 warning if Gary's readline isn't found, as to nudge users to
3643 download it.
3649 download it.
3644
3650
3645 2004-06-16 Fernando Perez <fperez@colorado.edu>
3651 2004-06-16 Fernando Perez <fperez@colorado.edu>
3646
3652
3647 * IPython/genutils.py (Stream.__init__): changed to print errors
3653 * IPython/genutils.py (Stream.__init__): changed to print errors
3648 to sys.stderr. I had a circular dependency here. Now it's
3654 to sys.stderr. I had a circular dependency here. Now it's
3649 possible to run ipython as IDLE's shell (consider this pre-alpha,
3655 possible to run ipython as IDLE's shell (consider this pre-alpha,
3650 since true stdout things end up in the starting terminal instead
3656 since true stdout things end up in the starting terminal instead
3651 of IDLE's out).
3657 of IDLE's out).
3652
3658
3653 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3659 * IPython/Prompts.py (Prompt2.set_colors): prevent crashes for
3654 users who haven't # updated their prompt_in2 definitions. Remove
3660 users who haven't # updated their prompt_in2 definitions. Remove
3655 eventually.
3661 eventually.
3656 (multiple_replace): added credit to original ASPN recipe.
3662 (multiple_replace): added credit to original ASPN recipe.
3657
3663
3658 2004-06-15 Fernando Perez <fperez@colorado.edu>
3664 2004-06-15 Fernando Perez <fperez@colorado.edu>
3659
3665
3660 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3666 * IPython/iplib.py (InteractiveShell.__init__): add 'cp' to the
3661 list of auto-defined aliases.
3667 list of auto-defined aliases.
3662
3668
3663 2004-06-13 Fernando Perez <fperez@colorado.edu>
3669 2004-06-13 Fernando Perez <fperez@colorado.edu>
3664
3670
3665 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3671 * setup.py (scriptfiles): Don't trigger win_post_install unless an
3666 install was really requested (so setup.py can be used for other
3672 install was really requested (so setup.py can be used for other
3667 things under Windows).
3673 things under Windows).
3668
3674
3669 2004-06-10 Fernando Perez <fperez@colorado.edu>
3675 2004-06-10 Fernando Perez <fperez@colorado.edu>
3670
3676
3671 * IPython/Logger.py (Logger.create_log): Manually remove any old
3677 * IPython/Logger.py (Logger.create_log): Manually remove any old
3672 backup, since os.remove may fail under Windows. Fixes bug
3678 backup, since os.remove may fail under Windows. Fixes bug
3673 reported by Thorsten.
3679 reported by Thorsten.
3674
3680
3675 2004-06-09 Fernando Perez <fperez@colorado.edu>
3681 2004-06-09 Fernando Perez <fperez@colorado.edu>
3676
3682
3677 * examples/example-embed.py: fixed all references to %n (replaced
3683 * examples/example-embed.py: fixed all references to %n (replaced
3678 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3684 with \\# for ps1/out prompts and with \\D for ps2 prompts). Done
3679 for all examples and the manual as well.
3685 for all examples and the manual as well.
3680
3686
3681 2004-06-08 Fernando Perez <fperez@colorado.edu>
3687 2004-06-08 Fernando Perez <fperez@colorado.edu>
3682
3688
3683 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3689 * IPython/Prompts.py (Prompt2.set_p_str): fixed all prompt
3684 alignment and color management. All 3 prompt subsystems now
3690 alignment and color management. All 3 prompt subsystems now
3685 inherit from BasePrompt.
3691 inherit from BasePrompt.
3686
3692
3687 * tools/release: updates for windows installer build and tag rpms
3693 * tools/release: updates for windows installer build and tag rpms
3688 with python version (since paths are fixed).
3694 with python version (since paths are fixed).
3689
3695
3690 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3696 * IPython/UserConfig/ipythonrc: modified to use \# instead of %n,
3691 which will become eventually obsolete. Also fixed the default
3697 which will become eventually obsolete. Also fixed the default
3692 prompt_in2 to use \D, so at least new users start with the correct
3698 prompt_in2 to use \D, so at least new users start with the correct
3693 defaults.
3699 defaults.
3694 WARNING: Users with existing ipythonrc files will need to apply
3700 WARNING: Users with existing ipythonrc files will need to apply
3695 this fix manually!
3701 this fix manually!
3696
3702
3697 * setup.py: make windows installer (.exe). This is finally the
3703 * setup.py: make windows installer (.exe). This is finally the
3698 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3704 integration of an old patch by Cory Dodt <dodt-AT-fcoe.k12.ca.us>,
3699 which I hadn't included because it required Python 2.3 (or recent
3705 which I hadn't included because it required Python 2.3 (or recent
3700 distutils).
3706 distutils).
3701
3707
3702 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3708 * IPython/usage.py (__doc__): update docs (and manpage) to reflect
3703 usage of new '\D' escape.
3709 usage of new '\D' escape.
3704
3710
3705 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3711 * IPython/Prompts.py (ROOT_SYMBOL): Small fix for Windows (which
3706 lacks os.getuid())
3712 lacks os.getuid())
3707 (CachedOutput.set_colors): Added the ability to turn coloring
3713 (CachedOutput.set_colors): Added the ability to turn coloring
3708 on/off with @colors even for manually defined prompt colors. It
3714 on/off with @colors even for manually defined prompt colors. It
3709 uses a nasty global, but it works safely and via the generic color
3715 uses a nasty global, but it works safely and via the generic color
3710 handling mechanism.
3716 handling mechanism.
3711 (Prompt2.__init__): Introduced new escape '\D' for continuation
3717 (Prompt2.__init__): Introduced new escape '\D' for continuation
3712 prompts. It represents the counter ('\#') as dots.
3718 prompts. It represents the counter ('\#') as dots.
3713 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3719 *** NOTE *** THIS IS A BACKWARDS-INCOMPATIBLE CHANGE. Users will
3714 need to update their ipythonrc files and replace '%n' with '\D' in
3720 need to update their ipythonrc files and replace '%n' with '\D' in
3715 their prompt_in2 settings everywhere. Sorry, but there's
3721 their prompt_in2 settings everywhere. Sorry, but there's
3716 otherwise no clean way to get all prompts to properly align. The
3722 otherwise no clean way to get all prompts to properly align. The
3717 ipythonrc shipped with IPython has been updated.
3723 ipythonrc shipped with IPython has been updated.
3718
3724
3719 2004-06-07 Fernando Perez <fperez@colorado.edu>
3725 2004-06-07 Fernando Perez <fperez@colorado.edu>
3720
3726
3721 * setup.py (isfile): Pass local_icons option to latex2html, so the
3727 * setup.py (isfile): Pass local_icons option to latex2html, so the
3722 resulting HTML file is self-contained. Thanks to
3728 resulting HTML file is self-contained. Thanks to
3723 dryice-AT-liu.com.cn for the tip.
3729 dryice-AT-liu.com.cn for the tip.
3724
3730
3725 * pysh.py: I created a new profile 'shell', which implements a
3731 * pysh.py: I created a new profile 'shell', which implements a
3726 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3732 _rudimentary_ IPython-based shell. This is in NO WAY a realy
3727 system shell, nor will it become one anytime soon. It's mainly
3733 system shell, nor will it become one anytime soon. It's mainly
3728 meant to illustrate the use of the new flexible bash-like prompts.
3734 meant to illustrate the use of the new flexible bash-like prompts.
3729 I guess it could be used by hardy souls for true shell management,
3735 I guess it could be used by hardy souls for true shell management,
3730 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3736 but it's no tcsh/bash... pysh.py is loaded by the 'shell'
3731 profile. This uses the InterpreterExec extension provided by
3737 profile. This uses the InterpreterExec extension provided by
3732 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3738 W.J. van der Laan <gnufnork-AT-hetdigitalegat.nl>
3733
3739
3734 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3740 * IPython/Prompts.py (PromptOut.__str__): now it will correctly
3735 auto-align itself with the length of the previous input prompt
3741 auto-align itself with the length of the previous input prompt
3736 (taking into account the invisible color escapes).
3742 (taking into account the invisible color escapes).
3737 (CachedOutput.__init__): Large restructuring of this class. Now
3743 (CachedOutput.__init__): Large restructuring of this class. Now
3738 all three prompts (primary1, primary2, output) are proper objects,
3744 all three prompts (primary1, primary2, output) are proper objects,
3739 managed by the 'parent' CachedOutput class. The code is still a
3745 managed by the 'parent' CachedOutput class. The code is still a
3740 bit hackish (all prompts share state via a pointer to the cache),
3746 bit hackish (all prompts share state via a pointer to the cache),
3741 but it's overall far cleaner than before.
3747 but it's overall far cleaner than before.
3742
3748
3743 * IPython/genutils.py (getoutputerror): modified to add verbose,
3749 * IPython/genutils.py (getoutputerror): modified to add verbose,
3744 debug and header options. This makes the interface of all getout*
3750 debug and header options. This makes the interface of all getout*
3745 functions uniform.
3751 functions uniform.
3746 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3752 (SystemExec.getoutputerror): added getoutputerror to SystemExec.
3747
3753
3748 * IPython/Magic.py (Magic.default_option): added a function to
3754 * IPython/Magic.py (Magic.default_option): added a function to
3749 allow registering default options for any magic command. This
3755 allow registering default options for any magic command. This
3750 makes it easy to have profiles which customize the magics globally
3756 makes it easy to have profiles which customize the magics globally
3751 for a certain use. The values set through this function are
3757 for a certain use. The values set through this function are
3752 picked up by the parse_options() method, which all magics should
3758 picked up by the parse_options() method, which all magics should
3753 use to parse their options.
3759 use to parse their options.
3754
3760
3755 * IPython/genutils.py (warn): modified the warnings framework to
3761 * IPython/genutils.py (warn): modified the warnings framework to
3756 use the Term I/O class. I'm trying to slowly unify all of
3762 use the Term I/O class. I'm trying to slowly unify all of
3757 IPython's I/O operations to pass through Term.
3763 IPython's I/O operations to pass through Term.
3758
3764
3759 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3765 * IPython/Prompts.py (Prompt2._str_other): Added functionality in
3760 the secondary prompt to correctly match the length of the primary
3766 the secondary prompt to correctly match the length of the primary
3761 one for any prompt. Now multi-line code will properly line up
3767 one for any prompt. Now multi-line code will properly line up
3762 even for path dependent prompts, such as the new ones available
3768 even for path dependent prompts, such as the new ones available
3763 via the prompt_specials.
3769 via the prompt_specials.
3764
3770
3765 2004-06-06 Fernando Perez <fperez@colorado.edu>
3771 2004-06-06 Fernando Perez <fperez@colorado.edu>
3766
3772
3767 * IPython/Prompts.py (prompt_specials): Added the ability to have
3773 * IPython/Prompts.py (prompt_specials): Added the ability to have
3768 bash-like special sequences in the prompts, which get
3774 bash-like special sequences in the prompts, which get
3769 automatically expanded. Things like hostname, current working
3775 automatically expanded. Things like hostname, current working
3770 directory and username are implemented already, but it's easy to
3776 directory and username are implemented already, but it's easy to
3771 add more in the future. Thanks to a patch by W.J. van der Laan
3777 add more in the future. Thanks to a patch by W.J. van der Laan
3772 <gnufnork-AT-hetdigitalegat.nl>
3778 <gnufnork-AT-hetdigitalegat.nl>
3773 (prompt_specials): Added color support for prompt strings, so
3779 (prompt_specials): Added color support for prompt strings, so
3774 users can define arbitrary color setups for their prompts.
3780 users can define arbitrary color setups for their prompts.
3775
3781
3776 2004-06-05 Fernando Perez <fperez@colorado.edu>
3782 2004-06-05 Fernando Perez <fperez@colorado.edu>
3777
3783
3778 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3784 * IPython/genutils.py (Term.reopen_all): Added Windows-specific
3779 code to load Gary Bishop's readline and configure it
3785 code to load Gary Bishop's readline and configure it
3780 automatically. Thanks to Gary for help on this.
3786 automatically. Thanks to Gary for help on this.
3781
3787
3782 2004-06-01 Fernando Perez <fperez@colorado.edu>
3788 2004-06-01 Fernando Perez <fperez@colorado.edu>
3783
3789
3784 * IPython/Logger.py (Logger.create_log): fix bug for logging
3790 * IPython/Logger.py (Logger.create_log): fix bug for logging
3785 with no filename (previous fix was incomplete).
3791 with no filename (previous fix was incomplete).
3786
3792
3787 2004-05-25 Fernando Perez <fperez@colorado.edu>
3793 2004-05-25 Fernando Perez <fperez@colorado.edu>
3788
3794
3789 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3795 * IPython/Magic.py (Magic.parse_options): fix bug where naked
3790 parens would get passed to the shell.
3796 parens would get passed to the shell.
3791
3797
3792 2004-05-20 Fernando Perez <fperez@colorado.edu>
3798 2004-05-20 Fernando Perez <fperez@colorado.edu>
3793
3799
3794 * IPython/Magic.py (Magic.magic_prun): changed default profile
3800 * IPython/Magic.py (Magic.magic_prun): changed default profile
3795 sort order to 'time' (the more common profiling need).
3801 sort order to 'time' (the more common profiling need).
3796
3802
3797 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3803 * IPython/OInspect.py (Inspector.pinfo): flush the inspect cache
3798 so that source code shown is guaranteed in sync with the file on
3804 so that source code shown is guaranteed in sync with the file on
3799 disk (also changed in psource). Similar fix to the one for
3805 disk (also changed in psource). Similar fix to the one for
3800 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3806 ultraTB on 2004-05-06. Thanks to a bug report by Yann Le Du
3801 <yann.ledu-AT-noos.fr>.
3807 <yann.ledu-AT-noos.fr>.
3802
3808
3803 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3809 * IPython/Magic.py (Magic.parse_options): Fixed bug where commands
3804 with a single option would not be correctly parsed. Closes
3810 with a single option would not be correctly parsed. Closes
3805 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3811 http://www.scipy.net/roundup/ipython/issue14. This bug had been
3806 introduced in 0.6.0 (on 2004-05-06).
3812 introduced in 0.6.0 (on 2004-05-06).
3807
3813
3808 2004-05-13 *** Released version 0.6.0
3814 2004-05-13 *** Released version 0.6.0
3809
3815
3810 2004-05-13 Fernando Perez <fperez@colorado.edu>
3816 2004-05-13 Fernando Perez <fperez@colorado.edu>
3811
3817
3812 * debian/: Added debian/ directory to CVS, so that debian support
3818 * debian/: Added debian/ directory to CVS, so that debian support
3813 is publicly accessible. The debian package is maintained by Jack
3819 is publicly accessible. The debian package is maintained by Jack
3814 Moffit <jack-AT-xiph.org>.
3820 Moffit <jack-AT-xiph.org>.
3815
3821
3816 * Documentation: included the notes about an ipython-based system
3822 * Documentation: included the notes about an ipython-based system
3817 shell (the hypothetical 'pysh') into the new_design.pdf document,
3823 shell (the hypothetical 'pysh') into the new_design.pdf document,
3818 so that these ideas get distributed to users along with the
3824 so that these ideas get distributed to users along with the
3819 official documentation.
3825 official documentation.
3820
3826
3821 2004-05-10 Fernando Perez <fperez@colorado.edu>
3827 2004-05-10 Fernando Perez <fperez@colorado.edu>
3822
3828
3823 * IPython/Logger.py (Logger.create_log): fix recently introduced
3829 * IPython/Logger.py (Logger.create_log): fix recently introduced
3824 bug (misindented line) where logstart would fail when not given an
3830 bug (misindented line) where logstart would fail when not given an
3825 explicit filename.
3831 explicit filename.
3826
3832
3827 2004-05-09 Fernando Perez <fperez@colorado.edu>
3833 2004-05-09 Fernando Perez <fperez@colorado.edu>
3828
3834
3829 * IPython/Magic.py (Magic.parse_options): skip system call when
3835 * IPython/Magic.py (Magic.parse_options): skip system call when
3830 there are no options to look for. Faster, cleaner for the common
3836 there are no options to look for. Faster, cleaner for the common
3831 case.
3837 case.
3832
3838
3833 * Documentation: many updates to the manual: describing Windows
3839 * Documentation: many updates to the manual: describing Windows
3834 support better, Gnuplot updates, credits, misc small stuff. Also
3840 support better, Gnuplot updates, credits, misc small stuff. Also
3835 updated the new_design doc a bit.
3841 updated the new_design doc a bit.
3836
3842
3837 2004-05-06 *** Released version 0.6.0.rc1
3843 2004-05-06 *** Released version 0.6.0.rc1
3838
3844
3839 2004-05-06 Fernando Perez <fperez@colorado.edu>
3845 2004-05-06 Fernando Perez <fperez@colorado.edu>
3840
3846
3841 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3847 * IPython/ultraTB.py (ListTB.text): modified a ton of string +=
3842 operations to use the vastly more efficient list/''.join() method.
3848 operations to use the vastly more efficient list/''.join() method.
3843 (FormattedTB.text): Fix
3849 (FormattedTB.text): Fix
3844 http://www.scipy.net/roundup/ipython/issue12 - exception source
3850 http://www.scipy.net/roundup/ipython/issue12 - exception source
3845 extract not updated after reload. Thanks to Mike Salib
3851 extract not updated after reload. Thanks to Mike Salib
3846 <msalib-AT-mit.edu> for pinning the source of the problem.
3852 <msalib-AT-mit.edu> for pinning the source of the problem.
3847 Fortunately, the solution works inside ipython and doesn't require
3853 Fortunately, the solution works inside ipython and doesn't require
3848 any changes to python proper.
3854 any changes to python proper.
3849
3855
3850 * IPython/Magic.py (Magic.parse_options): Improved to process the
3856 * IPython/Magic.py (Magic.parse_options): Improved to process the
3851 argument list as a true shell would (by actually using the
3857 argument list as a true shell would (by actually using the
3852 underlying system shell). This way, all @magics automatically get
3858 underlying system shell). This way, all @magics automatically get
3853 shell expansion for variables. Thanks to a comment by Alex
3859 shell expansion for variables. Thanks to a comment by Alex
3854 Schmolck.
3860 Schmolck.
3855
3861
3856 2004-04-04 Fernando Perez <fperez@colorado.edu>
3862 2004-04-04 Fernando Perez <fperez@colorado.edu>
3857
3863
3858 * IPython/iplib.py (InteractiveShell.interact): Added a special
3864 * IPython/iplib.py (InteractiveShell.interact): Added a special
3859 trap for a debugger quit exception, which is basically impossible
3865 trap for a debugger quit exception, which is basically impossible
3860 to handle by normal mechanisms, given what pdb does to the stack.
3866 to handle by normal mechanisms, given what pdb does to the stack.
3861 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3867 This fixes a crash reported by <fgibbons-AT-llama.med.harvard.edu>.
3862
3868
3863 2004-04-03 Fernando Perez <fperez@colorado.edu>
3869 2004-04-03 Fernando Perez <fperez@colorado.edu>
3864
3870
3865 * IPython/genutils.py (Term): Standardized the names of the Term
3871 * IPython/genutils.py (Term): Standardized the names of the Term
3866 class streams to cin/cout/cerr, following C++ naming conventions
3872 class streams to cin/cout/cerr, following C++ naming conventions
3867 (I can't use in/out/err because 'in' is not a valid attribute
3873 (I can't use in/out/err because 'in' is not a valid attribute
3868 name).
3874 name).
3869
3875
3870 * IPython/iplib.py (InteractiveShell.interact): don't increment
3876 * IPython/iplib.py (InteractiveShell.interact): don't increment
3871 the prompt if there's no user input. By Daniel 'Dang' Griffith
3877 the prompt if there's no user input. By Daniel 'Dang' Griffith
3872 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3878 <pythondev-dang-AT-lazytwinacres.net>, after a suggestion from
3873 Francois Pinard.
3879 Francois Pinard.
3874
3880
3875 2004-04-02 Fernando Perez <fperez@colorado.edu>
3881 2004-04-02 Fernando Perez <fperez@colorado.edu>
3876
3882
3877 * IPython/genutils.py (Stream.__init__): Modified to survive at
3883 * IPython/genutils.py (Stream.__init__): Modified to survive at
3878 least importing in contexts where stdin/out/err aren't true file
3884 least importing in contexts where stdin/out/err aren't true file
3879 objects, such as PyCrust (they lack fileno() and mode). However,
3885 objects, such as PyCrust (they lack fileno() and mode). However,
3880 the recovery facilities which rely on these things existing will
3886 the recovery facilities which rely on these things existing will
3881 not work.
3887 not work.
3882
3888
3883 2004-04-01 Fernando Perez <fperez@colorado.edu>
3889 2004-04-01 Fernando Perez <fperez@colorado.edu>
3884
3890
3885 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3891 * IPython/Magic.py (Magic.magic_sx): modified (as well as @sc) to
3886 use the new getoutputerror() function, so it properly
3892 use the new getoutputerror() function, so it properly
3887 distinguishes stdout/err.
3893 distinguishes stdout/err.
3888
3894
3889 * IPython/genutils.py (getoutputerror): added a function to
3895 * IPython/genutils.py (getoutputerror): added a function to
3890 capture separately the standard output and error of a command.
3896 capture separately the standard output and error of a command.
3891 After a comment from dang on the mailing lists. This code is
3897 After a comment from dang on the mailing lists. This code is
3892 basically a modified version of commands.getstatusoutput(), from
3898 basically a modified version of commands.getstatusoutput(), from
3893 the standard library.
3899 the standard library.
3894
3900
3895 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3901 * IPython/iplib.py (InteractiveShell.handle_shell_escape): added
3896 '!!' as a special syntax (shorthand) to access @sx.
3902 '!!' as a special syntax (shorthand) to access @sx.
3897
3903
3898 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3904 * IPython/Magic.py (Magic.magic_sx): new magic, to execute a shell
3899 command and return its output as a list split on '\n'.
3905 command and return its output as a list split on '\n'.
3900
3906
3901 2004-03-31 Fernando Perez <fperez@colorado.edu>
3907 2004-03-31 Fernando Perez <fperez@colorado.edu>
3902
3908
3903 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3909 * IPython/FakeModule.py (FakeModule.__init__): added __nonzero__
3904 method to dictionaries used as FakeModule instances if they lack
3910 method to dictionaries used as FakeModule instances if they lack
3905 it. At least pydoc in python2.3 breaks for runtime-defined
3911 it. At least pydoc in python2.3 breaks for runtime-defined
3906 functions without this hack. At some point I need to _really_
3912 functions without this hack. At some point I need to _really_
3907 understand what FakeModule is doing, because it's a gross hack.
3913 understand what FakeModule is doing, because it's a gross hack.
3908 But it solves Arnd's problem for now...
3914 But it solves Arnd's problem for now...
3909
3915
3910 2004-02-27 Fernando Perez <fperez@colorado.edu>
3916 2004-02-27 Fernando Perez <fperez@colorado.edu>
3911
3917
3912 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3918 * IPython/Logger.py (Logger.create_log): Fix bug where 'rotate'
3913 mode would behave erratically. Also increased the number of
3919 mode would behave erratically. Also increased the number of
3914 possible logs in rotate mod to 999. Thanks to Rod Holland
3920 possible logs in rotate mod to 999. Thanks to Rod Holland
3915 <rhh@StructureLABS.com> for the report and fixes.
3921 <rhh@StructureLABS.com> for the report and fixes.
3916
3922
3917 2004-02-26 Fernando Perez <fperez@colorado.edu>
3923 2004-02-26 Fernando Perez <fperez@colorado.edu>
3918
3924
3919 * IPython/genutils.py (page): Check that the curses module really
3925 * IPython/genutils.py (page): Check that the curses module really
3920 has the initscr attribute before trying to use it. For some
3926 has the initscr attribute before trying to use it. For some
3921 reason, the Solaris curses module is missing this. I think this
3927 reason, the Solaris curses module is missing this. I think this
3922 should be considered a Solaris python bug, but I'm not sure.
3928 should be considered a Solaris python bug, but I'm not sure.
3923
3929
3924 2004-01-17 Fernando Perez <fperez@colorado.edu>
3930 2004-01-17 Fernando Perez <fperez@colorado.edu>
3925
3931
3926 * IPython/genutils.py (Stream.__init__): Changes to try to make
3932 * IPython/genutils.py (Stream.__init__): Changes to try to make
3927 ipython robust against stdin/out/err being closed by the user.
3933 ipython robust against stdin/out/err being closed by the user.
3928 This is 'user error' (and blocks a normal python session, at least
3934 This is 'user error' (and blocks a normal python session, at least
3929 the stdout case). However, Ipython should be able to survive such
3935 the stdout case). However, Ipython should be able to survive such
3930 instances of abuse as gracefully as possible. To simplify the
3936 instances of abuse as gracefully as possible. To simplify the
3931 coding and maintain compatibility with Gary Bishop's Term
3937 coding and maintain compatibility with Gary Bishop's Term
3932 contributions, I've made use of classmethods for this. I think
3938 contributions, I've made use of classmethods for this. I think
3933 this introduces a dependency on python 2.2.
3939 this introduces a dependency on python 2.2.
3934
3940
3935 2004-01-13 Fernando Perez <fperez@colorado.edu>
3941 2004-01-13 Fernando Perez <fperez@colorado.edu>
3936
3942
3937 * IPython/numutils.py (exp_safe): simplified the code a bit and
3943 * IPython/numutils.py (exp_safe): simplified the code a bit and
3938 removed the need for importing the kinds module altogether.
3944 removed the need for importing the kinds module altogether.
3939
3945
3940 2004-01-06 Fernando Perez <fperez@colorado.edu>
3946 2004-01-06 Fernando Perez <fperez@colorado.edu>
3941
3947
3942 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3948 * IPython/Magic.py (Magic.magic_sc): Made the shell capture system
3943 a magic function instead, after some community feedback. No
3949 a magic function instead, after some community feedback. No
3944 special syntax will exist for it, but its name is deliberately
3950 special syntax will exist for it, but its name is deliberately
3945 very short.
3951 very short.
3946
3952
3947 2003-12-20 Fernando Perez <fperez@colorado.edu>
3953 2003-12-20 Fernando Perez <fperez@colorado.edu>
3948
3954
3949 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3955 * IPython/iplib.py (InteractiveShell.handle_shell_assign): Added
3950 new functionality, to automagically assign the result of a shell
3956 new functionality, to automagically assign the result of a shell
3951 command to a variable. I'll solicit some community feedback on
3957 command to a variable. I'll solicit some community feedback on
3952 this before making it permanent.
3958 this before making it permanent.
3953
3959
3954 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3960 * IPython/OInspect.py (Inspector.pinfo): Fix crash when info was
3955 requested about callables for which inspect couldn't obtain a
3961 requested about callables for which inspect couldn't obtain a
3956 proper argspec. Thanks to a crash report sent by Etienne
3962 proper argspec. Thanks to a crash report sent by Etienne
3957 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3963 Posthumus <etienne-AT-apple01.cs.vu.nl>.
3958
3964
3959 2003-12-09 Fernando Perez <fperez@colorado.edu>
3965 2003-12-09 Fernando Perez <fperez@colorado.edu>
3960
3966
3961 * IPython/genutils.py (page): patch for the pager to work across
3967 * IPython/genutils.py (page): patch for the pager to work across
3962 various versions of Windows. By Gary Bishop.
3968 various versions of Windows. By Gary Bishop.
3963
3969
3964 2003-12-04 Fernando Perez <fperez@colorado.edu>
3970 2003-12-04 Fernando Perez <fperez@colorado.edu>
3965
3971
3966 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3972 * IPython/Gnuplot2.py (PlotItems): Fixes for working with
3967 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3973 Gnuplot.py version 1.7, whose internal names changed quite a bit.
3968 While I tested this and it looks ok, there may still be corner
3974 While I tested this and it looks ok, there may still be corner
3969 cases I've missed.
3975 cases I've missed.
3970
3976
3971 2003-12-01 Fernando Perez <fperez@colorado.edu>
3977 2003-12-01 Fernando Perez <fperez@colorado.edu>
3972
3978
3973 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3979 * IPython/iplib.py (InteractiveShell._prefilter): Fixed a bug
3974 where a line like 'p,q=1,2' would fail because the automagic
3980 where a line like 'p,q=1,2' would fail because the automagic
3975 system would be triggered for @p.
3981 system would be triggered for @p.
3976
3982
3977 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3983 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): Tab-related
3978 cleanups, code unmodified.
3984 cleanups, code unmodified.
3979
3985
3980 * IPython/genutils.py (Term): added a class for IPython to handle
3986 * IPython/genutils.py (Term): added a class for IPython to handle
3981 output. In most cases it will just be a proxy for stdout/err, but
3987 output. In most cases it will just be a proxy for stdout/err, but
3982 having this allows modifications to be made for some platforms,
3988 having this allows modifications to be made for some platforms,
3983 such as handling color escapes under Windows. All of this code
3989 such as handling color escapes under Windows. All of this code
3984 was contributed by Gary Bishop, with minor modifications by me.
3990 was contributed by Gary Bishop, with minor modifications by me.
3985 The actual changes affect many files.
3991 The actual changes affect many files.
3986
3992
3987 2003-11-30 Fernando Perez <fperez@colorado.edu>
3993 2003-11-30 Fernando Perez <fperez@colorado.edu>
3988
3994
3989 * IPython/iplib.py (file_matches): new completion code, courtesy
3995 * IPython/iplib.py (file_matches): new completion code, courtesy
3990 of Jeff Collins. This enables filename completion again under
3996 of Jeff Collins. This enables filename completion again under
3991 python 2.3, which disabled it at the C level.
3997 python 2.3, which disabled it at the C level.
3992
3998
3993 2003-11-11 Fernando Perez <fperez@colorado.edu>
3999 2003-11-11 Fernando Perez <fperez@colorado.edu>
3994
4000
3995 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
4001 * IPython/numutils.py (amap): Added amap() fn. Simple shorthand
3996 for Numeric.array(map(...)), but often convenient.
4002 for Numeric.array(map(...)), but often convenient.
3997
4003
3998 2003-11-05 Fernando Perez <fperez@colorado.edu>
4004 2003-11-05 Fernando Perez <fperez@colorado.edu>
3999
4005
4000 * IPython/numutils.py (frange): Changed a call from int() to
4006 * IPython/numutils.py (frange): Changed a call from int() to
4001 int(round()) to prevent a problem reported with arange() in the
4007 int(round()) to prevent a problem reported with arange() in the
4002 numpy list.
4008 numpy list.
4003
4009
4004 2003-10-06 Fernando Perez <fperez@colorado.edu>
4010 2003-10-06 Fernando Perez <fperez@colorado.edu>
4005
4011
4006 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4012 * IPython/DPyGetOpt.py (DPyGetOpt.processArguments): changed to
4007 prevent crashes if sys lacks an argv attribute (it happens with
4013 prevent crashes if sys lacks an argv attribute (it happens with
4008 embedded interpreters which build a bare-bones sys module).
4014 embedded interpreters which build a bare-bones sys module).
4009 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4015 Thanks to a report/bugfix by Adam Hupp <hupp-AT-cs.wisc.edu>.
4010
4016
4011 2003-09-24 Fernando Perez <fperez@colorado.edu>
4017 2003-09-24 Fernando Perez <fperez@colorado.edu>
4012
4018
4013 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4019 * IPython/Magic.py (Magic._ofind): blanket except around getattr()
4014 to protect against poorly written user objects where __getattr__
4020 to protect against poorly written user objects where __getattr__
4015 raises exceptions other than AttributeError. Thanks to a bug
4021 raises exceptions other than AttributeError. Thanks to a bug
4016 report by Oliver Sander <osander-AT-gmx.de>.
4022 report by Oliver Sander <osander-AT-gmx.de>.
4017
4023
4018 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4024 * IPython/FakeModule.py (FakeModule.__repr__): this method was
4019 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4025 missing. Thanks to bug report by Ralf Schmitt <ralf-AT-brainbot.com>.
4020
4026
4021 2003-09-09 Fernando Perez <fperez@colorado.edu>
4027 2003-09-09 Fernando Perez <fperez@colorado.edu>
4022
4028
4023 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4029 * IPython/iplib.py (InteractiveShell._prefilter): fix bug where
4024 unpacking a list whith a callable as first element would
4030 unpacking a list whith a callable as first element would
4025 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4031 mistakenly trigger autocalling. Thanks to a bug report by Jeffery
4026 Collins.
4032 Collins.
4027
4033
4028 2003-08-25 *** Released version 0.5.0
4034 2003-08-25 *** Released version 0.5.0
4029
4035
4030 2003-08-22 Fernando Perez <fperez@colorado.edu>
4036 2003-08-22 Fernando Perez <fperez@colorado.edu>
4031
4037
4032 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4038 * IPython/ultraTB.py (VerboseTB.linereader): Improved handling of
4033 improperly defined user exceptions. Thanks to feedback from Mark
4039 improperly defined user exceptions. Thanks to feedback from Mark
4034 Russell <mrussell-AT-verio.net>.
4040 Russell <mrussell-AT-verio.net>.
4035
4041
4036 2003-08-20 Fernando Perez <fperez@colorado.edu>
4042 2003-08-20 Fernando Perez <fperez@colorado.edu>
4037
4043
4038 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4044 * IPython/OInspect.py (Inspector.pinfo): changed String Form
4039 printing so that it would print multi-line string forms starting
4045 printing so that it would print multi-line string forms starting
4040 with a new line. This way the formatting is better respected for
4046 with a new line. This way the formatting is better respected for
4041 objects which work hard to make nice string forms.
4047 objects which work hard to make nice string forms.
4042
4048
4043 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4049 * IPython/iplib.py (InteractiveShell.handle_auto): Fix bug where
4044 autocall would overtake data access for objects with both
4050 autocall would overtake data access for objects with both
4045 __getitem__ and __call__.
4051 __getitem__ and __call__.
4046
4052
4047 2003-08-19 *** Released version 0.5.0-rc1
4053 2003-08-19 *** Released version 0.5.0-rc1
4048
4054
4049 2003-08-19 Fernando Perez <fperez@colorado.edu>
4055 2003-08-19 Fernando Perez <fperez@colorado.edu>
4050
4056
4051 * IPython/deep_reload.py (load_tail): single tiny change here
4057 * IPython/deep_reload.py (load_tail): single tiny change here
4052 seems to fix the long-standing bug of dreload() failing to work
4058 seems to fix the long-standing bug of dreload() failing to work
4053 for dotted names. But this module is pretty tricky, so I may have
4059 for dotted names. But this module is pretty tricky, so I may have
4054 missed some subtlety. Needs more testing!.
4060 missed some subtlety. Needs more testing!.
4055
4061
4056 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4062 * IPython/ultraTB.py (VerboseTB.linereader): harden against user
4057 exceptions which have badly implemented __str__ methods.
4063 exceptions which have badly implemented __str__ methods.
4058 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4064 (VerboseTB.text): harden against inspect.getinnerframes crashing,
4059 which I've been getting reports about from Python 2.3 users. I
4065 which I've been getting reports about from Python 2.3 users. I
4060 wish I had a simple test case to reproduce the problem, so I could
4066 wish I had a simple test case to reproduce the problem, so I could
4061 either write a cleaner workaround or file a bug report if
4067 either write a cleaner workaround or file a bug report if
4062 necessary.
4068 necessary.
4063
4069
4064 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4070 * IPython/Magic.py (Magic.magic_edit): fixed bug where after
4065 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4071 making a class 'foo', file 'foo.py' couldn't be edited. Thanks to
4066 a bug report by Tjabo Kloppenburg.
4072 a bug report by Tjabo Kloppenburg.
4067
4073
4068 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4074 * IPython/ultraTB.py (VerboseTB.debugger): hardened against pdb
4069 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4075 crashes. Wrapped the pdb call in a blanket try/except, since pdb
4070 seems rather unstable. Thanks to a bug report by Tjabo
4076 seems rather unstable. Thanks to a bug report by Tjabo
4071 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4077 Kloppenburg <tjabo.kloppenburg-AT-unix-ag.uni-siegen.de>.
4072
4078
4073 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4079 * IPython/Release.py (version): release 0.5.0-rc1. I want to put
4074 this out soon because of the critical fixes in the inner loop for
4080 this out soon because of the critical fixes in the inner loop for
4075 generators.
4081 generators.
4076
4082
4077 * IPython/Magic.py (Magic.getargspec): removed. This (and
4083 * IPython/Magic.py (Magic.getargspec): removed. This (and
4078 _get_def) have been obsoleted by OInspect for a long time, I
4084 _get_def) have been obsoleted by OInspect for a long time, I
4079 hadn't noticed that they were dead code.
4085 hadn't noticed that they were dead code.
4080 (Magic._ofind): restored _ofind functionality for a few literals
4086 (Magic._ofind): restored _ofind functionality for a few literals
4081 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4087 (those in ["''",'""','[]','{}','()']). But it won't work anymore
4082 for things like "hello".capitalize?, since that would require a
4088 for things like "hello".capitalize?, since that would require a
4083 potentially dangerous eval() again.
4089 potentially dangerous eval() again.
4084
4090
4085 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4091 * IPython/iplib.py (InteractiveShell._prefilter): reorganized the
4086 logic a bit more to clean up the escapes handling and minimize the
4092 logic a bit more to clean up the escapes handling and minimize the
4087 use of _ofind to only necessary cases. The interactive 'feel' of
4093 use of _ofind to only necessary cases. The interactive 'feel' of
4088 IPython should have improved quite a bit with the changes in
4094 IPython should have improved quite a bit with the changes in
4089 _prefilter and _ofind (besides being far safer than before).
4095 _prefilter and _ofind (besides being far safer than before).
4090
4096
4091 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4097 * IPython/Magic.py (Magic.magic_edit): Fixed old bug (but rather
4092 obscure, never reported). Edit would fail to find the object to
4098 obscure, never reported). Edit would fail to find the object to
4093 edit under some circumstances.
4099 edit under some circumstances.
4094 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4100 (Magic._ofind): CRITICAL FIX. Finally removed the eval() calls
4095 which were causing double-calling of generators. Those eval calls
4101 which were causing double-calling of generators. Those eval calls
4096 were _very_ dangerous, since code with side effects could be
4102 were _very_ dangerous, since code with side effects could be
4097 triggered. As they say, 'eval is evil'... These were the
4103 triggered. As they say, 'eval is evil'... These were the
4098 nastiest evals in IPython. Besides, _ofind is now far simpler,
4104 nastiest evals in IPython. Besides, _ofind is now far simpler,
4099 and it should also be quite a bit faster. Its use of inspect is
4105 and it should also be quite a bit faster. Its use of inspect is
4100 also safer, so perhaps some of the inspect-related crashes I've
4106 also safer, so perhaps some of the inspect-related crashes I've
4101 seen lately with Python 2.3 might be taken care of. That will
4107 seen lately with Python 2.3 might be taken care of. That will
4102 need more testing.
4108 need more testing.
4103
4109
4104 2003-08-17 Fernando Perez <fperez@colorado.edu>
4110 2003-08-17 Fernando Perez <fperez@colorado.edu>
4105
4111
4106 * IPython/iplib.py (InteractiveShell._prefilter): significant
4112 * IPython/iplib.py (InteractiveShell._prefilter): significant
4107 simplifications to the logic for handling user escapes. Faster
4113 simplifications to the logic for handling user escapes. Faster
4108 and simpler code.
4114 and simpler code.
4109
4115
4110 2003-08-14 Fernando Perez <fperez@colorado.edu>
4116 2003-08-14 Fernando Perez <fperez@colorado.edu>
4111
4117
4112 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4118 * IPython/numutils.py (sum_flat): rewrote to be non-recursive.
4113 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4119 Now it requires O(N) storage (N=size(a)) for non-contiguous input,
4114 but it should be quite a bit faster. And the recursive version
4120 but it should be quite a bit faster. And the recursive version
4115 generated O(log N) intermediate storage for all rank>1 arrays,
4121 generated O(log N) intermediate storage for all rank>1 arrays,
4116 even if they were contiguous.
4122 even if they were contiguous.
4117 (l1norm): Added this function.
4123 (l1norm): Added this function.
4118 (norm): Added this function for arbitrary norms (including
4124 (norm): Added this function for arbitrary norms (including
4119 l-infinity). l1 and l2 are still special cases for convenience
4125 l-infinity). l1 and l2 are still special cases for convenience
4120 and speed.
4126 and speed.
4121
4127
4122 2003-08-03 Fernando Perez <fperez@colorado.edu>
4128 2003-08-03 Fernando Perez <fperez@colorado.edu>
4123
4129
4124 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4130 * IPython/Magic.py (Magic.magic_edit): Removed all remaining string
4125 exceptions, which now raise PendingDeprecationWarnings in Python
4131 exceptions, which now raise PendingDeprecationWarnings in Python
4126 2.3. There were some in Magic and some in Gnuplot2.
4132 2.3. There were some in Magic and some in Gnuplot2.
4127
4133
4128 2003-06-30 Fernando Perez <fperez@colorado.edu>
4134 2003-06-30 Fernando Perez <fperez@colorado.edu>
4129
4135
4130 * IPython/genutils.py (page): modified to call curses only for
4136 * IPython/genutils.py (page): modified to call curses only for
4131 terminals where TERM=='xterm'. After problems under many other
4137 terminals where TERM=='xterm'. After problems under many other
4132 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4138 terminals were reported by Keith Beattie <KSBeattie-AT-lbl.gov>.
4133
4139
4134 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4140 * IPython/iplib.py (complete): removed spurious 'print "IE"' which
4135 would be triggered when readline was absent. This was just an old
4141 would be triggered when readline was absent. This was just an old
4136 debugging statement I'd forgotten to take out.
4142 debugging statement I'd forgotten to take out.
4137
4143
4138 2003-06-20 Fernando Perez <fperez@colorado.edu>
4144 2003-06-20 Fernando Perez <fperez@colorado.edu>
4139
4145
4140 * IPython/genutils.py (clock): modified to return only user time
4146 * IPython/genutils.py (clock): modified to return only user time
4141 (not counting system time), after a discussion on scipy. While
4147 (not counting system time), after a discussion on scipy. While
4142 system time may be a useful quantity occasionally, it may much
4148 system time may be a useful quantity occasionally, it may much
4143 more easily be skewed by occasional swapping or other similar
4149 more easily be skewed by occasional swapping or other similar
4144 activity.
4150 activity.
4145
4151
4146 2003-06-05 Fernando Perez <fperez@colorado.edu>
4152 2003-06-05 Fernando Perez <fperez@colorado.edu>
4147
4153
4148 * IPython/numutils.py (identity): new function, for building
4154 * IPython/numutils.py (identity): new function, for building
4149 arbitrary rank Kronecker deltas (mostly backwards compatible with
4155 arbitrary rank Kronecker deltas (mostly backwards compatible with
4150 Numeric.identity)
4156 Numeric.identity)
4151
4157
4152 2003-06-03 Fernando Perez <fperez@colorado.edu>
4158 2003-06-03 Fernando Perez <fperez@colorado.edu>
4153
4159
4154 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4160 * IPython/iplib.py (InteractiveShell.handle_magic): protect
4155 arguments passed to magics with spaces, to allow trailing '\' to
4161 arguments passed to magics with spaces, to allow trailing '\' to
4156 work normally (mainly for Windows users).
4162 work normally (mainly for Windows users).
4157
4163
4158 2003-05-29 Fernando Perez <fperez@colorado.edu>
4164 2003-05-29 Fernando Perez <fperez@colorado.edu>
4159
4165
4160 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4166 * IPython/ipmaker.py (make_IPython): Load site._Helper() as help
4161 instead of pydoc.help. This fixes a bizarre behavior where
4167 instead of pydoc.help. This fixes a bizarre behavior where
4162 printing '%s' % locals() would trigger the help system. Now
4168 printing '%s' % locals() would trigger the help system. Now
4163 ipython behaves like normal python does.
4169 ipython behaves like normal python does.
4164
4170
4165 Note that if one does 'from pydoc import help', the bizarre
4171 Note that if one does 'from pydoc import help', the bizarre
4166 behavior returns, but this will also happen in normal python, so
4172 behavior returns, but this will also happen in normal python, so
4167 it's not an ipython bug anymore (it has to do with how pydoc.help
4173 it's not an ipython bug anymore (it has to do with how pydoc.help
4168 is implemented).
4174 is implemented).
4169
4175
4170 2003-05-22 Fernando Perez <fperez@colorado.edu>
4176 2003-05-22 Fernando Perez <fperez@colorado.edu>
4171
4177
4172 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4178 * IPython/FlexCompleter.py (Completer.attr_matches): fixed to
4173 return [] instead of None when nothing matches, also match to end
4179 return [] instead of None when nothing matches, also match to end
4174 of line. Patch by Gary Bishop.
4180 of line. Patch by Gary Bishop.
4175
4181
4176 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4182 * IPython/ipmaker.py (make_IPython): Added same sys.excepthook
4177 protection as before, for files passed on the command line. This
4183 protection as before, for files passed on the command line. This
4178 prevents the CrashHandler from kicking in if user files call into
4184 prevents the CrashHandler from kicking in if user files call into
4179 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4185 sys.excepthook (such as PyQt and WxWindows have a nasty habit of
4180 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4186 doing). After a report by Kasper Souren <Kasper.Souren-AT-ircam.fr>
4181
4187
4182 2003-05-20 *** Released version 0.4.0
4188 2003-05-20 *** Released version 0.4.0
4183
4189
4184 2003-05-20 Fernando Perez <fperez@colorado.edu>
4190 2003-05-20 Fernando Perez <fperez@colorado.edu>
4185
4191
4186 * setup.py: added support for manpages. It's a bit hackish b/c of
4192 * setup.py: added support for manpages. It's a bit hackish b/c of
4187 a bug in the way the bdist_rpm distutils target handles gzipped
4193 a bug in the way the bdist_rpm distutils target handles gzipped
4188 manpages, but it works. After a patch by Jack.
4194 manpages, but it works. After a patch by Jack.
4189
4195
4190 2003-05-19 Fernando Perez <fperez@colorado.edu>
4196 2003-05-19 Fernando Perez <fperez@colorado.edu>
4191
4197
4192 * IPython/numutils.py: added a mockup of the kinds module, since
4198 * IPython/numutils.py: added a mockup of the kinds module, since
4193 it was recently removed from Numeric. This way, numutils will
4199 it was recently removed from Numeric. This way, numutils will
4194 work for all users even if they are missing kinds.
4200 work for all users even if they are missing kinds.
4195
4201
4196 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4202 * IPython/Magic.py (Magic._ofind): Harden against an inspect
4197 failure, which can occur with SWIG-wrapped extensions. After a
4203 failure, which can occur with SWIG-wrapped extensions. After a
4198 crash report from Prabhu.
4204 crash report from Prabhu.
4199
4205
4200 2003-05-16 Fernando Perez <fperez@colorado.edu>
4206 2003-05-16 Fernando Perez <fperez@colorado.edu>
4201
4207
4202 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4208 * IPython/iplib.py (InteractiveShell.excepthook): New method to
4203 protect ipython from user code which may call directly
4209 protect ipython from user code which may call directly
4204 sys.excepthook (this looks like an ipython crash to the user, even
4210 sys.excepthook (this looks like an ipython crash to the user, even
4205 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4211 when it isn't). After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4206 This is especially important to help users of WxWindows, but may
4212 This is especially important to help users of WxWindows, but may
4207 also be useful in other cases.
4213 also be useful in other cases.
4208
4214
4209 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4215 * IPython/ultraTB.py (AutoFormattedTB.__call__): Changed to allow
4210 an optional tb_offset to be specified, and to preserve exception
4216 an optional tb_offset to be specified, and to preserve exception
4211 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4217 info if given. After a patch by Gary Bishop <gb-AT-cs.unc.edu>.
4212
4218
4213 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4219 * ipython.1 (Default): Thanks to Jack's work, we now have manpages!
4214
4220
4215 2003-05-15 Fernando Perez <fperez@colorado.edu>
4221 2003-05-15 Fernando Perez <fperez@colorado.edu>
4216
4222
4217 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4223 * IPython/iplib.py (InteractiveShell.user_setup): Fix crash when
4218 installing for a new user under Windows.
4224 installing for a new user under Windows.
4219
4225
4220 2003-05-12 Fernando Perez <fperez@colorado.edu>
4226 2003-05-12 Fernando Perez <fperez@colorado.edu>
4221
4227
4222 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4228 * IPython/iplib.py (InteractiveShell.handle_emacs): New line
4223 handler for Emacs comint-based lines. Currently it doesn't do
4229 handler for Emacs comint-based lines. Currently it doesn't do
4224 much (but importantly, it doesn't update the history cache). In
4230 much (but importantly, it doesn't update the history cache). In
4225 the future it may be expanded if Alex needs more functionality
4231 the future it may be expanded if Alex needs more functionality
4226 there.
4232 there.
4227
4233
4228 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4234 * IPython/CrashHandler.py (CrashHandler.__call__): Added platform
4229 info to crash reports.
4235 info to crash reports.
4230
4236
4231 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4237 * IPython/iplib.py (InteractiveShell.mainloop): Added -c option,
4232 just like Python's -c. Also fixed crash with invalid -color
4238 just like Python's -c. Also fixed crash with invalid -color
4233 option value at startup. Thanks to Will French
4239 option value at startup. Thanks to Will French
4234 <wfrench-AT-bestweb.net> for the bug report.
4240 <wfrench-AT-bestweb.net> for the bug report.
4235
4241
4236 2003-05-09 Fernando Perez <fperez@colorado.edu>
4242 2003-05-09 Fernando Perez <fperez@colorado.edu>
4237
4243
4238 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4244 * IPython/genutils.py (EvalDict.__getitem__): Renamed EvalString
4239 to EvalDict (it's a mapping, after all) and simplified its code
4245 to EvalDict (it's a mapping, after all) and simplified its code
4240 quite a bit, after a nice discussion on c.l.py where Gustavo
4246 quite a bit, after a nice discussion on c.l.py where Gustavo
4241 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4247 CΓ³rdova <gcordova-AT-sismex.com> suggested the new version.
4242
4248
4243 2003-04-30 Fernando Perez <fperez@colorado.edu>
4249 2003-04-30 Fernando Perez <fperez@colorado.edu>
4244
4250
4245 * IPython/genutils.py (timings_out): modified it to reduce its
4251 * IPython/genutils.py (timings_out): modified it to reduce its
4246 overhead in the common reps==1 case.
4252 overhead in the common reps==1 case.
4247
4253
4248 2003-04-29 Fernando Perez <fperez@colorado.edu>
4254 2003-04-29 Fernando Perez <fperez@colorado.edu>
4249
4255
4250 * IPython/genutils.py (timings_out): Modified to use the resource
4256 * IPython/genutils.py (timings_out): Modified to use the resource
4251 module, which avoids the wraparound problems of time.clock().
4257 module, which avoids the wraparound problems of time.clock().
4252
4258
4253 2003-04-17 *** Released version 0.2.15pre4
4259 2003-04-17 *** Released version 0.2.15pre4
4254
4260
4255 2003-04-17 Fernando Perez <fperez@colorado.edu>
4261 2003-04-17 Fernando Perez <fperez@colorado.edu>
4256
4262
4257 * setup.py (scriptfiles): Split windows-specific stuff over to a
4263 * setup.py (scriptfiles): Split windows-specific stuff over to a
4258 separate file, in an attempt to have a Windows GUI installer.
4264 separate file, in an attempt to have a Windows GUI installer.
4259 That didn't work, but part of the groundwork is done.
4265 That didn't work, but part of the groundwork is done.
4260
4266
4261 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4267 * IPython/UserConfig/ipythonrc: Added M-i, M-o and M-I for
4262 indent/unindent with 4 spaces. Particularly useful in combination
4268 indent/unindent with 4 spaces. Particularly useful in combination
4263 with the new auto-indent option.
4269 with the new auto-indent option.
4264
4270
4265 2003-04-16 Fernando Perez <fperez@colorado.edu>
4271 2003-04-16 Fernando Perez <fperez@colorado.edu>
4266
4272
4267 * IPython/Magic.py: various replacements of self.rc for
4273 * IPython/Magic.py: various replacements of self.rc for
4268 self.shell.rc. A lot more remains to be done to fully disentangle
4274 self.shell.rc. A lot more remains to be done to fully disentangle
4269 this class from the main Shell class.
4275 this class from the main Shell class.
4270
4276
4271 * IPython/GnuplotRuntime.py: added checks for mouse support so
4277 * IPython/GnuplotRuntime.py: added checks for mouse support so
4272 that we don't try to enable it if the current gnuplot doesn't
4278 that we don't try to enable it if the current gnuplot doesn't
4273 really support it. Also added checks so that we don't try to
4279 really support it. Also added checks so that we don't try to
4274 enable persist under Windows (where Gnuplot doesn't recognize the
4280 enable persist under Windows (where Gnuplot doesn't recognize the
4275 option).
4281 option).
4276
4282
4277 * IPython/iplib.py (InteractiveShell.interact): Added optional
4283 * IPython/iplib.py (InteractiveShell.interact): Added optional
4278 auto-indenting code, after a patch by King C. Shu
4284 auto-indenting code, after a patch by King C. Shu
4279 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4285 <kingshu-AT-myrealbox.com>. It's off by default because it doesn't
4280 get along well with pasting indented code. If I ever figure out
4286 get along well with pasting indented code. If I ever figure out
4281 how to make that part go well, it will become on by default.
4287 how to make that part go well, it will become on by default.
4282
4288
4283 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4289 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixed bug which would
4284 crash ipython if there was an unmatched '%' in the user's prompt
4290 crash ipython if there was an unmatched '%' in the user's prompt
4285 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4291 string. Reported by Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4286
4292
4287 * IPython/iplib.py (InteractiveShell.interact): removed the
4293 * IPython/iplib.py (InteractiveShell.interact): removed the
4288 ability to ask the user whether he wants to crash or not at the
4294 ability to ask the user whether he wants to crash or not at the
4289 'last line' exception handler. Calling functions at that point
4295 'last line' exception handler. Calling functions at that point
4290 changes the stack, and the error reports would have incorrect
4296 changes the stack, and the error reports would have incorrect
4291 tracebacks.
4297 tracebacks.
4292
4298
4293 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4299 * IPython/Magic.py (Magic.magic_page): Added new @page magic, to
4294 pass through a peger a pretty-printed form of any object. After a
4300 pass through a peger a pretty-printed form of any object. After a
4295 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4301 contribution by Olivier Aubert <oaubert-AT-bat710.univ-lyon1.fr>
4296
4302
4297 2003-04-14 Fernando Perez <fperez@colorado.edu>
4303 2003-04-14 Fernando Perez <fperez@colorado.edu>
4298
4304
4299 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4305 * IPython/iplib.py (InteractiveShell.user_setup): Fixed bug where
4300 all files in ~ would be modified at first install (instead of
4306 all files in ~ would be modified at first install (instead of
4301 ~/.ipython). This could be potentially disastrous, as the
4307 ~/.ipython). This could be potentially disastrous, as the
4302 modification (make line-endings native) could damage binary files.
4308 modification (make line-endings native) could damage binary files.
4303
4309
4304 2003-04-10 Fernando Perez <fperez@colorado.edu>
4310 2003-04-10 Fernando Perez <fperez@colorado.edu>
4305
4311
4306 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4312 * IPython/iplib.py (InteractiveShell.handle_help): Modified to
4307 handle only lines which are invalid python. This now means that
4313 handle only lines which are invalid python. This now means that
4308 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4314 lines like 'x=1 #?' execute properly. Thanks to Jeffery Collins
4309 for the bug report.
4315 for the bug report.
4310
4316
4311 2003-04-01 Fernando Perez <fperez@colorado.edu>
4317 2003-04-01 Fernando Perez <fperez@colorado.edu>
4312
4318
4313 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4319 * IPython/iplib.py (InteractiveShell.showtraceback): Fixed bug
4314 where failing to set sys.last_traceback would crash pdb.pm().
4320 where failing to set sys.last_traceback would crash pdb.pm().
4315 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4321 Thanks to Jeffery D. Collins <Jeff.Collins-AT-vexcel.com> for the bug
4316 report.
4322 report.
4317
4323
4318 2003-03-25 Fernando Perez <fperez@colorado.edu>
4324 2003-03-25 Fernando Perez <fperez@colorado.edu>
4319
4325
4320 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4326 * IPython/Magic.py (Magic.magic_prun): rstrip() output of profiler
4321 before printing it (it had a lot of spurious blank lines at the
4327 before printing it (it had a lot of spurious blank lines at the
4322 end).
4328 end).
4323
4329
4324 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4330 * IPython/Gnuplot2.py (Gnuplot.hardcopy): fixed bug where lpr
4325 output would be sent 21 times! Obviously people don't use this
4331 output would be sent 21 times! Obviously people don't use this
4326 too often, or I would have heard about it.
4332 too often, or I would have heard about it.
4327
4333
4328 2003-03-24 Fernando Perez <fperez@colorado.edu>
4334 2003-03-24 Fernando Perez <fperez@colorado.edu>
4329
4335
4330 * setup.py (scriptfiles): renamed the data_files parameter from
4336 * setup.py (scriptfiles): renamed the data_files parameter from
4331 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4337 'base' to 'data' to fix rpm build issues. Thanks to Ralf Ahlbrink
4332 for the patch.
4338 for the patch.
4333
4339
4334 2003-03-20 Fernando Perez <fperez@colorado.edu>
4340 2003-03-20 Fernando Perez <fperez@colorado.edu>
4335
4341
4336 * IPython/genutils.py (error): added error() and fatal()
4342 * IPython/genutils.py (error): added error() and fatal()
4337 functions.
4343 functions.
4338
4344
4339 2003-03-18 *** Released version 0.2.15pre3
4345 2003-03-18 *** Released version 0.2.15pre3
4340
4346
4341 2003-03-18 Fernando Perez <fperez@colorado.edu>
4347 2003-03-18 Fernando Perez <fperez@colorado.edu>
4342
4348
4343 * setupext/install_data_ext.py
4349 * setupext/install_data_ext.py
4344 (install_data_ext.initialize_options): Class contributed by Jack
4350 (install_data_ext.initialize_options): Class contributed by Jack
4345 Moffit for fixing the old distutils hack. He is sending this to
4351 Moffit for fixing the old distutils hack. He is sending this to
4346 the distutils folks so in the future we may not need it as a
4352 the distutils folks so in the future we may not need it as a
4347 private fix.
4353 private fix.
4348
4354
4349 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4355 * MANIFEST.in: Extensive reorganization, based on Jack Moffit's
4350 changes for Debian packaging. See his patch for full details.
4356 changes for Debian packaging. See his patch for full details.
4351 The old distutils hack of making the ipythonrc* files carry a
4357 The old distutils hack of making the ipythonrc* files carry a
4352 bogus .py extension is gone, at last. Examples were moved to a
4358 bogus .py extension is gone, at last. Examples were moved to a
4353 separate subdir under doc/, and the separate executable scripts
4359 separate subdir under doc/, and the separate executable scripts
4354 now live in their own directory. Overall a great cleanup. The
4360 now live in their own directory. Overall a great cleanup. The
4355 manual was updated to use the new files, and setup.py has been
4361 manual was updated to use the new files, and setup.py has been
4356 fixed for this setup.
4362 fixed for this setup.
4357
4363
4358 * IPython/PyColorize.py (Parser.usage): made non-executable and
4364 * IPython/PyColorize.py (Parser.usage): made non-executable and
4359 created a pycolor wrapper around it to be included as a script.
4365 created a pycolor wrapper around it to be included as a script.
4360
4366
4361 2003-03-12 *** Released version 0.2.15pre2
4367 2003-03-12 *** Released version 0.2.15pre2
4362
4368
4363 2003-03-12 Fernando Perez <fperez@colorado.edu>
4369 2003-03-12 Fernando Perez <fperez@colorado.edu>
4364
4370
4365 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4371 * IPython/ColorANSI.py (make_color_table): Finally fixed the
4366 long-standing problem with garbage characters in some terminals.
4372 long-standing problem with garbage characters in some terminals.
4367 The issue was really that the \001 and \002 escapes must _only_ be
4373 The issue was really that the \001 and \002 escapes must _only_ be
4368 passed to input prompts (which call readline), but _never_ to
4374 passed to input prompts (which call readline), but _never_ to
4369 normal text to be printed on screen. I changed ColorANSI to have
4375 normal text to be printed on screen. I changed ColorANSI to have
4370 two classes: TermColors and InputTermColors, each with the
4376 two classes: TermColors and InputTermColors, each with the
4371 appropriate escapes for input prompts or normal text. The code in
4377 appropriate escapes for input prompts or normal text. The code in
4372 Prompts.py got slightly more complicated, but this very old and
4378 Prompts.py got slightly more complicated, but this very old and
4373 annoying bug is finally fixed.
4379 annoying bug is finally fixed.
4374
4380
4375 All the credit for nailing down the real origin of this problem
4381 All the credit for nailing down the real origin of this problem
4376 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4382 and the correct solution goes to Jack Moffit <jack-AT-xiph.org>.
4377 *Many* thanks to him for spending quite a bit of effort on this.
4383 *Many* thanks to him for spending quite a bit of effort on this.
4378
4384
4379 2003-03-05 *** Released version 0.2.15pre1
4385 2003-03-05 *** Released version 0.2.15pre1
4380
4386
4381 2003-03-03 Fernando Perez <fperez@colorado.edu>
4387 2003-03-03 Fernando Perez <fperez@colorado.edu>
4382
4388
4383 * IPython/FakeModule.py: Moved the former _FakeModule to a
4389 * IPython/FakeModule.py: Moved the former _FakeModule to a
4384 separate file, because it's also needed by Magic (to fix a similar
4390 separate file, because it's also needed by Magic (to fix a similar
4385 pickle-related issue in @run).
4391 pickle-related issue in @run).
4386
4392
4387 2003-03-02 Fernando Perez <fperez@colorado.edu>
4393 2003-03-02 Fernando Perez <fperez@colorado.edu>
4388
4394
4389 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4395 * IPython/Magic.py (Magic.magic_autocall): new magic to control
4390 the autocall option at runtime.
4396 the autocall option at runtime.
4391 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4397 (Magic.magic_dhist): changed self.user_ns to self.shell.user_ns
4392 across Magic.py to start separating Magic from InteractiveShell.
4398 across Magic.py to start separating Magic from InteractiveShell.
4393 (Magic._ofind): Fixed to return proper namespace for dotted
4399 (Magic._ofind): Fixed to return proper namespace for dotted
4394 names. Before, a dotted name would always return 'not currently
4400 names. Before, a dotted name would always return 'not currently
4395 defined', because it would find the 'parent'. s.x would be found,
4401 defined', because it would find the 'parent'. s.x would be found,
4396 but since 'x' isn't defined by itself, it would get confused.
4402 but since 'x' isn't defined by itself, it would get confused.
4397 (Magic.magic_run): Fixed pickling problems reported by Ralf
4403 (Magic.magic_run): Fixed pickling problems reported by Ralf
4398 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4404 Ahlbrink <RAhlbrink-AT-RosenInspection.net>. The fix was similar to
4399 that I'd used when Mike Heeter reported similar issues at the
4405 that I'd used when Mike Heeter reported similar issues at the
4400 top-level, but now for @run. It boils down to injecting the
4406 top-level, but now for @run. It boils down to injecting the
4401 namespace where code is being executed with something that looks
4407 namespace where code is being executed with something that looks
4402 enough like a module to fool pickle.dump(). Since a pickle stores
4408 enough like a module to fool pickle.dump(). Since a pickle stores
4403 a named reference to the importing module, we need this for
4409 a named reference to the importing module, we need this for
4404 pickles to save something sensible.
4410 pickles to save something sensible.
4405
4411
4406 * IPython/ipmaker.py (make_IPython): added an autocall option.
4412 * IPython/ipmaker.py (make_IPython): added an autocall option.
4407
4413
4408 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4414 * IPython/iplib.py (InteractiveShell._prefilter): reordered all of
4409 the auto-eval code. Now autocalling is an option, and the code is
4415 the auto-eval code. Now autocalling is an option, and the code is
4410 also vastly safer. There is no more eval() involved at all.
4416 also vastly safer. There is no more eval() involved at all.
4411
4417
4412 2003-03-01 Fernando Perez <fperez@colorado.edu>
4418 2003-03-01 Fernando Perez <fperez@colorado.edu>
4413
4419
4414 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4420 * IPython/Magic.py (Magic._ofind): Changed interface to return a
4415 dict with named keys instead of a tuple.
4421 dict with named keys instead of a tuple.
4416
4422
4417 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4423 * IPython: Started using CVS for IPython as of 0.2.15pre1.
4418
4424
4419 * setup.py (make_shortcut): Fixed message about directories
4425 * setup.py (make_shortcut): Fixed message about directories
4420 created during Windows installation (the directories were ok, just
4426 created during Windows installation (the directories were ok, just
4421 the printed message was misleading). Thanks to Chris Liechti
4427 the printed message was misleading). Thanks to Chris Liechti
4422 <cliechti-AT-gmx.net> for the heads up.
4428 <cliechti-AT-gmx.net> for the heads up.
4423
4429
4424 2003-02-21 Fernando Perez <fperez@colorado.edu>
4430 2003-02-21 Fernando Perez <fperez@colorado.edu>
4425
4431
4426 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4432 * IPython/iplib.py (InteractiveShell._prefilter): Fixed catching
4427 of ValueError exception when checking for auto-execution. This
4433 of ValueError exception when checking for auto-execution. This
4428 one is raised by things like Numeric arrays arr.flat when the
4434 one is raised by things like Numeric arrays arr.flat when the
4429 array is non-contiguous.
4435 array is non-contiguous.
4430
4436
4431 2003-01-31 Fernando Perez <fperez@colorado.edu>
4437 2003-01-31 Fernando Perez <fperez@colorado.edu>
4432
4438
4433 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4439 * IPython/genutils.py (SystemExec.bq): Fixed bug where bq would
4434 not return any value at all (even though the command would get
4440 not return any value at all (even though the command would get
4435 executed).
4441 executed).
4436 (xsys): Flush stdout right after printing the command to ensure
4442 (xsys): Flush stdout right after printing the command to ensure
4437 proper ordering of commands and command output in the total
4443 proper ordering of commands and command output in the total
4438 output.
4444 output.
4439 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4445 (SystemExec/xsys/bq): Switched the names of xsys/bq and
4440 system/getoutput as defaults. The old ones are kept for
4446 system/getoutput as defaults. The old ones are kept for
4441 compatibility reasons, so no code which uses this library needs
4447 compatibility reasons, so no code which uses this library needs
4442 changing.
4448 changing.
4443
4449
4444 2003-01-27 *** Released version 0.2.14
4450 2003-01-27 *** Released version 0.2.14
4445
4451
4446 2003-01-25 Fernando Perez <fperez@colorado.edu>
4452 2003-01-25 Fernando Perez <fperez@colorado.edu>
4447
4453
4448 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4454 * IPython/Magic.py (Magic.magic_edit): Fixed problem where
4449 functions defined in previous edit sessions could not be re-edited
4455 functions defined in previous edit sessions could not be re-edited
4450 (because the temp files were immediately removed). Now temp files
4456 (because the temp files were immediately removed). Now temp files
4451 are removed only at IPython's exit.
4457 are removed only at IPython's exit.
4452 (Magic.magic_run): Improved @run to perform shell-like expansions
4458 (Magic.magic_run): Improved @run to perform shell-like expansions
4453 on its arguments (~users and $VARS). With this, @run becomes more
4459 on its arguments (~users and $VARS). With this, @run becomes more
4454 like a normal command-line.
4460 like a normal command-line.
4455
4461
4456 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4462 * IPython/Shell.py (IPShellEmbed.__call__): Fixed a bunch of small
4457 bugs related to embedding and cleaned up that code. A fairly
4463 bugs related to embedding and cleaned up that code. A fairly
4458 important one was the impossibility to access the global namespace
4464 important one was the impossibility to access the global namespace
4459 through the embedded IPython (only local variables were visible).
4465 through the embedded IPython (only local variables were visible).
4460
4466
4461 2003-01-14 Fernando Perez <fperez@colorado.edu>
4467 2003-01-14 Fernando Perez <fperez@colorado.edu>
4462
4468
4463 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4469 * IPython/iplib.py (InteractiveShell._prefilter): Fixed
4464 auto-calling to be a bit more conservative. Now it doesn't get
4470 auto-calling to be a bit more conservative. Now it doesn't get
4465 triggered if any of '!=()<>' are in the rest of the input line, to
4471 triggered if any of '!=()<>' are in the rest of the input line, to
4466 allow comparing callables. Thanks to Alex for the heads up.
4472 allow comparing callables. Thanks to Alex for the heads up.
4467
4473
4468 2003-01-07 Fernando Perez <fperez@colorado.edu>
4474 2003-01-07 Fernando Perez <fperez@colorado.edu>
4469
4475
4470 * IPython/genutils.py (page): fixed estimation of the number of
4476 * IPython/genutils.py (page): fixed estimation of the number of
4471 lines in a string to be paged to simply count newlines. This
4477 lines in a string to be paged to simply count newlines. This
4472 prevents over-guessing due to embedded escape sequences. A better
4478 prevents over-guessing due to embedded escape sequences. A better
4473 long-term solution would involve stripping out the control chars
4479 long-term solution would involve stripping out the control chars
4474 for the count, but it's potentially so expensive I just don't
4480 for the count, but it's potentially so expensive I just don't
4475 think it's worth doing.
4481 think it's worth doing.
4476
4482
4477 2002-12-19 *** Released version 0.2.14pre50
4483 2002-12-19 *** Released version 0.2.14pre50
4478
4484
4479 2002-12-19 Fernando Perez <fperez@colorado.edu>
4485 2002-12-19 Fernando Perez <fperez@colorado.edu>
4480
4486
4481 * tools/release (version): Changed release scripts to inform
4487 * tools/release (version): Changed release scripts to inform
4482 Andrea and build a NEWS file with a list of recent changes.
4488 Andrea and build a NEWS file with a list of recent changes.
4483
4489
4484 * IPython/ColorANSI.py (__all__): changed terminal detection
4490 * IPython/ColorANSI.py (__all__): changed terminal detection
4485 code. Seems to work better for xterms without breaking
4491 code. Seems to work better for xterms without breaking
4486 konsole. Will need more testing to determine if WinXP and Mac OSX
4492 konsole. Will need more testing to determine if WinXP and Mac OSX
4487 also work ok.
4493 also work ok.
4488
4494
4489 2002-12-18 *** Released version 0.2.14pre49
4495 2002-12-18 *** Released version 0.2.14pre49
4490
4496
4491 2002-12-18 Fernando Perez <fperez@colorado.edu>
4497 2002-12-18 Fernando Perez <fperez@colorado.edu>
4492
4498
4493 * Docs: added new info about Mac OSX, from Andrea.
4499 * Docs: added new info about Mac OSX, from Andrea.
4494
4500
4495 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4501 * IPython/Gnuplot2.py (String): Added a String PlotItem class to
4496 allow direct plotting of python strings whose format is the same
4502 allow direct plotting of python strings whose format is the same
4497 of gnuplot data files.
4503 of gnuplot data files.
4498
4504
4499 2002-12-16 Fernando Perez <fperez@colorado.edu>
4505 2002-12-16 Fernando Perez <fperez@colorado.edu>
4500
4506
4501 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4507 * IPython/iplib.py (InteractiveShell.interact): fixed default (y)
4502 value of exit question to be acknowledged.
4508 value of exit question to be acknowledged.
4503
4509
4504 2002-12-03 Fernando Perez <fperez@colorado.edu>
4510 2002-12-03 Fernando Perez <fperez@colorado.edu>
4505
4511
4506 * IPython/ipmaker.py: removed generators, which had been added
4512 * IPython/ipmaker.py: removed generators, which had been added
4507 by mistake in an earlier debugging run. This was causing trouble
4513 by mistake in an earlier debugging run. This was causing trouble
4508 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4514 to users of python 2.1.x. Thanks to Abel Daniel <abli-AT-freemail.hu>
4509 for pointing this out.
4515 for pointing this out.
4510
4516
4511 2002-11-17 Fernando Perez <fperez@colorado.edu>
4517 2002-11-17 Fernando Perez <fperez@colorado.edu>
4512
4518
4513 * Manual: updated the Gnuplot section.
4519 * Manual: updated the Gnuplot section.
4514
4520
4515 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4521 * IPython/GnuplotRuntime.py: refactored a lot all this code, with
4516 a much better split of what goes in Runtime and what goes in
4522 a much better split of what goes in Runtime and what goes in
4517 Interactive.
4523 Interactive.
4518
4524
4519 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4525 * IPython/ipmaker.py: fixed bug where import_fail_info wasn't
4520 being imported from iplib.
4526 being imported from iplib.
4521
4527
4522 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4528 * IPython/GnuplotInteractive.py (magic_gpc): renamed @gp to @gpc
4523 for command-passing. Now the global Gnuplot instance is called
4529 for command-passing. Now the global Gnuplot instance is called
4524 'gp' instead of 'g', which was really a far too fragile and
4530 'gp' instead of 'g', which was really a far too fragile and
4525 common name.
4531 common name.
4526
4532
4527 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4533 * IPython/Gnuplot2.py (eps_fix_bbox): added this to fix broken
4528 bounding boxes generated by Gnuplot for square plots.
4534 bounding boxes generated by Gnuplot for square plots.
4529
4535
4530 * IPython/genutils.py (popkey): new function added. I should
4536 * IPython/genutils.py (popkey): new function added. I should
4531 suggest this on c.l.py as a dict method, it seems useful.
4537 suggest this on c.l.py as a dict method, it seems useful.
4532
4538
4533 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4539 * IPython/Gnuplot2.py (Gnuplot.plot): Overhauled plot and replot
4534 to transparently handle PostScript generation. MUCH better than
4540 to transparently handle PostScript generation. MUCH better than
4535 the previous plot_eps/replot_eps (which I removed now). The code
4541 the previous plot_eps/replot_eps (which I removed now). The code
4536 is also fairly clean and well documented now (including
4542 is also fairly clean and well documented now (including
4537 docstrings).
4543 docstrings).
4538
4544
4539 2002-11-13 Fernando Perez <fperez@colorado.edu>
4545 2002-11-13 Fernando Perez <fperez@colorado.edu>
4540
4546
4541 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4547 * IPython/Magic.py (Magic.magic_edit): fixed docstring
4542 (inconsistent with options).
4548 (inconsistent with options).
4543
4549
4544 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4550 * IPython/Gnuplot2.py (Gnuplot.hardcopy): hardcopy had been
4545 manually disabled, I don't know why. Fixed it.
4551 manually disabled, I don't know why. Fixed it.
4546 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4552 (Gnuplot._plot_eps): added new plot_eps/replot_eps to get directly
4547 eps output.
4553 eps output.
4548
4554
4549 2002-11-12 Fernando Perez <fperez@colorado.edu>
4555 2002-11-12 Fernando Perez <fperez@colorado.edu>
4550
4556
4551 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4557 * IPython/genutils.py (ask_yes_no): trap EOF and ^C so that they
4552 don't propagate up to caller. Fixes crash reported by François
4558 don't propagate up to caller. Fixes crash reported by François
4553 Pinard.
4559 Pinard.
4554
4560
4555 2002-11-09 Fernando Perez <fperez@colorado.edu>
4561 2002-11-09 Fernando Perez <fperez@colorado.edu>
4556
4562
4557 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4563 * IPython/ipmaker.py (make_IPython): fixed problem with writing
4558 history file for new users.
4564 history file for new users.
4559 (make_IPython): fixed bug where initial install would leave the
4565 (make_IPython): fixed bug where initial install would leave the
4560 user running in the .ipython dir.
4566 user running in the .ipython dir.
4561 (make_IPython): fixed bug where config dir .ipython would be
4567 (make_IPython): fixed bug where config dir .ipython would be
4562 created regardless of the given -ipythondir option. Thanks to Cory
4568 created regardless of the given -ipythondir option. Thanks to Cory
4563 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4569 Dodt <cdodt-AT-fcoe.k12.ca.us> for the bug report.
4564
4570
4565 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4571 * IPython/genutils.py (ask_yes_no): new function for asking yes/no
4566 type confirmations. Will need to use it in all of IPython's code
4572 type confirmations. Will need to use it in all of IPython's code
4567 consistently.
4573 consistently.
4568
4574
4569 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4575 * IPython/CrashHandler.py (CrashHandler.__call__): changed the
4570 context to print 31 lines instead of the default 5. This will make
4576 context to print 31 lines instead of the default 5. This will make
4571 the crash reports extremely detailed in case the problem is in
4577 the crash reports extremely detailed in case the problem is in
4572 libraries I don't have access to.
4578 libraries I don't have access to.
4573
4579
4574 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4580 * IPython/iplib.py (InteractiveShell.interact): changed the 'last
4575 line of defense' code to still crash, but giving users fair
4581 line of defense' code to still crash, but giving users fair
4576 warning. I don't want internal errors to go unreported: if there's
4582 warning. I don't want internal errors to go unreported: if there's
4577 an internal problem, IPython should crash and generate a full
4583 an internal problem, IPython should crash and generate a full
4578 report.
4584 report.
4579
4585
4580 2002-11-08 Fernando Perez <fperez@colorado.edu>
4586 2002-11-08 Fernando Perez <fperez@colorado.edu>
4581
4587
4582 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4588 * IPython/iplib.py (InteractiveShell.interact): added code to trap
4583 otherwise uncaught exceptions which can appear if people set
4589 otherwise uncaught exceptions which can appear if people set
4584 sys.stdout to something badly broken. Thanks to a crash report
4590 sys.stdout to something badly broken. Thanks to a crash report
4585 from henni-AT-mail.brainbot.com.
4591 from henni-AT-mail.brainbot.com.
4586
4592
4587 2002-11-04 Fernando Perez <fperez@colorado.edu>
4593 2002-11-04 Fernando Perez <fperez@colorado.edu>
4588
4594
4589 * IPython/iplib.py (InteractiveShell.interact): added
4595 * IPython/iplib.py (InteractiveShell.interact): added
4590 __IPYTHON__active to the builtins. It's a flag which goes on when
4596 __IPYTHON__active to the builtins. It's a flag which goes on when
4591 the interaction starts and goes off again when it stops. This
4597 the interaction starts and goes off again when it stops. This
4592 allows embedding code to detect being inside IPython. Before this
4598 allows embedding code to detect being inside IPython. Before this
4593 was done via __IPYTHON__, but that only shows that an IPython
4599 was done via __IPYTHON__, but that only shows that an IPython
4594 instance has been created.
4600 instance has been created.
4595
4601
4596 * IPython/Magic.py (Magic.magic_env): I realized that in a
4602 * IPython/Magic.py (Magic.magic_env): I realized that in a
4597 UserDict, instance.data holds the data as a normal dict. So I
4603 UserDict, instance.data holds the data as a normal dict. So I
4598 modified @env to return os.environ.data instead of rebuilding a
4604 modified @env to return os.environ.data instead of rebuilding a
4599 dict by hand.
4605 dict by hand.
4600
4606
4601 2002-11-02 Fernando Perez <fperez@colorado.edu>
4607 2002-11-02 Fernando Perez <fperez@colorado.edu>
4602
4608
4603 * IPython/genutils.py (warn): changed so that level 1 prints no
4609 * IPython/genutils.py (warn): changed so that level 1 prints no
4604 header. Level 2 is now the default (with 'WARNING' header, as
4610 header. Level 2 is now the default (with 'WARNING' header, as
4605 before). I think I tracked all places where changes were needed in
4611 before). I think I tracked all places where changes were needed in
4606 IPython, but outside code using the old level numbering may have
4612 IPython, but outside code using the old level numbering may have
4607 broken.
4613 broken.
4608
4614
4609 * IPython/iplib.py (InteractiveShell.runcode): added this to
4615 * IPython/iplib.py (InteractiveShell.runcode): added this to
4610 handle the tracebacks in SystemExit traps correctly. The previous
4616 handle the tracebacks in SystemExit traps correctly. The previous
4611 code (through interact) was printing more of the stack than
4617 code (through interact) was printing more of the stack than
4612 necessary, showing IPython internal code to the user.
4618 necessary, showing IPython internal code to the user.
4613
4619
4614 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4620 * IPython/UserConfig/ipythonrc.py: Made confirm_exit 1 by
4615 default. Now that the default at the confirmation prompt is yes,
4621 default. Now that the default at the confirmation prompt is yes,
4616 it's not so intrusive. François' argument that ipython sessions
4622 it's not so intrusive. François' argument that ipython sessions
4617 tend to be complex enough not to lose them from an accidental C-d,
4623 tend to be complex enough not to lose them from an accidental C-d,
4618 is a valid one.
4624 is a valid one.
4619
4625
4620 * IPython/iplib.py (InteractiveShell.interact): added a
4626 * IPython/iplib.py (InteractiveShell.interact): added a
4621 showtraceback() call to the SystemExit trap, and modified the exit
4627 showtraceback() call to the SystemExit trap, and modified the exit
4622 confirmation to have yes as the default.
4628 confirmation to have yes as the default.
4623
4629
4624 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4630 * IPython/UserConfig/ipythonrc.py: removed 'session' option from
4625 this file. It's been gone from the code for a long time, this was
4631 this file. It's been gone from the code for a long time, this was
4626 simply leftover junk.
4632 simply leftover junk.
4627
4633
4628 2002-11-01 Fernando Perez <fperez@colorado.edu>
4634 2002-11-01 Fernando Perez <fperez@colorado.edu>
4629
4635
4630 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4636 * IPython/UserConfig/ipythonrc.py: new confirm_exit option
4631 added. If set, IPython now traps EOF and asks for
4637 added. If set, IPython now traps EOF and asks for
4632 confirmation. After a request by François Pinard.
4638 confirmation. After a request by François Pinard.
4633
4639
4634 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4640 * IPython/Magic.py (Magic.magic_Exit): New @Exit and @Quit instead
4635 of @abort, and with a new (better) mechanism for handling the
4641 of @abort, and with a new (better) mechanism for handling the
4636 exceptions.
4642 exceptions.
4637
4643
4638 2002-10-27 Fernando Perez <fperez@colorado.edu>
4644 2002-10-27 Fernando Perez <fperez@colorado.edu>
4639
4645
4640 * IPython/usage.py (__doc__): updated the --help information and
4646 * IPython/usage.py (__doc__): updated the --help information and
4641 the ipythonrc file to indicate that -log generates
4647 the ipythonrc file to indicate that -log generates
4642 ./ipython.log. Also fixed the corresponding info in @logstart.
4648 ./ipython.log. Also fixed the corresponding info in @logstart.
4643 This and several other fixes in the manuals thanks to reports by
4649 This and several other fixes in the manuals thanks to reports by
4644 François Pinard <pinard-AT-iro.umontreal.ca>.
4650 François Pinard <pinard-AT-iro.umontreal.ca>.
4645
4651
4646 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4652 * IPython/Logger.py (Logger.switch_log): Fixed error message to
4647 refer to @logstart (instead of @log, which doesn't exist).
4653 refer to @logstart (instead of @log, which doesn't exist).
4648
4654
4649 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4655 * IPython/iplib.py (InteractiveShell._prefilter): fixed
4650 AttributeError crash. Thanks to Christopher Armstrong
4656 AttributeError crash. Thanks to Christopher Armstrong
4651 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4657 <radix-AT-twistedmatrix.com> for the report/fix. This bug had been
4652 introduced recently (in 0.2.14pre37) with the fix to the eval
4658 introduced recently (in 0.2.14pre37) with the fix to the eval
4653 problem mentioned below.
4659 problem mentioned below.
4654
4660
4655 2002-10-17 Fernando Perez <fperez@colorado.edu>
4661 2002-10-17 Fernando Perez <fperez@colorado.edu>
4656
4662
4657 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4663 * IPython/ConfigLoader.py (ConfigLoader.load): Fixes for Windows
4658 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4664 installation. Thanks to Leonardo Santagada <retype-AT-terra.com.br>.
4659
4665
4660 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4666 * IPython/iplib.py (InteractiveShell._prefilter): Many changes to
4661 this function to fix a problem reported by Alex Schmolck. He saw
4667 this function to fix a problem reported by Alex Schmolck. He saw
4662 it with list comprehensions and generators, which were getting
4668 it with list comprehensions and generators, which were getting
4663 called twice. The real problem was an 'eval' call in testing for
4669 called twice. The real problem was an 'eval' call in testing for
4664 automagic which was evaluating the input line silently.
4670 automagic which was evaluating the input line silently.
4665
4671
4666 This is a potentially very nasty bug, if the input has side
4672 This is a potentially very nasty bug, if the input has side
4667 effects which must not be repeated. The code is much cleaner now,
4673 effects which must not be repeated. The code is much cleaner now,
4668 without any blanket 'except' left and with a regexp test for
4674 without any blanket 'except' left and with a regexp test for
4669 actual function names.
4675 actual function names.
4670
4676
4671 But an eval remains, which I'm not fully comfortable with. I just
4677 But an eval remains, which I'm not fully comfortable with. I just
4672 don't know how to find out if an expression could be a callable in
4678 don't know how to find out if an expression could be a callable in
4673 the user's namespace without doing an eval on the string. However
4679 the user's namespace without doing an eval on the string. However
4674 that string is now much more strictly checked so that no code
4680 that string is now much more strictly checked so that no code
4675 slips by, so the eval should only happen for things that can
4681 slips by, so the eval should only happen for things that can
4676 really be only function/method names.
4682 really be only function/method names.
4677
4683
4678 2002-10-15 Fernando Perez <fperez@colorado.edu>
4684 2002-10-15 Fernando Perez <fperez@colorado.edu>
4679
4685
4680 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4686 * Updated LyX to 1.2.1 so I can work on the docs again. Added Mac
4681 OSX information to main manual, removed README_Mac_OSX file from
4687 OSX information to main manual, removed README_Mac_OSX file from
4682 distribution. Also updated credits for recent additions.
4688 distribution. Also updated credits for recent additions.
4683
4689
4684 2002-10-10 Fernando Perez <fperez@colorado.edu>
4690 2002-10-10 Fernando Perez <fperez@colorado.edu>
4685
4691
4686 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4692 * README_Mac_OSX: Added a README for Mac OSX users for fixing
4687 terminal-related issues. Many thanks to Andrea Riciputi
4693 terminal-related issues. Many thanks to Andrea Riciputi
4688 <andrea.riciputi-AT-libero.it> for writing it.
4694 <andrea.riciputi-AT-libero.it> for writing it.
4689
4695
4690 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4696 * IPython/UserConfig/ipythonrc.py: Fixes to various small issues,
4691 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4697 thanks to Thorsten Kampe <thorsten-AT-thorstenkampe.de>.
4692
4698
4693 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4699 * setup.py (make_shortcut): Fixes for Windows installation. Thanks
4694 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4700 to Fredrik Kant <fredrik.kant-AT-front.com> and Syver Enstad
4695 <syver-en-AT-online.no> who both submitted patches for this problem.
4701 <syver-en-AT-online.no> who both submitted patches for this problem.
4696
4702
4697 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4703 * IPython/iplib.py (InteractiveShell.embed_mainloop): Patch for
4698 global embedding to make sure that things don't overwrite user
4704 global embedding to make sure that things don't overwrite user
4699 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4705 globals accidentally. Thanks to Richard <rxe-AT-renre-europe.com>
4700
4706
4701 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4707 * IPython/Gnuplot2.py (gp): Patch for Gnuplot.py 1.6
4702 compatibility. Thanks to Hayden Callow
4708 compatibility. Thanks to Hayden Callow
4703 <h.callow-AT-elec.canterbury.ac.nz>
4709 <h.callow-AT-elec.canterbury.ac.nz>
4704
4710
4705 2002-10-04 Fernando Perez <fperez@colorado.edu>
4711 2002-10-04 Fernando Perez <fperez@colorado.edu>
4706
4712
4707 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4713 * IPython/Gnuplot2.py (PlotItem): Added 'index' option for
4708 Gnuplot.File objects.
4714 Gnuplot.File objects.
4709
4715
4710 2002-07-23 Fernando Perez <fperez@colorado.edu>
4716 2002-07-23 Fernando Perez <fperez@colorado.edu>
4711
4717
4712 * IPython/genutils.py (timing): Added timings() and timing() for
4718 * IPython/genutils.py (timing): Added timings() and timing() for
4713 quick access to the most commonly needed data, the execution
4719 quick access to the most commonly needed data, the execution
4714 times. Old timing() renamed to timings_out().
4720 times. Old timing() renamed to timings_out().
4715
4721
4716 2002-07-18 Fernando Perez <fperez@colorado.edu>
4722 2002-07-18 Fernando Perez <fperez@colorado.edu>
4717
4723
4718 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4724 * IPython/Shell.py (IPShellEmbed.restore_system_completer): fixed
4719 bug with nested instances disrupting the parent's tab completion.
4725 bug with nested instances disrupting the parent's tab completion.
4720
4726
4721 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4727 * IPython/iplib.py (all_completions): Added Alex Schmolck's
4722 all_completions code to begin the emacs integration.
4728 all_completions code to begin the emacs integration.
4723
4729
4724 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4730 * IPython/Gnuplot2.py (zip_items): Added optional 'titles'
4725 argument to allow titling individual arrays when plotting.
4731 argument to allow titling individual arrays when plotting.
4726
4732
4727 2002-07-15 Fernando Perez <fperez@colorado.edu>
4733 2002-07-15 Fernando Perez <fperez@colorado.edu>
4728
4734
4729 * setup.py (make_shortcut): changed to retrieve the value of
4735 * setup.py (make_shortcut): changed to retrieve the value of
4730 'Program Files' directory from the registry (this value changes in
4736 'Program Files' directory from the registry (this value changes in
4731 non-english versions of Windows). Thanks to Thomas Fanslau
4737 non-english versions of Windows). Thanks to Thomas Fanslau
4732 <tfanslau-AT-gmx.de> for the report.
4738 <tfanslau-AT-gmx.de> for the report.
4733
4739
4734 2002-07-10 Fernando Perez <fperez@colorado.edu>
4740 2002-07-10 Fernando Perez <fperez@colorado.edu>
4735
4741
4736 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4742 * IPython/ultraTB.py (VerboseTB.debugger): enabled workaround for
4737 a bug in pdb, which crashes if a line with only whitespace is
4743 a bug in pdb, which crashes if a line with only whitespace is
4738 entered. Bug report submitted to sourceforge.
4744 entered. Bug report submitted to sourceforge.
4739
4745
4740 2002-07-09 Fernando Perez <fperez@colorado.edu>
4746 2002-07-09 Fernando Perez <fperez@colorado.edu>
4741
4747
4742 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4748 * IPython/ultraTB.py (VerboseTB.nullrepr): fixed rare crash when
4743 reporting exceptions (it's a bug in inspect.py, I just set a
4749 reporting exceptions (it's a bug in inspect.py, I just set a
4744 workaround).
4750 workaround).
4745
4751
4746 2002-07-08 Fernando Perez <fperez@colorado.edu>
4752 2002-07-08 Fernando Perez <fperez@colorado.edu>
4747
4753
4748 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4754 * IPython/iplib.py (InteractiveShell.__init__): fixed reference to
4749 __IPYTHON__ in __builtins__ to show up in user_ns.
4755 __IPYTHON__ in __builtins__ to show up in user_ns.
4750
4756
4751 2002-07-03 Fernando Perez <fperez@colorado.edu>
4757 2002-07-03 Fernando Perez <fperez@colorado.edu>
4752
4758
4753 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4759 * IPython/GnuplotInteractive.py (magic_gp_set_default): changed
4754 name from @gp_set_instance to @gp_set_default.
4760 name from @gp_set_instance to @gp_set_default.
4755
4761
4756 * IPython/ipmaker.py (make_IPython): default editor value set to
4762 * IPython/ipmaker.py (make_IPython): default editor value set to
4757 '0' (a string), to match the rc file. Otherwise will crash when
4763 '0' (a string), to match the rc file. Otherwise will crash when
4758 .strip() is called on it.
4764 .strip() is called on it.
4759
4765
4760
4766
4761 2002-06-28 Fernando Perez <fperez@colorado.edu>
4767 2002-06-28 Fernando Perez <fperez@colorado.edu>
4762
4768
4763 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4769 * IPython/iplib.py (InteractiveShell.safe_execfile): fix importing
4764 of files in current directory when a file is executed via
4770 of files in current directory when a file is executed via
4765 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4771 @run. Patch also by RA <ralf_ahlbrink-AT-web.de>.
4766
4772
4767 * setup.py (manfiles): fix for rpm builds, submitted by RA
4773 * setup.py (manfiles): fix for rpm builds, submitted by RA
4768 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4774 <ralf_ahlbrink-AT-web.de>. Now we have RPMs!
4769
4775
4770 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4776 * IPython/ipmaker.py (make_IPython): fixed lookup of default
4771 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4777 editor when set to '0'. Problem was, '0' evaluates to True (it's a
4772 string!). A. Schmolck caught this one.
4778 string!). A. Schmolck caught this one.
4773
4779
4774 2002-06-27 Fernando Perez <fperez@colorado.edu>
4780 2002-06-27 Fernando Perez <fperez@colorado.edu>
4775
4781
4776 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4782 * IPython/ipmaker.py (make_IPython): fixed bug when running user
4777 defined files at the cmd line. __name__ wasn't being set to
4783 defined files at the cmd line. __name__ wasn't being set to
4778 __main__.
4784 __main__.
4779
4785
4780 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4786 * IPython/Gnuplot2.py (zip_items): improved it so it can plot also
4781 regular lists and tuples besides Numeric arrays.
4787 regular lists and tuples besides Numeric arrays.
4782
4788
4783 * IPython/Prompts.py (CachedOutput.__call__): Added output
4789 * IPython/Prompts.py (CachedOutput.__call__): Added output
4784 supression for input ending with ';'. Similar to Mathematica and
4790 supression for input ending with ';'. Similar to Mathematica and
4785 Matlab. The _* vars and Out[] list are still updated, just like
4791 Matlab. The _* vars and Out[] list are still updated, just like
4786 Mathematica behaves.
4792 Mathematica behaves.
4787
4793
4788 2002-06-25 Fernando Perez <fperez@colorado.edu>
4794 2002-06-25 Fernando Perez <fperez@colorado.edu>
4789
4795
4790 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4796 * IPython/ConfigLoader.py (ConfigLoader.load): fixed checking of
4791 .ini extensions for profiels under Windows.
4797 .ini extensions for profiels under Windows.
4792
4798
4793 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4799 * IPython/OInspect.py (Inspector.pinfo): improved alignment of
4794 string form. Fix contributed by Alexander Schmolck
4800 string form. Fix contributed by Alexander Schmolck
4795 <a.schmolck-AT-gmx.net>
4801 <a.schmolck-AT-gmx.net>
4796
4802
4797 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4803 * IPython/GnuplotRuntime.py (gp_new): new function. Returns a
4798 pre-configured Gnuplot instance.
4804 pre-configured Gnuplot instance.
4799
4805
4800 2002-06-21 Fernando Perez <fperez@colorado.edu>
4806 2002-06-21 Fernando Perez <fperez@colorado.edu>
4801
4807
4802 * IPython/numutils.py (exp_safe): new function, works around the
4808 * IPython/numutils.py (exp_safe): new function, works around the
4803 underflow problems in Numeric.
4809 underflow problems in Numeric.
4804 (log2): New fn. Safe log in base 2: returns exact integer answer
4810 (log2): New fn. Safe log in base 2: returns exact integer answer
4805 for exact integer powers of 2.
4811 for exact integer powers of 2.
4806
4812
4807 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4813 * IPython/Magic.py (get_py_filename): fixed it not expanding '~'
4808 properly.
4814 properly.
4809
4815
4810 2002-06-20 Fernando Perez <fperez@colorado.edu>
4816 2002-06-20 Fernando Perez <fperez@colorado.edu>
4811
4817
4812 * IPython/genutils.py (timing): new function like
4818 * IPython/genutils.py (timing): new function like
4813 Mathematica's. Similar to time_test, but returns more info.
4819 Mathematica's. Similar to time_test, but returns more info.
4814
4820
4815 2002-06-18 Fernando Perez <fperez@colorado.edu>
4821 2002-06-18 Fernando Perez <fperez@colorado.edu>
4816
4822
4817 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4823 * IPython/Magic.py (Magic.magic_save): modified @save and @r
4818 according to Mike Heeter's suggestions.
4824 according to Mike Heeter's suggestions.
4819
4825
4820 2002-06-16 Fernando Perez <fperez@colorado.edu>
4826 2002-06-16 Fernando Perez <fperez@colorado.edu>
4821
4827
4822 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4828 * IPython/GnuplotRuntime.py: Massive overhaul to the Gnuplot
4823 system. GnuplotMagic is gone as a user-directory option. New files
4829 system. GnuplotMagic is gone as a user-directory option. New files
4824 make it easier to use all the gnuplot stuff both from external
4830 make it easier to use all the gnuplot stuff both from external
4825 programs as well as from IPython. Had to rewrite part of
4831 programs as well as from IPython. Had to rewrite part of
4826 hardcopy() b/c of a strange bug: often the ps files simply don't
4832 hardcopy() b/c of a strange bug: often the ps files simply don't
4827 get created, and require a repeat of the command (often several
4833 get created, and require a repeat of the command (often several
4828 times).
4834 times).
4829
4835
4830 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4836 * IPython/ultraTB.py (AutoFormattedTB.__call__): changed to
4831 resolve output channel at call time, so that if sys.stderr has
4837 resolve output channel at call time, so that if sys.stderr has
4832 been redirected by user this gets honored.
4838 been redirected by user this gets honored.
4833
4839
4834 2002-06-13 Fernando Perez <fperez@colorado.edu>
4840 2002-06-13 Fernando Perez <fperez@colorado.edu>
4835
4841
4836 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4842 * IPython/Shell.py (IPShell.__init__): Changed IPythonShell to
4837 IPShell. Kept a copy with the old names to avoid breaking people's
4843 IPShell. Kept a copy with the old names to avoid breaking people's
4838 embedded code.
4844 embedded code.
4839
4845
4840 * IPython/ipython: simplified it to the bare minimum after
4846 * IPython/ipython: simplified it to the bare minimum after
4841 Holger's suggestions. Added info about how to use it in
4847 Holger's suggestions. Added info about how to use it in
4842 PYTHONSTARTUP.
4848 PYTHONSTARTUP.
4843
4849
4844 * IPython/Shell.py (IPythonShell): changed the options passing
4850 * IPython/Shell.py (IPythonShell): changed the options passing
4845 from a string with funky %s replacements to a straight list. Maybe
4851 from a string with funky %s replacements to a straight list. Maybe
4846 a bit more typing, but it follows sys.argv conventions, so there's
4852 a bit more typing, but it follows sys.argv conventions, so there's
4847 less special-casing to remember.
4853 less special-casing to remember.
4848
4854
4849 2002-06-12 Fernando Perez <fperez@colorado.edu>
4855 2002-06-12 Fernando Perez <fperez@colorado.edu>
4850
4856
4851 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4857 * IPython/Magic.py (Magic.magic_r): new magic auto-repeat
4852 command. Thanks to a suggestion by Mike Heeter.
4858 command. Thanks to a suggestion by Mike Heeter.
4853 (Magic.magic_pfile): added behavior to look at filenames if given
4859 (Magic.magic_pfile): added behavior to look at filenames if given
4854 arg is not a defined object.
4860 arg is not a defined object.
4855 (Magic.magic_save): New @save function to save code snippets. Also
4861 (Magic.magic_save): New @save function to save code snippets. Also
4856 a Mike Heeter idea.
4862 a Mike Heeter idea.
4857
4863
4858 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4864 * IPython/UserConfig/GnuplotMagic.py (plot): Improvements to
4859 plot() and replot(). Much more convenient now, especially for
4865 plot() and replot(). Much more convenient now, especially for
4860 interactive use.
4866 interactive use.
4861
4867
4862 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4868 * IPython/Magic.py (Magic.magic_run): Added .py automatically to
4863 filenames.
4869 filenames.
4864
4870
4865 2002-06-02 Fernando Perez <fperez@colorado.edu>
4871 2002-06-02 Fernando Perez <fperez@colorado.edu>
4866
4872
4867 * IPython/Struct.py (Struct.__init__): modified to admit
4873 * IPython/Struct.py (Struct.__init__): modified to admit
4868 initialization via another struct.
4874 initialization via another struct.
4869
4875
4870 * IPython/genutils.py (SystemExec.__init__): New stateful
4876 * IPython/genutils.py (SystemExec.__init__): New stateful
4871 interface to xsys and bq. Useful for writing system scripts.
4877 interface to xsys and bq. Useful for writing system scripts.
4872
4878
4873 2002-05-30 Fernando Perez <fperez@colorado.edu>
4879 2002-05-30 Fernando Perez <fperez@colorado.edu>
4874
4880
4875 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4881 * MANIFEST.in: Changed docfile selection to exclude all the lyx
4876 documents. This will make the user download smaller (it's getting
4882 documents. This will make the user download smaller (it's getting
4877 too big).
4883 too big).
4878
4884
4879 2002-05-29 Fernando Perez <fperez@colorado.edu>
4885 2002-05-29 Fernando Perez <fperez@colorado.edu>
4880
4886
4881 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4887 * IPython/iplib.py (_FakeModule.__init__): New class introduced to
4882 fix problems with shelve and pickle. Seems to work, but I don't
4888 fix problems with shelve and pickle. Seems to work, but I don't
4883 know if corner cases break it. Thanks to Mike Heeter
4889 know if corner cases break it. Thanks to Mike Heeter
4884 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4890 <korora-AT-SDF.LONESTAR.ORG> for the bug reports and test cases.
4885
4891
4886 2002-05-24 Fernando Perez <fperez@colorado.edu>
4892 2002-05-24 Fernando Perez <fperez@colorado.edu>
4887
4893
4888 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4894 * IPython/Magic.py (Macro.__init__): fixed magics embedded in
4889 macros having broken.
4895 macros having broken.
4890
4896
4891 2002-05-21 Fernando Perez <fperez@colorado.edu>
4897 2002-05-21 Fernando Perez <fperez@colorado.edu>
4892
4898
4893 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4899 * IPython/Magic.py (Magic.magic_logstart): fixed recently
4894 introduced logging bug: all history before logging started was
4900 introduced logging bug: all history before logging started was
4895 being written one character per line! This came from the redesign
4901 being written one character per line! This came from the redesign
4896 of the input history as a special list which slices to strings,
4902 of the input history as a special list which slices to strings,
4897 not to lists.
4903 not to lists.
4898
4904
4899 2002-05-20 Fernando Perez <fperez@colorado.edu>
4905 2002-05-20 Fernando Perez <fperez@colorado.edu>
4900
4906
4901 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4907 * IPython/Prompts.py (CachedOutput.__init__): made the color table
4902 be an attribute of all classes in this module. The design of these
4908 be an attribute of all classes in this module. The design of these
4903 classes needs some serious overhauling.
4909 classes needs some serious overhauling.
4904
4910
4905 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4911 * IPython/DPyGetOpt.py (DPyGetOpt.setPosixCompliance): fixed bug
4906 which was ignoring '_' in option names.
4912 which was ignoring '_' in option names.
4907
4913
4908 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4914 * IPython/ultraTB.py (FormattedTB.__init__): Changed
4909 'Verbose_novars' to 'Context' and made it the new default. It's a
4915 'Verbose_novars' to 'Context' and made it the new default. It's a
4910 bit more readable and also safer than verbose.
4916 bit more readable and also safer than verbose.
4911
4917
4912 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4918 * IPython/PyColorize.py (Parser.__call__): Fixed coloring of
4913 triple-quoted strings.
4919 triple-quoted strings.
4914
4920
4915 * IPython/OInspect.py (__all__): new module exposing the object
4921 * IPython/OInspect.py (__all__): new module exposing the object
4916 introspection facilities. Now the corresponding magics are dummy
4922 introspection facilities. Now the corresponding magics are dummy
4917 wrappers around this. Having this module will make it much easier
4923 wrappers around this. Having this module will make it much easier
4918 to put these functions into our modified pdb.
4924 to put these functions into our modified pdb.
4919 This new object inspector system uses the new colorizing module,
4925 This new object inspector system uses the new colorizing module,
4920 so source code and other things are nicely syntax highlighted.
4926 so source code and other things are nicely syntax highlighted.
4921
4927
4922 2002-05-18 Fernando Perez <fperez@colorado.edu>
4928 2002-05-18 Fernando Perez <fperez@colorado.edu>
4923
4929
4924 * IPython/ColorANSI.py: Split the coloring tools into a separate
4930 * IPython/ColorANSI.py: Split the coloring tools into a separate
4925 module so I can use them in other code easier (they were part of
4931 module so I can use them in other code easier (they were part of
4926 ultraTB).
4932 ultraTB).
4927
4933
4928 2002-05-17 Fernando Perez <fperez@colorado.edu>
4934 2002-05-17 Fernando Perez <fperez@colorado.edu>
4929
4935
4930 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4936 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
4931 fixed it to set the global 'g' also to the called instance, as
4937 fixed it to set the global 'g' also to the called instance, as
4932 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4938 long as 'g' was still a gnuplot instance (so it doesn't overwrite
4933 user's 'g' variables).
4939 user's 'g' variables).
4934
4940
4935 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4941 * IPython/iplib.py (InteractiveShell.__init__): Added In/Out
4936 global variables (aliases to _ih,_oh) so that users which expect
4942 global variables (aliases to _ih,_oh) so that users which expect
4937 In[5] or Out[7] to work aren't unpleasantly surprised.
4943 In[5] or Out[7] to work aren't unpleasantly surprised.
4938 (InputList.__getslice__): new class to allow executing slices of
4944 (InputList.__getslice__): new class to allow executing slices of
4939 input history directly. Very simple class, complements the use of
4945 input history directly. Very simple class, complements the use of
4940 macros.
4946 macros.
4941
4947
4942 2002-05-16 Fernando Perez <fperez@colorado.edu>
4948 2002-05-16 Fernando Perez <fperez@colorado.edu>
4943
4949
4944 * setup.py (docdirbase): make doc directory be just doc/IPython
4950 * setup.py (docdirbase): make doc directory be just doc/IPython
4945 without version numbers, it will reduce clutter for users.
4951 without version numbers, it will reduce clutter for users.
4946
4952
4947 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4953 * IPython/Magic.py (Magic.magic_run): Add explicit local dict to
4948 execfile call to prevent possible memory leak. See for details:
4954 execfile call to prevent possible memory leak. See for details:
4949 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4955 http://mail.python.org/pipermail/python-list/2002-February/088476.html
4950
4956
4951 2002-05-15 Fernando Perez <fperez@colorado.edu>
4957 2002-05-15 Fernando Perez <fperez@colorado.edu>
4952
4958
4953 * IPython/Magic.py (Magic.magic_psource): made the object
4959 * IPython/Magic.py (Magic.magic_psource): made the object
4954 introspection names be more standard: pdoc, pdef, pfile and
4960 introspection names be more standard: pdoc, pdef, pfile and
4955 psource. They all print/page their output, and it makes
4961 psource. They all print/page their output, and it makes
4956 remembering them easier. Kept old names for compatibility as
4962 remembering them easier. Kept old names for compatibility as
4957 aliases.
4963 aliases.
4958
4964
4959 2002-05-14 Fernando Perez <fperez@colorado.edu>
4965 2002-05-14 Fernando Perez <fperez@colorado.edu>
4960
4966
4961 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4967 * IPython/UserConfig/GnuplotMagic.py: I think I finally understood
4962 what the mouse problem was. The trick is to use gnuplot with temp
4968 what the mouse problem was. The trick is to use gnuplot with temp
4963 files and NOT with pipes (for data communication), because having
4969 files and NOT with pipes (for data communication), because having
4964 both pipes and the mouse on is bad news.
4970 both pipes and the mouse on is bad news.
4965
4971
4966 2002-05-13 Fernando Perez <fperez@colorado.edu>
4972 2002-05-13 Fernando Perez <fperez@colorado.edu>
4967
4973
4968 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4974 * IPython/Magic.py (Magic._ofind): fixed namespace order search
4969 bug. Information would be reported about builtins even when
4975 bug. Information would be reported about builtins even when
4970 user-defined functions overrode them.
4976 user-defined functions overrode them.
4971
4977
4972 2002-05-11 Fernando Perez <fperez@colorado.edu>
4978 2002-05-11 Fernando Perez <fperez@colorado.edu>
4973
4979
4974 * IPython/__init__.py (__all__): removed FlexCompleter from
4980 * IPython/__init__.py (__all__): removed FlexCompleter from
4975 __all__ so that things don't fail in platforms without readline.
4981 __all__ so that things don't fail in platforms without readline.
4976
4982
4977 2002-05-10 Fernando Perez <fperez@colorado.edu>
4983 2002-05-10 Fernando Perez <fperez@colorado.edu>
4978
4984
4979 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4985 * IPython/__init__.py (__all__): removed numutils from __all__ b/c
4980 it requires Numeric, effectively making Numeric a dependency for
4986 it requires Numeric, effectively making Numeric a dependency for
4981 IPython.
4987 IPython.
4982
4988
4983 * Released 0.2.13
4989 * Released 0.2.13
4984
4990
4985 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4991 * IPython/Magic.py (Magic.magic_prun): big overhaul to the
4986 profiler interface. Now all the major options from the profiler
4992 profiler interface. Now all the major options from the profiler
4987 module are directly supported in IPython, both for single
4993 module are directly supported in IPython, both for single
4988 expressions (@prun) and for full programs (@run -p).
4994 expressions (@prun) and for full programs (@run -p).
4989
4995
4990 2002-05-09 Fernando Perez <fperez@colorado.edu>
4996 2002-05-09 Fernando Perez <fperez@colorado.edu>
4991
4997
4992 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4998 * IPython/Magic.py (Magic.magic_doc): fixed to show docstrings of
4993 magic properly formatted for screen.
4999 magic properly formatted for screen.
4994
5000
4995 * setup.py (make_shortcut): Changed things to put pdf version in
5001 * setup.py (make_shortcut): Changed things to put pdf version in
4996 doc/ instead of doc/manual (had to change lyxport a bit).
5002 doc/ instead of doc/manual (had to change lyxport a bit).
4997
5003
4998 * IPython/Magic.py (Profile.string_stats): made profile runs go
5004 * IPython/Magic.py (Profile.string_stats): made profile runs go
4999 through pager (they are long and a pager allows searching, saving,
5005 through pager (they are long and a pager allows searching, saving,
5000 etc.)
5006 etc.)
5001
5007
5002 2002-05-08 Fernando Perez <fperez@colorado.edu>
5008 2002-05-08 Fernando Perez <fperez@colorado.edu>
5003
5009
5004 * Released 0.2.12
5010 * Released 0.2.12
5005
5011
5006 2002-05-06 Fernando Perez <fperez@colorado.edu>
5012 2002-05-06 Fernando Perez <fperez@colorado.edu>
5007
5013
5008 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5014 * IPython/Magic.py (Magic.magic_hist): small bug fixed (recently
5009 introduced); 'hist n1 n2' was broken.
5015 introduced); 'hist n1 n2' was broken.
5010 (Magic.magic_pdb): added optional on/off arguments to @pdb
5016 (Magic.magic_pdb): added optional on/off arguments to @pdb
5011 (Magic.magic_run): added option -i to @run, which executes code in
5017 (Magic.magic_run): added option -i to @run, which executes code in
5012 the IPython namespace instead of a clean one. Also added @irun as
5018 the IPython namespace instead of a clean one. Also added @irun as
5013 an alias to @run -i.
5019 an alias to @run -i.
5014
5020
5015 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5021 * IPython/UserConfig/GnuplotMagic.py (magic_gp_set_instance):
5016 fixed (it didn't really do anything, the namespaces were wrong).
5022 fixed (it didn't really do anything, the namespaces were wrong).
5017
5023
5018 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5024 * IPython/Debugger.py (__init__): Added workaround for python 2.1
5019
5025
5020 * IPython/__init__.py (__all__): Fixed package namespace, now
5026 * IPython/__init__.py (__all__): Fixed package namespace, now
5021 'import IPython' does give access to IPython.<all> as
5027 'import IPython' does give access to IPython.<all> as
5022 expected. Also renamed __release__ to Release.
5028 expected. Also renamed __release__ to Release.
5023
5029
5024 * IPython/Debugger.py (__license__): created new Pdb class which
5030 * IPython/Debugger.py (__license__): created new Pdb class which
5025 functions like a drop-in for the normal pdb.Pdb but does NOT
5031 functions like a drop-in for the normal pdb.Pdb but does NOT
5026 import readline by default. This way it doesn't muck up IPython's
5032 import readline by default. This way it doesn't muck up IPython's
5027 readline handling, and now tab-completion finally works in the
5033 readline handling, and now tab-completion finally works in the
5028 debugger -- sort of. It completes things globally visible, but the
5034 debugger -- sort of. It completes things globally visible, but the
5029 completer doesn't track the stack as pdb walks it. That's a bit
5035 completer doesn't track the stack as pdb walks it. That's a bit
5030 tricky, and I'll have to implement it later.
5036 tricky, and I'll have to implement it later.
5031
5037
5032 2002-05-05 Fernando Perez <fperez@colorado.edu>
5038 2002-05-05 Fernando Perez <fperez@colorado.edu>
5033
5039
5034 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5040 * IPython/Magic.py (Magic.magic_oinfo): fixed formatting bug for
5035 magic docstrings when printed via ? (explicit \'s were being
5041 magic docstrings when printed via ? (explicit \'s were being
5036 printed).
5042 printed).
5037
5043
5038 * IPython/ipmaker.py (make_IPython): fixed namespace
5044 * IPython/ipmaker.py (make_IPython): fixed namespace
5039 identification bug. Now variables loaded via logs or command-line
5045 identification bug. Now variables loaded via logs or command-line
5040 files are recognized in the interactive namespace by @who.
5046 files are recognized in the interactive namespace by @who.
5041
5047
5042 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5048 * IPython/iplib.py (InteractiveShell.safe_execfile): Fixed bug in
5043 log replay system stemming from the string form of Structs.
5049 log replay system stemming from the string form of Structs.
5044
5050
5045 * IPython/Magic.py (Macro.__init__): improved macros to properly
5051 * IPython/Magic.py (Macro.__init__): improved macros to properly
5046 handle magic commands in them.
5052 handle magic commands in them.
5047 (Magic.magic_logstart): usernames are now expanded so 'logstart
5053 (Magic.magic_logstart): usernames are now expanded so 'logstart
5048 ~/mylog' now works.
5054 ~/mylog' now works.
5049
5055
5050 * IPython/iplib.py (complete): fixed bug where paths starting with
5056 * IPython/iplib.py (complete): fixed bug where paths starting with
5051 '/' would be completed as magic names.
5057 '/' would be completed as magic names.
5052
5058
5053 2002-05-04 Fernando Perez <fperez@colorado.edu>
5059 2002-05-04 Fernando Perez <fperez@colorado.edu>
5054
5060
5055 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5061 * IPython/Magic.py (Magic.magic_run): added options -p and -f to
5056 allow running full programs under the profiler's control.
5062 allow running full programs under the profiler's control.
5057
5063
5058 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5064 * IPython/ultraTB.py (FormattedTB.__init__): Added Verbose_novars
5059 mode to report exceptions verbosely but without formatting
5065 mode to report exceptions verbosely but without formatting
5060 variables. This addresses the issue of ipython 'freezing' (it's
5066 variables. This addresses the issue of ipython 'freezing' (it's
5061 not frozen, but caught in an expensive formatting loop) when huge
5067 not frozen, but caught in an expensive formatting loop) when huge
5062 variables are in the context of an exception.
5068 variables are in the context of an exception.
5063 (VerboseTB.text): Added '--->' markers at line where exception was
5069 (VerboseTB.text): Added '--->' markers at line where exception was
5064 triggered. Much clearer to read, especially in NoColor modes.
5070 triggered. Much clearer to read, especially in NoColor modes.
5065
5071
5066 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5072 * IPython/Magic.py (Magic.magic_run): bugfix: -n option had been
5067 implemented in reverse when changing to the new parse_options().
5073 implemented in reverse when changing to the new parse_options().
5068
5074
5069 2002-05-03 Fernando Perez <fperez@colorado.edu>
5075 2002-05-03 Fernando Perez <fperez@colorado.edu>
5070
5076
5071 * IPython/Magic.py (Magic.parse_options): new function so that
5077 * IPython/Magic.py (Magic.parse_options): new function so that
5072 magics can parse options easier.
5078 magics can parse options easier.
5073 (Magic.magic_prun): new function similar to profile.run(),
5079 (Magic.magic_prun): new function similar to profile.run(),
5074 suggested by Chris Hart.
5080 suggested by Chris Hart.
5075 (Magic.magic_cd): fixed behavior so that it only changes if
5081 (Magic.magic_cd): fixed behavior so that it only changes if
5076 directory actually is in history.
5082 directory actually is in history.
5077
5083
5078 * IPython/usage.py (__doc__): added information about potential
5084 * IPython/usage.py (__doc__): added information about potential
5079 slowness of Verbose exception mode when there are huge data
5085 slowness of Verbose exception mode when there are huge data
5080 structures to be formatted (thanks to Archie Paulson).
5086 structures to be formatted (thanks to Archie Paulson).
5081
5087
5082 * IPython/ipmaker.py (make_IPython): Changed default logging
5088 * IPython/ipmaker.py (make_IPython): Changed default logging
5083 (when simply called with -log) to use curr_dir/ipython.log in
5089 (when simply called with -log) to use curr_dir/ipython.log in
5084 rotate mode. Fixed crash which was occuring with -log before
5090 rotate mode. Fixed crash which was occuring with -log before
5085 (thanks to Jim Boyle).
5091 (thanks to Jim Boyle).
5086
5092
5087 2002-05-01 Fernando Perez <fperez@colorado.edu>
5093 2002-05-01 Fernando Perez <fperez@colorado.edu>
5088
5094
5089 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5095 * Released 0.2.11 for these fixes (mainly the ultraTB one which
5090 was nasty -- though somewhat of a corner case).
5096 was nasty -- though somewhat of a corner case).
5091
5097
5092 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5098 * IPython/ultraTB.py (AutoFormattedTB.text): renamed __text to
5093 text (was a bug).
5099 text (was a bug).
5094
5100
5095 2002-04-30 Fernando Perez <fperez@colorado.edu>
5101 2002-04-30 Fernando Perez <fperez@colorado.edu>
5096
5102
5097 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5103 * IPython/UserConfig/GnuplotMagic.py (magic_gp): Minor fix to add
5098 a print after ^D or ^C from the user so that the In[] prompt
5104 a print after ^D or ^C from the user so that the In[] prompt
5099 doesn't over-run the gnuplot one.
5105 doesn't over-run the gnuplot one.
5100
5106
5101 2002-04-29 Fernando Perez <fperez@colorado.edu>
5107 2002-04-29 Fernando Perez <fperez@colorado.edu>
5102
5108
5103 * Released 0.2.10
5109 * Released 0.2.10
5104
5110
5105 * IPython/__release__.py (version): get date dynamically.
5111 * IPython/__release__.py (version): get date dynamically.
5106
5112
5107 * Misc. documentation updates thanks to Arnd's comments. Also ran
5113 * Misc. documentation updates thanks to Arnd's comments. Also ran
5108 a full spellcheck on the manual (hadn't been done in a while).
5114 a full spellcheck on the manual (hadn't been done in a while).
5109
5115
5110 2002-04-27 Fernando Perez <fperez@colorado.edu>
5116 2002-04-27 Fernando Perez <fperez@colorado.edu>
5111
5117
5112 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5118 * IPython/Magic.py (Magic.magic_logstart): Fixed bug where
5113 starting a log in mid-session would reset the input history list.
5119 starting a log in mid-session would reset the input history list.
5114
5120
5115 2002-04-26 Fernando Perez <fperez@colorado.edu>
5121 2002-04-26 Fernando Perez <fperez@colorado.edu>
5116
5122
5117 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5123 * IPython/iplib.py (InteractiveShell.wait): Fixed bug where not
5118 all files were being included in an update. Now anything in
5124 all files were being included in an update. Now anything in
5119 UserConfig that matches [A-Za-z]*.py will go (this excludes
5125 UserConfig that matches [A-Za-z]*.py will go (this excludes
5120 __init__.py)
5126 __init__.py)
5121
5127
5122 2002-04-25 Fernando Perez <fperez@colorado.edu>
5128 2002-04-25 Fernando Perez <fperez@colorado.edu>
5123
5129
5124 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5130 * IPython/iplib.py (InteractiveShell.__init__): Added __IPYTHON__
5125 to __builtins__ so that any form of embedded or imported code can
5131 to __builtins__ so that any form of embedded or imported code can
5126 test for being inside IPython.
5132 test for being inside IPython.
5127
5133
5128 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5134 * IPython/UserConfig/GnuplotMagic.py: (magic_gp_set_instance):
5129 changed to GnuplotMagic because it's now an importable module,
5135 changed to GnuplotMagic because it's now an importable module,
5130 this makes the name follow that of the standard Gnuplot module.
5136 this makes the name follow that of the standard Gnuplot module.
5131 GnuplotMagic can now be loaded at any time in mid-session.
5137 GnuplotMagic can now be loaded at any time in mid-session.
5132
5138
5133 2002-04-24 Fernando Perez <fperez@colorado.edu>
5139 2002-04-24 Fernando Perez <fperez@colorado.edu>
5134
5140
5135 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5141 * IPython/numutils.py: removed SIUnits. It doesn't properly set
5136 the globals (IPython has its own namespace) and the
5142 the globals (IPython has its own namespace) and the
5137 PhysicalQuantity stuff is much better anyway.
5143 PhysicalQuantity stuff is much better anyway.
5138
5144
5139 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5145 * IPython/UserConfig/example-gnuplot.py (g2): Added gnuplot
5140 embedding example to standard user directory for
5146 embedding example to standard user directory for
5141 distribution. Also put it in the manual.
5147 distribution. Also put it in the manual.
5142
5148
5143 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5149 * IPython/numutils.py (gnuplot_exec): Changed to take a gnuplot
5144 instance as first argument (so it doesn't rely on some obscure
5150 instance as first argument (so it doesn't rely on some obscure
5145 hidden global).
5151 hidden global).
5146
5152
5147 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5153 * IPython/UserConfig/ipythonrc.py: put () back in accepted
5148 delimiters. While it prevents ().TAB from working, it allows
5154 delimiters. While it prevents ().TAB from working, it allows
5149 completions in open (... expressions. This is by far a more common
5155 completions in open (... expressions. This is by far a more common
5150 case.
5156 case.
5151
5157
5152 2002-04-23 Fernando Perez <fperez@colorado.edu>
5158 2002-04-23 Fernando Perez <fperez@colorado.edu>
5153
5159
5154 * IPython/Extensions/InterpreterPasteInput.py: new
5160 * IPython/Extensions/InterpreterPasteInput.py: new
5155 syntax-processing module for pasting lines with >>> or ... at the
5161 syntax-processing module for pasting lines with >>> or ... at the
5156 start.
5162 start.
5157
5163
5158 * IPython/Extensions/PhysicalQ_Interactive.py
5164 * IPython/Extensions/PhysicalQ_Interactive.py
5159 (PhysicalQuantityInteractive.__int__): fixed to work with either
5165 (PhysicalQuantityInteractive.__int__): fixed to work with either
5160 Numeric or math.
5166 Numeric or math.
5161
5167
5162 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5168 * IPython/UserConfig/ipythonrc-numeric.py: reorganized the
5163 provided profiles. Now we have:
5169 provided profiles. Now we have:
5164 -math -> math module as * and cmath with its own namespace.
5170 -math -> math module as * and cmath with its own namespace.
5165 -numeric -> Numeric as *, plus gnuplot & grace
5171 -numeric -> Numeric as *, plus gnuplot & grace
5166 -physics -> same as before
5172 -physics -> same as before
5167
5173
5168 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5174 * IPython/Magic.py (Magic.magic_magic): Fixed bug where
5169 user-defined magics wouldn't be found by @magic if they were
5175 user-defined magics wouldn't be found by @magic if they were
5170 defined as class methods. Also cleaned up the namespace search
5176 defined as class methods. Also cleaned up the namespace search
5171 logic and the string building (to use %s instead of many repeated
5177 logic and the string building (to use %s instead of many repeated
5172 string adds).
5178 string adds).
5173
5179
5174 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5180 * IPython/UserConfig/example-magic.py (magic_foo): updated example
5175 of user-defined magics to operate with class methods (cleaner, in
5181 of user-defined magics to operate with class methods (cleaner, in
5176 line with the gnuplot code).
5182 line with the gnuplot code).
5177
5183
5178 2002-04-22 Fernando Perez <fperez@colorado.edu>
5184 2002-04-22 Fernando Perez <fperez@colorado.edu>
5179
5185
5180 * setup.py: updated dependency list so that manual is updated when
5186 * setup.py: updated dependency list so that manual is updated when
5181 all included files change.
5187 all included files change.
5182
5188
5183 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5189 * IPython/ipmaker.py (make_IPython): Fixed bug which was ignoring
5184 the delimiter removal option (the fix is ugly right now).
5190 the delimiter removal option (the fix is ugly right now).
5185
5191
5186 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5192 * IPython/UserConfig/ipythonrc-physics.py: simplified not to load
5187 all of the math profile (quicker loading, no conflict between
5193 all of the math profile (quicker loading, no conflict between
5188 g-9.8 and g-gnuplot).
5194 g-9.8 and g-gnuplot).
5189
5195
5190 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5196 * IPython/CrashHandler.py (CrashHandler.__call__): changed default
5191 name of post-mortem files to IPython_crash_report.txt.
5197 name of post-mortem files to IPython_crash_report.txt.
5192
5198
5193 * Cleanup/update of the docs. Added all the new readline info and
5199 * Cleanup/update of the docs. Added all the new readline info and
5194 formatted all lists as 'real lists'.
5200 formatted all lists as 'real lists'.
5195
5201
5196 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5202 * IPython/ipmaker.py (make_IPython): removed now-obsolete
5197 tab-completion options, since the full readline parse_and_bind is
5203 tab-completion options, since the full readline parse_and_bind is
5198 now accessible.
5204 now accessible.
5199
5205
5200 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5206 * IPython/iplib.py (InteractiveShell.init_readline): Changed
5201 handling of readline options. Now users can specify any string to
5207 handling of readline options. Now users can specify any string to
5202 be passed to parse_and_bind(), as well as the delimiters to be
5208 be passed to parse_and_bind(), as well as the delimiters to be
5203 removed.
5209 removed.
5204 (InteractiveShell.__init__): Added __name__ to the global
5210 (InteractiveShell.__init__): Added __name__ to the global
5205 namespace so that things like Itpl which rely on its existence
5211 namespace so that things like Itpl which rely on its existence
5206 don't crash.
5212 don't crash.
5207 (InteractiveShell._prefilter): Defined the default with a _ so
5213 (InteractiveShell._prefilter): Defined the default with a _ so
5208 that prefilter() is easier to override, while the default one
5214 that prefilter() is easier to override, while the default one
5209 remains available.
5215 remains available.
5210
5216
5211 2002-04-18 Fernando Perez <fperez@colorado.edu>
5217 2002-04-18 Fernando Perez <fperez@colorado.edu>
5212
5218
5213 * Added information about pdb in the docs.
5219 * Added information about pdb in the docs.
5214
5220
5215 2002-04-17 Fernando Perez <fperez@colorado.edu>
5221 2002-04-17 Fernando Perez <fperez@colorado.edu>
5216
5222
5217 * IPython/ipmaker.py (make_IPython): added rc_override option to
5223 * IPython/ipmaker.py (make_IPython): added rc_override option to
5218 allow passing config options at creation time which may override
5224 allow passing config options at creation time which may override
5219 anything set in the config files or command line. This is
5225 anything set in the config files or command line. This is
5220 particularly useful for configuring embedded instances.
5226 particularly useful for configuring embedded instances.
5221
5227
5222 2002-04-15 Fernando Perez <fperez@colorado.edu>
5228 2002-04-15 Fernando Perez <fperez@colorado.edu>
5223
5229
5224 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5230 * IPython/Logger.py (Logger.log): Fixed a nasty bug which could
5225 crash embedded instances because of the input cache falling out of
5231 crash embedded instances because of the input cache falling out of
5226 sync with the output counter.
5232 sync with the output counter.
5227
5233
5228 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5234 * IPython/Shell.py (IPythonShellEmbed.__init__): added a debug
5229 mode which calls pdb after an uncaught exception in IPython itself.
5235 mode which calls pdb after an uncaught exception in IPython itself.
5230
5236
5231 2002-04-14 Fernando Perez <fperez@colorado.edu>
5237 2002-04-14 Fernando Perez <fperez@colorado.edu>
5232
5238
5233 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5239 * IPython/iplib.py (InteractiveShell.showtraceback): pdb mucks up
5234 readline, fix it back after each call.
5240 readline, fix it back after each call.
5235
5241
5236 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5242 * IPython/ultraTB.py (AutoFormattedTB.__text): made text a private
5237 method to force all access via __call__(), which guarantees that
5243 method to force all access via __call__(), which guarantees that
5238 traceback references are properly deleted.
5244 traceback references are properly deleted.
5239
5245
5240 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5246 * IPython/Prompts.py (CachedOutput._display): minor fixes to
5241 improve printing when pprint is in use.
5247 improve printing when pprint is in use.
5242
5248
5243 2002-04-13 Fernando Perez <fperez@colorado.edu>
5249 2002-04-13 Fernando Perez <fperez@colorado.edu>
5244
5250
5245 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5251 * IPython/Shell.py (IPythonShellEmbed.__call__): SystemExit
5246 exceptions aren't caught anymore. If the user triggers one, he
5252 exceptions aren't caught anymore. If the user triggers one, he
5247 should know why he's doing it and it should go all the way up,
5253 should know why he's doing it and it should go all the way up,
5248 just like any other exception. So now @abort will fully kill the
5254 just like any other exception. So now @abort will fully kill the
5249 embedded interpreter and the embedding code (unless that happens
5255 embedded interpreter and the embedding code (unless that happens
5250 to catch SystemExit).
5256 to catch SystemExit).
5251
5257
5252 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5258 * IPython/ultraTB.py (VerboseTB.__init__): added a call_pdb flag
5253 and a debugger() method to invoke the interactive pdb debugger
5259 and a debugger() method to invoke the interactive pdb debugger
5254 after printing exception information. Also added the corresponding
5260 after printing exception information. Also added the corresponding
5255 -pdb option and @pdb magic to control this feature, and updated
5261 -pdb option and @pdb magic to control this feature, and updated
5256 the docs. After a suggestion from Christopher Hart
5262 the docs. After a suggestion from Christopher Hart
5257 (hart-AT-caltech.edu).
5263 (hart-AT-caltech.edu).
5258
5264
5259 2002-04-12 Fernando Perez <fperez@colorado.edu>
5265 2002-04-12 Fernando Perez <fperez@colorado.edu>
5260
5266
5261 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5267 * IPython/Shell.py (IPythonShellEmbed.__init__): modified to use
5262 the exception handlers defined by the user (not the CrashHandler)
5268 the exception handlers defined by the user (not the CrashHandler)
5263 so that user exceptions don't trigger an ipython bug report.
5269 so that user exceptions don't trigger an ipython bug report.
5264
5270
5265 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5271 * IPython/ultraTB.py (ColorTB.__init__): made the color scheme
5266 configurable (it should have always been so).
5272 configurable (it should have always been so).
5267
5273
5268 2002-03-26 Fernando Perez <fperez@colorado.edu>
5274 2002-03-26 Fernando Perez <fperez@colorado.edu>
5269
5275
5270 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5276 * IPython/Shell.py (IPythonShellEmbed.__call__): many changes here
5271 and there to fix embedding namespace issues. This should all be
5277 and there to fix embedding namespace issues. This should all be
5272 done in a more elegant way.
5278 done in a more elegant way.
5273
5279
5274 2002-03-25 Fernando Perez <fperez@colorado.edu>
5280 2002-03-25 Fernando Perez <fperez@colorado.edu>
5275
5281
5276 * IPython/genutils.py (get_home_dir): Try to make it work under
5282 * IPython/genutils.py (get_home_dir): Try to make it work under
5277 win9x also.
5283 win9x also.
5278
5284
5279 2002-03-20 Fernando Perez <fperez@colorado.edu>
5285 2002-03-20 Fernando Perez <fperez@colorado.edu>
5280
5286
5281 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5287 * IPython/Shell.py (IPythonShellEmbed.__init__): leave
5282 sys.displayhook untouched upon __init__.
5288 sys.displayhook untouched upon __init__.
5283
5289
5284 2002-03-19 Fernando Perez <fperez@colorado.edu>
5290 2002-03-19 Fernando Perez <fperez@colorado.edu>
5285
5291
5286 * Released 0.2.9 (for embedding bug, basically).
5292 * Released 0.2.9 (for embedding bug, basically).
5287
5293
5288 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5294 * IPython/Shell.py (IPythonShellEmbed.__call__): Trap SystemExit
5289 exceptions so that enclosing shell's state can be restored.
5295 exceptions so that enclosing shell's state can be restored.
5290
5296
5291 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5297 * Changed magic_gnuplot.py to magic-gnuplot.py to standardize
5292 naming conventions in the .ipython/ dir.
5298 naming conventions in the .ipython/ dir.
5293
5299
5294 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5300 * IPython/iplib.py (InteractiveShell.init_readline): removed '-'
5295 from delimiters list so filenames with - in them get expanded.
5301 from delimiters list so filenames with - in them get expanded.
5296
5302
5297 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5303 * IPython/Shell.py (IPythonShellEmbed.__call__): fixed bug with
5298 sys.displayhook not being properly restored after an embedded call.
5304 sys.displayhook not being properly restored after an embedded call.
5299
5305
5300 2002-03-18 Fernando Perez <fperez@colorado.edu>
5306 2002-03-18 Fernando Perez <fperez@colorado.edu>
5301
5307
5302 * Released 0.2.8
5308 * Released 0.2.8
5303
5309
5304 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5310 * IPython/iplib.py (InteractiveShell.user_setup): fixed bug where
5305 some files weren't being included in a -upgrade.
5311 some files weren't being included in a -upgrade.
5306 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5312 (InteractiveShell.init_readline): Added 'set show-all-if-ambiguous
5307 on' so that the first tab completes.
5313 on' so that the first tab completes.
5308 (InteractiveShell.handle_magic): fixed bug with spaces around
5314 (InteractiveShell.handle_magic): fixed bug with spaces around
5309 quotes breaking many magic commands.
5315 quotes breaking many magic commands.
5310
5316
5311 * setup.py: added note about ignoring the syntax error messages at
5317 * setup.py: added note about ignoring the syntax error messages at
5312 installation.
5318 installation.
5313
5319
5314 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5320 * IPython/UserConfig/magic_gnuplot.py (magic_gp): finished
5315 streamlining the gnuplot interface, now there's only one magic @gp.
5321 streamlining the gnuplot interface, now there's only one magic @gp.
5316
5322
5317 2002-03-17 Fernando Perez <fperez@colorado.edu>
5323 2002-03-17 Fernando Perez <fperez@colorado.edu>
5318
5324
5319 * IPython/UserConfig/magic_gnuplot.py: new name for the
5325 * IPython/UserConfig/magic_gnuplot.py: new name for the
5320 example-magic_pm.py file. Much enhanced system, now with a shell
5326 example-magic_pm.py file. Much enhanced system, now with a shell
5321 for communicating directly with gnuplot, one command at a time.
5327 for communicating directly with gnuplot, one command at a time.
5322
5328
5323 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5329 * IPython/Magic.py (Magic.magic_run): added option -n to prevent
5324 setting __name__=='__main__'.
5330 setting __name__=='__main__'.
5325
5331
5326 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5332 * IPython/UserConfig/example-magic_pm.py (magic_pm): Added
5327 mini-shell for accessing gnuplot from inside ipython. Should
5333 mini-shell for accessing gnuplot from inside ipython. Should
5328 extend it later for grace access too. Inspired by Arnd's
5334 extend it later for grace access too. Inspired by Arnd's
5329 suggestion.
5335 suggestion.
5330
5336
5331 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5337 * IPython/iplib.py (InteractiveShell.handle_magic): fixed bug when
5332 calling magic functions with () in their arguments. Thanks to Arnd
5338 calling magic functions with () in their arguments. Thanks to Arnd
5333 Baecker for pointing this to me.
5339 Baecker for pointing this to me.
5334
5340
5335 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5341 * IPython/numutils.py (sum_flat): fixed bug. Would recurse
5336 infinitely for integer or complex arrays (only worked with floats).
5342 infinitely for integer or complex arrays (only worked with floats).
5337
5343
5338 2002-03-16 Fernando Perez <fperez@colorado.edu>
5344 2002-03-16 Fernando Perez <fperez@colorado.edu>
5339
5345
5340 * setup.py: Merged setup and setup_windows into a single script
5346 * setup.py: Merged setup and setup_windows into a single script
5341 which properly handles things for windows users.
5347 which properly handles things for windows users.
5342
5348
5343 2002-03-15 Fernando Perez <fperez@colorado.edu>
5349 2002-03-15 Fernando Perez <fperez@colorado.edu>
5344
5350
5345 * Big change to the manual: now the magics are all automatically
5351 * Big change to the manual: now the magics are all automatically
5346 documented. This information is generated from their docstrings
5352 documented. This information is generated from their docstrings
5347 and put in a latex file included by the manual lyx file. This way
5353 and put in a latex file included by the manual lyx file. This way
5348 we get always up to date information for the magics. The manual
5354 we get always up to date information for the magics. The manual
5349 now also has proper version information, also auto-synced.
5355 now also has proper version information, also auto-synced.
5350
5356
5351 For this to work, an undocumented --magic_docstrings option was added.
5357 For this to work, an undocumented --magic_docstrings option was added.
5352
5358
5353 2002-03-13 Fernando Perez <fperez@colorado.edu>
5359 2002-03-13 Fernando Perez <fperez@colorado.edu>
5354
5360
5355 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5361 * IPython/ultraTB.py (TermColors): fixed problem with dark colors
5356 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5362 under CDE terminals. An explicit ;2 color reset is needed in the escapes.
5357
5363
5358 2002-03-12 Fernando Perez <fperez@colorado.edu>
5364 2002-03-12 Fernando Perez <fperez@colorado.edu>
5359
5365
5360 * IPython/ultraTB.py (TermColors): changed color escapes again to
5366 * IPython/ultraTB.py (TermColors): changed color escapes again to
5361 fix the (old, reintroduced) line-wrapping bug. Basically, if
5367 fix the (old, reintroduced) line-wrapping bug. Basically, if
5362 \001..\002 aren't given in the color escapes, lines get wrapped
5368 \001..\002 aren't given in the color escapes, lines get wrapped
5363 weirdly. But giving those screws up old xterms and emacs terms. So
5369 weirdly. But giving those screws up old xterms and emacs terms. So
5364 I added some logic for emacs terms to be ok, but I can't identify old
5370 I added some logic for emacs terms to be ok, but I can't identify old
5365 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5371 xterms separately ($TERM=='xterm' for many terminals, like konsole).
5366
5372
5367 2002-03-10 Fernando Perez <fperez@colorado.edu>
5373 2002-03-10 Fernando Perez <fperez@colorado.edu>
5368
5374
5369 * IPython/usage.py (__doc__): Various documentation cleanups and
5375 * IPython/usage.py (__doc__): Various documentation cleanups and
5370 updates, both in usage docstrings and in the manual.
5376 updates, both in usage docstrings and in the manual.
5371
5377
5372 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5378 * IPython/Prompts.py (CachedOutput.set_colors): cleanups for
5373 handling of caching. Set minimum acceptabe value for having a
5379 handling of caching. Set minimum acceptabe value for having a
5374 cache at 20 values.
5380 cache at 20 values.
5375
5381
5376 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5382 * IPython/iplib.py (InteractiveShell.user_setup): moved the
5377 install_first_time function to a method, renamed it and added an
5383 install_first_time function to a method, renamed it and added an
5378 'upgrade' mode. Now people can update their config directory with
5384 'upgrade' mode. Now people can update their config directory with
5379 a simple command line switch (-upgrade, also new).
5385 a simple command line switch (-upgrade, also new).
5380
5386
5381 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5387 * IPython/Magic.py (Magic.magic_pfile): Made @pfile an alias to
5382 @file (convenient for automagic users under Python >= 2.2).
5388 @file (convenient for automagic users under Python >= 2.2).
5383 Removed @files (it seemed more like a plural than an abbrev. of
5389 Removed @files (it seemed more like a plural than an abbrev. of
5384 'file show').
5390 'file show').
5385
5391
5386 * IPython/iplib.py (install_first_time): Fixed crash if there were
5392 * IPython/iplib.py (install_first_time): Fixed crash if there were
5387 backup files ('~') in .ipython/ install directory.
5393 backup files ('~') in .ipython/ install directory.
5388
5394
5389 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5395 * IPython/ipmaker.py (make_IPython): fixes for new prompt
5390 system. Things look fine, but these changes are fairly
5396 system. Things look fine, but these changes are fairly
5391 intrusive. Test them for a few days.
5397 intrusive. Test them for a few days.
5392
5398
5393 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5399 * IPython/Prompts.py (CachedOutput.__init__): Massive rewrite of
5394 the prompts system. Now all in/out prompt strings are user
5400 the prompts system. Now all in/out prompt strings are user
5395 controllable. This is particularly useful for embedding, as one
5401 controllable. This is particularly useful for embedding, as one
5396 can tag embedded instances with particular prompts.
5402 can tag embedded instances with particular prompts.
5397
5403
5398 Also removed global use of sys.ps1/2, which now allows nested
5404 Also removed global use of sys.ps1/2, which now allows nested
5399 embeddings without any problems. Added command-line options for
5405 embeddings without any problems. Added command-line options for
5400 the prompt strings.
5406 the prompt strings.
5401
5407
5402 2002-03-08 Fernando Perez <fperez@colorado.edu>
5408 2002-03-08 Fernando Perez <fperez@colorado.edu>
5403
5409
5404 * IPython/UserConfig/example-embed-short.py (ipshell): added
5410 * IPython/UserConfig/example-embed-short.py (ipshell): added
5405 example file with the bare minimum code for embedding.
5411 example file with the bare minimum code for embedding.
5406
5412
5407 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5413 * IPython/Shell.py (IPythonShellEmbed.set_dummy_mode): added
5408 functionality for the embeddable shell to be activated/deactivated
5414 functionality for the embeddable shell to be activated/deactivated
5409 either globally or at each call.
5415 either globally or at each call.
5410
5416
5411 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5417 * IPython/Prompts.py (Prompt1.auto_rewrite): Fixes the problem of
5412 rewriting the prompt with '--->' for auto-inputs with proper
5418 rewriting the prompt with '--->' for auto-inputs with proper
5413 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5419 coloring. Now the previous UGLY hack in handle_auto() is gone, and
5414 this is handled by the prompts class itself, as it should.
5420 this is handled by the prompts class itself, as it should.
5415
5421
5416 2002-03-05 Fernando Perez <fperez@colorado.edu>
5422 2002-03-05 Fernando Perez <fperez@colorado.edu>
5417
5423
5418 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5424 * IPython/Magic.py (Magic.magic_logstart): Changed @log to
5419 @logstart to avoid name clashes with the math log function.
5425 @logstart to avoid name clashes with the math log function.
5420
5426
5421 * Big updates to X/Emacs section of the manual.
5427 * Big updates to X/Emacs section of the manual.
5422
5428
5423 * Removed ipython_emacs. Milan explained to me how to pass
5429 * Removed ipython_emacs. Milan explained to me how to pass
5424 arguments to ipython through Emacs. Some day I'm going to end up
5430 arguments to ipython through Emacs. Some day I'm going to end up
5425 learning some lisp...
5431 learning some lisp...
5426
5432
5427 2002-03-04 Fernando Perez <fperez@colorado.edu>
5433 2002-03-04 Fernando Perez <fperez@colorado.edu>
5428
5434
5429 * IPython/ipython_emacs: Created script to be used as the
5435 * IPython/ipython_emacs: Created script to be used as the
5430 py-python-command Emacs variable so we can pass IPython
5436 py-python-command Emacs variable so we can pass IPython
5431 parameters. I can't figure out how to tell Emacs directly to pass
5437 parameters. I can't figure out how to tell Emacs directly to pass
5432 parameters to IPython, so a dummy shell script will do it.
5438 parameters to IPython, so a dummy shell script will do it.
5433
5439
5434 Other enhancements made for things to work better under Emacs'
5440 Other enhancements made for things to work better under Emacs'
5435 various types of terminals. Many thanks to Milan Zamazal
5441 various types of terminals. Many thanks to Milan Zamazal
5436 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5442 <pdm-AT-zamazal.org> for all the suggestions and pointers.
5437
5443
5438 2002-03-01 Fernando Perez <fperez@colorado.edu>
5444 2002-03-01 Fernando Perez <fperez@colorado.edu>
5439
5445
5440 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5446 * IPython/ipmaker.py (make_IPython): added a --readline! option so
5441 that loading of readline is now optional. This gives better
5447 that loading of readline is now optional. This gives better
5442 control to emacs users.
5448 control to emacs users.
5443
5449
5444 * IPython/ultraTB.py (__date__): Modified color escape sequences
5450 * IPython/ultraTB.py (__date__): Modified color escape sequences
5445 and now things work fine under xterm and in Emacs' term buffers
5451 and now things work fine under xterm and in Emacs' term buffers
5446 (though not shell ones). Well, in emacs you get colors, but all
5452 (though not shell ones). Well, in emacs you get colors, but all
5447 seem to be 'light' colors (no difference between dark and light
5453 seem to be 'light' colors (no difference between dark and light
5448 ones). But the garbage chars are gone, and also in xterms. It
5454 ones). But the garbage chars are gone, and also in xterms. It
5449 seems that now I'm using 'cleaner' ansi sequences.
5455 seems that now I'm using 'cleaner' ansi sequences.
5450
5456
5451 2002-02-21 Fernando Perez <fperez@colorado.edu>
5457 2002-02-21 Fernando Perez <fperez@colorado.edu>
5452
5458
5453 * Released 0.2.7 (mainly to publish the scoping fix).
5459 * Released 0.2.7 (mainly to publish the scoping fix).
5454
5460
5455 * IPython/Logger.py (Logger.logstate): added. A corresponding
5461 * IPython/Logger.py (Logger.logstate): added. A corresponding
5456 @logstate magic was created.
5462 @logstate magic was created.
5457
5463
5458 * IPython/Magic.py: fixed nested scoping problem under Python
5464 * IPython/Magic.py: fixed nested scoping problem under Python
5459 2.1.x (automagic wasn't working).
5465 2.1.x (automagic wasn't working).
5460
5466
5461 2002-02-20 Fernando Perez <fperez@colorado.edu>
5467 2002-02-20 Fernando Perez <fperez@colorado.edu>
5462
5468
5463 * Released 0.2.6.
5469 * Released 0.2.6.
5464
5470
5465 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5471 * IPython/OutputTrap.py (OutputTrap.__init__): added a 'quiet'
5466 option so that logs can come out without any headers at all.
5472 option so that logs can come out without any headers at all.
5467
5473
5468 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5474 * IPython/UserConfig/ipythonrc-scipy.py: created a profile for
5469 SciPy.
5475 SciPy.
5470
5476
5471 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5477 * IPython/iplib.py (InteractiveShell.embed_mainloop): Changed so
5472 that embedded IPython calls don't require vars() to be explicitly
5478 that embedded IPython calls don't require vars() to be explicitly
5473 passed. Now they are extracted from the caller's frame (code
5479 passed. Now they are extracted from the caller's frame (code
5474 snatched from Eric Jones' weave). Added better documentation to
5480 snatched from Eric Jones' weave). Added better documentation to
5475 the section on embedding and the example file.
5481 the section on embedding and the example file.
5476
5482
5477 * IPython/genutils.py (page): Changed so that under emacs, it just
5483 * IPython/genutils.py (page): Changed so that under emacs, it just
5478 prints the string. You can then page up and down in the emacs
5484 prints the string. You can then page up and down in the emacs
5479 buffer itself. This is how the builtin help() works.
5485 buffer itself. This is how the builtin help() works.
5480
5486
5481 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5487 * IPython/Prompts.py (CachedOutput.__call__): Fixed issue with
5482 macro scoping: macros need to be executed in the user's namespace
5488 macro scoping: macros need to be executed in the user's namespace
5483 to work as if they had been typed by the user.
5489 to work as if they had been typed by the user.
5484
5490
5485 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5491 * IPython/Magic.py (Magic.magic_macro): Changed macros so they
5486 execute automatically (no need to type 'exec...'). They then
5492 execute automatically (no need to type 'exec...'). They then
5487 behave like 'true macros'. The printing system was also modified
5493 behave like 'true macros'. The printing system was also modified
5488 for this to work.
5494 for this to work.
5489
5495
5490 2002-02-19 Fernando Perez <fperez@colorado.edu>
5496 2002-02-19 Fernando Perez <fperez@colorado.edu>
5491
5497
5492 * IPython/genutils.py (page_file): new function for paging files
5498 * IPython/genutils.py (page_file): new function for paging files
5493 in an OS-independent way. Also necessary for file viewing to work
5499 in an OS-independent way. Also necessary for file viewing to work
5494 well inside Emacs buffers.
5500 well inside Emacs buffers.
5495 (page): Added checks for being in an emacs buffer.
5501 (page): Added checks for being in an emacs buffer.
5496 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5502 (page): fixed bug for Windows ($TERM isn't set in Windows). Fixed
5497 same bug in iplib.
5503 same bug in iplib.
5498
5504
5499 2002-02-18 Fernando Perez <fperez@colorado.edu>
5505 2002-02-18 Fernando Perez <fperez@colorado.edu>
5500
5506
5501 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5507 * IPython/iplib.py (InteractiveShell.init_readline): modified use
5502 of readline so that IPython can work inside an Emacs buffer.
5508 of readline so that IPython can work inside an Emacs buffer.
5503
5509
5504 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5510 * IPython/ultraTB.py (AutoFormattedTB.__call__): some fixes to
5505 method signatures (they weren't really bugs, but it looks cleaner
5511 method signatures (they weren't really bugs, but it looks cleaner
5506 and keeps PyChecker happy).
5512 and keeps PyChecker happy).
5507
5513
5508 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5514 * IPython/ipmaker.py (make_IPython): added hooks Struct to __IP
5509 for implementing various user-defined hooks. Currently only
5515 for implementing various user-defined hooks. Currently only
5510 display is done.
5516 display is done.
5511
5517
5512 * IPython/Prompts.py (CachedOutput._display): changed display
5518 * IPython/Prompts.py (CachedOutput._display): changed display
5513 functions so that they can be dynamically changed by users easily.
5519 functions so that they can be dynamically changed by users easily.
5514
5520
5515 * IPython/Extensions/numeric_formats.py (num_display): added an
5521 * IPython/Extensions/numeric_formats.py (num_display): added an
5516 extension for printing NumPy arrays in flexible manners. It
5522 extension for printing NumPy arrays in flexible manners. It
5517 doesn't do anything yet, but all the structure is in
5523 doesn't do anything yet, but all the structure is in
5518 place. Ultimately the plan is to implement output format control
5524 place. Ultimately the plan is to implement output format control
5519 like in Octave.
5525 like in Octave.
5520
5526
5521 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5527 * IPython/Magic.py (Magic.lsmagic): changed so that bound magic
5522 methods are found at run-time by all the automatic machinery.
5528 methods are found at run-time by all the automatic machinery.
5523
5529
5524 2002-02-17 Fernando Perez <fperez@colorado.edu>
5530 2002-02-17 Fernando Perez <fperez@colorado.edu>
5525
5531
5526 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5532 * setup_Windows.py (make_shortcut): documented. Cleaned up the
5527 whole file a little.
5533 whole file a little.
5528
5534
5529 * ToDo: closed this document. Now there's a new_design.lyx
5535 * ToDo: closed this document. Now there's a new_design.lyx
5530 document for all new ideas. Added making a pdf of it for the
5536 document for all new ideas. Added making a pdf of it for the
5531 end-user distro.
5537 end-user distro.
5532
5538
5533 * IPython/Logger.py (Logger.switch_log): Created this to replace
5539 * IPython/Logger.py (Logger.switch_log): Created this to replace
5534 logon() and logoff(). It also fixes a nasty crash reported by
5540 logon() and logoff(). It also fixes a nasty crash reported by
5535 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5541 Philip Hisley <compsys-AT-starpower.net>. Many thanks to him.
5536
5542
5537 * IPython/iplib.py (complete): got auto-completion to work with
5543 * IPython/iplib.py (complete): got auto-completion to work with
5538 automagic (I had wanted this for a long time).
5544 automagic (I had wanted this for a long time).
5539
5545
5540 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5546 * IPython/Magic.py (Magic.magic_files): Added @files as an alias
5541 to @file, since file() is now a builtin and clashes with automagic
5547 to @file, since file() is now a builtin and clashes with automagic
5542 for @file.
5548 for @file.
5543
5549
5544 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5550 * Made some new files: Prompts, CrashHandler, Magic, Logger. All
5545 of this was previously in iplib, which had grown to more than 2000
5551 of this was previously in iplib, which had grown to more than 2000
5546 lines, way too long. No new functionality, but it makes managing
5552 lines, way too long. No new functionality, but it makes managing
5547 the code a bit easier.
5553 the code a bit easier.
5548
5554
5549 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5555 * IPython/iplib.py (IPythonCrashHandler.__call__): Added version
5550 information to crash reports.
5556 information to crash reports.
5551
5557
5552 2002-02-12 Fernando Perez <fperez@colorado.edu>
5558 2002-02-12 Fernando Perez <fperez@colorado.edu>
5553
5559
5554 * Released 0.2.5.
5560 * Released 0.2.5.
5555
5561
5556 2002-02-11 Fernando Perez <fperez@colorado.edu>
5562 2002-02-11 Fernando Perez <fperez@colorado.edu>
5557
5563
5558 * Wrote a relatively complete Windows installer. It puts
5564 * Wrote a relatively complete Windows installer. It puts
5559 everything in place, creates Start Menu entries and fixes the
5565 everything in place, creates Start Menu entries and fixes the
5560 color issues. Nothing fancy, but it works.
5566 color issues. Nothing fancy, but it works.
5561
5567
5562 2002-02-10 Fernando Perez <fperez@colorado.edu>
5568 2002-02-10 Fernando Perez <fperez@colorado.edu>
5563
5569
5564 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5570 * IPython/iplib.py (InteractiveShell.safe_execfile): added an
5565 os.path.expanduser() call so that we can type @run ~/myfile.py and
5571 os.path.expanduser() call so that we can type @run ~/myfile.py and
5566 have thigs work as expected.
5572 have thigs work as expected.
5567
5573
5568 * IPython/genutils.py (page): fixed exception handling so things
5574 * IPython/genutils.py (page): fixed exception handling so things
5569 work both in Unix and Windows correctly. Quitting a pager triggers
5575 work both in Unix and Windows correctly. Quitting a pager triggers
5570 an IOError/broken pipe in Unix, and in windows not finding a pager
5576 an IOError/broken pipe in Unix, and in windows not finding a pager
5571 is also an IOError, so I had to actually look at the return value
5577 is also an IOError, so I had to actually look at the return value
5572 of the exception, not just the exception itself. Should be ok now.
5578 of the exception, not just the exception itself. Should be ok now.
5573
5579
5574 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5580 * IPython/ultraTB.py (ColorSchemeTable.set_active_scheme):
5575 modified to allow case-insensitive color scheme changes.
5581 modified to allow case-insensitive color scheme changes.
5576
5582
5577 2002-02-09 Fernando Perez <fperez@colorado.edu>
5583 2002-02-09 Fernando Perez <fperez@colorado.edu>
5578
5584
5579 * IPython/genutils.py (native_line_ends): new function to leave
5585 * IPython/genutils.py (native_line_ends): new function to leave
5580 user config files with os-native line-endings.
5586 user config files with os-native line-endings.
5581
5587
5582 * README and manual updates.
5588 * README and manual updates.
5583
5589
5584 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5590 * IPython/genutils.py: fixed unicode bug: use types.StringTypes
5585 instead of StringType to catch Unicode strings.
5591 instead of StringType to catch Unicode strings.
5586
5592
5587 * IPython/genutils.py (filefind): fixed bug for paths with
5593 * IPython/genutils.py (filefind): fixed bug for paths with
5588 embedded spaces (very common in Windows).
5594 embedded spaces (very common in Windows).
5589
5595
5590 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5596 * IPython/ipmaker.py (make_IPython): added a '.ini' to the rc
5591 files under Windows, so that they get automatically associated
5597 files under Windows, so that they get automatically associated
5592 with a text editor. Windows makes it a pain to handle
5598 with a text editor. Windows makes it a pain to handle
5593 extension-less files.
5599 extension-less files.
5594
5600
5595 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5601 * IPython/iplib.py (InteractiveShell.init_readline): Made the
5596 warning about readline only occur for Posix. In Windows there's no
5602 warning about readline only occur for Posix. In Windows there's no
5597 way to get readline, so why bother with the warning.
5603 way to get readline, so why bother with the warning.
5598
5604
5599 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5605 * IPython/Struct.py (Struct.__str__): fixed to use self.__dict__
5600 for __str__ instead of dir(self), since dir() changed in 2.2.
5606 for __str__ instead of dir(self), since dir() changed in 2.2.
5601
5607
5602 * Ported to Windows! Tested on XP, I suspect it should work fine
5608 * Ported to Windows! Tested on XP, I suspect it should work fine
5603 on NT/2000, but I don't think it will work on 98 et al. That
5609 on NT/2000, but I don't think it will work on 98 et al. That
5604 series of Windows is such a piece of junk anyway that I won't try
5610 series of Windows is such a piece of junk anyway that I won't try
5605 porting it there. The XP port was straightforward, showed a few
5611 porting it there. The XP port was straightforward, showed a few
5606 bugs here and there (fixed all), in particular some string
5612 bugs here and there (fixed all), in particular some string
5607 handling stuff which required considering Unicode strings (which
5613 handling stuff which required considering Unicode strings (which
5608 Windows uses). This is good, but hasn't been too tested :) No
5614 Windows uses). This is good, but hasn't been too tested :) No
5609 fancy installer yet, I'll put a note in the manual so people at
5615 fancy installer yet, I'll put a note in the manual so people at
5610 least make manually a shortcut.
5616 least make manually a shortcut.
5611
5617
5612 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5618 * IPython/iplib.py (Magic.magic_colors): Unified the color options
5613 into a single one, "colors". This now controls both prompt and
5619 into a single one, "colors". This now controls both prompt and
5614 exception color schemes, and can be changed both at startup
5620 exception color schemes, and can be changed both at startup
5615 (either via command-line switches or via ipythonrc files) and at
5621 (either via command-line switches or via ipythonrc files) and at
5616 runtime, with @colors.
5622 runtime, with @colors.
5617 (Magic.magic_run): renamed @prun to @run and removed the old
5623 (Magic.magic_run): renamed @prun to @run and removed the old
5618 @run. The two were too similar to warrant keeping both.
5624 @run. The two were too similar to warrant keeping both.
5619
5625
5620 2002-02-03 Fernando Perez <fperez@colorado.edu>
5626 2002-02-03 Fernando Perez <fperez@colorado.edu>
5621
5627
5622 * IPython/iplib.py (install_first_time): Added comment on how to
5628 * IPython/iplib.py (install_first_time): Added comment on how to
5623 configure the color options for first-time users. Put a <return>
5629 configure the color options for first-time users. Put a <return>
5624 request at the end so that small-terminal users get a chance to
5630 request at the end so that small-terminal users get a chance to
5625 read the startup info.
5631 read the startup info.
5626
5632
5627 2002-01-23 Fernando Perez <fperez@colorado.edu>
5633 2002-01-23 Fernando Perez <fperez@colorado.edu>
5628
5634
5629 * IPython/iplib.py (CachedOutput.update): Changed output memory
5635 * IPython/iplib.py (CachedOutput.update): Changed output memory
5630 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5636 variable names from _o,_oo,_ooo,_o<n> to simply _,__,___,_<n>. For
5631 input history we still use _i. Did this b/c these variable are
5637 input history we still use _i. Did this b/c these variable are
5632 very commonly used in interactive work, so the less we need to
5638 very commonly used in interactive work, so the less we need to
5633 type the better off we are.
5639 type the better off we are.
5634 (Magic.magic_prun): updated @prun to better handle the namespaces
5640 (Magic.magic_prun): updated @prun to better handle the namespaces
5635 the file will run in, including a fix for __name__ not being set
5641 the file will run in, including a fix for __name__ not being set
5636 before.
5642 before.
5637
5643
5638 2002-01-20 Fernando Perez <fperez@colorado.edu>
5644 2002-01-20 Fernando Perez <fperez@colorado.edu>
5639
5645
5640 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5646 * IPython/ultraTB.py (VerboseTB.linereader): Fixed printing of
5641 extra garbage for Python 2.2. Need to look more carefully into
5647 extra garbage for Python 2.2. Need to look more carefully into
5642 this later.
5648 this later.
5643
5649
5644 2002-01-19 Fernando Perez <fperez@colorado.edu>
5650 2002-01-19 Fernando Perez <fperez@colorado.edu>
5645
5651
5646 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5652 * IPython/iplib.py (InteractiveShell.showtraceback): fixed to
5647 display SyntaxError exceptions properly formatted when they occur
5653 display SyntaxError exceptions properly formatted when they occur
5648 (they can be triggered by imported code).
5654 (they can be triggered by imported code).
5649
5655
5650 2002-01-18 Fernando Perez <fperez@colorado.edu>
5656 2002-01-18 Fernando Perez <fperez@colorado.edu>
5651
5657
5652 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5658 * IPython/iplib.py (InteractiveShell.safe_execfile): now
5653 SyntaxError exceptions are reported nicely formatted, instead of
5659 SyntaxError exceptions are reported nicely formatted, instead of
5654 spitting out only offset information as before.
5660 spitting out only offset information as before.
5655 (Magic.magic_prun): Added the @prun function for executing
5661 (Magic.magic_prun): Added the @prun function for executing
5656 programs with command line args inside IPython.
5662 programs with command line args inside IPython.
5657
5663
5658 2002-01-16 Fernando Perez <fperez@colorado.edu>
5664 2002-01-16 Fernando Perez <fperez@colorado.edu>
5659
5665
5660 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5666 * IPython/iplib.py (Magic.magic_hist): Changed @hist and @dhist
5661 to *not* include the last item given in a range. This brings their
5667 to *not* include the last item given in a range. This brings their
5662 behavior in line with Python's slicing:
5668 behavior in line with Python's slicing:
5663 a[n1:n2] -> a[n1]...a[n2-1]
5669 a[n1:n2] -> a[n1]...a[n2-1]
5664 It may be a bit less convenient, but I prefer to stick to Python's
5670 It may be a bit less convenient, but I prefer to stick to Python's
5665 conventions *everywhere*, so users never have to wonder.
5671 conventions *everywhere*, so users never have to wonder.
5666 (Magic.magic_macro): Added @macro function to ease the creation of
5672 (Magic.magic_macro): Added @macro function to ease the creation of
5667 macros.
5673 macros.
5668
5674
5669 2002-01-05 Fernando Perez <fperez@colorado.edu>
5675 2002-01-05 Fernando Perez <fperez@colorado.edu>
5670
5676
5671 * Released 0.2.4.
5677 * Released 0.2.4.
5672
5678
5673 * IPython/iplib.py (Magic.magic_pdef):
5679 * IPython/iplib.py (Magic.magic_pdef):
5674 (InteractiveShell.safe_execfile): report magic lines and error
5680 (InteractiveShell.safe_execfile): report magic lines and error
5675 lines without line numbers so one can easily copy/paste them for
5681 lines without line numbers so one can easily copy/paste them for
5676 re-execution.
5682 re-execution.
5677
5683
5678 * Updated manual with recent changes.
5684 * Updated manual with recent changes.
5679
5685
5680 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5686 * IPython/iplib.py (Magic.magic_oinfo): added constructor
5681 docstring printing when class? is called. Very handy for knowing
5687 docstring printing when class? is called. Very handy for knowing
5682 how to create class instances (as long as __init__ is well
5688 how to create class instances (as long as __init__ is well
5683 documented, of course :)
5689 documented, of course :)
5684 (Magic.magic_doc): print both class and constructor docstrings.
5690 (Magic.magic_doc): print both class and constructor docstrings.
5685 (Magic.magic_pdef): give constructor info if passed a class and
5691 (Magic.magic_pdef): give constructor info if passed a class and
5686 __call__ info for callable object instances.
5692 __call__ info for callable object instances.
5687
5693
5688 2002-01-04 Fernando Perez <fperez@colorado.edu>
5694 2002-01-04 Fernando Perez <fperez@colorado.edu>
5689
5695
5690 * Made deep_reload() off by default. It doesn't always work
5696 * Made deep_reload() off by default. It doesn't always work
5691 exactly as intended, so it's probably safer to have it off. It's
5697 exactly as intended, so it's probably safer to have it off. It's
5692 still available as dreload() anyway, so nothing is lost.
5698 still available as dreload() anyway, so nothing is lost.
5693
5699
5694 2002-01-02 Fernando Perez <fperez@colorado.edu>
5700 2002-01-02 Fernando Perez <fperez@colorado.edu>
5695
5701
5696 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5702 * Released 0.2.3 (contacted R.Singh at CU about biopython course,
5697 so I wanted an updated release).
5703 so I wanted an updated release).
5698
5704
5699 2001-12-27 Fernando Perez <fperez@colorado.edu>
5705 2001-12-27 Fernando Perez <fperez@colorado.edu>
5700
5706
5701 * IPython/iplib.py (InteractiveShell.interact): Added the original
5707 * IPython/iplib.py (InteractiveShell.interact): Added the original
5702 code from 'code.py' for this module in order to change the
5708 code from 'code.py' for this module in order to change the
5703 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5709 handling of a KeyboardInterrupt. This was necessary b/c otherwise
5704 the history cache would break when the user hit Ctrl-C, and
5710 the history cache would break when the user hit Ctrl-C, and
5705 interact() offers no way to add any hooks to it.
5711 interact() offers no way to add any hooks to it.
5706
5712
5707 2001-12-23 Fernando Perez <fperez@colorado.edu>
5713 2001-12-23 Fernando Perez <fperez@colorado.edu>
5708
5714
5709 * setup.py: added check for 'MANIFEST' before trying to remove
5715 * setup.py: added check for 'MANIFEST' before trying to remove
5710 it. Thanks to Sean Reifschneider.
5716 it. Thanks to Sean Reifschneider.
5711
5717
5712 2001-12-22 Fernando Perez <fperez@colorado.edu>
5718 2001-12-22 Fernando Perez <fperez@colorado.edu>
5713
5719
5714 * Released 0.2.2.
5720 * Released 0.2.2.
5715
5721
5716 * Finished (reasonably) writing the manual. Later will add the
5722 * Finished (reasonably) writing the manual. Later will add the
5717 python-standard navigation stylesheets, but for the time being
5723 python-standard navigation stylesheets, but for the time being
5718 it's fairly complete. Distribution will include html and pdf
5724 it's fairly complete. Distribution will include html and pdf
5719 versions.
5725 versions.
5720
5726
5721 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5727 * Bugfix: '.' wasn't being added to sys.path. Thanks to Prabhu
5722 (MayaVi author).
5728 (MayaVi author).
5723
5729
5724 2001-12-21 Fernando Perez <fperez@colorado.edu>
5730 2001-12-21 Fernando Perez <fperez@colorado.edu>
5725
5731
5726 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5732 * Released 0.2.1. Barring any nasty bugs, this is it as far as a
5727 good public release, I think (with the manual and the distutils
5733 good public release, I think (with the manual and the distutils
5728 installer). The manual can use some work, but that can go
5734 installer). The manual can use some work, but that can go
5729 slowly. Otherwise I think it's quite nice for end users. Next
5735 slowly. Otherwise I think it's quite nice for end users. Next
5730 summer, rewrite the guts of it...
5736 summer, rewrite the guts of it...
5731
5737
5732 * Changed format of ipythonrc files to use whitespace as the
5738 * Changed format of ipythonrc files to use whitespace as the
5733 separator instead of an explicit '='. Cleaner.
5739 separator instead of an explicit '='. Cleaner.
5734
5740
5735 2001-12-20 Fernando Perez <fperez@colorado.edu>
5741 2001-12-20 Fernando Perez <fperez@colorado.edu>
5736
5742
5737 * Started a manual in LyX. For now it's just a quick merge of the
5743 * Started a manual in LyX. For now it's just a quick merge of the
5738 various internal docstrings and READMEs. Later it may grow into a
5744 various internal docstrings and READMEs. Later it may grow into a
5739 nice, full-blown manual.
5745 nice, full-blown manual.
5740
5746
5741 * Set up a distutils based installer. Installation should now be
5747 * Set up a distutils based installer. Installation should now be
5742 trivially simple for end-users.
5748 trivially simple for end-users.
5743
5749
5744 2001-12-11 Fernando Perez <fperez@colorado.edu>
5750 2001-12-11 Fernando Perez <fperez@colorado.edu>
5745
5751
5746 * Released 0.2.0. First public release, announced it at
5752 * Released 0.2.0. First public release, announced it at
5747 comp.lang.python. From now on, just bugfixes...
5753 comp.lang.python. From now on, just bugfixes...
5748
5754
5749 * Went through all the files, set copyright/license notices and
5755 * Went through all the files, set copyright/license notices and
5750 cleaned up things. Ready for release.
5756 cleaned up things. Ready for release.
5751
5757
5752 2001-12-10 Fernando Perez <fperez@colorado.edu>
5758 2001-12-10 Fernando Perez <fperez@colorado.edu>
5753
5759
5754 * Changed the first-time installer not to use tarfiles. It's more
5760 * Changed the first-time installer not to use tarfiles. It's more
5755 robust now and less unix-dependent. Also makes it easier for
5761 robust now and less unix-dependent. Also makes it easier for
5756 people to later upgrade versions.
5762 people to later upgrade versions.
5757
5763
5758 * Changed @exit to @abort to reflect the fact that it's pretty
5764 * Changed @exit to @abort to reflect the fact that it's pretty
5759 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5765 brutal (a sys.exit()). The difference between @abort and Ctrl-D
5760 becomes significant only when IPyhton is embedded: in that case,
5766 becomes significant only when IPyhton is embedded: in that case,
5761 C-D closes IPython only, but @abort kills the enclosing program
5767 C-D closes IPython only, but @abort kills the enclosing program
5762 too (unless it had called IPython inside a try catching
5768 too (unless it had called IPython inside a try catching
5763 SystemExit).
5769 SystemExit).
5764
5770
5765 * Created Shell module which exposes the actuall IPython Shell
5771 * Created Shell module which exposes the actuall IPython Shell
5766 classes, currently the normal and the embeddable one. This at
5772 classes, currently the normal and the embeddable one. This at
5767 least offers a stable interface we won't need to change when
5773 least offers a stable interface we won't need to change when
5768 (later) the internals are rewritten. That rewrite will be confined
5774 (later) the internals are rewritten. That rewrite will be confined
5769 to iplib and ipmaker, but the Shell interface should remain as is.
5775 to iplib and ipmaker, but the Shell interface should remain as is.
5770
5776
5771 * Added embed module which offers an embeddable IPShell object,
5777 * Added embed module which offers an embeddable IPShell object,
5772 useful to fire up IPython *inside* a running program. Great for
5778 useful to fire up IPython *inside* a running program. Great for
5773 debugging or dynamical data analysis.
5779 debugging or dynamical data analysis.
5774
5780
5775 2001-12-08 Fernando Perez <fperez@colorado.edu>
5781 2001-12-08 Fernando Perez <fperez@colorado.edu>
5776
5782
5777 * Fixed small bug preventing seeing info from methods of defined
5783 * Fixed small bug preventing seeing info from methods of defined
5778 objects (incorrect namespace in _ofind()).
5784 objects (incorrect namespace in _ofind()).
5779
5785
5780 * Documentation cleanup. Moved the main usage docstrings to a
5786 * Documentation cleanup. Moved the main usage docstrings to a
5781 separate file, usage.py (cleaner to maintain, and hopefully in the
5787 separate file, usage.py (cleaner to maintain, and hopefully in the
5782 future some perlpod-like way of producing interactive, man and
5788 future some perlpod-like way of producing interactive, man and
5783 html docs out of it will be found).
5789 html docs out of it will be found).
5784
5790
5785 * Added @profile to see your profile at any time.
5791 * Added @profile to see your profile at any time.
5786
5792
5787 * Added @p as an alias for 'print'. It's especially convenient if
5793 * Added @p as an alias for 'print'. It's especially convenient if
5788 using automagic ('p x' prints x).
5794 using automagic ('p x' prints x).
5789
5795
5790 * Small cleanups and fixes after a pychecker run.
5796 * Small cleanups and fixes after a pychecker run.
5791
5797
5792 * Changed the @cd command to handle @cd - and @cd -<n> for
5798 * Changed the @cd command to handle @cd - and @cd -<n> for
5793 visiting any directory in _dh.
5799 visiting any directory in _dh.
5794
5800
5795 * Introduced _dh, a history of visited directories. @dhist prints
5801 * Introduced _dh, a history of visited directories. @dhist prints
5796 it out with numbers.
5802 it out with numbers.
5797
5803
5798 2001-12-07 Fernando Perez <fperez@colorado.edu>
5804 2001-12-07 Fernando Perez <fperez@colorado.edu>
5799
5805
5800 * Released 0.1.22
5806 * Released 0.1.22
5801
5807
5802 * Made initialization a bit more robust against invalid color
5808 * Made initialization a bit more robust against invalid color
5803 options in user input (exit, not traceback-crash).
5809 options in user input (exit, not traceback-crash).
5804
5810
5805 * Changed the bug crash reporter to write the report only in the
5811 * Changed the bug crash reporter to write the report only in the
5806 user's .ipython directory. That way IPython won't litter people's
5812 user's .ipython directory. That way IPython won't litter people's
5807 hard disks with crash files all over the place. Also print on
5813 hard disks with crash files all over the place. Also print on
5808 screen the necessary mail command.
5814 screen the necessary mail command.
5809
5815
5810 * With the new ultraTB, implemented LightBG color scheme for light
5816 * With the new ultraTB, implemented LightBG color scheme for light
5811 background terminals. A lot of people like white backgrounds, so I
5817 background terminals. A lot of people like white backgrounds, so I
5812 guess we should at least give them something readable.
5818 guess we should at least give them something readable.
5813
5819
5814 2001-12-06 Fernando Perez <fperez@colorado.edu>
5820 2001-12-06 Fernando Perez <fperez@colorado.edu>
5815
5821
5816 * Modified the structure of ultraTB. Now there's a proper class
5822 * Modified the structure of ultraTB. Now there's a proper class
5817 for tables of color schemes which allow adding schemes easily and
5823 for tables of color schemes which allow adding schemes easily and
5818 switching the active scheme without creating a new instance every
5824 switching the active scheme without creating a new instance every
5819 time (which was ridiculous). The syntax for creating new schemes
5825 time (which was ridiculous). The syntax for creating new schemes
5820 is also cleaner. I think ultraTB is finally done, with a clean
5826 is also cleaner. I think ultraTB is finally done, with a clean
5821 class structure. Names are also much cleaner (now there's proper
5827 class structure. Names are also much cleaner (now there's proper
5822 color tables, no need for every variable to also have 'color' in
5828 color tables, no need for every variable to also have 'color' in
5823 its name).
5829 its name).
5824
5830
5825 * Broke down genutils into separate files. Now genutils only
5831 * Broke down genutils into separate files. Now genutils only
5826 contains utility functions, and classes have been moved to their
5832 contains utility functions, and classes have been moved to their
5827 own files (they had enough independent functionality to warrant
5833 own files (they had enough independent functionality to warrant
5828 it): ConfigLoader, OutputTrap, Struct.
5834 it): ConfigLoader, OutputTrap, Struct.
5829
5835
5830 2001-12-05 Fernando Perez <fperez@colorado.edu>
5836 2001-12-05 Fernando Perez <fperez@colorado.edu>
5831
5837
5832 * IPython turns 21! Released version 0.1.21, as a candidate for
5838 * IPython turns 21! Released version 0.1.21, as a candidate for
5833 public consumption. If all goes well, release in a few days.
5839 public consumption. If all goes well, release in a few days.
5834
5840
5835 * Fixed path bug (files in Extensions/ directory wouldn't be found
5841 * Fixed path bug (files in Extensions/ directory wouldn't be found
5836 unless IPython/ was explicitly in sys.path).
5842 unless IPython/ was explicitly in sys.path).
5837
5843
5838 * Extended the FlexCompleter class as MagicCompleter to allow
5844 * Extended the FlexCompleter class as MagicCompleter to allow
5839 completion of @-starting lines.
5845 completion of @-starting lines.
5840
5846
5841 * Created __release__.py file as a central repository for release
5847 * Created __release__.py file as a central repository for release
5842 info that other files can read from.
5848 info that other files can read from.
5843
5849
5844 * Fixed small bug in logging: when logging was turned on in
5850 * Fixed small bug in logging: when logging was turned on in
5845 mid-session, old lines with special meanings (!@?) were being
5851 mid-session, old lines with special meanings (!@?) were being
5846 logged without the prepended comment, which is necessary since
5852 logged without the prepended comment, which is necessary since
5847 they are not truly valid python syntax. This should make session
5853 they are not truly valid python syntax. This should make session
5848 restores produce less errors.
5854 restores produce less errors.
5849
5855
5850 * The namespace cleanup forced me to make a FlexCompleter class
5856 * The namespace cleanup forced me to make a FlexCompleter class
5851 which is nothing but a ripoff of rlcompleter, but with selectable
5857 which is nothing but a ripoff of rlcompleter, but with selectable
5852 namespace (rlcompleter only works in __main__.__dict__). I'll try
5858 namespace (rlcompleter only works in __main__.__dict__). I'll try
5853 to submit a note to the authors to see if this change can be
5859 to submit a note to the authors to see if this change can be
5854 incorporated in future rlcompleter releases (Dec.6: done)
5860 incorporated in future rlcompleter releases (Dec.6: done)
5855
5861
5856 * More fixes to namespace handling. It was a mess! Now all
5862 * More fixes to namespace handling. It was a mess! Now all
5857 explicit references to __main__.__dict__ are gone (except when
5863 explicit references to __main__.__dict__ are gone (except when
5858 really needed) and everything is handled through the namespace
5864 really needed) and everything is handled through the namespace
5859 dicts in the IPython instance. We seem to be getting somewhere
5865 dicts in the IPython instance. We seem to be getting somewhere
5860 with this, finally...
5866 with this, finally...
5861
5867
5862 * Small documentation updates.
5868 * Small documentation updates.
5863
5869
5864 * Created the Extensions directory under IPython (with an
5870 * Created the Extensions directory under IPython (with an
5865 __init__.py). Put the PhysicalQ stuff there. This directory should
5871 __init__.py). Put the PhysicalQ stuff there. This directory should
5866 be used for all special-purpose extensions.
5872 be used for all special-purpose extensions.
5867
5873
5868 * File renaming:
5874 * File renaming:
5869 ipythonlib --> ipmaker
5875 ipythonlib --> ipmaker
5870 ipplib --> iplib
5876 ipplib --> iplib
5871 This makes a bit more sense in terms of what these files actually do.
5877 This makes a bit more sense in terms of what these files actually do.
5872
5878
5873 * Moved all the classes and functions in ipythonlib to ipplib, so
5879 * Moved all the classes and functions in ipythonlib to ipplib, so
5874 now ipythonlib only has make_IPython(). This will ease up its
5880 now ipythonlib only has make_IPython(). This will ease up its
5875 splitting in smaller functional chunks later.
5881 splitting in smaller functional chunks later.
5876
5882
5877 * Cleaned up (done, I think) output of @whos. Better column
5883 * Cleaned up (done, I think) output of @whos. Better column
5878 formatting, and now shows str(var) for as much as it can, which is
5884 formatting, and now shows str(var) for as much as it can, which is
5879 typically what one gets with a 'print var'.
5885 typically what one gets with a 'print var'.
5880
5886
5881 2001-12-04 Fernando Perez <fperez@colorado.edu>
5887 2001-12-04 Fernando Perez <fperez@colorado.edu>
5882
5888
5883 * Fixed namespace problems. Now builtin/IPyhton/user names get
5889 * Fixed namespace problems. Now builtin/IPyhton/user names get
5884 properly reported in their namespace. Internal namespace handling
5890 properly reported in their namespace. Internal namespace handling
5885 is finally getting decent (not perfect yet, but much better than
5891 is finally getting decent (not perfect yet, but much better than
5886 the ad-hoc mess we had).
5892 the ad-hoc mess we had).
5887
5893
5888 * Removed -exit option. If people just want to run a python
5894 * Removed -exit option. If people just want to run a python
5889 script, that's what the normal interpreter is for. Less
5895 script, that's what the normal interpreter is for. Less
5890 unnecessary options, less chances for bugs.
5896 unnecessary options, less chances for bugs.
5891
5897
5892 * Added a crash handler which generates a complete post-mortem if
5898 * Added a crash handler which generates a complete post-mortem if
5893 IPython crashes. This will help a lot in tracking bugs down the
5899 IPython crashes. This will help a lot in tracking bugs down the
5894 road.
5900 road.
5895
5901
5896 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5902 * Fixed nasty bug in auto-evaluation part of prefilter(). Names
5897 which were boud to functions being reassigned would bypass the
5903 which were boud to functions being reassigned would bypass the
5898 logger, breaking the sync of _il with the prompt counter. This
5904 logger, breaking the sync of _il with the prompt counter. This
5899 would then crash IPython later when a new line was logged.
5905 would then crash IPython later when a new line was logged.
5900
5906
5901 2001-12-02 Fernando Perez <fperez@colorado.edu>
5907 2001-12-02 Fernando Perez <fperez@colorado.edu>
5902
5908
5903 * Made IPython a package. This means people don't have to clutter
5909 * Made IPython a package. This means people don't have to clutter
5904 their sys.path with yet another directory. Changed the INSTALL
5910 their sys.path with yet another directory. Changed the INSTALL
5905 file accordingly.
5911 file accordingly.
5906
5912
5907 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5913 * Cleaned up the output of @who_ls, @who and @whos. @who_ls now
5908 sorts its output (so @who shows it sorted) and @whos formats the
5914 sorts its output (so @who shows it sorted) and @whos formats the
5909 table according to the width of the first column. Nicer, easier to
5915 table according to the width of the first column. Nicer, easier to
5910 read. Todo: write a generic table_format() which takes a list of
5916 read. Todo: write a generic table_format() which takes a list of
5911 lists and prints it nicely formatted, with optional row/column
5917 lists and prints it nicely formatted, with optional row/column
5912 separators and proper padding and justification.
5918 separators and proper padding and justification.
5913
5919
5914 * Released 0.1.20
5920 * Released 0.1.20
5915
5921
5916 * Fixed bug in @log which would reverse the inputcache list (a
5922 * Fixed bug in @log which would reverse the inputcache list (a
5917 copy operation was missing).
5923 copy operation was missing).
5918
5924
5919 * Code cleanup. @config was changed to use page(). Better, since
5925 * Code cleanup. @config was changed to use page(). Better, since
5920 its output is always quite long.
5926 its output is always quite long.
5921
5927
5922 * Itpl is back as a dependency. I was having too many problems
5928 * Itpl is back as a dependency. I was having too many problems
5923 getting the parametric aliases to work reliably, and it's just
5929 getting the parametric aliases to work reliably, and it's just
5924 easier to code weird string operations with it than playing %()s
5930 easier to code weird string operations with it than playing %()s
5925 games. It's only ~6k, so I don't think it's too big a deal.
5931 games. It's only ~6k, so I don't think it's too big a deal.
5926
5932
5927 * Found (and fixed) a very nasty bug with history. !lines weren't
5933 * Found (and fixed) a very nasty bug with history. !lines weren't
5928 getting cached, and the out of sync caches would crash
5934 getting cached, and the out of sync caches would crash
5929 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5935 IPython. Fixed it by reorganizing the prefilter/handlers/logger
5930 division of labor a bit better. Bug fixed, cleaner structure.
5936 division of labor a bit better. Bug fixed, cleaner structure.
5931
5937
5932 2001-12-01 Fernando Perez <fperez@colorado.edu>
5938 2001-12-01 Fernando Perez <fperez@colorado.edu>
5933
5939
5934 * Released 0.1.19
5940 * Released 0.1.19
5935
5941
5936 * Added option -n to @hist to prevent line number printing. Much
5942 * Added option -n to @hist to prevent line number printing. Much
5937 easier to copy/paste code this way.
5943 easier to copy/paste code this way.
5938
5944
5939 * Created global _il to hold the input list. Allows easy
5945 * Created global _il to hold the input list. Allows easy
5940 re-execution of blocks of code by slicing it (inspired by Janko's
5946 re-execution of blocks of code by slicing it (inspired by Janko's
5941 comment on 'macros').
5947 comment on 'macros').
5942
5948
5943 * Small fixes and doc updates.
5949 * Small fixes and doc updates.
5944
5950
5945 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5951 * Rewrote @history function (was @h). Renamed it to @hist, @h is
5946 much too fragile with automagic. Handles properly multi-line
5952 much too fragile with automagic. Handles properly multi-line
5947 statements and takes parameters.
5953 statements and takes parameters.
5948
5954
5949 2001-11-30 Fernando Perez <fperez@colorado.edu>
5955 2001-11-30 Fernando Perez <fperez@colorado.edu>
5950
5956
5951 * Version 0.1.18 released.
5957 * Version 0.1.18 released.
5952
5958
5953 * Fixed nasty namespace bug in initial module imports.
5959 * Fixed nasty namespace bug in initial module imports.
5954
5960
5955 * Added copyright/license notes to all code files (except
5961 * Added copyright/license notes to all code files (except
5956 DPyGetOpt). For the time being, LGPL. That could change.
5962 DPyGetOpt). For the time being, LGPL. That could change.
5957
5963
5958 * Rewrote a much nicer README, updated INSTALL, cleaned up
5964 * Rewrote a much nicer README, updated INSTALL, cleaned up
5959 ipythonrc-* samples.
5965 ipythonrc-* samples.
5960
5966
5961 * Overall code/documentation cleanup. Basically ready for
5967 * Overall code/documentation cleanup. Basically ready for
5962 release. Only remaining thing: licence decision (LGPL?).
5968 release. Only remaining thing: licence decision (LGPL?).
5963
5969
5964 * Converted load_config to a class, ConfigLoader. Now recursion
5970 * Converted load_config to a class, ConfigLoader. Now recursion
5965 control is better organized. Doesn't include the same file twice.
5971 control is better organized. Doesn't include the same file twice.
5966
5972
5967 2001-11-29 Fernando Perez <fperez@colorado.edu>
5973 2001-11-29 Fernando Perez <fperez@colorado.edu>
5968
5974
5969 * Got input history working. Changed output history variables from
5975 * Got input history working. Changed output history variables from
5970 _p to _o so that _i is for input and _o for output. Just cleaner
5976 _p to _o so that _i is for input and _o for output. Just cleaner
5971 convention.
5977 convention.
5972
5978
5973 * Implemented parametric aliases. This pretty much allows the
5979 * Implemented parametric aliases. This pretty much allows the
5974 alias system to offer full-blown shell convenience, I think.
5980 alias system to offer full-blown shell convenience, I think.
5975
5981
5976 * Version 0.1.17 released, 0.1.18 opened.
5982 * Version 0.1.17 released, 0.1.18 opened.
5977
5983
5978 * dot_ipython/ipythonrc (alias): added documentation.
5984 * dot_ipython/ipythonrc (alias): added documentation.
5979 (xcolor): Fixed small bug (xcolors -> xcolor)
5985 (xcolor): Fixed small bug (xcolors -> xcolor)
5980
5986
5981 * Changed the alias system. Now alias is a magic command to define
5987 * Changed the alias system. Now alias is a magic command to define
5982 aliases just like the shell. Rationale: the builtin magics should
5988 aliases just like the shell. Rationale: the builtin magics should
5983 be there for things deeply connected to IPython's
5989 be there for things deeply connected to IPython's
5984 architecture. And this is a much lighter system for what I think
5990 architecture. And this is a much lighter system for what I think
5985 is the really important feature: allowing users to define quickly
5991 is the really important feature: allowing users to define quickly
5986 magics that will do shell things for them, so they can customize
5992 magics that will do shell things for them, so they can customize
5987 IPython easily to match their work habits. If someone is really
5993 IPython easily to match their work habits. If someone is really
5988 desperate to have another name for a builtin alias, they can
5994 desperate to have another name for a builtin alias, they can
5989 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5995 always use __IP.magic_newname = __IP.magic_oldname. Hackish but
5990 works.
5996 works.
5991
5997
5992 2001-11-28 Fernando Perez <fperez@colorado.edu>
5998 2001-11-28 Fernando Perez <fperez@colorado.edu>
5993
5999
5994 * Changed @file so that it opens the source file at the proper
6000 * Changed @file so that it opens the source file at the proper
5995 line. Since it uses less, if your EDITOR environment is
6001 line. Since it uses less, if your EDITOR environment is
5996 configured, typing v will immediately open your editor of choice
6002 configured, typing v will immediately open your editor of choice
5997 right at the line where the object is defined. Not as quick as
6003 right at the line where the object is defined. Not as quick as
5998 having a direct @edit command, but for all intents and purposes it
6004 having a direct @edit command, but for all intents and purposes it
5999 works. And I don't have to worry about writing @edit to deal with
6005 works. And I don't have to worry about writing @edit to deal with
6000 all the editors, less does that.
6006 all the editors, less does that.
6001
6007
6002 * Version 0.1.16 released, 0.1.17 opened.
6008 * Version 0.1.16 released, 0.1.17 opened.
6003
6009
6004 * Fixed some nasty bugs in the page/page_dumb combo that could
6010 * Fixed some nasty bugs in the page/page_dumb combo that could
6005 crash IPython.
6011 crash IPython.
6006
6012
6007 2001-11-27 Fernando Perez <fperez@colorado.edu>
6013 2001-11-27 Fernando Perez <fperez@colorado.edu>
6008
6014
6009 * Version 0.1.15 released, 0.1.16 opened.
6015 * Version 0.1.15 released, 0.1.16 opened.
6010
6016
6011 * Finally got ? and ?? to work for undefined things: now it's
6017 * Finally got ? and ?? to work for undefined things: now it's
6012 possible to type {}.get? and get information about the get method
6018 possible to type {}.get? and get information about the get method
6013 of dicts, or os.path? even if only os is defined (so technically
6019 of dicts, or os.path? even if only os is defined (so technically
6014 os.path isn't). Works at any level. For example, after import os,
6020 os.path isn't). Works at any level. For example, after import os,
6015 os?, os.path?, os.path.abspath? all work. This is great, took some
6021 os?, os.path?, os.path.abspath? all work. This is great, took some
6016 work in _ofind.
6022 work in _ofind.
6017
6023
6018 * Fixed more bugs with logging. The sanest way to do it was to add
6024 * Fixed more bugs with logging. The sanest way to do it was to add
6019 to @log a 'mode' parameter. Killed two in one shot (this mode
6025 to @log a 'mode' parameter. Killed two in one shot (this mode
6020 option was a request of Janko's). I think it's finally clean
6026 option was a request of Janko's). I think it's finally clean
6021 (famous last words).
6027 (famous last words).
6022
6028
6023 * Added a page_dumb() pager which does a decent job of paging on
6029 * Added a page_dumb() pager which does a decent job of paging on
6024 screen, if better things (like less) aren't available. One less
6030 screen, if better things (like less) aren't available. One less
6025 unix dependency (someday maybe somebody will port this to
6031 unix dependency (someday maybe somebody will port this to
6026 windows).
6032 windows).
6027
6033
6028 * Fixed problem in magic_log: would lock of logging out if log
6034 * Fixed problem in magic_log: would lock of logging out if log
6029 creation failed (because it would still think it had succeeded).
6035 creation failed (because it would still think it had succeeded).
6030
6036
6031 * Improved the page() function using curses to auto-detect screen
6037 * Improved the page() function using curses to auto-detect screen
6032 size. Now it can make a much better decision on whether to print
6038 size. Now it can make a much better decision on whether to print
6033 or page a string. Option screen_length was modified: a value 0
6039 or page a string. Option screen_length was modified: a value 0
6034 means auto-detect, and that's the default now.
6040 means auto-detect, and that's the default now.
6035
6041
6036 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6042 * Version 0.1.14 released, 0.1.15 opened. I think this is ready to
6037 go out. I'll test it for a few days, then talk to Janko about
6043 go out. I'll test it for a few days, then talk to Janko about
6038 licences and announce it.
6044 licences and announce it.
6039
6045
6040 * Fixed the length of the auto-generated ---> prompt which appears
6046 * Fixed the length of the auto-generated ---> prompt which appears
6041 for auto-parens and auto-quotes. Getting this right isn't trivial,
6047 for auto-parens and auto-quotes. Getting this right isn't trivial,
6042 with all the color escapes, different prompt types and optional
6048 with all the color escapes, different prompt types and optional
6043 separators. But it seems to be working in all the combinations.
6049 separators. But it seems to be working in all the combinations.
6044
6050
6045 2001-11-26 Fernando Perez <fperez@colorado.edu>
6051 2001-11-26 Fernando Perez <fperez@colorado.edu>
6046
6052
6047 * Wrote a regexp filter to get option types from the option names
6053 * Wrote a regexp filter to get option types from the option names
6048 string. This eliminates the need to manually keep two duplicate
6054 string. This eliminates the need to manually keep two duplicate
6049 lists.
6055 lists.
6050
6056
6051 * Removed the unneeded check_option_names. Now options are handled
6057 * Removed the unneeded check_option_names. Now options are handled
6052 in a much saner manner and it's easy to visually check that things
6058 in a much saner manner and it's easy to visually check that things
6053 are ok.
6059 are ok.
6054
6060
6055 * Updated version numbers on all files I modified to carry a
6061 * Updated version numbers on all files I modified to carry a
6056 notice so Janko and Nathan have clear version markers.
6062 notice so Janko and Nathan have clear version markers.
6057
6063
6058 * Updated docstring for ultraTB with my changes. I should send
6064 * Updated docstring for ultraTB with my changes. I should send
6059 this to Nathan.
6065 this to Nathan.
6060
6066
6061 * Lots of small fixes. Ran everything through pychecker again.
6067 * Lots of small fixes. Ran everything through pychecker again.
6062
6068
6063 * Made loading of deep_reload an cmd line option. If it's not too
6069 * Made loading of deep_reload an cmd line option. If it's not too
6064 kosher, now people can just disable it. With -nodeep_reload it's
6070 kosher, now people can just disable it. With -nodeep_reload it's
6065 still available as dreload(), it just won't overwrite reload().
6071 still available as dreload(), it just won't overwrite reload().
6066
6072
6067 * Moved many options to the no| form (-opt and -noopt
6073 * Moved many options to the no| form (-opt and -noopt
6068 accepted). Cleaner.
6074 accepted). Cleaner.
6069
6075
6070 * Changed magic_log so that if called with no parameters, it uses
6076 * Changed magic_log so that if called with no parameters, it uses
6071 'rotate' mode. That way auto-generated logs aren't automatically
6077 'rotate' mode. That way auto-generated logs aren't automatically
6072 over-written. For normal logs, now a backup is made if it exists
6078 over-written. For normal logs, now a backup is made if it exists
6073 (only 1 level of backups). A new 'backup' mode was added to the
6079 (only 1 level of backups). A new 'backup' mode was added to the
6074 Logger class to support this. This was a request by Janko.
6080 Logger class to support this. This was a request by Janko.
6075
6081
6076 * Added @logoff/@logon to stop/restart an active log.
6082 * Added @logoff/@logon to stop/restart an active log.
6077
6083
6078 * Fixed a lot of bugs in log saving/replay. It was pretty
6084 * Fixed a lot of bugs in log saving/replay. It was pretty
6079 broken. Now special lines (!@,/) appear properly in the command
6085 broken. Now special lines (!@,/) appear properly in the command
6080 history after a log replay.
6086 history after a log replay.
6081
6087
6082 * Tried and failed to implement full session saving via pickle. My
6088 * Tried and failed to implement full session saving via pickle. My
6083 idea was to pickle __main__.__dict__, but modules can't be
6089 idea was to pickle __main__.__dict__, but modules can't be
6084 pickled. This would be a better alternative to replaying logs, but
6090 pickled. This would be a better alternative to replaying logs, but
6085 seems quite tricky to get to work. Changed -session to be called
6091 seems quite tricky to get to work. Changed -session to be called
6086 -logplay, which more accurately reflects what it does. And if we
6092 -logplay, which more accurately reflects what it does. And if we
6087 ever get real session saving working, -session is now available.
6093 ever get real session saving working, -session is now available.
6088
6094
6089 * Implemented color schemes for prompts also. As for tracebacks,
6095 * Implemented color schemes for prompts also. As for tracebacks,
6090 currently only NoColor and Linux are supported. But now the
6096 currently only NoColor and Linux are supported. But now the
6091 infrastructure is in place, based on a generic ColorScheme
6097 infrastructure is in place, based on a generic ColorScheme
6092 class. So writing and activating new schemes both for the prompts
6098 class. So writing and activating new schemes both for the prompts
6093 and the tracebacks should be straightforward.
6099 and the tracebacks should be straightforward.
6094
6100
6095 * Version 0.1.13 released, 0.1.14 opened.
6101 * Version 0.1.13 released, 0.1.14 opened.
6096
6102
6097 * Changed handling of options for output cache. Now counter is
6103 * Changed handling of options for output cache. Now counter is
6098 hardwired starting at 1 and one specifies the maximum number of
6104 hardwired starting at 1 and one specifies the maximum number of
6099 entries *in the outcache* (not the max prompt counter). This is
6105 entries *in the outcache* (not the max prompt counter). This is
6100 much better, since many statements won't increase the cache
6106 much better, since many statements won't increase the cache
6101 count. It also eliminated some confusing options, now there's only
6107 count. It also eliminated some confusing options, now there's only
6102 one: cache_size.
6108 one: cache_size.
6103
6109
6104 * Added 'alias' magic function and magic_alias option in the
6110 * Added 'alias' magic function and magic_alias option in the
6105 ipythonrc file. Now the user can easily define whatever names he
6111 ipythonrc file. Now the user can easily define whatever names he
6106 wants for the magic functions without having to play weird
6112 wants for the magic functions without having to play weird
6107 namespace games. This gives IPython a real shell-like feel.
6113 namespace games. This gives IPython a real shell-like feel.
6108
6114
6109 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6115 * Fixed doc/?/?? for magics. Now all work, in all forms (explicit
6110 @ or not).
6116 @ or not).
6111
6117
6112 This was one of the last remaining 'visible' bugs (that I know
6118 This was one of the last remaining 'visible' bugs (that I know
6113 of). I think if I can clean up the session loading so it works
6119 of). I think if I can clean up the session loading so it works
6114 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6120 100% I'll release a 0.2.0 version on c.p.l (talk to Janko first
6115 about licensing).
6121 about licensing).
6116
6122
6117 2001-11-25 Fernando Perez <fperez@colorado.edu>
6123 2001-11-25 Fernando Perez <fperez@colorado.edu>
6118
6124
6119 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6125 * Rewrote somewhat oinfo (?/??). Nicer, now uses page() and
6120 there's a cleaner distinction between what ? and ?? show.
6126 there's a cleaner distinction between what ? and ?? show.
6121
6127
6122 * Added screen_length option. Now the user can define his own
6128 * Added screen_length option. Now the user can define his own
6123 screen size for page() operations.
6129 screen size for page() operations.
6124
6130
6125 * Implemented magic shell-like functions with automatic code
6131 * Implemented magic shell-like functions with automatic code
6126 generation. Now adding another function is just a matter of adding
6132 generation. Now adding another function is just a matter of adding
6127 an entry to a dict, and the function is dynamically generated at
6133 an entry to a dict, and the function is dynamically generated at
6128 run-time. Python has some really cool features!
6134 run-time. Python has some really cool features!
6129
6135
6130 * Renamed many options to cleanup conventions a little. Now all
6136 * Renamed many options to cleanup conventions a little. Now all
6131 are lowercase, and only underscores where needed. Also in the code
6137 are lowercase, and only underscores where needed. Also in the code
6132 option name tables are clearer.
6138 option name tables are clearer.
6133
6139
6134 * Changed prompts a little. Now input is 'In [n]:' instead of
6140 * Changed prompts a little. Now input is 'In [n]:' instead of
6135 'In[n]:='. This allows it the numbers to be aligned with the
6141 'In[n]:='. This allows it the numbers to be aligned with the
6136 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6142 Out[n] numbers, and removes usage of ':=' which doesn't exist in
6137 Python (it was a Mathematica thing). The '...' continuation prompt
6143 Python (it was a Mathematica thing). The '...' continuation prompt
6138 was also changed a little to align better.
6144 was also changed a little to align better.
6139
6145
6140 * Fixed bug when flushing output cache. Not all _p<n> variables
6146 * Fixed bug when flushing output cache. Not all _p<n> variables
6141 exist, so their deletion needs to be wrapped in a try:
6147 exist, so their deletion needs to be wrapped in a try:
6142
6148
6143 * Figured out how to properly use inspect.formatargspec() (it
6149 * Figured out how to properly use inspect.formatargspec() (it
6144 requires the args preceded by *). So I removed all the code from
6150 requires the args preceded by *). So I removed all the code from
6145 _get_pdef in Magic, which was just replicating that.
6151 _get_pdef in Magic, which was just replicating that.
6146
6152
6147 * Added test to prefilter to allow redefining magic function names
6153 * Added test to prefilter to allow redefining magic function names
6148 as variables. This is ok, since the @ form is always available,
6154 as variables. This is ok, since the @ form is always available,
6149 but whe should allow the user to define a variable called 'ls' if
6155 but whe should allow the user to define a variable called 'ls' if
6150 he needs it.
6156 he needs it.
6151
6157
6152 * Moved the ToDo information from README into a separate ToDo.
6158 * Moved the ToDo information from README into a separate ToDo.
6153
6159
6154 * General code cleanup and small bugfixes. I think it's close to a
6160 * General code cleanup and small bugfixes. I think it's close to a
6155 state where it can be released, obviously with a big 'beta'
6161 state where it can be released, obviously with a big 'beta'
6156 warning on it.
6162 warning on it.
6157
6163
6158 * Got the magic function split to work. Now all magics are defined
6164 * Got the magic function split to work. Now all magics are defined
6159 in a separate class. It just organizes things a bit, and now
6165 in a separate class. It just organizes things a bit, and now
6160 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6166 Xemacs behaves nicer (it was choking on InteractiveShell b/c it
6161 was too long).
6167 was too long).
6162
6168
6163 * Changed @clear to @reset to avoid potential confusions with
6169 * Changed @clear to @reset to avoid potential confusions with
6164 the shell command clear. Also renamed @cl to @clear, which does
6170 the shell command clear. Also renamed @cl to @clear, which does
6165 exactly what people expect it to from their shell experience.
6171 exactly what people expect it to from their shell experience.
6166
6172
6167 Added a check to the @reset command (since it's so
6173 Added a check to the @reset command (since it's so
6168 destructive, it's probably a good idea to ask for confirmation).
6174 destructive, it's probably a good idea to ask for confirmation).
6169 But now reset only works for full namespace resetting. Since the
6175 But now reset only works for full namespace resetting. Since the
6170 del keyword is already there for deleting a few specific
6176 del keyword is already there for deleting a few specific
6171 variables, I don't see the point of having a redundant magic
6177 variables, I don't see the point of having a redundant magic
6172 function for the same task.
6178 function for the same task.
6173
6179
6174 2001-11-24 Fernando Perez <fperez@colorado.edu>
6180 2001-11-24 Fernando Perez <fperez@colorado.edu>
6175
6181
6176 * Updated the builtin docs (esp. the ? ones).
6182 * Updated the builtin docs (esp. the ? ones).
6177
6183
6178 * Ran all the code through pychecker. Not terribly impressed with
6184 * Ran all the code through pychecker. Not terribly impressed with
6179 it: lots of spurious warnings and didn't really find anything of
6185 it: lots of spurious warnings and didn't really find anything of
6180 substance (just a few modules being imported and not used).
6186 substance (just a few modules being imported and not used).
6181
6187
6182 * Implemented the new ultraTB functionality into IPython. New
6188 * Implemented the new ultraTB functionality into IPython. New
6183 option: xcolors. This chooses color scheme. xmode now only selects
6189 option: xcolors. This chooses color scheme. xmode now only selects
6184 between Plain and Verbose. Better orthogonality.
6190 between Plain and Verbose. Better orthogonality.
6185
6191
6186 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6192 * Large rewrite of ultraTB. Much cleaner now, with a separation of
6187 mode and color scheme for the exception handlers. Now it's
6193 mode and color scheme for the exception handlers. Now it's
6188 possible to have the verbose traceback with no coloring.
6194 possible to have the verbose traceback with no coloring.
6189
6195
6190 2001-11-23 Fernando Perez <fperez@colorado.edu>
6196 2001-11-23 Fernando Perez <fperez@colorado.edu>
6191
6197
6192 * Version 0.1.12 released, 0.1.13 opened.
6198 * Version 0.1.12 released, 0.1.13 opened.
6193
6199
6194 * Removed option to set auto-quote and auto-paren escapes by
6200 * Removed option to set auto-quote and auto-paren escapes by
6195 user. The chances of breaking valid syntax are just too high. If
6201 user. The chances of breaking valid syntax are just too high. If
6196 someone *really* wants, they can always dig into the code.
6202 someone *really* wants, they can always dig into the code.
6197
6203
6198 * Made prompt separators configurable.
6204 * Made prompt separators configurable.
6199
6205
6200 2001-11-22 Fernando Perez <fperez@colorado.edu>
6206 2001-11-22 Fernando Perez <fperez@colorado.edu>
6201
6207
6202 * Small bugfixes in many places.
6208 * Small bugfixes in many places.
6203
6209
6204 * Removed the MyCompleter class from ipplib. It seemed redundant
6210 * Removed the MyCompleter class from ipplib. It seemed redundant
6205 with the C-p,C-n history search functionality. Less code to
6211 with the C-p,C-n history search functionality. Less code to
6206 maintain.
6212 maintain.
6207
6213
6208 * Moved all the original ipython.py code into ipythonlib.py. Right
6214 * Moved all the original ipython.py code into ipythonlib.py. Right
6209 now it's just one big dump into a function called make_IPython, so
6215 now it's just one big dump into a function called make_IPython, so
6210 no real modularity has been gained. But at least it makes the
6216 no real modularity has been gained. But at least it makes the
6211 wrapper script tiny, and since ipythonlib is a module, it gets
6217 wrapper script tiny, and since ipythonlib is a module, it gets
6212 compiled and startup is much faster.
6218 compiled and startup is much faster.
6213
6219
6214 This is a reasobably 'deep' change, so we should test it for a
6220 This is a reasobably 'deep' change, so we should test it for a
6215 while without messing too much more with the code.
6221 while without messing too much more with the code.
6216
6222
6217 2001-11-21 Fernando Perez <fperez@colorado.edu>
6223 2001-11-21 Fernando Perez <fperez@colorado.edu>
6218
6224
6219 * Version 0.1.11 released, 0.1.12 opened for further work.
6225 * Version 0.1.11 released, 0.1.12 opened for further work.
6220
6226
6221 * Removed dependency on Itpl. It was only needed in one place. It
6227 * Removed dependency on Itpl. It was only needed in one place. It
6222 would be nice if this became part of python, though. It makes life
6228 would be nice if this became part of python, though. It makes life
6223 *a lot* easier in some cases.
6229 *a lot* easier in some cases.
6224
6230
6225 * Simplified the prefilter code a bit. Now all handlers are
6231 * Simplified the prefilter code a bit. Now all handlers are
6226 expected to explicitly return a value (at least a blank string).
6232 expected to explicitly return a value (at least a blank string).
6227
6233
6228 * Heavy edits in ipplib. Removed the help system altogether. Now
6234 * Heavy edits in ipplib. Removed the help system altogether. Now
6229 obj?/?? is used for inspecting objects, a magic @doc prints
6235 obj?/?? is used for inspecting objects, a magic @doc prints
6230 docstrings, and full-blown Python help is accessed via the 'help'
6236 docstrings, and full-blown Python help is accessed via the 'help'
6231 keyword. This cleans up a lot of code (less to maintain) and does
6237 keyword. This cleans up a lot of code (less to maintain) and does
6232 the job. Since 'help' is now a standard Python component, might as
6238 the job. Since 'help' is now a standard Python component, might as
6233 well use it and remove duplicate functionality.
6239 well use it and remove duplicate functionality.
6234
6240
6235 Also removed the option to use ipplib as a standalone program. By
6241 Also removed the option to use ipplib as a standalone program. By
6236 now it's too dependent on other parts of IPython to function alone.
6242 now it's too dependent on other parts of IPython to function alone.
6237
6243
6238 * Fixed bug in genutils.pager. It would crash if the pager was
6244 * Fixed bug in genutils.pager. It would crash if the pager was
6239 exited immediately after opening (broken pipe).
6245 exited immediately after opening (broken pipe).
6240
6246
6241 * Trimmed down the VerboseTB reporting a little. The header is
6247 * Trimmed down the VerboseTB reporting a little. The header is
6242 much shorter now and the repeated exception arguments at the end
6248 much shorter now and the repeated exception arguments at the end
6243 have been removed. For interactive use the old header seemed a bit
6249 have been removed. For interactive use the old header seemed a bit
6244 excessive.
6250 excessive.
6245
6251
6246 * Fixed small bug in output of @whos for variables with multi-word
6252 * Fixed small bug in output of @whos for variables with multi-word
6247 types (only first word was displayed).
6253 types (only first word was displayed).
6248
6254
6249 2001-11-17 Fernando Perez <fperez@colorado.edu>
6255 2001-11-17 Fernando Perez <fperez@colorado.edu>
6250
6256
6251 * Version 0.1.10 released, 0.1.11 opened for further work.
6257 * Version 0.1.10 released, 0.1.11 opened for further work.
6252
6258
6253 * Modified dirs and friends. dirs now *returns* the stack (not
6259 * Modified dirs and friends. dirs now *returns* the stack (not
6254 prints), so one can manipulate it as a variable. Convenient to
6260 prints), so one can manipulate it as a variable. Convenient to
6255 travel along many directories.
6261 travel along many directories.
6256
6262
6257 * Fixed bug in magic_pdef: would only work with functions with
6263 * Fixed bug in magic_pdef: would only work with functions with
6258 arguments with default values.
6264 arguments with default values.
6259
6265
6260 2001-11-14 Fernando Perez <fperez@colorado.edu>
6266 2001-11-14 Fernando Perez <fperez@colorado.edu>
6261
6267
6262 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6268 * Added the PhysicsInput stuff to dot_ipython so it ships as an
6263 example with IPython. Various other minor fixes and cleanups.
6269 example with IPython. Various other minor fixes and cleanups.
6264
6270
6265 * Version 0.1.9 released, 0.1.10 opened for further work.
6271 * Version 0.1.9 released, 0.1.10 opened for further work.
6266
6272
6267 * Added sys.path to the list of directories searched in the
6273 * Added sys.path to the list of directories searched in the
6268 execfile= option. It used to be the current directory and the
6274 execfile= option. It used to be the current directory and the
6269 user's IPYTHONDIR only.
6275 user's IPYTHONDIR only.
6270
6276
6271 2001-11-13 Fernando Perez <fperez@colorado.edu>
6277 2001-11-13 Fernando Perez <fperez@colorado.edu>
6272
6278
6273 * Reinstated the raw_input/prefilter separation that Janko had
6279 * Reinstated the raw_input/prefilter separation that Janko had
6274 initially. This gives a more convenient setup for extending the
6280 initially. This gives a more convenient setup for extending the
6275 pre-processor from the outside: raw_input always gets a string,
6281 pre-processor from the outside: raw_input always gets a string,
6276 and prefilter has to process it. We can then redefine prefilter
6282 and prefilter has to process it. We can then redefine prefilter
6277 from the outside and implement extensions for special
6283 from the outside and implement extensions for special
6278 purposes.
6284 purposes.
6279
6285
6280 Today I got one for inputting PhysicalQuantity objects
6286 Today I got one for inputting PhysicalQuantity objects
6281 (from Scientific) without needing any function calls at
6287 (from Scientific) without needing any function calls at
6282 all. Extremely convenient, and it's all done as a user-level
6288 all. Extremely convenient, and it's all done as a user-level
6283 extension (no IPython code was touched). Now instead of:
6289 extension (no IPython code was touched). Now instead of:
6284 a = PhysicalQuantity(4.2,'m/s**2')
6290 a = PhysicalQuantity(4.2,'m/s**2')
6285 one can simply say
6291 one can simply say
6286 a = 4.2 m/s**2
6292 a = 4.2 m/s**2
6287 or even
6293 or even
6288 a = 4.2 m/s^2
6294 a = 4.2 m/s^2
6289
6295
6290 I use this, but it's also a proof of concept: IPython really is
6296 I use this, but it's also a proof of concept: IPython really is
6291 fully user-extensible, even at the level of the parsing of the
6297 fully user-extensible, even at the level of the parsing of the
6292 command line. It's not trivial, but it's perfectly doable.
6298 command line. It's not trivial, but it's perfectly doable.
6293
6299
6294 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6300 * Added 'add_flip' method to inclusion conflict resolver. Fixes
6295 the problem of modules being loaded in the inverse order in which
6301 the problem of modules being loaded in the inverse order in which
6296 they were defined in
6302 they were defined in
6297
6303
6298 * Version 0.1.8 released, 0.1.9 opened for further work.
6304 * Version 0.1.8 released, 0.1.9 opened for further work.
6299
6305
6300 * Added magics pdef, source and file. They respectively show the
6306 * Added magics pdef, source and file. They respectively show the
6301 definition line ('prototype' in C), source code and full python
6307 definition line ('prototype' in C), source code and full python
6302 file for any callable object. The object inspector oinfo uses
6308 file for any callable object. The object inspector oinfo uses
6303 these to show the same information.
6309 these to show the same information.
6304
6310
6305 * Version 0.1.7 released, 0.1.8 opened for further work.
6311 * Version 0.1.7 released, 0.1.8 opened for further work.
6306
6312
6307 * Separated all the magic functions into a class called Magic. The
6313 * Separated all the magic functions into a class called Magic. The
6308 InteractiveShell class was becoming too big for Xemacs to handle
6314 InteractiveShell class was becoming too big for Xemacs to handle
6309 (de-indenting a line would lock it up for 10 seconds while it
6315 (de-indenting a line would lock it up for 10 seconds while it
6310 backtracked on the whole class!)
6316 backtracked on the whole class!)
6311
6317
6312 FIXME: didn't work. It can be done, but right now namespaces are
6318 FIXME: didn't work. It can be done, but right now namespaces are
6313 all messed up. Do it later (reverted it for now, so at least
6319 all messed up. Do it later (reverted it for now, so at least
6314 everything works as before).
6320 everything works as before).
6315
6321
6316 * Got the object introspection system (magic_oinfo) working! I
6322 * Got the object introspection system (magic_oinfo) working! I
6317 think this is pretty much ready for release to Janko, so he can
6323 think this is pretty much ready for release to Janko, so he can
6318 test it for a while and then announce it. Pretty much 100% of what
6324 test it for a while and then announce it. Pretty much 100% of what
6319 I wanted for the 'phase 1' release is ready. Happy, tired.
6325 I wanted for the 'phase 1' release is ready. Happy, tired.
6320
6326
6321 2001-11-12 Fernando Perez <fperez@colorado.edu>
6327 2001-11-12 Fernando Perez <fperez@colorado.edu>
6322
6328
6323 * Version 0.1.6 released, 0.1.7 opened for further work.
6329 * Version 0.1.6 released, 0.1.7 opened for further work.
6324
6330
6325 * Fixed bug in printing: it used to test for truth before
6331 * Fixed bug in printing: it used to test for truth before
6326 printing, so 0 wouldn't print. Now checks for None.
6332 printing, so 0 wouldn't print. Now checks for None.
6327
6333
6328 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6334 * Fixed bug where auto-execs increase the prompt counter by 2 (b/c
6329 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6335 they have to call len(str(sys.ps1)) ). But the fix is ugly, it
6330 reaches by hand into the outputcache. Think of a better way to do
6336 reaches by hand into the outputcache. Think of a better way to do
6331 this later.
6337 this later.
6332
6338
6333 * Various small fixes thanks to Nathan's comments.
6339 * Various small fixes thanks to Nathan's comments.
6334
6340
6335 * Changed magic_pprint to magic_Pprint. This way it doesn't
6341 * Changed magic_pprint to magic_Pprint. This way it doesn't
6336 collide with pprint() and the name is consistent with the command
6342 collide with pprint() and the name is consistent with the command
6337 line option.
6343 line option.
6338
6344
6339 * Changed prompt counter behavior to be fully like
6345 * Changed prompt counter behavior to be fully like
6340 Mathematica's. That is, even input that doesn't return a result
6346 Mathematica's. That is, even input that doesn't return a result
6341 raises the prompt counter. The old behavior was kind of confusing
6347 raises the prompt counter. The old behavior was kind of confusing
6342 (getting the same prompt number several times if the operation
6348 (getting the same prompt number several times if the operation
6343 didn't return a result).
6349 didn't return a result).
6344
6350
6345 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6351 * Fixed Nathan's last name in a couple of places (Gray, not Graham).
6346
6352
6347 * Fixed -Classic mode (wasn't working anymore).
6353 * Fixed -Classic mode (wasn't working anymore).
6348
6354
6349 * Added colored prompts using Nathan's new code. Colors are
6355 * Added colored prompts using Nathan's new code. Colors are
6350 currently hardwired, they can be user-configurable. For
6356 currently hardwired, they can be user-configurable. For
6351 developers, they can be chosen in file ipythonlib.py, at the
6357 developers, they can be chosen in file ipythonlib.py, at the
6352 beginning of the CachedOutput class def.
6358 beginning of the CachedOutput class def.
6353
6359
6354 2001-11-11 Fernando Perez <fperez@colorado.edu>
6360 2001-11-11 Fernando Perez <fperez@colorado.edu>
6355
6361
6356 * Version 0.1.5 released, 0.1.6 opened for further work.
6362 * Version 0.1.5 released, 0.1.6 opened for further work.
6357
6363
6358 * Changed magic_env to *return* the environment as a dict (not to
6364 * Changed magic_env to *return* the environment as a dict (not to
6359 print it). This way it prints, but it can also be processed.
6365 print it). This way it prints, but it can also be processed.
6360
6366
6361 * Added Verbose exception reporting to interactive
6367 * Added Verbose exception reporting to interactive
6362 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6368 exceptions. Very nice, now even 1/0 at the prompt gives a verbose
6363 traceback. Had to make some changes to the ultraTB file. This is
6369 traceback. Had to make some changes to the ultraTB file. This is
6364 probably the last 'big' thing in my mental todo list. This ties
6370 probably the last 'big' thing in my mental todo list. This ties
6365 in with the next entry:
6371 in with the next entry:
6366
6372
6367 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6373 * Changed -Xi and -Xf to a single -xmode option. Now all the user
6368 has to specify is Plain, Color or Verbose for all exception
6374 has to specify is Plain, Color or Verbose for all exception
6369 handling.
6375 handling.
6370
6376
6371 * Removed ShellServices option. All this can really be done via
6377 * Removed ShellServices option. All this can really be done via
6372 the magic system. It's easier to extend, cleaner and has automatic
6378 the magic system. It's easier to extend, cleaner and has automatic
6373 namespace protection and documentation.
6379 namespace protection and documentation.
6374
6380
6375 2001-11-09 Fernando Perez <fperez@colorado.edu>
6381 2001-11-09 Fernando Perez <fperez@colorado.edu>
6376
6382
6377 * Fixed bug in output cache flushing (missing parameter to
6383 * Fixed bug in output cache flushing (missing parameter to
6378 __init__). Other small bugs fixed (found using pychecker).
6384 __init__). Other small bugs fixed (found using pychecker).
6379
6385
6380 * Version 0.1.4 opened for bugfixing.
6386 * Version 0.1.4 opened for bugfixing.
6381
6387
6382 2001-11-07 Fernando Perez <fperez@colorado.edu>
6388 2001-11-07 Fernando Perez <fperez@colorado.edu>
6383
6389
6384 * Version 0.1.3 released, mainly because of the raw_input bug.
6390 * Version 0.1.3 released, mainly because of the raw_input bug.
6385
6391
6386 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6392 * Fixed NASTY bug in raw_input: input line wasn't properly parsed
6387 and when testing for whether things were callable, a call could
6393 and when testing for whether things were callable, a call could
6388 actually be made to certain functions. They would get called again
6394 actually be made to certain functions. They would get called again
6389 once 'really' executed, with a resulting double call. A disaster
6395 once 'really' executed, with a resulting double call. A disaster
6390 in many cases (list.reverse() would never work!).
6396 in many cases (list.reverse() would never work!).
6391
6397
6392 * Removed prefilter() function, moved its code to raw_input (which
6398 * Removed prefilter() function, moved its code to raw_input (which
6393 after all was just a near-empty caller for prefilter). This saves
6399 after all was just a near-empty caller for prefilter). This saves
6394 a function call on every prompt, and simplifies the class a tiny bit.
6400 a function call on every prompt, and simplifies the class a tiny bit.
6395
6401
6396 * Fix _ip to __ip name in magic example file.
6402 * Fix _ip to __ip name in magic example file.
6397
6403
6398 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6404 * Changed 'tar -x -f' to 'tar xvf' in auto-installer. This should
6399 work with non-gnu versions of tar.
6405 work with non-gnu versions of tar.
6400
6406
6401 2001-11-06 Fernando Perez <fperez@colorado.edu>
6407 2001-11-06 Fernando Perez <fperez@colorado.edu>
6402
6408
6403 * Version 0.1.2. Just to keep track of the recent changes.
6409 * Version 0.1.2. Just to keep track of the recent changes.
6404
6410
6405 * Fixed nasty bug in output prompt routine. It used to check 'if
6411 * Fixed nasty bug in output prompt routine. It used to check 'if
6406 arg != None...'. Problem is, this fails if arg implements a
6412 arg != None...'. Problem is, this fails if arg implements a
6407 special comparison (__cmp__) which disallows comparing to
6413 special comparison (__cmp__) which disallows comparing to
6408 None. Found it when trying to use the PhysicalQuantity module from
6414 None. Found it when trying to use the PhysicalQuantity module from
6409 ScientificPython.
6415 ScientificPython.
6410
6416
6411 2001-11-05 Fernando Perez <fperez@colorado.edu>
6417 2001-11-05 Fernando Perez <fperez@colorado.edu>
6412
6418
6413 * Also added dirs. Now the pushd/popd/dirs family functions
6419 * Also added dirs. Now the pushd/popd/dirs family functions
6414 basically like the shell, with the added convenience of going home
6420 basically like the shell, with the added convenience of going home
6415 when called with no args.
6421 when called with no args.
6416
6422
6417 * pushd/popd slightly modified to mimic shell behavior more
6423 * pushd/popd slightly modified to mimic shell behavior more
6418 closely.
6424 closely.
6419
6425
6420 * Added env,pushd,popd from ShellServices as magic functions. I
6426 * Added env,pushd,popd from ShellServices as magic functions. I
6421 think the cleanest will be to port all desired functions from
6427 think the cleanest will be to port all desired functions from
6422 ShellServices as magics and remove ShellServices altogether. This
6428 ShellServices as magics and remove ShellServices altogether. This
6423 will provide a single, clean way of adding functionality
6429 will provide a single, clean way of adding functionality
6424 (shell-type or otherwise) to IP.
6430 (shell-type or otherwise) to IP.
6425
6431
6426 2001-11-04 Fernando Perez <fperez@colorado.edu>
6432 2001-11-04 Fernando Perez <fperez@colorado.edu>
6427
6433
6428 * Added .ipython/ directory to sys.path. This way users can keep
6434 * Added .ipython/ directory to sys.path. This way users can keep
6429 customizations there and access them via import.
6435 customizations there and access them via import.
6430
6436
6431 2001-11-03 Fernando Perez <fperez@colorado.edu>
6437 2001-11-03 Fernando Perez <fperez@colorado.edu>
6432
6438
6433 * Opened version 0.1.1 for new changes.
6439 * Opened version 0.1.1 for new changes.
6434
6440
6435 * Changed version number to 0.1.0: first 'public' release, sent to
6441 * Changed version number to 0.1.0: first 'public' release, sent to
6436 Nathan and Janko.
6442 Nathan and Janko.
6437
6443
6438 * Lots of small fixes and tweaks.
6444 * Lots of small fixes and tweaks.
6439
6445
6440 * Minor changes to whos format. Now strings are shown, snipped if
6446 * Minor changes to whos format. Now strings are shown, snipped if
6441 too long.
6447 too long.
6442
6448
6443 * Changed ShellServices to work on __main__ so they show up in @who
6449 * Changed ShellServices to work on __main__ so they show up in @who
6444
6450
6445 * Help also works with ? at the end of a line:
6451 * Help also works with ? at the end of a line:
6446 ?sin and sin?
6452 ?sin and sin?
6447 both produce the same effect. This is nice, as often I use the
6453 both produce the same effect. This is nice, as often I use the
6448 tab-complete to find the name of a method, but I used to then have
6454 tab-complete to find the name of a method, but I used to then have
6449 to go to the beginning of the line to put a ? if I wanted more
6455 to go to the beginning of the line to put a ? if I wanted more
6450 info. Now I can just add the ? and hit return. Convenient.
6456 info. Now I can just add the ? and hit return. Convenient.
6451
6457
6452 2001-11-02 Fernando Perez <fperez@colorado.edu>
6458 2001-11-02 Fernando Perez <fperez@colorado.edu>
6453
6459
6454 * Python version check (>=2.1) added.
6460 * Python version check (>=2.1) added.
6455
6461
6456 * Added LazyPython documentation. At this point the docs are quite
6462 * Added LazyPython documentation. At this point the docs are quite
6457 a mess. A cleanup is in order.
6463 a mess. A cleanup is in order.
6458
6464
6459 * Auto-installer created. For some bizarre reason, the zipfiles
6465 * Auto-installer created. For some bizarre reason, the zipfiles
6460 module isn't working on my system. So I made a tar version
6466 module isn't working on my system. So I made a tar version
6461 (hopefully the command line options in various systems won't kill
6467 (hopefully the command line options in various systems won't kill
6462 me).
6468 me).
6463
6469
6464 * Fixes to Struct in genutils. Now all dictionary-like methods are
6470 * Fixes to Struct in genutils. Now all dictionary-like methods are
6465 protected (reasonably).
6471 protected (reasonably).
6466
6472
6467 * Added pager function to genutils and changed ? to print usage
6473 * Added pager function to genutils and changed ? to print usage
6468 note through it (it was too long).
6474 note through it (it was too long).
6469
6475
6470 * Added the LazyPython functionality. Works great! I changed the
6476 * Added the LazyPython functionality. Works great! I changed the
6471 auto-quote escape to ';', it's on home row and next to '. But
6477 auto-quote escape to ';', it's on home row and next to '. But
6472 both auto-quote and auto-paren (still /) escapes are command-line
6478 both auto-quote and auto-paren (still /) escapes are command-line
6473 parameters.
6479 parameters.
6474
6480
6475
6481
6476 2001-11-01 Fernando Perez <fperez@colorado.edu>
6482 2001-11-01 Fernando Perez <fperez@colorado.edu>
6477
6483
6478 * Version changed to 0.0.7. Fairly large change: configuration now
6484 * Version changed to 0.0.7. Fairly large change: configuration now
6479 is all stored in a directory, by default .ipython. There, all
6485 is all stored in a directory, by default .ipython. There, all
6480 config files have normal looking names (not .names)
6486 config files have normal looking names (not .names)
6481
6487
6482 * Version 0.0.6 Released first to Lucas and Archie as a test
6488 * Version 0.0.6 Released first to Lucas and Archie as a test
6483 run. Since it's the first 'semi-public' release, change version to
6489 run. Since it's the first 'semi-public' release, change version to
6484 > 0.0.6 for any changes now.
6490 > 0.0.6 for any changes now.
6485
6491
6486 * Stuff I had put in the ipplib.py changelog:
6492 * Stuff I had put in the ipplib.py changelog:
6487
6493
6488 Changes to InteractiveShell:
6494 Changes to InteractiveShell:
6489
6495
6490 - Made the usage message a parameter.
6496 - Made the usage message a parameter.
6491
6497
6492 - Require the name of the shell variable to be given. It's a bit
6498 - Require the name of the shell variable to be given. It's a bit
6493 of a hack, but allows the name 'shell' not to be hardwired in the
6499 of a hack, but allows the name 'shell' not to be hardwired in the
6494 magic (@) handler, which is problematic b/c it requires
6500 magic (@) handler, which is problematic b/c it requires
6495 polluting the global namespace with 'shell'. This in turn is
6501 polluting the global namespace with 'shell'. This in turn is
6496 fragile: if a user redefines a variable called shell, things
6502 fragile: if a user redefines a variable called shell, things
6497 break.
6503 break.
6498
6504
6499 - magic @: all functions available through @ need to be defined
6505 - magic @: all functions available through @ need to be defined
6500 as magic_<name>, even though they can be called simply as
6506 as magic_<name>, even though they can be called simply as
6501 @<name>. This allows the special command @magic to gather
6507 @<name>. This allows the special command @magic to gather
6502 information automatically about all existing magic functions,
6508 information automatically about all existing magic functions,
6503 even if they are run-time user extensions, by parsing the shell
6509 even if they are run-time user extensions, by parsing the shell
6504 instance __dict__ looking for special magic_ names.
6510 instance __dict__ looking for special magic_ names.
6505
6511
6506 - mainloop: added *two* local namespace parameters. This allows
6512 - mainloop: added *two* local namespace parameters. This allows
6507 the class to differentiate between parameters which were there
6513 the class to differentiate between parameters which were there
6508 before and after command line initialization was processed. This
6514 before and after command line initialization was processed. This
6509 way, later @who can show things loaded at startup by the
6515 way, later @who can show things loaded at startup by the
6510 user. This trick was necessary to make session saving/reloading
6516 user. This trick was necessary to make session saving/reloading
6511 really work: ideally after saving/exiting/reloading a session,
6517 really work: ideally after saving/exiting/reloading a session,
6512 *everything* should look the same, including the output of @who. I
6518 *everything* should look the same, including the output of @who. I
6513 was only able to make this work with this double namespace
6519 was only able to make this work with this double namespace
6514 trick.
6520 trick.
6515
6521
6516 - added a header to the logfile which allows (almost) full
6522 - added a header to the logfile which allows (almost) full
6517 session restoring.
6523 session restoring.
6518
6524
6519 - prepend lines beginning with @ or !, with a and log
6525 - prepend lines beginning with @ or !, with a and log
6520 them. Why? !lines: may be useful to know what you did @lines:
6526 them. Why? !lines: may be useful to know what you did @lines:
6521 they may affect session state. So when restoring a session, at
6527 they may affect session state. So when restoring a session, at
6522 least inform the user of their presence. I couldn't quite get
6528 least inform the user of their presence. I couldn't quite get
6523 them to properly re-execute, but at least the user is warned.
6529 them to properly re-execute, but at least the user is warned.
6524
6530
6525 * Started ChangeLog.
6531 * Started ChangeLog.
General Comments 0
You need to be logged in to leave comments. Login now