2017-06-21 5 views
1

私は、多くのプロットとテーブルを含む予定のjupyterダッシュボードを構築しようとしています。理想的には、すべてのプロットと表が同じウィジェット値に応じて同時に変更されます。Jupyter Dashboardのための複数のセルを制御するウィジェット

すべてのプロットとテーブルの作成を処理して表示する機能を作成できますが、次に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を描画し、3つのセルをすべて制御するウィジェットを作成する方法はありますか?何かのように

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 

希望は明らかです。そうでない場合は、私は追加情報を提供してうれしいです。

ありがとうございます!

答えて

関連する問題