1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
Pandoc
Meta
{ unMeta =
fromList
[ ( "jupyter"
, MetaMap
(fromList
[ ( "nbformat" , MetaString "4" )
, ( "nbformat_minor" , MetaString "5" )
])
)
]
}
[ Div
( "uid1" , [ "cell" , "markdown" ] , [] )
[ Header
1
( "lorem-ipsum" , [] , [] )
[ Str "Lorem" , Space , Str "ipsum" ]
, Para
[ Strong [ Str "Lorem" , Space , Str "ipsum" ]
, Space
, Str "dolor"
, Space
, Str "sit"
, Space
, Str "amet,"
, Space
, Str "consectetur"
, Space
, Str "adipiscing"
, Space
, Str "elit."
, Space
, Str "Nunc"
, Space
, Str "luctus"
, SoftBreak
, Str "bibendum"
, Space
, Str "felis"
, Space
, Str "dictum"
, Space
, Str "sodales."
]
]
, Div
( "uid2" , [ "cell" , "code" ] , [] )
[ CodeBlock ( "" , [ "python" ] , [] ) "print(\"hello\")" ]
, Div
( "uid3" , [ "cell" , "markdown" ] , [] )
[ Header 2 ( "pyout" , [] , [] ) [ Str "Pyout" ] ]
, Div
( "uid4"
, [ "cell" , "code" ]
, [ ( "execution_count" , "2" ) ]
)
[ CodeBlock
( "" , [ "python" ] , [] )
"from IPython.display import HTML\nHTML(\"\"\"\n<script>\nconsole.log(\"hello\");\n</script>\n<b>HTML</b>\n\"\"\")"
, Div
( ""
, [ "output" , "execute_result" ]
, [ ( "execution_count" , "2" ) ]
)
[ RawBlock
(Format "html")
"<script>\nconsole.log(\"hello\");\n</script>\n<b>HTML</b>\nhello"
]
]
, Div
( "uid6"
, [ "cell" , "markdown" ]
, [ ( "tags" , "[\"foo\",\"bar\"]" ) ]
)
[ Header 2 ( "image" , [] , [] ) [ Str "Image" ]
, Para
[ Str "This"
, Space
, Str "image"
, Space
, Image
( "" , [] , [] )
[ Str "the" , Space , Str "moon" ]
( "uid6-lalune.jpg" , "" )
, Space
, Str "will"
, Space
, Str "be"
, Space
, Str "included"
, Space
, Str "as"
, Space
, Str "a"
, Space
, Str "cell"
, SoftBreak
, Str "attachment."
]
]
]
|