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

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