Skip to content

tcmetzger/ipynb-text-extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ipynb Text Extract

ipynb Text Extract is a simple script to extract all text cells ("cell_type": "markdown") from a notebook file (ipynb). The resulting text is stored in a .md Markdown file.

Requirements

This script does not have any dependencies outside of the Python standard library.

It requires at least Python 3.6.

Usage

python ipynb-text-extract.py your_notebook.ipynb

The result will be stored in your_notebook.md.

To also extract single line comments from code cells ("cell_type": "code"), add the optional argument -c:

python ipynb-text-extract.py your_notebook.ipynb -c

To see a summary of these instructions, use -h:

python ipynb-text-extract.py -h

About

Extract only text cells from ipynb to md

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages