firefly.server.startHTTPServer
- firefly.server.startHTTPServer(port=5500, directory=None)[source]
- Creates a global interpreter locked process to host either a Flask
or HTTP server that can be accessed via localhost:<port>.
- Parameters
port (int, optional) – port number to serve the
.html
files on, defaults to 5500directory (str, optional) – the directory of the Firefly source files to be served, if None, uses os.dirname(__file__) i.e. the directory of the firefly python distribution, defaults to None