SVG.ipynb
47 lines
| 977 B
| text/plain
|
TextLexer
Julia Evans
|
r17082 | { | |
MinRK
|
r18580 | "cells": [ | |
Julia Evans
|
r17082 | { | |
MinRK
|
r18580 | "cell_type": "code", | |
MinRK
|
r18587 | "execution_count": 1, | |
MinRK
|
r18580 | "metadata": { | |
"collapsed": false | |||
}, | |||
"outputs": [], | |||
"source": [ | |||
"from IPython.display import SVG" | |||
] | |||
}, | |||
{ | |||
"cell_type": "code", | |||
MinRK
|
r18587 | "execution_count": 2, | |
MinRK
|
r18580 | "metadata": { | |
"collapsed": false | |||
}, | |||
"outputs": [ | |||
Julia Evans
|
r17082 | { | |
MinRK
|
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
|
r18587 | "execution_count": 2, | |
Julia Evans
|
r17082 | "metadata": {}, | |
MinRK
|
r18589 | "output_type": "execute_result" | |
Julia Evans
|
r17082 | } | |
], | |||
MinRK
|
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
|
r17082 | } | |
MinRK
|
r18580 | ], | |
"metadata": {}, | |||
"nbformat": 4, | |||
"nbformat_minor": 0 | |||
Julia Evans
|
r17082 | } |