graphistry / graph-app-kit

Go from graph data to a secure and interactive visual graph app in 15 minutes. Batteries-included self-hosting of graph data apps with Streamlit, Graphistry, RAPIDS, and more!
BSD 3-Clause "New" or "Revised" License
200 stars 23 forks source link

Add env var ADDITIONAL_PYTHON_PATH to load custom python packages #111

Closed aucahuasi closed 7 months ago

aucahuasi commented 10 months ago

Sometimes we want to load custom python packages into the GAK container.

With this PR we just need to mount the volume to the local directory that contains the custom packages and export it as the ADDITIONAL_PYTHON_PATH env var.

For example, using docker compose:

services:
  graph-app-kit-service:
    image: graphistry/graph-app-kit-st:latest-11.5
    environment:
        ADDITIONAL_PYTHON_PATH: "/mnt"
    volumes:
      - /home/user/some_python_pkgs:/mnt