class_docstr: Class for exploring the graph of submodels of a Bokeh model.
  
  If M is such a model and X=_BokehStructureGraph(M), then:
  
  - X.model is the interactive model itself of
  the submodel graph; pass it to show or file_html.  Self contained so
  works in a jupyter notebook, no server needed.
  
  - X.graph is the networkx DiGraph of submodels.
  
  - X.property_df is a pandas dataframe including all of the properties of
  all of the submodels, with their docstrings.  Used for the datatable
  displayed when clicking on X.model
class_docstr_tok: ["Class","for","exploring","the","graph","of","submodels","of","a","Bokeh","model",".","If","M","is","such","a","model","and","X=_BokehStructureGraph","(","M",")",",","then",":","-","X.model","is","the","interactive","model","itself","of","the","submodel","graph",";","pass","it","to","show","or","file_html",".","Self","contained","so","works","in","a","jupyter","notebook",",","no","server","needed",".","-","X.graph","is","the","networkx","DiGraph","of","submodels",".","-","X.property_df","is","a","pandas","dataframe","including","all","of","the","properties","of","all","of","the","submodels",",","with","their","docstrings",".","Used","for","the","datatable","displayed","when","clicking","on","X.model"]
docstr: The bokeh model consisting of the structure graph and the datatable
  for the attributes.
  
  Can be passed to show or file_html. Self contained,
  so remains interactive in a notebook or html file; no server needed.
docstr_tok: ["The","bokeh","model","consisting","of","the","structure","graph","and","the","datatable","for","the","attributes",".","Can","be","passed","to","show","or","file_html",".","Self","contained",",","so","remains","interactive","in","a","notebook","or","html","file",";","no","server","needed","."]
code: def model(self) -> Model:
      """The bokeh model consisting of the structure graph and the datatable
      for the attributes.
  
      Can be passed to show or file_html. Self contained,
      so remains interactive in a notebook or html file; no server needed.
  
      """
      return self._structure_graph
  
file_path: bokeh/src/bokeh/models/util/structure.py
imports: from __future__ import annotations
  import logging
  from itertools import permutations
  from typing import TYPE_CHECKING
  from bokeh.core.properties import UnsetValueError
  from bokeh.layouts import column
  from bokeh.models import BoxZoomTool, CDSView, ColumnDataSource, CustomJS, DataTable, GlyphRenderer, GroupFilter, HoverTool, Label, LabelSet, MultiLine, PanTool, Plot, Range1d, ResetTool, Scatter, TableColumn, TapTool
label_desc: Use image node_id 2 for calling the _BokehStructureGraph obj's underlying member method code with example usage: obj.model() and returns: self