class_docstr: The dashboard class, wraps the dashboard component.
class_docstr_tok: ["The","dashboard","class",",","wraps","the","dashboard","component","."]
docstr: Initialize the dashboard.
docstr_tok: ["Initialize","the","dashboard","."]
code: def __init__(
      self,
      *,
      dashboard_type,
      model_data,
      public_ip,
      port,
      locale,
      no_inline_dashboard=False,
      **kwargs,
  ):
      """Initialize the dashboard."""
  
      if model_data is None or type is None:
          raise ValueError("Required parameters not provided")
  
      try:
          self._service = FlaskHelper(ip=public_ip, port=port)
      except Exception as e:
          self._service = None
          raise e
  
      self.id = uuid.uuid4().hex
  
      feature_flights = kwargs.get("feature_flights")
      if feature_flights and not isinstance(feature_flights, str):
          raise ValueError(invalid_feature_flights_error)
  
      self.config = {
          "dashboardType": dashboard_type,
          "id": self.id,
          "baseUrl": self._service.env.base_url,
          "withCredentials": self._service.with_credentials,
          "locale": locale,
          "featureFlights": feature_flights,
      }
      self.model_data = model_data
      self.add_route()
  
      html = self.load_index()
      print(f"{dashboard_type} started at {self._service.env.base_url}")
      if no_inline_dashboard:
          return
      self._service.env.display(html)
  
imports: import json
  import os
  import uuid
  from html.parser import HTMLParser
  from rai_core_flask import FlaskHelper
  from raiutils.data_processing import serialize_json_safe
  from raiwidgets.interfaces import WidgetRequestResponseConstants
label_desc: Use image node_id 1 to create a new Dashboard object from inherited base classes: object with example: obj = Dashboard()