The qcodes dataset can only be stored to disk using a qcodes formatter. To save results totgether with other data it would be good to be able to serialize a dataset to a string or something like pickle, json or xml. So someting like:
s=dataset.tostring()
dataset2 = qcodes.load_dataset_string(s)
or
mystring=pickle.dumps(dataset)
dataset2=pickle.loads(mystring)
The method used for converting the dataset to a string could be taken from the formatter.