[IPython-user] cluster file syntax

Fernando Perez Fernando.Perez at colorado.edu
Thu Mar 16 12:47:04 CST 2006


Brian Granger wrote:
>>In [1]: import pickle
>>
>>In [2]: cluster =
>>[('192.168.0.10',10105),('192.168.0.11',10105),('192.168.0.12',10105),('192.168.0.13',10105)]
>>
>>In [3]: pickle.dump(cluster,file('test_cluster','w'))
>>
> 
> 
> But currently, the files must be placed in your ~/.ipython directory
> to be detected by the load() method of InteractiveCluster

Mmh, I thought I'd fixed that to load from a normal path.  I probably never 
committed that fix...  I'll try to put it back in, so that ~/.ipython is used 
as a fallback directory, but that you can give

load('/path/to/file')

and have it work as expected.

Cheers,

f




More information about the IPython-user mailing list