In Jupyter Notebook, I am able to convert a notebook to pdf and HTML using nbconvert. However, there is no way to convert it into .doc(Word Document). Is there a way to convert it to MS Word keeping the same text highlights and table structure?
The Jupyter Notebook has an option to export the notebook to many formats. It can be accessed by clicking File -> Download as -> PDF via LaTeX (or PDF via HTML - not visible in the screenshot).
The simplest way to convert a jupyter notebook (.ipynb file) to word file (.docx) is using pandoc. First install pandoc, follow instruction here. Once installed, open your terminal to check if its installed correctly by using
pandoc --version
Once you are sure its installed there, use the following line of code in the terminal to convert the jupyter notebook to word file.
pandoc jupyter_file.ipynb -s -o new_word_file.docx
One word of caution, you first need to get into the directory in which your jupyter notebook is, in your command prompt. You can do that by typing the path after writing cd(change directory) in the command prompt. This code will create the word file in the same folder where the Jupyter notebook is.
Use this website https://alldocs.app/convert-jupyter-notebook-to-word-docx
Upload the .ipynb, it works with code, text and pictures
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With