INTERACTIVE MAP OF EUROPE
USING BOKEH AND GEOPANDAS


Initial idea came from some work I do for EuCAPT – it was agreed to represent the organization through its members in some meaningful way. Since releasing the information on the individuals is not the way to go, it was decided that maybe just making a map with pinned institutions solves the problem. Since I really like playing around in Bokeh and GeoPandas (and other tools of this sort), I suggested to try to make the map interactive… and was very pleased I got the green light. After many hours of data sorting and coding, the map was published on 18.03.2021 on the EuCAPT Home Page.

Modified version of this code, where I downloaded the list of countries in Europe with some stats is publicly available in the folder EuropeMap on my Data Visualisation GH Repo. Feel free to use it, play with it and modify it (give credit just by linking to the GH repository). Note that the map can be embedded into a website directly and does not require any deployment!

This can be useful for anyone who wants to plot some data but doesn’t want to go through the API pain (or pay for stuff). The map does not have the best resolution but this can be modified by downloading other maps from GeoPandas. You can also plot the whole world or isolate whatever continent or country you want. (there should be a world_data version in my GH repo).

Thank you to Bokeh peeps over at Bokeh Discourse (you are the best), StackOverflow (how did we do stuff before SO?), and EuCAPT for giving me the opportunity to do some fun work. And of course, countless litres of coffee.


Best, Niko

To zoom in, click on the zoom button on the right hand side of the plot. After you activated the zoom option, you can zoom in and out with your mouse. You can pan by click&drag.

Bokeh Plot