Using Julia's PyCall to call Python's Bokeh running in a Jupyter notebook:
using PyCall
@pyimport numpy as np
@pyimport bokeh.plotting as plotting
@pyimport bokeh.io as io
io.output_notebook()
x = np.linspace(0, 4*np.pi, 100)
y = np.sin(x)
TOOLS = "pan,wheel_zoom,box_zoom,reset,box_select"
p1 = plotting.figure(title="Legend Example", tools=TOOLS)
p1[:circle](x, y, legend="sin(x)")
io.show(p1)
Instead of getting a plot like in the Bokeh examples I get:
Out[1]: <Bokeh Notebook handle>
- Works fine in a Python 2/3 notebook.
- Using
Docker/datascience-notebook
base image.