class_docstr: Class to execute plotting files, and extract the mpl and mpld3 figures.
class_docstr_tok: ["Class","to","execute","plotting","files",",","and","extract","the","mpl","and","mpld3","figures","."]
code: def iter_json(self):
      for fig in self.figlist:
          renderer = MPLD3Renderer()
          Exporter(renderer, close_mpl=False).run(fig)
          (
              fig,
              fig_json,
              extra_css,
              extra_js,
          ) = renderer.finished_figures[0]
          yield (
              json.dumps(fig_json, cls=NumpyEncoder),
              extra_js,
              extra_css,
          )
  
imports: import os
  import glob
  import sys
  import gc
  import traceback
  import itertools
  import json
  import contextlib
  import matplotlib
  import matplotlib.pyplot
  import mpld3
  from mpld3 import urls
  from mpld3._display import NumpyEncoder
  from mpld3.mpld3renderer import MPLD3Renderer
  from mpld3.mplexporter import Exporter
label_desc: Use image node_id 4 for calling the ExecFile obj's underlying member method code with example usage: obj.iter_json() without return types