name: panel_gallery
description: An environment to serve all Panel gallery examples

commands:
  default:
    description: Serve the Panel gallery
    unix: sudo yum install -y http://mirror.centos.org/centos/7/os/x86_64/Packages/libxkbfile-1.0.9-3.el7.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/xorg-x11-xkb-utils-7.7-14.el7.x86_64.rpm http://mirror.centos.org/centos/7/updates/x86_64/Packages/xorg-x11-server-common-1.20.4-23.el7_9.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/libXdmcp-1.1.2-6.el7.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/libXfont2-2.0.3-1.el7.x86_64.rpm http://mirror.centos.org/centos/7/updates/x86_64/Packages/xorg-x11-server-Xvfb-1.20.4-23.el7_9.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libglapi-18.3.4-10.el7.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libGL-18.3.4-10.el7.x86_64.rpm http://mirror.centos.org/centos/7/updates/x86_64/Packages/mesa-dri-drivers-18.3.4-12.el7_9.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/llvm-private-7.0.1-1.el7.x86_64.rpm http://mirror.centos.org/centos/7/updates/x86_64/Packages/mesa-filesystem-18.3.4-12.el7_9.x86_64.rpm && Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & bokeh sampledata && sleep 60 && panel serve *.ipynb --static-dirs thumbnails=thumbnails --reuse-sessions --global-loading-spinner --liveness --num-procs 8
    supports_http_options: true

channels:
  - pyviz/label/dev
  - conda-forge

variables:
  PANEL_AE5_CDN: 1
  MPLBACKEND: Agg
  DISPLAY: ":99.0"
  MESA_GL_VERSION_OVERRIDE: 3.2
  PYVISTA_OFF_SCREEN: "true"

packages:
  - panel
  - holoviews
  - pandas
  - scikit-learn
  - scikit-image
  - fastparquet
  - hvplot
  - datashader
  - graphviz
  - networkx
  - ipywidgets
  - pygraphviz
  - plotly
  - altair
  - pydeck
  - pyvista
  - seaborn
  - xgboost
  - vtk=9.2.6=osmesa_py310h7f736e2_103
  - pyvista
  - mesalib
  - numpy<1.24
  - numba::llvmlite
  - pip:
    - ipyvolume
    - folium
    - vega_datasets

env_specs:
  default: {}
