which_positron_server
which_positron_server()Locate the positron-server executable.
Searches for the positron-server command in the system PATH, falling back to known installation locations if not found.
Returns
| Name | Type | Description |
|---|---|---|
| str | The absolute path to the positron-server executable. |
Raises
| Name | Type | Description |
|---|---|---|
| FileNotFoundError | If positron-server cannot be found in PATH or at known locations. |
Examples
>>> from jupyter_positron_server import which_positron_server
>>> path = which_positron_server()
>>> print(path)
'/opt/positron-server/bin/positron-server'