Skip to content

HarvardOpenData/harvardcrime

Repository files navigation

Harvard Crime Maps

By the Harvard Open Data Project

Based off prior work from https://github.com/Harvard-Open-Data-Project/crimewatchbeta.

Setup

First, set up a Python3 virtual environment:

virtualenv -p python3 venv

Switch to that environment:

source venv/bin/activate

Install required packages:

pip install -r requirements.txt

Now get a Jupyter kernel for this project:

python -m ipykernel install --user --name=crime

Finally open up Jupyter:

jupyter notebook

Be sure to change the Jupyter Kernel to your new crime one. Go to Kernel > Change kernel > crime from the notebook page.

Usage

Did you add any packages with pip? Be sure to run pip freeze > requirements.txt every time so others can get them installed too.

To quit the virtual env, use deactivate.

Need help? See:

Running the website

Make sure you have Ruby.

gem install bundler jekyll
bundle exec jekyll serve

About

Mapping Harvard University Police's crime logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published