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: 

Unsupported_operation : Magic commands (e.g. %py, %sql and %run) are not supported with the exception of %pip within a Python notebook. Cells containing magic commands are ignored - DLT pipeline

Ayur
New Contributor II

Hi,

I'm trying to use magic command(to change to python in a notebook with sql as a default language) in a dlt pipeline,.

When starting the pipeline cells containing magic command are ignored., with the warning message below:

"Magic commands (e.g. %py, %sql and %run) are not supported with the exception of %pip within a Python notebook. Cells containing magic commands are ignored. Unsupported magic commands were found in the following notebooks"

I'm using Azure Databricks.

Thanks in advance 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

that's because it is not (yet) supported.

in classic notebooks this will work of course.

View solution in original post

3 REPLIES 3

-werners-
Esteemed Contributor III

that's because it is not (yet) supported.

in classic notebooks this will work of course.

Ayur
New Contributor II

thanks for your reply ^^

do you have an idea why it's not supported. In others words, what makes the different between classic notebook and dlt pipeline. since the excecution environment is almost the same

Anonymous
Not applicable

Hi @Yassine Dehbi​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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!