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

4 REPLIES 4

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 Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now