| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"cell_type": "raw", |
| 5 |
"metadata": {}, |
| 6 |
"source": [ |
| 7 |
"---\n", |
| 8 |
"title: A sample document\n", |
| 9 |
"---" |
| 10 |
] |
| 11 |
}, |
| 12 |
{ |
| 13 |
"cell_type": "markdown", |
| 14 |
"metadata": {}, |
| 15 |
"source": [ |
| 16 |
"This document is a plain Markdown document that was not created from a notebook.\n", |
| 17 |
"We use this document to test that inputing a Markdown file into Jupytext, and then converting the\n", |
| 18 |
"resulting notebook to a Markdown file using nbconvert, is the identity\n", |
| 19 |
"\n", |
| 20 |
"Another paragraph\n", |
| 21 |
"\n", |
| 22 |
"# A header\n", |
| 23 |
"\n", |
| 24 |
"Indented code\n", |
| 25 |
"\n", |
| 26 |
" def f(x):\n", |
| 27 |
" return 1\n", |
| 28 |
"\n", |
| 29 |
"\n", |
| 30 |
" def h(x):\n", |
| 31 |
" return f(x)+2\n", |
| 32 |
"\n", |
| 33 |
"\n", |
| 34 |
"A Python code snippet" |
| 35 |
] |
| 36 |
}, |
| 37 |
{ |
| 38 |
"cell_type": "code", |
| 39 |
"execution_count": null, |
| 40 |
"metadata": {}, |
| 41 |
"outputs": [], |
| 42 |
"source": [ |
| 43 |
"\"\"\"This code cell starts with ` ```python`\"\"\"\n", |
| 44 |
"1 + 1" |
| 45 |
] |
| 46 |
}, |
| 47 |
{ |
| 48 |
"cell_type": "markdown", |
| 49 |
"metadata": {}, |
| 50 |
"source": [ |
| 51 |
"Code snippet without an explicit language\n", |
| 52 |
"```\n", |
| 53 |
"echo 'Hello world'\n", |
| 54 |
"```\n", |
| 55 |
"\n", |
| 56 |
"Markdown comments\n", |
| 57 |
"<!-- #comment -->\n", |
| 58 |
"\n", |
| 59 |
"VS Code region markers" |
| 60 |
] |
| 61 |
}, |
| 62 |
{ |
| 63 |
"cell_type": "markdown", |
| 64 |
"metadata": {}, |
| 65 |
"source": [ |
| 66 |
"This Markdown cell has two consecutive blank lines\n", |
| 67 |
"\n", |
| 68 |
"\n", |
| 69 |
"And continues here" |
| 70 |
] |
| 71 |
} |
| 72 |
], |
| 73 |
"metadata": { |
| 74 |
"jupytext": { |
| 75 |
"cell_metadata_filter": "-all", |
| 76 |
"main_language": "python", |
| 77 |
"notebook_metadata_filter": "-all" |
| 78 |
} |
| 79 |
}, |
| 80 |
"nbformat": 4, |
| 81 |
"nbformat_minor": 2 |
| 82 |
} |