
Answer-first summary for fast verification
Answer: %run
The correct answer is **%run**. This magic command in Databricks notebooks allows you to include another notebook within the current one, making all its variables, functions, and code blocks part of the current programming context. This feature is essential for modularizing code and enhancing reusability across projects. For more details, refer to the documentation on [Modularize or link code in Databricks notebooks](https://docs.databricks.com/notebooks/notebooks-use.html#modularize-or-link-code-in-databricks-notebooks).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a data engineer utilizing the Databricks Lakehouse Platform for a complex project, you've created a module with custom functions in a separate notebook for reusability. Which magic command should you use to import this notebook into your current notebook?
A
%execute
B
%run
C
%load
D
%include
E
%import
No comments yet.