☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Covid incidence map for Germany

Showcasebokeh
jfexbrayat
jfexbrayat

hi all,

I’ve created a notebook to map current covid incidence for Germany, using bokeh and geopandas. The notebook is short and fetches the required data from other sources. More info on my GitHub repository and the notebook can also be run stand-alone on Google Colab.

Feel free to run it yourself, expand and/or adapt to other countries.

Below a screenshot of the final result, showing the window with additional data that pops out when hovering over the map:

⌁   Link to post
carolyn
carolyn

Hi @jfexbrayat ,

Thanks so much for sharing this great work! Your notebook is well organized and commented, and I think it’ll help people working on similar projects.

I’d like to tweet about it on the @bokeh account, if that’s alright with you; do you have a Twitter handle we should tag?

⌁   Link to post
odadoun
odadoun

@jfexbrayat Good job and thanks for sharing.
In our PyCoa project (www.pycoa.fr) we are trying to parse the maximum national covid db we can (for the moment France, Spain, Portugal, UK, Italy, India, USA, Belgium and recently Germany).
We struggle since few days with the German implementation (we use the Robert Koch Institut’s db) Our problem is from German region coding …

I hope to find my answer in your nb :-). If you have few minutes my issue related to German region is here question concerning RKI DEU db · Issue #110 · coa-project/pycoa · GitHub. By advance thank you very much
Here the actual Pycoa German map

⌁   Link to post
jfexbrayat
jfexbrayat

This is awesome @ghomem!

I guess the ~5s delay when plotting is due to bokeh replotting the map every single time and this may be affected by the server’s specs: is your bokeh server hosted locally or on the cloud? Best would be if bokeh would cache all figures upon starting the server, but I don’t know if it’s possible / how you’d do it.

Anways, pretty cool job!

⌁   Link to post
ghomem
ghomem

Thanks @jfexbrayat !

This runs on a cloud instance with bokeh and nginx. I can always upgrade the instance if nothing better comes up.

I am recalculating the map at each slider change because I don’t have acess to the ColumDataSource that is created inside plot_bokeh. In my non-geo plots that callback of the sliders updates the ColumnDataSource and that makes the plot change, but in this case I don’t have it. I posed the question here:

with a link to the source code.

Comments are welcome.

⌁   Link to post
odadoun
odadoun

Hi,

sorry I was on vacation I have missed your question …
Yes the shapes exist for other countries but sometimes it is quit difficult to find them.
Please have a look go our geo class :

you will find several json description (like FRA,DEU, GBR,IND,USA,MYS, BEL,PRT, ESP, CHL, …)

⌁   Link to post

End of archived discussion · Replies are disabled