Skip to content

Using Juptyer Notebook

English | Français | 한국어 | 日本語

This feature is available from v2.0.0.

  • Jupyter notebook files can use all the features of MMG just like markdown files.
  • Just like markdown files, jupyter notebook files must also create a *.base.ipynb file.
  • MMG extracts only markdown cells from jupyter notebook and recognizes headers and keywords.
  • There must be only one header in the entire notebook file, regardless of the cell.
  • All code cells are treated as common code blocks.

Test it with sample_jupyter.base.ipynb in the GitHub repository. (File path: ./examples/cli-examples/sample_jupyter.base.ipynb)

$ mmg .\sample_jupyter.base.ipynb -vv
----------------------
  sample_jupyter.base.ipynb
    Tag count: {'en-US': 3, 'fr-FR': 3, 'ko-KR': 3, 'ja-JP': 3}
----------------------
 => 1 base file was found.
    Do you want to convert these files? [y/N]