[IPython-user] cluster file syntax

Brian Granger bgranger at scu.edu
Thu Mar 16 12:49:56 CST 2006


Do you think we should have it first look in the cwd?

Brian

On 3/16/06, Fernando Perez <Fernando.Perez at colorado.edu> wrote:
> 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
>
> This message scanned for viruses and SPAM at SCU (MGW2)
>


--
Brian Granger
Santa Clara University
ellisonbg at gmail.com




More information about the IPython-user mailing list