Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 2.41 KB

File metadata and controls

84 lines (70 loc) · 2.41 KB

InfoVisG33

Code for Group 33 Bokeh python implementation of InfoVis Project IN4086-14

Team members:

Data

The happiness report data is available on Kaggle.

Project structure

The project tree is displayed bellow:

infovis_app
│   
│   main.py    
│
└───data
│   │   2015.csv
│   │   2016.csv
│   │   2017.csv
│   │   country_mapping.csv
│   └───
└───static
│   │   happy.jpg
│   │   sad.jpg
│   │   neutral.jpg
│   └───
└───tabs
    │   factors_tab.py
    │   world_map_tab.py
    │   tabs_utils.py
    └───     

Environment

The application can be run in Anaconda Windows environment. After installing anaconda, an python 3.5 enviroment needs to be created:

conda create -n datavis_prj python=3.5 numpy pandas scipy

After creating datavis_prj enviroment, we activate it and install the following additional packages:

activate datavis_prj
conda install -c conda-forge geopandas
conda install -c bokeh bokeh 
conda install requests

If you encounter problems with fiona package, you should uninstall it and install 1.6 version:

conda uninstall fiona
conda install fiona=1.6

Run

Clone this repository and save all the files and folders into a directory named infovis_app. At the end of this setup step you should have the following files in your working directory:

(folder) infovis_app
    (folder) data
    (folder) static
    (folder) tabs
    (file) main.py

To run the application, inside datavis_prj enviroment from the parent directory of infovis_app folder, type the following command:

bokeh serve infovis_app -- show

Demo

App demo

Inspiration

Bokeh tutorial

Bokeh docs

World happiness visualization