SVG.ipynb
52 lines
| 1.1 KiB
| text/plain
|
TextLexer
Julia Evans
|
r17082 | { | |
"metadata": { | |||
"name": "" | |||
}, | |||
"nbformat": 3, | |||
"nbformat_minor": 0, | |||
"worksheets": [ | |||
{ | |||
"cells": [ | |||
{ | |||
"cell_type": "code", | |||
"collapsed": false, | |||
"input": [ | |||
"from IPython.display import SVG" | |||
], | |||
"language": "python", | |||
"metadata": {}, | |||
"outputs": [], | |||
"prompt_number": 1 | |||
}, | |||
{ | |||
"cell_type": "code", | |||
"collapsed": false, | |||
"input": [ | |||
"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>''')" | |||
], | |||
"language": "python", | |||
"metadata": {}, | |||
"outputs": [ | |||
{ | |||
"metadata": {}, | |||
"output_type": "pyout", | |||
"prompt_number": 2, | |||
"svg": [ | |||
"<svg height=\"100\" width=\"100\">\n", | |||
" <circle cx=\"50\" cy=\"50\" fill=\"red\" r=\"40\" stroke=\"black\" stroke-width=\"2\"/>\n", | |||
"</svg>" | |||
], | |||
"text": [ | |||
"<IPython.core.display.SVG at 0x10428e150>" | |||
] | |||
} | |||
], | |||
"prompt_number": 2 | |||
} | |||
], | |||
"metadata": {} | |||
} | |||
] | |||
} |