Debian Codegraph @

tests/data/notebooks/outputs/ipynb_to_myst/Notebook with function and cell metadata 164.md

raw
1 ---
2 kernelspec:
3 display_name: Python 3
4 language: python
5 name: python3
6 ---
7
8 ```{code-cell} ipython3
9 1 + 1
10 ```
11
12 A markdown cell
13 And below, the cell for function f has non trivial cell metadata. And the next cell as well.
14
15 ```{code-cell} ipython3
16 ---
17 attributes:
18 classes: []
19 id: ''
20 n: '10'
21 ---
22 def f(x):
23 return x
24 ```
25
26 ```{code-cell} ipython3
27 ---
28 attributes:
29 classes: []
30 id: ''
31 n: '10'
32 ---
33 f(5)
34 ```
35
36 More text
37
38 ```{code-cell} ipython3
39 2 + 2
40 ```