Skip to content

Instantly share code, notes, and snippets.

# %% [markdown]
# This is a multiline
# Markdown cell
# %% [markdown]
# Another Markdown cell
# %%
# This is a code cell
class A():
| Parser | Menu label | File type | Format |
| -------------------- | ---------------------- | --------- | ---------------------------------------------------------------------------------- |
| `parsePy` | Percent format (.py) | `.py` | [Jupytext percent](https://jupytext.readthedocs.io/en/latest/formats-scripts.html) |
| `parseSphinxGallery` | Sphinx Gallery (.py) | `.py` | [Sphinx-Gallery](https://sphinx-gallery.github.io/stable/syntax.html) |
| `parseClassicMd` | Classic Markdown (.md) | `.md` | Standard markdown — fenced code blocks become code cells |
| `parseMystMd` | MyST Notebook (.md) | `.md` | [MyST-NB](https://myst-nb.readthedocs.io/) `{code-cell}` directives |