Code Monkey home page Code Monkey logo

interactive-choropleth-map-using-python's Introduction

A Complete Guide to an Interactive Geographical Map using Python

Ever wondered how these beautiful geographical maps are created? Our World in Data has an extensive collection of interactive data visualizations on aspects dedicated to the global changes in health, population growth, education, culture, violence, political power, technology and several things that we care about. These visualizations help us understand how and why the world has changed over the last few decades. I was intrigued with this wealth of information and motivated to dive deeper.

Blog

Pre-requisites

Directory Layout

.
├── Interactive-choropleth-map-obesity.mov
├── README.md
├── bokeh-app
│   ├── data
│   │   ├── countries_110m
│   │   │   ├── ne_110m_admin_0_countries.README.html
│   │   │   ├── ne_110m_admin_0_countries.VERSION.txt
│   │   │   ├── ne_110m_admin_0_countries.cpg
│   │   │   ├── ne_110m_admin_0_countries.dbf
│   │   │   ├── ne_110m_admin_0_countries.prj
│   │   │   ├── ne_110m_admin_0_countries.shp
│   │   │   └── ne_110m_admin_0_countries.shx
│   │   └── obesity.csv
│   └── world_obesity.ipynb
├── docker
│   └── Dockerfile
└── docker-compose.yml

Running the sample

Step 1 : Starting docker container

$ git clone 
$ cd /root-dir-of-the-repository
$ docker-compose up

On the console output copy the jupyter notebook url e.g. http://localhost:8888/token?=xxxx and paste in your browser.

Step 2 : Execute Code

Open world_obesity.ipynb file and rull all cells.

Step 3 : Start bokeh server

In the browser using the jupyter notebook go to the Terminal

bokeh serve --show world_obesity.ipynb

Step 4 : Browse the interactive map

The interactive map is rendered by bokeh server which can be browsed at http://localhost:5006/

interactive-choropleth-map-using-python's People

Contributors

crazydaffodils avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.