概要
Databricks には dbdemos というデモをすぐに実行できる便利な機能が提供されているのですが、クラスターなどのリソースも同時に作成される仕様であるため、リソースを作成せずにノートブックのみをインポートする暫定対応方法を共有します。現時点では docstring の記載もなく、Github 上のdbdemos/dbdemos.pyの記載内容から判断しただけであるため、想定通りに動作しない可能性もあります。
引用元:dbdemos - Install demos for Databricks Lakehouse
暫定対応方法
install
メソッド実行時に、start_cluster
、use_current_cluster
、および、skip_dashboards
のパラメータを変更することでリソースが作成されませんでした。
dbdemos.install(
'{demo_name}',
# overwrite = True,
start_cluster = False,
use_current_cluster = True,
skip_dashboards = True,
)
実行例を次に示します。
dbdemos.install(
'lakehouse-fsi-credit',
# overwrite = True,
start_cluster = False,
use_current_cluster = True,
skip_dashboards = True,
)