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

File last commit:

r18589:135227ac
r18617:482c7bd6 merge
Show More
SVG.ipynb
47 lines | 977 B | text/plain | TextLexer
Julia Evans
Start adding tests from runipy
r17082 {
MinRK
update nbconvert to nbformat 4
r18580 "cells": [
Julia Evans
Start adding tests from runipy
r17082 {
MinRK
update nbconvert to nbformat 4
r18580 "cell_type": "code",
MinRK
s/prompt_number/execution_count in nbformat 4
r18587 "execution_count": 1,
MinRK
update nbconvert to nbformat 4
r18580 "metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from IPython.display import SVG"
]
},
{
"cell_type": "code",
MinRK
s/prompt_number/execution_count in nbformat 4
r18587 "execution_count": 2,
MinRK
update nbconvert to nbformat 4
r18580 "metadata": {
"collapsed": false
},
"outputs": [
Julia Evans
Start adding tests from runipy
r17082 {
MinRK
move mime-bundle data to rich output.data...
r18589 "data": {
"image/svg+xml": [
"<svg height=\"100\" width=\"100\">\n",
" <circle cx=\"50\" cy=\"50\" fill=\"red\" r=\"40\" stroke=\"black\" stroke-width=\"2\"/>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
MinRK
s/prompt_number/execution_count in nbformat 4
r18587 "execution_count": 2,
Julia Evans
Start adding tests from runipy
r17082 "metadata": {},
MinRK
move mime-bundle data to rich output.data...
r18589 "output_type": "execute_result"
Julia Evans
Start adding tests from runipy
r17082 }
],
MinRK
update nbconvert to nbformat 4
r18580 "source": [
"SVG(data='''\n",
"<svg height=\"100\" width=\"100\">\n",
" <circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" />\n",
"</svg>''')"
]
Julia Evans
Start adding tests from runipy
r17082 }
MinRK
update nbconvert to nbformat 4
r18580 ],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
Julia Evans
Start adding tests from runipy
r17082 }