databricks-python-imports
Installation
SKILL.md
Databricks Python Imports and Code Sharing
Core Principle: Pure Python Files for Importable Code
Key Rule: To share code between Databricks notebooks using standard Python imports, the shared code must be a pure Python file (.py), not a Databricks notebook.
Reference: Share code between Databricks notebooks
⚠️ CRITICAL: Asset Bundle Path Setup
When deploying notebooks via Databricks Asset Bundles, you MUST add a sys.path setup block to enable imports from other folders. Without this, you'll get ModuleNotFoundError: No module named 'src'.
Required Path Setup Pattern
Add this block immediately after # Databricks notebook source: