Skip to main content

Jupyter server proxy for Arize Phoenix

Project description

jupyter-phoenix-proxy

Running Arize Phoenix inside the Jupyter environment

Requirements

Installation

pip install git+https://cnb.cool/lzf.ai/jupyter-phoenix-proxy

Configuration

Setting the working directory

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:

  1. PHOENIX_WORKING_DIR, if not set:
  2. JUPYTERHUB_ROOT_DIR, if not set:
  3. JUPYTER_SERVER_ROOT, if not set:
  4. HOME

Using pre-started phoenix

Note:
Because of the phoenix routing strategy, the pre-started instance must be accessible from localhost and must in the subdir /phoenix by 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.

Enable/disable launcher

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.

Other Phoenix Configurations

server-configuration

Credits

Inspiration

Assets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_phoenix_proxy-0.5.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_phoenix_proxy-0.5.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_phoenix_proxy-0.5.0.tar.gz.

File metadata

File hashes

Hashes for jupyter_phoenix_proxy-0.5.0.tar.gz
Algorithm Hash digest
SHA256 addfe8b3cf3a8fcd07995bc74a20d9376086ed310e1376a2884b5b7cbdde5ac0
MD5 975d6606ff61f6274d9ff518a8468eb3
BLAKE2b-256 b80f13fac5aa47efa4b19e11b05fabfe86535cc48b9991c917649d371c0da3ab

See more details on using hashes here.

File details

Details for the file jupyter_phoenix_proxy-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_phoenix_proxy-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03399d04062272073a6ba04f0cfa878dfb740b3dd1940cd71089557974395d94
MD5 de7deb3bfaa1d8c1f8e6b0028c288244
BLAKE2b-256 5639994d0992fff2cec9482e57b69513946bde37e0a9f0d4ef13ae48c990ec5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page