'Get a list of all the parent objects above this one.
:return: (list[PlotlyBase])'

def _get_parents(self):

    parents = []
    parent = self._parent
    while (parent is not None):
        parents.append(parent)
        parent = parent._parent
    parents.reverse()
    return parents
