katsar0v / self-updating-dashboard-with-voila

An example for a self-updating dashboard with voila

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binder

Screenshot

Self-updating Voila Dashboard Example

This is an example to create a self-updating dashboard, which gets data from an api interface.

This example contains requiremements.txt for dependencies.

Local Setup

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.

About

An example for a self-updating dashboard with voila


Languages

Language:Jupyter Notebook 78.6%Language:Python 17.9%Language:Shell 3.5%