Evan Curtin
08/27/2021, 2:58 PMExecuteNotebook
task and it’s spilling the cell content to stdout during normal execution, is there an option to supress? I’m using a target file to cache the output and that’s working fineKevin Kho
log_output=True
by chance?Evan Curtin
08/27/2021, 3:03 PMnotebook_task = ExecuteNotebook(
str(nb_path),
kernel_name="dev",
parameters={**opts},
result=LocalResult(dir=cachedir, serializer=PlainTextSerializer()),
target="output.ipynb",
)
this is how I’m calling it, PlainTextSerializer is just a simple serializer i wrote to dump strings as-isKevin Kho
log_output=False
to ExecuteNotebook
and see what happens?Evan Curtin
08/27/2021, 3:06 PMEvan Curtin
08/27/2021, 3:06 PMKevin Kho
- output_format (str, optional): Notebook output format, should be a valid
nbconvert Exporter name. 'json' is treated as 'notebook'.
Valid exporter names: asciidoc, custom, html, latex, markdown,
notebook, pdf, python, rst, script, slides, webpdf. (default: notebook)
Kevin Kho
Evan Curtin
08/27/2021, 3:10 PMEvan Curtin
08/27/2021, 3:43 PMEvan Curtin
08/27/2021, 3:43 PMKevin Kho
Evan Curtin
08/27/2021, 6:37 PMEvan Curtin
08/27/2021, 6:38 PMEvan Curtin
08/27/2021, 6:38 PMKevin Kho
Evan Curtin
08/27/2021, 6:43 PMnb: nbformat.NotebookNode = pm.execute_notebook(
path,
"-",
parameters=parameters,
kernel_name=self.kernel_name,
log_output=self.log_output,
)
I think this is the cause here, in prefect.tasks.jupyter.jupyter.ExecuteNotebook.run
the "-"
argument is being used as the output path which when i run on the CLI pipes to stdout it seemsEvan Curtin
08/27/2021, 7:04 PMKevin Kho