which_positron_server
which_positron_server()Locate the positron-server executable.
Searches for the positron-server command in the system PATH, falling back to a default installation location 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 the default location. |
Examples
>>> from jupyter_positron_server import which_positron_server
>>> path = which_positron_server()
>>> print(path)
'/usr/local/bin/positron-server'