2017-06-21 49 views
1

我試圖建立一個jupyter儀表板,它將包含許多情節和表格。理想情況下,所有圖表和表格將同時相應更改爲相同的窗口小部件值。控件Jupyter控制板的多個單元格的小部件

我可以創建一個函數來處理所有圖表和表格的創建並顯示它們,但是接下來我將限制jupyter儀表板非常適合的佈局。

def create_dashboard(x, y, z): 
    # make first plot using x 
    ... 
    # make second plot using x, y 
    ... 
    # draw table from dataframe using x, y, z 
    ... 

interact(create_dashboard, x, y ,z) 

這可能會工作,但它非常有限。此外,即使您不更改將修改輸出的變量,您也需要生成所有圖表和表格(很多很多)。此外,全部在ipython單元中順序顯示,無法在創建儀表板時移動它們。

有沒有什麼辦法在單個單元格中繪製plot using x,plot using ytable using x, y, z,然後創建一個控件來控制所有三個單元格?像

output[1] 
# plot using x 

output[2] 
# plot using x, y 

output[3] 
# table from dataframe using x, y, z 

output[4] 
interact(x, y, z) 
# show the widget only here 

希望這是明確的。如果不是,我很樂意提供更多信息。

謝謝!

回答

相關問題