databricks/databricks-vscode

[BUG] "Run as Workflow" preamble is ignored for notebook scoped libraries

kartikgupta-db opened this issue · 0 comments

Describe the bug
Notebook scoped libraries (%pip install x) lead to a restart of the kernel. This leads to preamble being forgotten.

To Reproduce
Steps to reproduce the behavior:

  1. Create a databricks notebook
  2. Add a cell with %pip install x
  3. Add a new cell after pip install and import a local module
  4. Use "Run as Workflow" to run the notebook
  5. The notebook fails with error "module not found"

Screenshots
image