! pip show bokeh
Name: bokeh Version: 0.12.6 Summary: Interactive plots and applications in the browser from Python Home-page: http://github.com/bokeh/bokeh Author: Continuum Analytics Author-email: info@continuum.io License: New BSD Location: c:\anaconda3\lib\site-packages Requires: requests, bkcharts, python-dateutil, numpy, six, Jinja2, PyYAML, tornado
%env BOKEH_RESOURCES=inline
env: BOKEH_RESOURCES=inline
# %env BOKEH_RESOURCES=inline
from bokeh.io import show, output_notebook
from bokeh.plotting import ColumnDataSource, figure
from bokeh.models import HoverTool, Range1d
output_notebook()
fig = figure(tools=[HoverTool(tooltips=[("html", '@html{safe}')])])
fig.quad(left="left", top="top", bottom="bottom", right="right",
source=ColumnDataSource({"left": [1,3], "bottom": [1,3],
"right": [2,4], "top": [2,4],
"html":["<b>I'm bold</b>", "<span style='color:red;font-size:32px;'>BIG RED TEXT</span>"]}))
show(fig)