Debian Codegraph @

tests/data/notebooks/outputs/ipynb_to_myst/nteract_with_parameter.md

raw
1 ---
2 kernel_info:
3 name: python3
4 kernelspec:
5 display_name: Python 3
6 language: python
7 name: python3
8 ---
9
10 ```{code-cell} ipython3
11 :inputHidden: false
12 :outputHidden: false
13 :tags: [parameters]
14
15 param = 4
16 ```
17
18 ```{code-cell} ipython3
19 :inputHidden: false
20 :outputHidden: false
21
22 import pandas as pd
23 ```
24
25 ```{code-cell} ipython3
26 :inputHidden: false
27 :outputHidden: false
28
29 df = pd.DataFrame({'A': [1, 2], 'B': [3 + param, 4]},
30 index=pd.Index(['x0', 'x1'], name='x'))
31 df
32 ```
33
34 ```{code-cell} ipython3
35 :inputHidden: false
36 :outputHidden: false
37
38 %matplotlib inline
39 df.plot(kind='bar')
40 ```