[BUG] "Run as Workflow" preamble is ignored for notebook scoped libraries
kartikgupta-db opened this issue · 0 comments
kartikgupta-db commented
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:
- Create a databricks notebook
- Add a cell with
%pip install x
- Add a new cell after pip install and import a local module
- Use "Run as Workflow" to run the notebook
- The notebook fails with error "module not found"