This is an example to create a self-updating dashboard, which gets data from an api interface.
This example contains requiremements.txt
for dependencies.
To test locally (with venv):
python -m venv venv
source activate venv/bin/activate
pip install -r requirements.txt
gunicorn api:app -b 127.0.0.1:9999 --daemon
voila dashboard.ipynb
To test locally (with conda):
conda env create self-updating-dashboard
conda activate create self-updating-dashboard
pip install -r requirements.txt
gunicorn api:app -b 127.0.0.1:9999 --daemon
voila dashboard.ipynb
This will open a new browser tab at http://localhost:8866 serving the dashboard.
Do not forget to run jupyter labextension install @jupyter-widgets/jupyterlab-manager
if testing in JupyterLab.