Contents

How to export a jupyter notebook to markdown

0

Command to export a jupyter notebook to markdown format.

from Command line

jupyter nbconvert --to markdown mynotebook.ipynb 

If the notebook contains images a directory named mynotebook_files will also be created.

$ ls
mynotebook_files  mynotebook.ipynb  mynotebook.md

from Notebook Cell

!jupyter nbconvert --to markdown mynotebook.ipynb

from Python

import os
os.system('jupyter nbconvert --to markdown mynotebook.ipynb')

from Jupyter Lab web interface

Click File | Save and Export Notebook As… | Markdown

Jupyter Notebook Export Markdown