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:ย 

%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โ€‹ 

Ajay Kumar Pandey

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now