In [3]:
%pylab inline
In [4]:
import pickle
In [6]:
mydict = dict()
mydict['obs1'] = np.random.rand(100)
mydict['obs2'] = np.random.normal(0, 1, 100)
In [8]:
pickle.dump( mydict, open( "mydic.p", "wb" ) )
In [9]:
mynewdict = pickle.load(open('mydic.p', 'rb'))
In [12]:
plt.scatter(mynewdict['obs1'], mynewdict['obs2'], color='k')
Out[12]: