Databricks Python Imports

Patterns for sharing code between Databricks notebooks using pure Python files and standard imports. Covers Asset Bundle path setup (rsplit canonical pattern), notebook-to-module conversion, import patterns vs %run magic commands, job submission context vs notebook context, MLflow model packaging path requirements, and troubleshooting ModuleNotFoundError. Use when creating shared modules, deploying jobs that import local code, or packaging MLflow models with local dependencies.

databricks-solutions 7b29abe 5 files · 29.0 KB Updated

File contents

databricks-solutions/vibe-coding-workshop-template/tree/main/data_product_accelerator/skills/common/databricks-python-imports commit 7b29abed04

Frequently asked questions

npx skillmds@latest add databricks-solutions/databricks-python-imports