jupyter / nbconvert

Jupyter Notebook Conversion
https://nbconvert.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.69k stars 558 forks source link

conversion to word processing formats (.docx; .odt) #121

Open zelite opened 8 years ago

zelite commented 8 years ago

Not sure if this is the place for feature requests.

Since nbconvert uses pandoc for conversion, would it be possible to add the possibility to convert the .ipynb to a word processing format?

Sometimes it is useful to prepare a document in a notebook and then, make a document out of it to be shared with non programmers who will just be adding text and comments to the current work.

minrk commented 8 years ago

I think we would have to change the relationship that nbconvert has with pandoc to do that properly. Right now, nbconvert uses pandoc to translate snippets from one doc format to another (e.g. markdown to rst), but doesn't operate on the whole document. That said, one could export the notebook to markdown, for instance, then call pandoc to convert from markdown to .doc. I'm not sure how great a job it would do, but it should get something. A custom markdown template for nbconvert with this goal in mine may help, as well. I'm not sure what format would be best as the intermediate.

bollwyvl commented 8 years ago

ipymd has done some of this for odt...

rossant commented 8 years ago

ipymd can convert ipynb <-> odt, and I plan to add full compatibility with pandoc in the future for even more conversion options

mangecoeur commented 6 years ago

Just to leave a +1 for this feature. Given Latex export already uses pandoc it seems reasonable to allow docx/odt as export formats when pandoc is installed (pandoc produces surpisingly good docx files even with fancy embedded equations).

m-rossi commented 6 years ago

I have written a bundlerextension for the notebook, which converts to HTML with nbconvert and then to DOCX with pandoc: https://github.com/m-rossi/jupyter_docx_bundler