Skip to main content

A module for displaying danish Voting poll in Bokeh maps.

Project description

What is kmdvalg?

  • It is a wrapper around BeautifulSoup to extract data from
  • Bokeh map patches are created with pyshp from shapefiles.
  • The shapefile dataset is: ‘Digdag (Kommunal)’ and ‘DAGI 1:2 mio’ downloaded 2017/12/03 from
  • The voting information is combined with map information before plotting.

See examples

Use to:

Launch interactive Jupyter Notebook to try examples:

How to install?

If using conda, these steps will install an environment

# With pip from
pip install kmdvalg

Developer install for local conda environment:

# Create environment
conda env create -f environment.yml

# Activate environment
conda env list
source activate kmdvalg

# Enable ipywidgets
jupyter nbextension list
jupyter nbextension enable --py widgetsnbextension --sys-prefix

# Start jupyter
jupyter notebook

Or manual install in root environment:

# Manually install package
python install --force

#  Manually uninstall
python install --record files.txt
PACK=`dirname $(head -n 1 files.txt)`
rm -rf $PACK
#cat files.txt | xargs rm -rf


# Modify version in: kmdvalg/

# Create tag
VERS=`python -c "from kmdvalg import __version__; print(__version__)"`
# Adds a tag so that we can put this on PyPI
git tag $VERS -m ""
git push --tags origin master

# Upload your package to PyPI Test
python sdist upload -r pypitest

# Upload to PyPI Live
# Once you've successfully uploaded to PyPI Test, perform the same steps but point to the live PyPI server instead.
python sdist upload -r pypi

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kmdvalg, version 0.13
Filename, size File type Python version Upload date Hashes
Filename, size kmdvalg-0.13.tar.gz (19.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page