apache_beam.runners.interactive.testing.integration.notebook_executor module¶
Module to execute jupyter notebooks and gather the output into renderable HTML files.
- class apache_beam.runners.interactive.testing.integration.notebook_executor.NotebookExecutor(path: str)[source]¶
Bases:
object
Executor that reads notebooks, executes it and gathers outputs into static HTML pages that can be served.
- execute()[source]¶
Executes all notebooks found in the scoped path and gathers their outputs into HTML pages stored in the output folder.
- property output_html_paths¶
Mapping from execution ids to output html page paths.
An execution/test id is an obfuscated value from the executed notebook path. It identifies the input notebook, the output html, the screenshot of the output html, and the golden screenshot for comparison.
- property output_html_dir¶
The directory’s path to all the output html pages generated.
- property notebook_path_to_execution_id¶
Mapping from input notebook paths to their obfuscated execution ids.