databricks-cli/libs/template/templates/default-python/template
Fabian Jakobs e61f0e1eb9
Fix DBConnect support in VS Code (#1253)
## Changes

With the current template, we can't execute the Python file and the jobs
notebook using DBConnect from VSCode because we import `from pyspark.sql
import SparkSession`, which doesn't support Databricks unified auth.
This PR fixes this by passing spark into the library code and by
explicitly instantiating a spark session where the spark global is not
available.

Other changes:

* add auto-reload to notebooks
* add DLT typings for code completion
2024-03-05 14:31:27 +00:00
..
{{.project_name}} Fix DBConnect support in VS Code (#1253) 2024-03-05 14:31:27 +00:00
__preamble.tmpl Minor template tweaks (#832) 2023-10-04 15:27:09 +00:00