使用Julia的PyCall调用在Jupyter笔记本中运行的Python的散景:
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)
而不是像Bokeh examples那样得到一个情节:
Out[1]: <Bokeh Notebook handle>
Docker/datascience-notebook
基本图片。