Demonstration Notebooks
Purpose:
The dashboard stats is a standalone library the demos are a set of notebooks which demonstrate the high level python required to run the dashboard stats library. This can be used as a starting point for non technical users. It is also good for running and prototyping output.
Getting Started
Database access
A direct connection to the ukrdc database is required. This can be achieved by following the instructions here:
Downloading the repository
The library is hosted on the registry github here:
If you don’t know how to clone with git this can be downloaded as a zip:
Installing dashboard stats
You will need python installed. This can be done by submitting a helpdesk request.
Right click on folder which contains the repository and select the option “open in terminal
Create a virtual environment called .venv by coping and pasting the following command and hitting enter:
python -m venv .venv
In the project folder there will now be a directory called .venv this contains all the packages which you install to enable the scripts/notebooks to run.
Install the poetry using the following command:
.venv/scripts/pip install poetry
Use poetry to install everything else.
.venv/scripts/poetry install --with demo
Running notebooks
Right click on folder which contains the repository and select the option “open in terminal
Start the notebook by running the following command
.venv/scripts/python -m notebook
which should land you somewhere like this:
Note that you will need to be on the vpn to connect to the database.
For more info on how to use a notebook go here: