Skip to content

Commit 5d5d493

Browse files
committed
ex
1 parent a5e4137 commit 5d5d493

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

nbs/api/05_svg.ipynb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,34 @@
389389
"execution_count": null,
390390
"id": "d4f05d4a",
391391
"metadata": {},
392-
"outputs": [],
392+
"outputs": [
393+
{
394+
"data": {
395+
"text/html": [
396+
"<svg xmlns=\"http://www.w3.org/2000/svg\" viewbox=\"0 0 50 50\" height=\"50\" width=\"50\"><line x1=\"20\" y1=\"30\" stroke=\"black\" stroke-width=\"3\"></line></svg>"
397+
],
398+
"text/plain": [
399+
"<IPython.core.display.HTML object>"
400+
]
401+
},
402+
"metadata": {},
403+
"output_type": "display_data"
404+
}
405+
],
393406
"source": [
394407
"demo(Line(20, 30, w=3, stroke='black'))"
395408
]
396409
},
410+
{
411+
"cell_type": "code",
412+
"execution_count": null,
413+
"id": "ca8bbd71",
414+
"metadata": {},
415+
"outputs": [],
416+
"source": [
417+
"demo(Svg(G(Line(0, 0, 100, 100), Line(100, 0, 0, 100), stroke='red', stroke_width=3)))"
418+
]
419+
},
397420
{
398421
"cell_type": "code",
399422
"execution_count": null,

0 commit comments

Comments
 (0)