##// END OF EJS Templates
Merge pull request #6045 from minrk/nbformat4...
Merge pull request #6045 from minrk/nbformat4 nbformat v4

File last commit:

r18580:ba8461eb
r18617:482c7bd6 merge
Show More
rawtest.ipynb
76 lines | 1.2 KiB | text/plain | TextLexer
MinRK
test raw cell inclusion based on raw_format metadata
r13665 {
MinRK
update nbconvert to nbformat 4
r18580 "cells": [
MinRK
test raw cell inclusion based on raw_format metadata
r13665 {
MinRK
update nbconvert to nbformat 4
r18580 "cell_type": "raw",
"metadata": {
"raw_mimetype": "text/html"
},
"source": [
"<b>raw html</b>"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/markdown"
},
"source": [
"* raw markdown\n",
"* bullet\n",
"* list"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"``raw rst``\n",
"\n",
".. sourcecode:: python\n",
"\n",
" def foo(): pass\n"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/x-python"
},
"source": [
"def bar():\n",
" \"\"\"raw python\"\"\"\n",
" pass"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/latex"
},
"source": [
"\\LaTeX\n",
"% raw latex"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"# no raw_mimetype metadata, should be included by default"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "doesnotexist"
},
"source": [
"garbage format defined, should never be included"
]
MinRK
test raw cell inclusion based on raw_format metadata
r13665 }
MinRK
update nbconvert to nbformat 4
r18580 ],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}