def set_spaces(self, spaces=None, name=None):
        """Sets the current spaces in the App.

        Args:
            spaces (None): a :class:`fiftyone.core.odm.workspace.Space` to load
            name (None): the name of the workspace to load
        """
        params = {}
        if spaces is not None:
            params["spaces"] = spaces.to_dict()
        elif name is not None:
            params["spaces"] = self._ctx.dataset.load_workspace(name).to_dict()

        return self._ctx.trigger("set_spaces", params=params)
Sets the current spaces in the App.

        Args:
            spaces (None): a :class:`fiftyone.core.odm.workspace.Space` to load
            name (None): the name of the workspace to load
        
fiftyone/operators/operations.py