Skip to content

Commit f5d5c34

Browse files
Chinkit PatelCrazyDaffodils
Chinkit Patel
authored andcommitted
Adding support with Docker
1 parent 6bbd852 commit f5d5c34

10 files changed

+121
-3151
lines changed

.DS_Store

-8 KB
Binary file not shown.

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
MANIFEST
2+
build
3+
dist
4+
_build
5+
docs/man/*.gz
6+
docs/source/api/generated
7+
docs/source/config.rst
8+
docs/gh-pages
9+
notebook/i18n/*/LC_MESSAGES/*.mo
10+
notebook/i18n/*/LC_MESSAGES/nbjs.json
11+
notebook/static/components
12+
notebook/static/style/*.min.css*
13+
notebook/static/*/js/built/
14+
notebook/static/*/built/
15+
notebook/static/built/
16+
notebook/static/*/js/main.min.js*
17+
notebook/static/lab/*bundle.js
18+
node_modules
19+
*.py[co]
20+
__pycache__
21+
*.egg-info
22+
*~
23+
*.bak
24+
.ipynb_checkpoints
25+
.tox
26+
.DS_Store
27+
\#*#
28+
.#*
29+
.coverage
30+
.pytest_cache
31+
src
32+
33+
*.swp
34+
*.map
35+
.idea/
36+
Read the Docs
37+
config.rst
38+
39+
/.project
40+
/.pydevproject
41+
42+
package-lock.json
43+
geckodriver.log

.ipynb_checkpoints/obesity-checkpoint.ipynb

-6
This file was deleted.

README.md

+58-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,58 @@
1-
# Data_Visualization
1+
# A Complete Guide to an Interactive Geographical Map using Python
2+
3+
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.
4+
5+
[Blog]()
6+
7+
# Pre-requisites
8+
- [Docker](https://docs.docker.com/install/)
9+
- [Docker Compose](https://docs.docker.com/compose/install/)
10+
11+
# Directory Layout
12+
13+
```
14+
.
15+
├── Interactive-choropleth-map-obesity.mov
16+
├── README.md
17+
├── bokeh-app
18+
│   ├── data
19+
│   │   ├── countries_110m
20+
│   │   │   ├── ne_110m_admin_0_countries.README.html
21+
│   │   │   ├── ne_110m_admin_0_countries.VERSION.txt
22+
│   │   │   ├── ne_110m_admin_0_countries.cpg
23+
│   │   │   ├── ne_110m_admin_0_countries.dbf
24+
│   │   │   ├── ne_110m_admin_0_countries.prj
25+
│   │   │   ├── ne_110m_admin_0_countries.shp
26+
│   │   │   └── ne_110m_admin_0_countries.shx
27+
│   │   └── obesity.csv
28+
│   └── world_obesity.ipynb
29+
├── docker
30+
│   └── Dockerfile
31+
└── docker-compose.yml
32+
```
33+
34+
# Running the sample
35+
36+
## Step 1 : Starting docker container
37+
38+
``` bash
39+
$ git clone
40+
$ cd /root-dir-of-the-repository
41+
$ docker-compose up
42+
```
43+
On the console output copy the jupyter notebook url e.g. `http://localhost:8888/token?=xxxx` and paste in your browser.
44+
45+
## Step 2 : Execute Code
46+
47+
Open `world_obesity.ipynb` file and rull all cells.
48+
49+
## Step 3 : Start bokeh server
50+
51+
In the browser using the jupyter notebook go to the `Terminal`
52+
53+
```
54+
bokeh serve --show world_obesity.ipynb
55+
```
56+
## Step 4 : Browse the interactive map
57+
58+
The interactive map is rendered by bokeh server which can be browsed at `http://localhost:5006/`

0 commit comments

Comments
 (0)