Skip to content

Dashboards

Ashley Smith edited this page Apr 19, 2021 · 5 revisions

Temporary recipe to serve dashboards:

First store necessary vires credentials at ~/.viresclient.ini

then:

git clone https://github.com/Swarm-DISC/Swarm_notebooks.git
cd Swarm_notebooks/
git checkout staging
sudo docker run --rm -it \
  -p 5006:5006 \
  -v /home/groot:/home/jovyan \
  -u jovyan \
  smithara/swarm-vre-testing bash -c \
    "
    pip install --upgrade viresclient && \
    panel serve \
      Swarm_notebooks/dashboards/00_Product-Availability.ipynb \
      Swarm_notebooks/dashboards/02_GVO-Geomagnetic-Virtual-Observatories.ipynb \
      --allow-websocket-origin=* \
      --num-procs 0 \
      --warm
    "

Check https://panel.holoviz.org/user_guide/Deploy_and_Export.html#launching-a-server-on-the-commandline for panel serve options. In particular:

  --index INDEX         Path to a template to use for the site index
  --num-procs N         Number of worker processes for an app. Using 0 will
                        autodetect number of cores (defaults to 1)
  --warm                Whether to execute scripts on startup to warm up the server.
Clone this wiki locally