Convert Jupyter notebook into MS word document .doc?

To convert the Jupyter Notebook to Word

  1. Go to File and download as markdown(.md)
  2. Go to https://cloudconvert.com/md-to-docx and download as doc file

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.

Screeshot of terminal code