def configure_formats(options, config, log, formats=None):
 if (formats is None):
  formats = default_formats()
 config.HTMLExporter.template_file = 'basic'
 config.SlidesExporter.template_file = 'slides_reveal'
 config.TemplateExporter.template_path = [os.path.join(os.path.dirname(__file__), 'templates', 'nbconvert')]
 for (key, format) in formats.items():
  exporter_cls = format.get('exporter', exporter_map[key])
  if options.processes:
   formats[key]['exporter'] = exporter_cls
  else:
   formats[key]['exporter'] = exporter_cls(config=config, log=log)
 return formats

def configure_formats ( options , config , log , formats = None ) : if ( formats is None ) : formats = default_formats ( ) config . HTMLExporter . template_file = 'basic' config . SlidesExporter . template_file = 'slides_reveal' config . TemplateExporter . template_path = [ os . path . join ( os . path . dirname ( __file__ ) , 'templates' , 'nbconvert' ) ] for ( key , format ) in formats . items ( ) : exporter_cls = format . get ( 'exporter' , exporter_map [ key ] ) if options . processes : formats [ key ] [ 'exporter' ] = exporter_cls else : formats [ key ] [ 'exporter' ] = exporter_cls ( config = config , log = log ) return formats
format-specific configuration .