Skip to content

Commit 816b6c3

Browse files
committed
Add vector sum interactive
1 parent 3c22595 commit 816b6c3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

02-vectors/5-vector-ops.ipynb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@
1212
"source": [
1313
"# Vector Operations\n",
1414
"\n",
15-
"$~$"
15+
"$~$\n",
16+
"\n",
17+
"Use the following interactive tool to visualize summation of two-dimensional vectors:"
18+
]
19+
},
20+
{
21+
"cell_type": "markdown",
22+
"metadata": {},
23+
"source": [
24+
"```{raw} html\n",
25+
"<iframe src=\"../interactive/vector-addition.html\" width=\"100%\" height=\"800\"></iframe>\n",
26+
"```\n"
1627
]
1728
},
1829
{

interactive/vector-addition.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
#vector-input {
4444
display: flex;
4545
flex-direction: column;
46-
flex: 1;
46+
/* flex: 1;*/
47+
width:15em;
48+
margin-top: 6%;
49+
max-height:20em;
4750
}
4851
textarea {
4952
height: 600px;

0 commit comments

Comments
 (0)