read_notebook_to_cells
- read_notebook_to_cells(notebook_path: str) list[NotebookCell] [source]
Parse the notebook at
notebook_path
as Json and returns a list of notebook cells.- Parameters:
notebook_path (str) – Path to a notebook.
- Returns:
List of notebook cells if the notebook was parsed successfully or an empty list if the *.ipynb file couldn’t be parsed.
- Return type:
list[NotebookCell]
- Warns:
InvalidNotebookWarning – If the notebook couldn’t be parsed.