cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.