Skip to content

Commit

Permalink
fix: passing of input/output paths
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed May 16, 2024
1 parent 03fb4ad commit 13d261e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hera_notebook_templates/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,14 @@ def runfunc(ctx, basename, **kwargs):
print(f"Executing Notebook and saving to {output_path}")
print(f"Got notebook params: '{kwargs}'")

kwargs['papermill_output_path'] = str(output_path)
kwargs['papermill_input_path'] = str(nbfile)

pm.execute_notebook(
str(nbfile),
output_path = output_path,
kernel_name = ctx.obj['kernel'],
parameters=
{
'papermill_output_path': str(output_path),
'papermill_input_path': str(nbfile),
**kwargs,
}
parameters= kwargs,
)

for fmt in ctx.obj['formats']:
Expand Down

0 comments on commit 13d261e

Please sign in to comment.