{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Data Visualization with Python\n",
"## Part 2: Interactive Visualizations With Bokeh"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Bokeh\n",
"\n",
"What is Bokeh?\n",
"- A python library for browser based visualizations\n",
"
\n",
"- Cross-platform\n",
" - interactive plots\n",
" - dashboards\n",
" - data applications\n",
"
\n",
"- High-performance interactivity over very large or streaming datasets\n",
"
\n",
"- Tight integration with Jupyter and pandas\n",
" - shareable, explorable data analysis notebooks\n",
"
\n",
"- Large community\n",
"
\n",
"- Active development"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# More information\n",
"\n",
"- Bokeh Homepage: https://bokeh.pydata.org\n",
"
\n",
"- Bokeh Discussion Group: https://groups.google.com/a/continuum.io/forum/#!forum/bokeh\n",
"
\n",
"- Userguide: https://bokeh.pydata.org/en/latest/docs/user_guide.html\n",
"
\n",
"- API Reference: https://bokeh.pydata.org/en/latest/docs/reference.html\n",
"
\n",
"- Gallery: https://bokeh.pydata.org/en/latest/docs/gallery.html\n",
"
\n",
"- Tutorial: http://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/index.ipynb#Tutorial"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# A Simple Example\n",
"\n",
"Create a scatterplot using the iris data from the previous lesson.\n",
"\n",
"Plot petal_width vs. petal_length.\n",
"\n",
"Colour each data point by species."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"
\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"
\\n\"+\n", " \"\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"
\\n\"+\n",
" \"\"),e=0;e<7;e++)n.push(' | '+p(t,e,!0)+\" | \");return\"
---|