cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

%run is not working

Databricks3
Contributor

I have created two notebooks in my workspace one(A) is having function and other one(B) is having the main code.

I am trying to use the %run magic function to use the functions available in notebook A from notebook B. Both notebooks are on the same path.

/User/Myuser/NotebookA

/User/Myuser/NotebookB

I am using below command in Notebook A

%run ./NotebookB

I am getting the below error

UsageError: Line magic function `%` not found.

Anyone could help me here.

Thanks in Advance.

1 REPLY 1

Ajay-Pandey
Esteemed Contributor III

@SK ASIF ALI​ 

It's not supported in community if you are using premium version then this should work

Can you please send the snippet of the error message?

#DAIS2023​ 

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.