class_docstr: WIT widget for colab.
class_docstr_tok: ["WIT","widget","for","colab","."]
code: def _set_examples_looper(self, eval_js_str):
      # Send the set examples to JS in chunks.
      num_pieces = math.ceil(len(self.examples) / self.SLICE_SIZE)
      i = 0
      while num_pieces > 0:
          num_pieces -= 1
          exs = self.examples[i : i + self.SLICE_SIZE]
          piece = {"examples": exs, "countdown": num_pieces}
          output.eval_js(eval_js_str.format(data=json.dumps(piece)))
          i += self.SLICE_SIZE
  
imports: import json
  import math
  import tensorflow
  from IPython import display
  from google.colab import output
  from witwidget.notebook import base
label_desc: Use image node_id 5 for calling the WitWidget obj's underlying member method code with example usage: obj._set_examples_looper(eval_js_str) without return types