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?

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.

View solution in original post

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!