cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can we use %run or any magic commands in a Delta Live Table pipeline?

Manimeghala
New Contributor III

When we try, it says magic commands are not supported. Is there a way to import other notebooks first so that its functions can be referenced/used while we build a DLT pipeline?

1 ACCEPTED SOLUTION

Accepted Solutions

@Werner Stinckensโ€‹ Thanks a ton for your response, Converting notebooks to python modules did help us in the current use-case. We are able to import.

View solution in original post

5 REPLIES 5

Kaniz_Fatma
Community Manager
Community Manager

Hi @Manimeghala Vemulaโ€‹, Here's a golden ticket to the solution!

Check out this community link where someone had a similar question and found the answer they were looking for: https://community.databricks.com/s/question/0D58Y00009SUdSrSAL/delta-live-table-pipeline-with-multip...;

Manimeghala
New Contributor III

Thanks @Kaniz Fatmaโ€‹ 

As per the above article, %run is not supported for DLT

Do we have any alternate solution for this rather than combining my utils notebook and main notebook

-werners-
Esteemed Contributor III

perhaps you can refactor your utils notebook to python modules (so .py files)

https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/import-workspace-files

@Werner Stinckensโ€‹ Thanks a ton for your response, Converting notebooks to python modules did help us in the current use-case. We are able to import.

Anonymous
Not applicable

Hi @Manimeghala Vemulaโ€‹ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!