great_expectations.render.renderer.notebook_renderer
¶
Module Contents¶
Classes¶
|
Abstract base class for methods that help with rendering a jupyter notebook. |
-
class
great_expectations.render.renderer.notebook_renderer.
BaseNotebookRenderer
(context: Optional[DataContext] = None)¶ Bases:
great_expectations.render.renderer.renderer.Renderer
Abstract base class for methods that help with rendering a jupyter notebook.
-
add_code_cell
(self, code: str, lint: bool = False, enforce_py_syntax: bool = True)¶ Add the given code as a new code cell. :param code: Code to render into the notebook cell :param lint: Whether to lint the code before adding it
- Returns
Nothing, adds a cell to the class instance notebook
-
add_markdown_cell
(self, markdown: str)¶ Add the given markdown as a new markdown cell. :param markdown: Code to render into the notebook cell
- Returns
Nothing, adds a cell to the class instance notebook
-
classmethod
write_notebook_to_disk
(cls, notebook: nbformat.NotebookNode, notebook_file_path: str)¶ Write a given Jupyter notebook to disk. :param notebook: Jupyter notebook :param notebook_file_path: Location to write notebook
-
abstract
render
(self)¶ Render a notebook from parameters.
-
abstract
render_to_disk
(self, notebook_file_path: str)¶ Render a notebook to disk from arguments
-