| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"cell_type": "raw", |
| 5 |
"metadata": { |
| 6 |
"raw_mimetype": "text/html" |
| 7 |
}, |
| 8 |
"source": [ |
| 9 |
"<b>raw html</b>" |
| 10 |
] |
| 11 |
}, |
| 12 |
{ |
| 13 |
"cell_type": "raw", |
| 14 |
"metadata": { |
| 15 |
"raw_mimetype": "text/markdown" |
| 16 |
}, |
| 17 |
"source": [ |
| 18 |
"* raw markdown\n", |
| 19 |
"* bullet\n", |
| 20 |
"* list" |
| 21 |
] |
| 22 |
}, |
| 23 |
{ |
| 24 |
"cell_type": "raw", |
| 25 |
"metadata": { |
| 26 |
"raw_mimetype": "text/restructuredtext" |
| 27 |
}, |
| 28 |
"source": [ |
| 29 |
"``raw rst``\n", |
| 30 |
"\n", |
| 31 |
".. sourcecode:: python\n", |
| 32 |
"\n", |
| 33 |
" def foo(): pass\n" |
| 34 |
] |
| 35 |
}, |
| 36 |
{ |
| 37 |
"cell_type": "raw", |
| 38 |
"metadata": { |
| 39 |
"raw_mimetype": "text/x-python" |
| 40 |
}, |
| 41 |
"source": [ |
| 42 |
"def bar():\n", |
| 43 |
" \"\"\"raw python\"\"\"\n", |
| 44 |
" pass" |
| 45 |
] |
| 46 |
}, |
| 47 |
{ |
| 48 |
"cell_type": "raw", |
| 49 |
"metadata": { |
| 50 |
"raw_mimetype": "text/latex" |
| 51 |
}, |
| 52 |
"source": [ |
| 53 |
"\\LaTeX\n", |
| 54 |
"% raw latex" |
| 55 |
] |
| 56 |
}, |
| 57 |
{ |
| 58 |
"cell_type": "raw", |
| 59 |
"metadata": {}, |
| 60 |
"source": [ |
| 61 |
"# no raw_mimetype metadata, should be included by default" |
| 62 |
] |
| 63 |
}, |
| 64 |
{ |
| 65 |
"cell_type": "raw", |
| 66 |
"metadata": { |
| 67 |
"raw_mimetype": "doesnotexist" |
| 68 |
}, |
| 69 |
"source": [ |
| 70 |
"garbage format defined, should never be included" |
| 71 |
] |
| 72 |
} |
| 73 |
], |
| 74 |
"metadata": {}, |
| 75 |
"nbformat": 4, |
| 76 |
"nbformat_minor": 0 |
| 77 |
} |