kedro/pipeline/pipeline.py
def only_nodes_with_namespace(self, node_namespace: str) -> "Pipeline":
        """Create a new ``Pipeline`` which will contain only the specified
        nodes by namespace.

        Args:
            node_namespace: One node namespace.

        Raises:
            ValueError: When pipeline contains no pipeline with the specified namespace.

        Returns:
            A new ``Pipeline`` with nodes starting with a specified namespace.

        """
        nodes = [
            n
            for n in self.nodes
            if n.namespace and n.namespace.startswith(node_namespace)
        ]
        if not nodes:
            raise ValueError(
                "Pipeline does not contain nodes with namespace(s) {}.".format(
                    list(node_namespace)
                )
            )
        return Pipeline(nodes)
Create a new ``Pipeline`` which will contain only the specified
        nodes by namespace.

        Args:
            node_namespace: One node namespace.

        Raises:
            ValueError: When pipeline contains no pipeline with the specified namespace.

        Returns:
            A new ``Pipeline`` with nodes starting with a specified namespace.

        
Create a new ``Pipeline`` which will contain only the specified
nodes by namespace.
Create a new ` ` Pipeline ` ` which will contain only the specified nodes by namespace .
def only_nodes_with_namespace(self, node_namespace: str) -> "Pipeline":
        nodes = [
            n
            for n in self.nodes
            if n.namespace and n.namespace.startswith(node_namespace)
        ]
        if not nodes:
            raise ValueError(
                "Pipeline does not contain nodes with namespace(s) {}.".format(
                    list(node_namespace)
                )
            )
        return Pipeline(nodes)
def only_nodes_with_namespace ( self , node_namespace : str ) -> "Pipeline" : nodes = [ n for n in self . nodes if n . namespace and n . namespace . startswith ( node_namespace ) ] if not nodes : raise ValueError ( "Pipeline does not contain nodes with namespace(s) {}." . format ( list ( node_namespace ) ) ) return Pipeline ( nodes )
Create a new ``Pipeline`` which will contain only the specified
nodes by namespace.
Create a new ` ` Pipeline ` ` which will contain only the specified nodes by namespace .
"""Create a new ``Pipeline`` which will contain only the specified
        nodes by namespace.

        Args:
            node_namespace: One node namespace.

        Raises:
            ValueError: When pipeline contains no pipeline with the specified namespace.

        Returns:
            A new ``Pipeline`` with nodes starting with a specified namespace.

        """
A new ``Pipeline`` with nodes starting with a specified namespace.
A new ` ` Pipeline ` ` with nodes starting with a specified namespace .
When pipeline contains no pipeline with the specified namespace.
When pipeline contains no pipeline with the specified namespace .
ValueError
self
node_namespace
str
One node namespace.
One node namespace .