def parent(self, pcell):
        if pcell is None:
            self._parent = None
        elif isinstance(pcell, Cell):
            self._parent = pcell
        else:
            raise CellParentError