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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group