A Python library that parses Jupyter notebook cells
Project description
jupyter-notebook-parser
A Python library to parse cell contents from Jupyter notebooks
Installation
pip install jupyter-notebook-parser
Usage
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for jupyter_notebook_parser-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ba9bffeabdb1dc8bb66fa7021d0af84a242291994b5ea875d821613c30f70d |
|
MD5 | 71462a51bd7f0e9d860b034ed60e86b6 |
|
BLAKE2b-256 | 364d4d1f3cc9c46c9b337094cfc073ab97cecdbc55d41d9717a758ca3842d713 |
Close
Hashes for jupyter_notebook_parser-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aaf74e739d78808d4ae6028ef459a9cbdd69d297704c722f59ed16e71034a0f |
|
MD5 | afd35b92418b3217b1972eac566673db |
|
BLAKE2b-256 | 287146b8c9837155bf70455f98f9fe774dbd59447f46ed60869edaf55b8b8942 |