code: def export_file(self, filepath, __filter, data, preview_data=None):
          
  
          if __filter.startswith("cell_"):
              self._export_figure(filepath, data, __filter[5:])
  
          elif __filter == "csv":
              self._export_csv(filepath, data, preview_data=preview_data)
  
          elif __filter in ["pdf", "svg"]:
              self.export_cairo(filepath, __filter)
docs: Export data for other applications
  
          Parameters
          ----------
          filepath: String
          \tPath of export file
          __filter: String
          \tImport filter
          data: Object
          \tCode array result object slice, i. e. one object or iterable of
          \tsuch objects