def view(cloudpath, hostname="localhost", port=DEFAULT_PORT):
  """Start a local web app on the given port that lets you explore this cutout."""
  def handler(*args):
    return ViewerServerHandler(cloudpath, *args)

  myServer = HTTPServer((hostname, port), handler)
  print("Neuroglancer server listening to http://{}:{}".format(hostname, port))
  try:
    myServer.serve_forever()
  except KeyboardInterrupt:
    # extra \n to prevent display of "^CContinuing"
    print("\nContinuing program execution...")
  finally:
    myServer.server_close()
def view ( cloudpath , hostname = "localhost" , port = DEFAULT_PORT ) : def handler ( * args ) : return ViewerServerHandler ( cloudpath , * args ) myServer = HTTPServer ( ( hostname , port ) , handler ) print ( "Neuroglancer server listening to http://{}:{}" . format ( hostname , port ) ) try : myServer . serve_forever ( ) except KeyboardInterrupt : print ( "\nContinuing program execution..." ) finally : myServer . server_close ( )
Start a local web app on the given port that lets you explore this cutout.