code: def __init__(self, fig=None, store=None):
      super().__init__()
      self.store = store
      self.page().profile().downloadRequested.connect(
          self.on_downloadRequested
      )
  
      # Fix scrollbar sometimes disappearing after Plotly autosizes and leaving behind white space
      self.settings().setAttribute(
          self.settings().ShowScrollBars, False
      )
      self.settings().setAttribute(
          PyQt5.QtWebEngineWidgets.QWebEngineSettings.WebGLEnabled, True
      )
  
      # https://stackoverflow.com/a/8577226/3620725
      self.temp_file = tempfile.NamedTemporaryFile(
          mode="w", suffix=".html", delete=False
      )
      self.set_figure(fig)
  
      self.setWindowTitle("Plotly Viewer")
  
file_path: PandasGUI/pandasgui/widgets/figure_viewer.py
imports: import os
  import sys
  import tempfile
  from PyQt5 import QtCore, QtGui, QtWidgets, sip
  from PyQt5.QtCore import Qt
  import PyQt5
  import logging
  from pandasgui.store import PandasGuiStoreItem
  from pandasgui.utility import get_figure_type
label_desc: Use image node_id 1 to create a new FigureViewer object from inherited base classes: PyQt5.QtWebEngineWidgets, PandasGuiStoreItem with example: obj = FigureViewer(fig, store)