Skip to content

Commit d207365

Browse files
committed
Parameterization Notebook Sample
1 parent 5d02093 commit d207365

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"metadata": {
3+
"kernelspec": {
4+
"name": "python3",
5+
"display_name": "Python 3",
6+
"language": "python"
7+
},
8+
"language_info": {
9+
"name": "python",
10+
"version": "3.6.8",
11+
"mimetype": "text/x-python",
12+
"codemirror_mode": {
13+
"name": "ipython",
14+
"version": 3
15+
},
16+
"pygments_lexer": "ipython3",
17+
"nbconvert_exporter": "python",
18+
"file_extension": ".py"
19+
}
20+
},
21+
"nbformat_minor": 2,
22+
"nbformat": 4,
23+
"cells": [
24+
{
25+
"cell_type": "markdown",
26+
"source": [
27+
"# Parameterization in Azure Data Studio"
28+
],
29+
"metadata": {
30+
"azdata_cell_guid": "de96a5d8-105e-403d-a284-134eef3d8533"
31+
}
32+
},
33+
{
34+
"cell_type": "code",
35+
"source": [
36+
"x = 2.0\n",
37+
"y = 5.0"
38+
],
39+
"metadata": {
40+
"azdata_cell_guid": "45afab06-c690-4c94-a67c-47690d93c28d",
41+
"tags": [
42+
"parameters"
43+
]
44+
},
45+
"outputs": [],
46+
"execution_count": 1
47+
},
48+
{
49+
"cell_type": "code",
50+
"source": [
51+
"addition = x + y\n",
52+
"multiply = x * y"
53+
],
54+
"metadata": {
55+
"azdata_cell_guid": "c962b295-06ee-4c1f-93c6-4d53fa347755"
56+
},
57+
"outputs": [],
58+
"execution_count": 2
59+
},
60+
{
61+
"cell_type": "code",
62+
"source": [
63+
"print(\"Addition: \" + str(addition))\n",
64+
"print(\"Multiplication: \" + str(multiply))"
65+
],
66+
"metadata": {
67+
"azdata_cell_guid": "d3c849f6-fd01-467d-9240-1e8831b5d19f"
68+
},
69+
"outputs": [
70+
{
71+
"name": "stdout",
72+
"text": "Addition: 7.0\nMultiplication: 10.0\n",
73+
"output_type": "stream"
74+
}
75+
],
76+
"execution_count": 3
77+
}
78+
]
79+
}

0 commit comments

Comments
 (0)