Jupyter server proxy for Arize Phoenix
Project description
jupyter-phoenix-proxy
Running Arize Phoenix inside the Jupyter environment
Requirements
Installation
pip install 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:
- PHOENIX_WORKING_DIR, if not set:
- JUPYTERHUB_ROOT_DIR, if not set:
- JUPYTER_SERVER_ROOT, if not set:
- HOME
Using pre-started phoenix
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.
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
Credits
Inspiration
Assets
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyter_phoenix_proxy-1.0.0.tar.gz.
File metadata
- Download URL: jupyter_phoenix_proxy-1.0.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f001f2abc71dea89eb0c01ed3f022f97468056057fbe1e9d0a0a35936c6faf4e
|
|
| MD5 |
826db30326e5232d0964005cccb27ba6
|
|
| BLAKE2b-256 |
8474256200db41d041294423236da89adcd0b4313d941f370655922c71702b60
|
File details
Details for the file jupyter_phoenix_proxy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jupyter_phoenix_proxy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43bd09452f7b654da8573d979f9b2178b7e9699ff9959d17777af231bf0b38a0
|
|
| MD5 |
ca93c35112d3283bd00afa02eb4caf93
|
|
| BLAKE2b-256 |
faaad562cd9d72ab32e5f50e318c7d62765d1545ccec8359e6501c9ba72f53b7
|