Setup instructions:
NOTE: You do not need to do this to just see the visualizations. Downloading
bbviz.html
and opening it in your favorite web browser will show cached
visualizations that I made from the latest dump (latest.tar
). An even
easier way is to just use RawGit.
-
Clone this repository:
git clone https://github.com/naiveaiguy/bookbrainz-viz.git
-
If you have anaconda/virtualenv installed, create a new environment for this.
-
Install Jupyter Notebook if not present already.
-
Run
pip install -r requirements.txt
. -
Create a new account on
plot.ly
, then visit this page and use the username & API key from there to run this (in a Python REPL or in a script - you only need to do this once)import plotly plotly.tools.set_credentials_file(username=YOUR_USERNAME, api_key=YOUR_API_KEY)
-
Make sure you have a PostgreSQL database running on
127.0.0.1:5432
with usernamepostgres
and passwordadmin
. Or, change the environment variablesBBVIZ_HOST
,BBVIZ_PORT
,BBVIZ_USER
andBBVIZ_PASSWORD
to your values. -
Run
jupyter notebook bbviz.ipynb
.