Skip to content

phonosync/co2-gdp_bokeh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Bokeh App on the CO2-GDP Dataset

A Bokeh app that uses the CO2-GDP dataset to visualize the relationship between CO2 emissions and GDP.

The app is deployed as an Azure App Service at: https://co2-gdp-bokeh-db.manuel-doemer.ch

Data

The dataset is sourced from Our World in Data – CO2 and Greenhouse Gas Emissions.

Setup

Dependencies are managed with uv via pyproject.toml and uv.lock.

Azure App Service Oryx automatically detects pyproject.toml + uv.lock and installs dependencies with uv during deployment.

Install uv (if not already installed):

curl -LsSf https://astral.sh/uv/install.sh | sh

Set up the local environment:

uv sync

Run the app locally:

uv run bokeh serve main.py --show

Deployment as Azure WebApp

App Service Stack: Python - Version 3.12

GitHub actions workflow: .github/workflows/main_bokehsampledb.yml

Startup command:

python -m bokeh serve main.py --port 8000 --address 0.0.0.0 --unused-session-lifetime 5000 --check-unused-sessions 5000 --allow-websocket-origin=<AZURE GENERATED URL>.azurewebsites.net --allow-websocket-origin=co2-gdp-bokeh-db.manuel-doemer.ch

Custom domain: co2-gdp-bokeh-db.manuel-doemer.ch

Documentation

License

This project is licensed under the CC BY-NC 4.0 license.

About

Demo for Dashboards using bokeh on co2-gdp dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages