Metadata-Version: 2.1
Name: jupyter_notebook_parser
Version: 0.1.3
Summary: A Python library that parses Jupyter notebook cells
Home-page: https://github.com/cyyc1/jupyter-notebook-parser
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# jupyter-notebook-parser
A Python library to parse cell contents from Jupyter notebooks


## Installation

```bash
pip install jupyter-notebook-parser
```

## Usage

```python
from jupyter_notebook_parser import JupyterNotebookParser

parser = JupyterNotebookParser('my_notebook.ipynb')

parser.get_all_cells()  # returns List[Dict], each Dict is a notebook cell

parser.get_code_cells()  # returns List[Dict], each Dict is a code cell
parser.get_code_cell_indices()  # returns List[int], each int is a code cell's index
parser.get_code_cell_sources()  # returns List[str], each str is a code cell's Python code

parser.get_markdown_cells()  # returns List[Dict], each Dict is a markdown cel
parser.get_markdown_cell_indices()  # returns List[int], each is a markdown cell's index
parser.get_markdown_cell_sources()  # returns List[str], each is a markdown cell's text
```
