Combiz Khozoie
01/24/2023, 5:59 PMyuhan
01/24/2023, 9:01 PMPeter Davidson
01/25/2023, 6:08 AMos.system(f'jupyter nbconvert --to html "{output_notebook_path}"')
Then I add the path to the notebook as metadata to the asset.
metadata = {
"Executed notebook": MetadataValue.notebook(output_notebook_path),
"HTML output": MetadataValue.url(pathlib.Path(str(output_notebook_path).replace(".ipynb", ".html")).as_uri())
}
context.add_output_metadata(metadata)
But, you can't click the url to the html -> think this is blocked somehow in dagster. so need to copy/paste the link. Still, pretty goodCombiz Khozoie
01/25/2023, 10:35 AM