class_docstr: Traitlet defining the initial viewport for a map.
class_docstr_tok: ["Traitlet","defining","the","initial","viewport","for","a","map","."]
docstr: Create a viewport centered on the map's data.
  
  Most of the time, you should rely on the defaults provided by the
  :func:`gmaps.figure` factory method, rather than creating a
  viewport yourself.
  
  :Examples:
  
  >>> m = gmaps.Map(initial_viewport=InitialViewport.from_data_bounds())
docstr_tok: ["Create","a","viewport","centered","on","the","map","'s","data",".","Most","of","the","time",",","you","should","rely","on","the","defaults","provided","by","the",":","func",":","`","gmaps.figure","`","factory","method",",","rather","than","creating","a","viewport","yourself",".",":","Examples",":",">",">",">","m","=","gmaps.Map","(","initial_viewport=InitialViewport.from_data_bounds","(",")",")"]
code: def from_data_bounds():
      """
      Create a viewport centered on the map's data.
  
      Most of the time, you should rely on the defaults provided by the
      :func:`gmaps.figure` factory method, rather than creating a
      viewport yourself.
  
      :Examples:
  
      >>> m = gmaps.Map(initial_viewport=InitialViewport.from_data_bounds())
      """
      return "DATA_BOUNDS"
  
imports: import ipywidgets
  from traitlets import Unicode, default, List, Instance, observe, Dict, HasTraits, Enum, Union
  from .bounds import merge_longitude_bounds
  from .geotraitlets import Point, ZoomLevel, MapType, MouseHandling, Tilt
  from ._docutils import doc_subst
  from ._version import CLIENT_VERSION
label_desc: Use image node_id 2 for calling the InitialViewport obj's underlying member method code with example usage: obj.from_data_bounds() and returns: str