@@ -3,7 +3,7 @@ slug: responsive-bar-charts-bokeh-flask-python-3
33meta: How to build responsive bar charts with the Bokeh data visualization library, Flask and Pyton 3.
44category: post
55date: 2017-05-26
6- modified: 2017-05-26
6+ modified: 2017-07-30
77headerimage: /img/170526-bar-charts-bokeh-flask/header.jpg
88headeralt: Python, Flask and Bokeh logos.
99
@@ -88,8 +88,8 @@ pip install bokeh==0.12.5 flask==0.12.2 pandas==0.20.1
8888```
8989
9090After a brief download and installation period our required dependencies
91- should be installed within our virtualenv. Look for output like the
92- following to confirm everything worked.
91+ should be installed within our virtualenv. Look for output to confirm
92+ everything worked.
9393
9494```
9595Installing collected packages: six, requests, PyYAML, python-dateutil, MarkupSafe, Jinja2, numpy, tornado, bokeh, Werkzeug, itsdangerous, click, flask, pytz, pandas
@@ -109,7 +109,7 @@ We are going to first code a basic Flask application then add our bar
109109chart to the rendered page.
110110
111111Create a folder for your project then within it create a file named
112- ` app.py ` with the following initial contents:
112+ ` app.py ` with these initial contents:
113113
114114``` python
115115from flask import Flask, render_template
@@ -321,7 +321,7 @@ documentation open to know what your options are for customizing your
321321visualizations.
322322
323323We just need a few updates to our ` templates/chart.html ` file to display
324- the visualization. Open the file and add the folloiwng 6 lines to the file.
324+ the visualization. Open the file and add these 6 lines to the file.
325325Two of these lines are for the required CSS, two are JavaScript Bokeh
326326files and the remaining two are the generated chart.
327327
@@ -367,7 +367,7 @@ in the `create_hover_tool` function.
367367
368368
369369## Adding a Hover Tool
370- Within ` app.py ` modify the ` create_hover ` _ tool to match the following
370+ Within ` app.py ` modify the ` create_hover_tool ` to match the following
371371code.
372372
373373``` python
0 commit comments