Skip to content

A Panel-based dashboard showing recent shootings in Philadelphia using Altair, Folium, and Holoviews

Notifications You must be signed in to change notification settings

MUSA-620-Spring-2019/philadelphia-shootings-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring Recent Shootings in Philadelphia with Altair, Folium, and Panel

badge badge

Click the badge above to serve the app.ipynb app on Binder, visualizing recent shootings in Philadelphia. It is meant to serve as an example of a Panel dashboard that combines several different visualization libraries.

The dashboard includes:

  • a Folium heatmap of the shootings from the past X days, where X is specified by the user
  • an Altair histogram of victim ages
  • a Holoviews line chart showing the number of shootings per day
  • a time-based filter that allows the user to filter the data over a specific time period

As the user filters the daily shootings chart, the data displayed on the other charts will update to only include the data in this part.

Note

If you receive a "Request Timeout" or "Connection Refused" error when loading the app, try waiting a few minutes and re-clicking on the app launch button above.

Repository Files

  • environment.yml installing bokeh and nbserverproxy
  • a custom serverextension (panelserverextension.py) that launches bokeh server
  • a postBuild script that runs on Binder after the environment is installed that enables the server extensions
  • A Panel-based notebook (app.ipynb) that visualizes the dataset with Altair, Folium, and Holoviews

dashboard screenshot

About

A Panel-based dashboard showing recent shootings in Philadelphia using Altair, Folium, and Holoviews

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published