Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.13 KB

File metadata and controls

60 lines (37 loc) · 1.13 KB

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