You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/posts/170526-bar-charts-bokeh.markdown
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
title: Building Responsive Bar Charts with Bokeh, Flask and Python 3
1
+
title: Responsive Bar Charts with Bokeh, Flask and Python 3
2
2
slug: responsive-bar-charts-bokeh-flask-python-3
3
3
meta: How to build responsive bar charts with the Bokeh data visualization library, Flask and Pyton 3.
4
4
category: post
@@ -10,11 +10,15 @@ headeralt: Python, Flask and Bokeh logos.
10
10
11
11
[Bokeh](/bokeh.html) is a powerful open source Python library that allows
12
12
developers to generate JavaScript data visualizations for their web
13
-
applications *without writing any JavaScript*. With Bokeh we can create
14
-
incredibly varied visualizations, or traditional ones like the following
15
-
bar chart.
13
+
applications *without writing any JavaScript*. While learning a
14
+
JavaScript-based data visualization library like [d3.js](https://d3js.org/)
15
+
can be useful, it's often far easier to knock out a few lines of Python
16
+
code that get the job done.
16
17
17
-
<imgsrc="/img/170526-bar-charts-bokeh-flask/bar-chart-64.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#aaa"alt="Responsive bar chart with 64 bars.">
18
+
With Bokeh we can create incredibly detailed interactive visualizations,
19
+
or just traditional ones like the following bar chart.
20
+
21
+
<imgsrc="/img/170526-bar-charts-bokeh-flask/chart-example-64.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#ccc"alt="Responsive bar chart with 64 bars.">
18
22
19
23
20
24
Let's use the
@@ -69,7 +73,7 @@ source barchart/bin/activate
69
73
70
74
The command prompt will change after activating the virtualenv:
71
75
72
-
<imgsrc="/img/170526-bar-charts-bokeh-flask/activate-virtualenv.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#aaa"alt="Activating our Python virtual environment on the command line.">
76
+
<imgsrc="/img/170526-bar-charts-bokeh-flask/activate-virtualenv.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#ccc"alt="Activating our Python virtual environment on the command line.">
73
77
74
78
Keep in mind that you need to activate the virtualenv in every new terminal
75
79
window that you want this virtualenv to be used for your project.
0 commit comments