Ludwiggle / ipynb2docx

Convert Juyter Notebooks to docx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipynb2docx

Convert Juyter Notebooks to docx preserving LaTeX math and overall formatting.

Requirements

Usage

$ ipynb2docx <notebook.ipynb>

How it works

It converts the notebook to html with jupyter-nbconvert, then LaTeX math and equations are converted to png and embedded in the html. Finally pandoc converts the html to docx.

Possible issues

The css+Jupyter header in the html temporary html file is considered to end at the first html heading <h1>. If the temporary html starts with <h2> of <h3> and so on, the LaTeX expressions are not recognized.. fix in progress

About

Convert Juyter Notebooks to docx


Languages

Language:Shell 100.0%