%run not printing notebook output when using 'Run All' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 12:33 PM
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!
- Labels:
-
Notebook