class_docstr: A Layout is an ViewableTree with ViewableElement objects as leaf
  values. Unlike ViewableTree, a Layout supports a rich display,
  displaying leaf items in a grid style layout. In addition to the
  usual ViewableTree indexing, Layout supports indexing of items by
  their row and column index in the layout.
  
  The maximum number of columns in such a layout may be controlled
  with the cols method.
class_docstr_tok: ["A","Layout","is","an","ViewableTree","with","ViewableElement","objects","as","leaf","values",".","Unlike","ViewableTree",",","a","Layout","supports","a","rich","display",",","displaying","leaf","items","in","a","grid","style","layout",".","In","addition","to","the","usual","ViewableTree","indexing",",","Layout","supports","indexing","of","items","by","their","row","and","column","index","in","the","layout",".","The","maximum","number","of","columns","in","such","a","layout","may","be","controlled","with","the","cols","method","."]
docstr: Clones the Layout, overriding data and parameters.
  
  Args:
      data: New data replacing the existing data
      shared_data (bool, optional): Whether to use existing data
      new_type (optional): Type to cast object to
      *args: Additional arguments to pass to constructor
      **overrides: New keyword arguments to pass to constructor
  
  Returns:
      Cloned Layout object
code: def clone(self, *args, **overrides):
      """Clones the Layout, overriding data and parameters.
  
      Args:
          data: New data replacing the existing data
          shared_data (bool, optional): Whether to use existing data
          new_type (optional): Type to cast object to
          *args: Additional arguments to pass to constructor
          **overrides: New keyword arguments to pass to constructor
  
      Returns:
          Cloned Layout object
      """
      clone = super().clone(*args, **overrides)
      clone._max_cols = self._max_cols
      return clone
  
imports: import numpy
  import param
  from .None import traversal
  from .dimension import Dimension, Dimensioned, ViewableElement, ViewableTree
  from .ndmapping import NdMapping, UniformNdMapping
label_desc: Use image node_id 5 for calling the Layout obj's underlying member method code with example usage: obj.clone() and returns: clone