class_docstr: A wrapper around the results of a lineage query.
class_docstr_tok: ["A","wrapper","around","the","results","of","a","lineage","query","."]
docstr: Visualize lineage query result.
  
  Creates a PyvisVisualizer object to render network graph with Pyvis library.
  Pyvis library should be installed before using this method (run "pip install pyvis")
  The elements(nodes & edges) are preprocessed in this method and sent to
  PyvisVisualizer for rendering graph.
  
  Args:
      path(optional): The path/filename of the rendered graph html file.
          (default path: "lineage_graph_pyvis.html")
      pyvis_options(optional): A dict containing PyVis options to customize visualization.
          (see https://visjs.github.io/vis-network/docs/network/#options for supported fields)
  
  Returns:
      display graph: The interactive visualization is presented as a static HTML file.
docstr_tok: ["Visualize","lineage","query","result",".","Creates","a","PyvisVisualizer","object","to","render","network","graph","with","Pyvis","library",".","Pyvis","library","should","be","installed","before","using","this","method","(","run","``","pip","install","pyvis","''",")","The","elements","(","nodes","&","edges",")","are","preprocessed","in","this","method","and","sent","to","PyvisVisualizer","for","rendering","graph",".","Args",":","path","(","optional",")",":","The","path\/filename","of","the","rendered","graph","html","file",".","(","default","path",":","``","lineage_graph_pyvis.html","''",")","pyvis_options","(","optional",")",":","A","dict","containing","PyVis","options","to","customize","visualization",".","(","see","https",":","\/\/visjs.github.io\/vis-network\/docs\/network\/","#","options","for","supported","fields",")","Returns",":","display","graph",":","The","interactive","visualization","is","presented","as","a","static","HTML","file","."]
code: def visualize(
      self,
      path: Optional[str] = "lineage_graph_pyvis.html",
      pyvis_options: Optional[Dict[str, Any]] = None,
  ):
      """Visualize lineage query result.
  
      Creates a PyvisVisualizer object to render network graph with Pyvis library.
      Pyvis library should be installed before using this method (run "pip install pyvis")
      The elements(nodes & edges) are preprocessed in this method and sent to
      PyvisVisualizer for rendering graph.
  
      Args:
          path(optional): The path/filename of the rendered graph html file.
              (default path: "lineage_graph_pyvis.html")
          pyvis_options(optional): A dict containing PyVis options to customize visualization.
              (see https://visjs.github.io/vis-network/docs/network/#options for supported fields)
  
      Returns:
          display graph: The interactive visualization is presented as a static HTML file.
      """
      lineage_graph_styles = {
          # nodes can have shape / color
          "TrialComponent": {
              "name": "Trial Component",
              "style": {"background-color": "#f6cf61"},
              "isShape": "False",
          },
          "Context": {
              "name": "Context",
              "style": {"background-color": "#ff9900"},
              "isShape": "False",
          },
          "Action": {
              "name": "Action",
              "style": {"background-color": "#88c396"},
              "isShape": "False",
          },
          "Artifact": {
              "name": "Artifact",
              "style": {"background-color": "#146eb4"},
              "isShape": "False",
          },
          "StartArn": {
              "name": "StartArn",
              "style": {"shape": "star"},
              "isShape": "True",
              "symbol": "★",  # shape symbol for legend
          },
      }
  
      pyvis_vis = PyvisVisualizer(lineage_graph_styles, pyvis_options)
      elements = self._get_visualization_elements()
      return pyvis_vis.render(elements=elements, path=path)
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from enum import Enum
  from typing import Any, Optional, Union, List, Dict
  from json import dumps
  from re import sub, search
  from sagemaker.utils import get_module
  from sagemaker.lineage._utils import get_resource_name_from_arn
label_desc: Use image node_id 6 for calling the LineageQueryResult obj's underlying member method code with example usage: obj.visualize(path, pyvis_options) and returns: pyvis_vis