This is one of the 100 recipes of the IPython Cookbook, the definitive guide to high-performance scientific computing and data science in Python.

6.3. Creating interactive Web visualizations with Bokeh

  1. Let's import NumPy and Bokeh. We need to call output_notebook in order to tell Bokeh to render plots in the IPython notebook.
In [3]:
import numpy as np
import bokeh.plotting as bkh