Bokeh is a Data Visualization library for
And most importantly:
In [1]:
# Standard imports
from bokeh.io import output_notebook, show
output_notebook()
In [2]:
# Plot a complex chart in a single line
from bokeh.charts import Histogram
from bokeh.sampledata.iris import flowers as data
hist = Histogram(data, values="petal_length", color="species", legend="top_right", bins=12)
show(hist)
In [5]:
data.head()
Out[5]:
In [3]:
from bokeh.charts import Scatter
p = Scatter(data, x='petal_length', y='petal_width')
show(p)
In [4]:
p = Scatter(data, x='petal_length', y='petal_width', color='species',
legend='top_left', marker='species', title="Ejemplo Scatter")
show(p)
In [9]:
from IPython.core.display import Markdown
Markdown(open("README.md").read())
Out[9]:
Setup-test, run the next cell. Hopefully you should see output that looks something like this:
IPython - 4.2.0
Pandas - 0.18.1
Bokeh - 0.12.0
If this isn't working for you, see the README.md
in this directory.
In [6]:
from IPython import __version__ as ipython_version
from pandas import __version__ as pandas_version
from bokeh import __version__ as bokeh_version
print("IPython - %s" % ipython_version)
print("Pandas - %s" % pandas_version)
print("Bokeh - %s" % bokeh_version)
In [ ]: