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

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