parameters: (directory, port)
docstring: Serve samples locally over HTTP.
  
      Serve the files in <directory> at http://localhost:<port>. This is useful
      for vectorizing samples using FathomFox. FathomFox expects you to provide,
      in the vectorizer page, an address to an HTTP server that is serving your
      samples.
docstring_summary: Serve samples locally over HTTP.
docstring_tokens: Serve samples locally over HTTP .
function: def serve(directory, port):
      """
      Serve samples locally over HTTP.
  
      Serve the files in <directory> at http://localhost:<port>. This is useful
      for vectorizing samples using FathomFox. FathomFox expects you to provide,
      in the vectorizer page, an address to an HTTP server that is serving your
      samples.
  
      """
      server = ThreadingHTTPServer(('localhost', port), partial(SimpleHTTPRequestHandler, directory=directory))
      print(f'Serving {directory} over http://localhost:{port}.')
      print('Press Ctrl+C to stop.')
      server.serve_forever()
function_tokens: def serve ( directory , port ) : server = ThreadingHTTPServer ( ( 'localhost' , port ) , partial ( SimpleHTTPRequestHandler , directory = directory ) ) print ( f'Serving {directory} over http://localhost:{port}.' ) print ( 'Press Ctrl+C to stop.' ) server . serve_forever ( )