class_docstr: Visualizer for a sequence of AdditiveExplanation, as a stacked force plot.
class_docstr_tok: ["Visualizer","for","a","sequence","of","AdditiveExplanation",",","as","a","stacked","force","plot","."]
code: def html(self):
      # assert have_ipython, "IPython must be installed to use this visualizer! Run `pip install ipython` and then restart shap."
      return """
  <div id='{id}'>{err_msg}</div>
   <script>
     if (window.SHAP) SHAP.ReactDom.render(
      SHAP.React.createElement(SHAP.AdditiveForceArrayVisualizer, {data}),
      document.getElementById('{id}')
    );
  </script>""".format(
          err_msg=err_msg, data=json.dumps(self.data), id=id_generator()
      )
  
imports: import base64
  import json
  import os
  import random
  import re
  import string
  import warnings
  from collections.abc import Sequence
  import numpy
  import pandas
  import scipy.sparse
  from ..plots._force_matplotlib import draw_additive_plot
  from ..utils import hclust_ordering
  from ..utils._exceptions import DimensionError
  from ..utils._legacy import Data, DenseData, Instance, Link, Model, convert_to_link
  from ._labels import labels
label_desc: Use image node_id 2 for calling the AdditiveForceArrayVisualizer obj's underlying member method code with example usage: obj.html() and returns: str