Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Allow exporter arguments in Jupyter ExecuteNotebook task #3687
Comments
|
Since this would only apply to the html exporter and not the json output perhaps it'd make sense to allow make |


Current behavior
When running the
jupyter.jupyter.ExecuteNotebooktask withoutput_format='html'the default settings for the HTMLExporter are used. There is no way to pass arguments to this exporter.Proposed behavior
Allow passing arguments to the HTMLExporter.
Implementation suggestion
Something like
html_exporter = nbconvert.HTMLExporter(**exporter_kwargs)on the following line:https://github.com/PrefectHQ/prefect/blob/master/src/prefect/tasks/jupyter/jupyter.py#L65
Example usecase
This allows you to exclude code cells, only showing their output, in the exported html document by passing the
exclude_input=Trueargument to the exporter.