[IPython-user] Re[2]: IPython not reloading file under Win2000

Alan G Isaac aisaac at american.edu
Wed Jul 13 20:06:27 CDT 2005

> Alan G Isaac wrote: 
>> This is a bit bizarre. 
>> It took me a couple looks to figure out what was happening. 

>> I am using the 'run' command under IPython. 
>> Error tracebacks print the correct line number of the 
>> current file but list (and therefore highlight) that 
>> line from an earlier version of the file. 
>> This is particularly obvious when deleted lines 
>> appear in the traceback printout. 

>> After a bit of exploration, it seems that the lines 
>> printed corrrespond to the file as first run.  Changes 
>> to the file are correctly run and traced, but the lines 
>> printed appear to be from a cached (and obsolete) 
>> version of the file. 

On Wed, 13 Jul 2005, Fernando Perez apparently wrote: 
> What version of ipython and what version of python are you 
> using?  There is a bug in the inspect module (part of 
> python) which can cause this.  I've personally never seen 
> such behavior with current versions. 

I had:
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)]
IPython 0.6.2 -- An enhanced Interactive Python.

OK, so I downloaded the recent version and tried installing 
it.  It tried using %USERPROFILE% oddly in the path to store 
a .ini file, but this produced literally
'C:\Documents and Settings\aisaac\My Documents\%USERPROFILE%\_ipython'
So there is an installation bug under Win2000.
(I should note that I have seen other applications have
problems with %USERPROFILE% under Win2000; I believe John
had to fiddle with this for font caching.)

Now I no longer have the problem I reported, which you 
attributed to the inspect module, but I have lost the nice 
highlighting I had before---presumably because I have no 
*.ini file and so have lost all runtime configurations.


Alan Isaac

More information about the IPython-user mailing list