2016-08-18 42 views

回答

2

push_notebook如果不传递参数,则通过defatult更新最后一个单元格。但它也接受show在呈现单元格时返回的“笔记本句柄”。

# in one cell 
p = figure(**opts) 
r = p2.circle([1,2,3], [4,5,6]) 
h = show(p) 

# in a different cell 
r.glyph.fill_color = "white" 
push_notebook(handle=h) 

查看在GitHub库的Basic Usage例如笔记本。

+0

谢谢@bigreddot,这很好。 –