diff --git a/libs/template/templates/default-python/template/{{.project_name}}/scratch/exploration.ipynb.tmpl b/libs/template/templates/default-python/template/{{.project_name}}/scratch/exploration.ipynb.tmpl index 8c0298fec..adb353c58 100644 --- a/libs/template/templates/default-python/template/{{.project_name}}/scratch/exploration.ipynb.tmpl +++ b/libs/template/templates/default-python/template/{{.project_name}}/scratch/exploration.ipynb.tmpl @@ -32,6 +32,7 @@ "sys.path.append('../src')\n", "from {{.project_name}} import main\n", "\n", + {{- /* We can use the short form here without 'dbutils.text()' since the widgets are defined in the metadata below. */}} "catalog = dbutils.widgets.get('catalog')\n", "schema = dbutils.widgets.get('schema')\n", "spark.sql(f'USE {catalog}.{schema}')\n", diff --git a/libs/template/templates/default-python/template/{{.project_name}}/src/notebook.ipynb.tmpl b/libs/template/templates/default-python/template/{{.project_name}}/src/notebook.ipynb.tmpl index 4d3c398c9..0924e60f3 100644 --- a/libs/template/templates/default-python/template/{{.project_name}}/src/notebook.ipynb.tmpl +++ b/libs/template/templates/default-python/template/{{.project_name}}/src/notebook.ipynb.tmpl @@ -24,6 +24,7 @@ "outputs": [], "source": [ "# Load default catalog and schema as widget and set their values as the default catalog / schema\n", + {{- /* We can use the short form here without 'dbutils.text()' since the widgets are defined in the metadata below. */}} "catalog = dbutils.widgets.get('catalog')\n", "schema = dbutils.widgets.get('schema')\n", "spark.sql(f'USE {catalog}.{schema}')"