databricks-cli/libs/template/templates/default-python
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
..
library Make the default `databricks bundle init` template more self-explanatory (#796) 2023-09-26 09:12:34 +00:00
template Fix DBConnect support in VS Code (#1253) 2024-03-05 14:31:27 +00:00
databricks_template_schema.json Improve default template (#1046) 2023-12-11 19:13:14 +00:00