[IPython-user] cluster file syntax
Fernando.Perez at colorado.edu
Thu Mar 16 12:29:11 CST 2006
Jonathan Taylor wrote:
> i've been playing with the ipkernel demos and was curious about
> the format of the "cluster_*" files.
> it seems they're binary (at least the example i have is). while they're
> small, i was
> curious how one goes about creating their own...
will show you that it's just a pickle of a list of the form
where each entry is a tuple of (IP address,port number), which is the standard
format for socket connections. So creating one is as simple as:
In : import pickle
In : cluster =
In : pickle.dump(cluster,file('test_cluster','w'))
More information about the IPython-user