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

%run file not found

RantoB
Valued Contributor

Hi,

I was using the following command to import variables and functions from an other notebook :

%run ./utils

For some reason it is not working any more and gives me this message :

Exception: File `'./utils.py'` not found.

utils.py is still at the same place, namely in the current notebook directory.

Any idea why it could be not working ?

1 ACCEPTED SOLUTION

Accepted Solutions

RantoB
Valued Contributor

Finally I just solved my issue.

Actually, in the same cell I wrote a comment starting with # and it was not working because of that...

View solution in original post

3 REPLIES 3

Kaniz
Community Manager
Community Manager

Hi @RantoB! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.

RantoB
Valued Contributor

Finally I just solved my issue.

Actually, in the same cell I wrote a comment starting with # and it was not working because of that...

Kaniz
Community Manager
Community Manager

Great!

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.