Running Arize Phoenix inside the Jupyter environment
pip install jupyter-phoenix-proxy
The environment variable PHOENIX_WORKING_DIR is prioritised and can be changed for the Arize Phoenix independently of the Jupyter working/notebook directory.
The order/priority is as follows:
Note:
Because of the phoenix routing strategy, the pre-started instance must be accessible fromlocalhostand must in the subdir/phoenixby setting the following environment variables: PHOENIX_HOST_ROOT_PATH=/phoenix
In case phoenix server is already running (e.g. started in sidecar container with Jupyter running in Kubernetes) and serving via TCP port, it is possible to proxy this already running instance instead of starting a new one with jupyter-server-proxy. Variable JSP_PHOENIX_PORT set command to empty list which makes jupyter-server-proxy pass requests to specified port of socket.
If running phoenix server is listening to TCP port, environment variable JSP_PHOENIX_PORT may be set to port number.
If none of these environment variables are set, jupyter-phoenix-proxy starts new phoenix server process and proxies requests to its socket.
By default phoenix launcher is enabled and visible in JupyterLab. Option JSP_PHOENIX_LAUNCHER_DISABLED may be set to any non-empty value to disable launcher. This is useful when e.g. certain users are not supposed to have phoenix available in Jupyterhub as there is no easy way to disable loading of entire jupyter-phoenix-proxy module for these users if module is for example built into Docker image.