Skip to content

Commit 7962d16

Browse files
author
Murilo Marinho
committed
[lesson1] Adding exercises
1 parent e1ca7ab commit 7962d16

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// "features": {},
1010

1111
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12-
"forwardPorts": [3000],
12+
"forwardPorts": [3000, 3100],
1313

1414
// Use 'postCreateCommand' to run commands after the container is created.
1515
// "postCreateCommand": "export DEBIAN_FRONTEND=noninteractive && chmod +x .devcontainer/postCreateCommand.sh && .devcontainer/postCreateCommand.sh",

.devcontainer/postCreateCommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
1616
NVM_DIR="/.jbdevcontainer/config/nvm"
1717
export NVM_DIR="$NVM_DIR"
1818
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
19-
nvm install 22.17
19+
nvm install 24
2020

2121
chmod +x start_from_devcontainer.sh

basic_lessons/lesson1_tutorial.ipynb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,28 @@
10001000
"\n",
10011001
"print(f'O_3={O_3}.')"
10021002
]
1003+
},
1004+
{
1005+
"metadata": {},
1006+
"cell_type": "markdown",
1007+
"source": [
1008+
"# Exercises\n",
1009+
"\n",
1010+
"## Exercise 1\n",
1011+
"\n",
1012+
"For $\\phi = \\pi/4$, let\n",
1013+
"\n",
1014+
"$$ e_1 = \\sin(\\phi) + 4\\cos(\\frac{\\phi}{5})$$\n",
1015+
"\n",
1016+
"Using the `math` module which is already imported, calculate the value of $e_1$ and store it in the variable shown in the cell below."
1017+
]
1018+
},
1019+
{
1020+
"metadata": {},
1021+
"cell_type": "code",
1022+
"outputs": [],
1023+
"execution_count": null,
1024+
"source": "e1 = None # Replace None with your solution to this problem."
10031025
}
10041026
],
10051027
"metadata": {

start_from_devcontainer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export NVM_DIR="/.jbdevcontainer/config/nvm"
22
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
3-
python3 -m jupyter book start
3+
python3 -m jupyter book build --html

0 commit comments

Comments
 (0)