Skip to content

Commit 53eeab0

Browse files
committed
🎨 update tutorial with some more comments
1 parent c309da1 commit 53eeab0

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

docs/tutorial/tutorial.ipynb

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
"from python_package import hello_world"
2222
]
2323
},
24+
{
25+
"cell_type": "markdown",
26+
"id": "78609dba",
27+
"metadata": {},
28+
"source": [
29+
"## Hello World\n",
30+
"mockup module contains a function which returns a string repeating the 'hello world' string\n",
31+
"n-times."
32+
]
33+
},
2434
{
2535
"cell_type": "code",
2636
"execution_count": null,
@@ -32,6 +42,14 @@
3242
"ret"
3343
]
3444
},
45+
{
46+
"cell_type": "markdown",
47+
"id": "b3012415",
48+
"metadata": {},
49+
"source": [
50+
"Print the string."
51+
]
52+
},
3553
{
3654
"cell_type": "code",
3755
"execution_count": null,
@@ -42,6 +60,14 @@
4260
"print(ret)"
4361
]
4462
},
63+
{
64+
"cell_type": "markdown",
65+
"id": "076361ca",
66+
"metadata": {},
67+
"source": [
68+
"Inspect the signature."
69+
]
70+
},
4571
{
4672
"cell_type": "code",
4773
"execution_count": null,
@@ -53,15 +79,11 @@
5379
]
5480
},
5581
{
56-
"cell_type": "code",
57-
"execution_count": null,
58-
"id": "4ae5341c",
59-
"metadata": {
60-
"title": "markdown"
61-
},
62-
"outputs": [],
82+
"cell_type": "markdown",
83+
"id": "916c31f2",
84+
"metadata": {},
6385
"source": [
64-
"# Simple example for a recipe showing what the package can do."
86+
"Simple example for a recipe showing what the package can do."
6587
]
6688
}
6789
],

docs/tutorial/tutorial.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,26 @@
77
# %%
88
from python_package import hello_world
99

10+
# %% [markdown]
11+
# ## Hello World
12+
# mockup module contains a function which returns a string repeating the 'hello world' string
13+
# n-times.
14+
1015
# %%
1116
ret = hello_world(2)
1217
ret
1318

19+
# %% [markdown]
20+
# Print the string.
21+
1422
# %%
1523
print(ret)
1624

25+
# %% [markdown]
26+
# Inspect the signature.
27+
1728
# %%
1829
# hello_world?
1930

20-
# %%
31+
# %% [markdown]
2132
# Simple example for a recipe showing what the package can do.

0 commit comments

Comments
 (0)