ContentMine/visualizations

Name: visualizations

Owner: The ContentMine

Description: null

Created: 2016-05-18 13:58:19.0

Updated: 2018-03-21 11:13:07.0

Pushed: 2016-11-24 15:34:16.0

Homepage: null

Size: 94447

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

visualizations

Create and publish interactive visualizations of ContentMine-facts. We use the Bokeh library for creating interactive visualization applets that can be run locally or deployed on a server.

Installation and Requirements

The easiest setup is by using Anaconda for Python 3, opening the Anaconda Prompt and creating a new virtual environment.

a create -n contentmine3 python=3.5.2 anaconda

After that activate the virtual environment and install the packages with pip:

ce activate contentmine3
install pandas bokeh
Configuration

At the moment very basic, three options have to be set in config.py:

Running an interactive visualization

Fork, clone or download this repo.

Get some play data
Setting up local environments
Deployment to heroku
Deployment notes

Currently we have to split bokeh and flask into two apps (dynos), until the interprocess communication problem can be solved. Flask frontend-development is happening on branch flask, bokeh server development is happening on branch server. Differences are the Procfile, and in app.py, where autoload_server() looks at different urls when running on the same or two dynos. Data needs to be updated in each branch.

Deploy via pipeline

Add staging app and server app to git remotes

remote add staging https://git.heroku.com/contentmine-demo-staging.git
remote add server https://git.heroku.com/contentmine-demos.git

Push new flask-app code to staging

checkout flask
push staging flask:master    

Push new server-app code to server

checkout server
push server server:master    

Review functionality and then promote to production (via CLI or web interface)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.