Commit 68fd556
committed
Add ipykernel to default template and fix conftest comment
## Changes
- Added ipykernel to dev dependencies in default template's pyproject.toml
- Fixed outdated comment in conftest.py (removed reference to 'tests under resources/')
- Updated acceptance test outputs for default-python, lakeflow-pipelines, and pydabs templates
## Why
ipykernel enables Jupyter notebook support with the project's virtual environment, which is essential for the exploratory notebooks included in the template. The conftest comment was outdated and misleading.
## Investigation
Confirmed that databricks.sdk.runtime.spark already works correctly in the template:
- Unit tests properly use databricks.sdk.runtime.spark
- pytest --collect-only is fast (~0.05s) and doesn't eagerly connect
- DBR 15+ compatibility works via validateSession()
- The eager initialization in conftest.py serves real purposes (compute config, version validation) and should be kept
## Tests
- All template acceptance tests pass
- Verified pytest --collect-only behavior
- Tested on Python 3.9-3.13
- Tested with both classic and serverless compute1 parent daef3df commit 68fd556
File tree
8 files changed
+8
-6
lines changed- acceptance/bundle/templates
- default-python
- classic/output/my_default_python
- tests
- serverless/output/my_default_python
- tests
- lakeflow-pipelines/python/output/my_lakeflow_pipelines
- pydabs/init-classic/output/my_pydabs
- libs/template/templates/default/template/{{.project_name}}
- tests
8 files changed
+8
-6
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments