/philadelphia-shootings-app

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

Primary LanguageJupyter Notebook

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