buchhave/exoplanet_target_plotter
0
1---2title: Exoplanet Target Plotter3emoji: 🪐4colorFrom: indigo5colorTo: blue6sdk: docker7pinned: false8---9 10# Exoplanet Target Plotter11 12This project is a Dash/Plotly app for filtering and visualizing exoplanet catalogs 13(TOI, NExScI, NASA Exoplanet Archive, JWST targets).14 15 16## System dependencies for Plotly image export17 18Plotly static image export (used for PDF downloads) relies on the Kaleido engine, which in turn requires several Chromium libraries on Linux. On Debian/Ubuntu/WSL2, install these packages:19 20```bash21sudo apt update && sudo apt install -y \22 libnss3 \23 libatk-bridge2.0-0t64 \24 libcups2t64 \25 libxcomposite1 \26 libxdamage1 \27 libxfixes3 \28 libxrandr2 \29 libgbm1 \30 libxkbcommon0 \31 libpango-1.0-0 \32 libcairo2 \33 libasound2t6434```35 36Python dependencies include `plotly` and `kaleido` (see `requirements.txt`).37 38### Troubleshooting: Fontconfig cache errors39 40If you see repeated messages like:41 42```43Fontconfig error: No writable cache directories44```45 46Ensure fontconfig and common fonts are installed, and that the cache dir is writable:47 48```bash49sudo apt update && sudo apt install -y fontconfig fonts-dejavu-core fonts-liberation fonts-noto-core50 51# Create a per-user writable cache directory (recommended on WSL/containers)52export XDG_CACHE_HOME=~/.cache53mkdir -p "$XDG_CACHE_HOME/fontconfig"54 55# Optionally rebuild font cache56fc-cache -f57```58 59In the Docker image, these are preinstalled and the cache directory is set to `/tmp/.cache/fontconfig`.60 