From 893dd4d2ad07c45af4f25297400e03f2770bda8f Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Thu, 4 Jul 2019 22:10:59 -0500 Subject: [PATCH] Set _output for undetermined to avoid excessive signature #229 --- src/sos_notebook/step_executor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sos_notebook/step_executor.py b/src/sos_notebook/step_executor.py index 7f1efa4..72b47ee 100755 --- a/src/sos_notebook/step_executor.py +++ b/src/sos_notebook/step_executor.py @@ -21,9 +21,11 @@ def __init__(self, step, mode='interactive'): def init_input_output_vars(self): # we keep these variables (which can be result of stepping through previous statements) # if no input and/or output statement is defined - for key in ('step_input', '_depends', 'step_output', '_output', 'step_depends', '_depends'): + for key in ('step_input', '_depends', 'step_output', 'step_depends', '_depends'): if key not in env.sos_dict: env.sos_dict.set(key, sos_targets([])) + if '_output' not in env.sos_dict: + env.sos_dict.set('_output', sos_targets(_undetermined=True)) if any(x[0] == ':' and x[1] == 'input' for x in self.step.statements): env.sos_dict.set('step_input', sos_targets([])) env.sos_dict.set('_input', sos_targets([]))