From 324116614c8f57829313cb51fe44ad10f106551d Mon Sep 17 00:00:00 2001 From: Ville Tuulos Date: Mon, 27 May 2024 13:52:58 -0700 Subject: [PATCH] allow output to be hidden in nbrun() --- metaflow/runner/nbrun.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/metaflow/runner/nbrun.py b/metaflow/runner/nbrun.py index 13f981658d5..c3f70659a93 100644 --- a/metaflow/runner/nbrun.py +++ b/metaflow/runner/nbrun.py @@ -50,7 +50,7 @@ class NBRunner(object): def __init__( self, flow, - show_output: bool = False, + show_output: bool = True, profile: Optional[str] = None, env: Optional[Dict] = None, base_dir: str = DEFAULT_DIR, @@ -93,18 +93,12 @@ def __init__( ) def nbrun(self, **kwargs): - self.old_val_show_output = self.show_output - self.runner.show_output = True result = self.runner.run(**kwargs) - self.runner.show_output = self.old_val_show_output self.runner.spm.cleanup() return result.run def nbresume(self, **kwargs): - self.old_val_show_output = self.show_output - self.runner.show_output = True result = self.runner.resume(**kwargs) - self.runner.show_output = self.old_val_show_output self.runner.spm.cleanup() return result.run