[IPython-dev] IPython and Freeze

Fernando Perez fperez at colorado.edu
Mon Aug 4 11:08:00 CDT 2003


Christopher Hart wrote:
> Hi,  
> 
> I've been happily using IPython for quite a while now and I and
> collaborators have written quite a bit of code in the form of a python
> API that is most useful when used interactively from the python
> interpretor - and naturally IPython makes this even better.  
> 
> I thought a clever way of distributing this tool set to other folks
> might be through freeze which turns a python script into a single
> all-included binary executable (albiet a little bloated, quite easy to
> distribute).
> 
> Has anyone successfully used freeze and IPython?  
> 
> Below is a minimal IPython program to freeze 

I haven't done it, but in principle it should be 'trivial' :)  IPython uses 
100% pure python code and either standard lib modules or included stuff.  All 
third-party code I use is included.  So freeze should pick it all up, I would 
think.  However, if something in ipython's code needs changing for this to 
work more smoothly and you can identify the issue, I'll be glad to make the 
necessary changes.  For example, I wonder if the use of __import__ (as opposed 
to import) is what's confusing freeze.

Keep us posted...

Best,

f

ps.  I'll be in Caltech for scipy'03 Sept 11/12.  I hope we can meet there.




More information about the IPython-dev mailing list