great_expectations.render.renderer.suite_edit_notebook_renderer

Module Contents

Classes

SuiteEditNotebookRenderer(custom_templates_module: Optional[str] = None, header_markdown: Optional[NotebookTemplateConfig] = None, footer_markdown: Optional[NotebookTemplateConfig] = None, table_expectations_header_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_header_markdown: Optional[NotebookTemplateConfig] = None, table_expectations_not_found_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_not_found_markdown: Optional[NotebookTemplateConfig] = None, authoring_intro_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_markdown: Optional[NotebookTemplateConfig] = None, header_code: Optional[NotebookTemplateConfig] = None, footer_code: Optional[NotebookTemplateConfig] = None, column_expectation_code: Optional[NotebookTemplateConfig] = None, table_expectation_code: Optional[NotebookTemplateConfig] = None, context: Optional[DataContext] = None)

Render a notebook that can re-create or edit a suite.

class great_expectations.render.renderer.suite_edit_notebook_renderer.SuiteEditNotebookRenderer(custom_templates_module: Optional[str] = None, header_markdown: Optional[NotebookTemplateConfig] = None, footer_markdown: Optional[NotebookTemplateConfig] = None, table_expectations_header_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_header_markdown: Optional[NotebookTemplateConfig] = None, table_expectations_not_found_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_not_found_markdown: Optional[NotebookTemplateConfig] = None, authoring_intro_markdown: Optional[NotebookTemplateConfig] = None, column_expectations_markdown: Optional[NotebookTemplateConfig] = None, header_code: Optional[NotebookTemplateConfig] = None, footer_code: Optional[NotebookTemplateConfig] = None, column_expectation_code: Optional[NotebookTemplateConfig] = None, table_expectation_code: Optional[NotebookTemplateConfig] = None, context: Optional[DataContext] = None)

Bases: great_expectations.render.renderer.notebook_renderer.BaseNotebookRenderer

Render a notebook that can re-create or edit a suite.

Use cases: - Make an easy path to edit a suite that a Profiler created. - Make it easy to edit a suite where only JSON exists.

static from_data_context(data_context)
classmethod _get_expectations_by_column(cls, expectations)
classmethod _build_kwargs_string(cls, expectation)
render_with_overwrite(self, notebook_config: Optional[NotebookTemplateConfig], default_file_name: str, **default_kwargs)
add_header(self, suite_name: str, batch_kwargs)
add_expectation_cells_from_suite(self, expectations)
_add_column_level_expectations(self, expectations_by_column)
_add_table_level_expectations(self, expectations_by_column)
static _build_meta_arguments(meta)
render(self, suite: ExpectationSuite, batch_kwargs=None)

Render a notebook dict from an expectation suite.

render_to_disk(self, suite: ExpectationSuite, notebook_file_path: str, batch_kwargs=None)

Render a notebook to disk from an expectation suite.

If batch_kwargs are passed they will override any found in suite citations.

add_authoring_intro(self)
get_batch_kwargs(self, suite: ExpectationSuite, batch_kwargs: Union[dict, BatchKwargs])
static _fix_path_in_batch_kwargs(batch_kwargs)