notebook_parsers
Module for parsing whole jupyter notebooks.
This utilizes flake8_nb.parser.cell_parsers
.
Functions
Summary
Transform jupyter magic commands to valid python code.
Parse a notebook at
notebook_path
and saves a parsed version.Create the path for a parsed jupyter notebook.
Parse a notebook and returns a Tuple.
Transform file_paths in a list of paths relative to base_path.
Return True if the cell isn't a code cell or is empty.
Check if a given dir parent_dir is parent directory of path.
Map intermediate file lines to notebook cell and line.
Parse the notebook at
notebook_path
as Json and returns a list of notebook cells.
Classes
Summary
Main parsing class for notebooks.
Exceptions
Exception Summary
Warning that is given when a jupyter notebook can't be parsed as JSON.