| start_server | R Documentation |
Launches python -m midas2_api as a background process and waits for the
/health endpoint to respond.
start_server(python = "python3", port = NULL, venv = NULL, max_wait = 120L)
python |
Path to the Python interpreter (default |
port |
Port to bind to. If |
venv |
Path to a Python virtual environment.
If supplied, the interpreter is taken from |
max_wait |
Maximum number of 0.5-second polling attempts (default 120, i.e. 60 seconds). The first launch may be slower due to Python import caching. |
Invisibly returns the port number.
## Not run:
start_server()
start_server(venv = "~/.virtualenvs/midas2_env")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.