'Detach a model from a Bokeh |Document|.
This private interface should only ever called by the Document
implementation to unset the private ._document field properly'

def _detach_document(self):

    self._document = None
    default_theme.apply_to_model(self)
