code: def export_vtkjs(self, filename, compress_arrays=False):
          
          if not hasattr(self, 'ren_win'):
              raise RuntimeError('Export must be called before showing/closing the scene.')
          if isinstance(vtki.FIGURE_PATH, str) and not os.path.isabs(filename):
              filename = os.path.join(vtki.FIGURE_PATH, filename)
          return export_plotter_vtkjs(self, filename, compress_arrays=compress_arrays)
docs: Export the current rendering scene as a VTKjs scene for
          rendering in a web browser