File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ contributes:
7
7
revealjs :
8
8
theme : coeos.scss
9
9
highlight-style : github-dark
10
+ mermaid :
11
+ theme : dark
10
12
date-format : ' dddd[, the] Do [of] MMMM, YYYY'
11
13
slide-number : c
14
+ code-annotations : select
12
15
footer : |
13
16
<a href="https://mickael.canouil.fr/">mickael.canouil.fr</a>
14
17
|
Original file line number Diff line number Diff line change @@ -40,3 +40,21 @@ format:
40
40
{{< placeholder 600 400 >}}
41
41
42
42
:::
43
+
44
+ # PART 2 With ` code ` {.center .center-x}
45
+
46
+ ## Code annotation
47
+
48
+ ``` {.python}
49
+ import numpy as np # <1>
50
+
51
+ def f(x): # <2>
52
+ return np.sin(x) # <3>
53
+
54
+ # Example of a simple function using NumPy
55
+ f(0)
56
+ ```
57
+
58
+ 1 . Importing the NumPy library.
59
+ 2 . Defining a function ` f ` that takes an argument ` x ` .
60
+ 3 . Returning the sine of ` x ` using NumPy's ` sin ` function.
You can’t perform that action at this time.
0 commit comments