def patch_panel_state(self, state, panel_id=None):
        """Patch the state of the specified panel in the App.

        Args:
            state: the state to set
            panel_id (None): the optional ID of the panel to clear.
                If not provided, the ``ctx.panel_id`` will be used
        """
        return self._ctx.trigger(
            "patch_panel_state",
            params=self._create_panel_params(panel_id, state=state),
        )
Patch the state of the specified panel in the App.

        Args:
            state: the state to set
            panel_id (None): the optional ID of the panel to clear.
                If not provided, the ``ctx.panel_id`` will be used
        
fiftyone/operators/operations.py