'Move all data in this doc to the dest_doc, leaving this doc empty.
Args:
dest_doc (Document) :
The Bokeh document to populate with data from this one
Returns:
None'

def _destructively_move(self, dest_doc):

    if (dest_doc is self):
        raise RuntimeError('Attempted    to    overwrite    a    document    with    itself')
    dest_doc.clear()
    roots = []
    self._push_all_models_freeze()
    try:
        while self.roots:
            r = next(iter(self.roots))
            self.remove_root(r)
            roots.append(r)
    finally:
        self._pop_all_models_freeze()
    for r in roots:
        if (r.document is not None):
            raise RuntimeError(("Somehow    we    didn't    detach    %r" % r))
    if (len(self._all_models) != 0):
        raise RuntimeError(('_all_models    still    had    stuff    in    it:    %r' % self._all_models))
    for r in roots:
        dest_doc.add_root(r)
    dest_doc.title = self.title
