2016-08-18 40 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,這很好。 –