Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow output to be hidden in nbrun() #1864

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

tuulos
Copy link
Collaborator

@tuulos tuulos commented May 27, 2024

No description provided.

@@ -50,7 +50,7 @@ class NBRunner(object):
def __init__(
self,
flow,
show_output: bool = False,
show_output: bool = True,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the self.runner is used in other places too such as run, resume, async_run and async_resume -- and the default way here should be to suppress outputs.

It is only for nbrun and nbresume methods that we want to show outputs by default.

Setting the default value to True will make it show for the run, resume, async_run and async_resume methods as well, which we don't want..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want to show output by default for run and resume. For async_ calls, show_output doesn't have any effect, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, show output should have no effect on async_

@savingoyal savingoyal merged commit 9865115 into master May 27, 2024
26 checks passed
@savingoyal savingoyal deleted the nbrunner-show-output branch May 27, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants