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

%run not printing notebook output when using 'Run All' command

aaronpetry
New Contributor III

I have been using the %run command to run auxiliary notebooks from an "orchestration" notebook. I like using %run over dbutils.notebook.run because of the variable inheritance, troubleshooting ease, and the printing of the output from the auxiliary notebooks to the orchestration notebook.

Yesterday, when I was using %run, it was working as expected. Today, when I use %run, it is acting differently.

1. I no longer have to send arguments using the following:

%run ./some-notebook $var = arg $var2 = arg

Instead, it is sending var and var2 defined elsewhere in the notebook.

2. When using 'Run All' from the tool bar, the %run command no longer prints the output of the auxiliary notebook. It only shows the execution time. However, if I run the command individually (shift+enter in the cell), it will show the output. Is there a way to be able to run the whole notebook and still see the %run output?

Thank you!

2 REPLIES 2

Anonymous
Not applicable

Hi @Aaron Petry​ 

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 bricksters will get back to you soon.

Thanks

aaronpetry
New Contributor III

Hi Vidula,

No worries! What I've found is that if I create a new command with the same %run command, it will then show the output. It will work for some time until it decides it doesn't want to show output anymore, so then I just create a new command with the same %run line, and then it starts to work again. This should be okay for the time being.

Aaron

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.